vault backup: 2024-10-03 00:52:44

This commit is contained in:
Marco Realacci 2024-10-03 00:52:44 +02:00
parent d14dacc322
commit 1de8070de0
17 changed files with 64 additions and 53 deletions

0
().md
View file

View file

@ -14,10 +14,10 @@
"type": "pdf",
"state": {
"file": "Biometric Systems/slides/LEZIONE2_Indici_di_prestazione.pdf",
"page": 13,
"left": -21,
"top": 6,
"zoom": 0.7229166666666665
"page": 19,
"left": -26,
"top": 410,
"zoom": 0.5666666666666667
}
}
},
@ -28,15 +28,14 @@
"type": "pdf",
"state": {
"file": "Autonomous Networking/slides/3 WSN.pdf",
"page": 74,
"page": 73,
"left": -26,
"top": 419,
"top": 248,
"zoom": 0.5666666666666667
}
}
}
],
"currentTab": 1
]
},
{
"id": "730530e270323c7d",
@ -45,16 +44,27 @@
{
"id": "06d416b60db86f57",
"type": "leaf",
"state": {
"type": "image",
"state": {
"file": "Autonomous Networking/images/Pasted image 20241002114133.png"
}
}
},
{
"id": "abce0da557ee63e7",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Autonomous Networking/notes/3 WSN.md",
"file": "Biometric Systems/final notes/2. Performance indexes.md",
"mode": "source",
"source": false
}
}
}
]
],
"currentTab": 1
}
],
"direction": "vertical"
@ -121,7 +131,7 @@
"state": {
"type": "backlink",
"state": {
"file": "Autonomous Networking/notes/3 WSN.md",
"file": "Biometric Systems/slides/LEZIONE2_Indici_di_prestazione.pdf",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@ -138,7 +148,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "Autonomous Networking/notes/3 WSN.md",
"file": "Biometric Systems/slides/LEZIONE2_Indici_di_prestazione.pdf",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
@ -161,7 +171,7 @@
"state": {
"type": "outline",
"state": {
"file": "Autonomous Networking/notes/3 WSN.md"
"file": "Biometric Systems/slides/LEZIONE2_Indici_di_prestazione.pdf"
}
}
},
@ -195,27 +205,27 @@
"obsidian-git:Open Git source control": false
}
},
"active": "06d416b60db86f57",
"active": "fce83e74db3de5b7",
"lastOpenFiles": [
"Autonomous Networking/slides/3 WSN.pdf",
"Autonomous Networking/notes/3 WSN.md",
"Pasted image 20241002235837.png",
"Pasted image 20241002235555.png",
"Pasted image 20241002235259.png",
"Pasted image 20241002235016.png",
"Pasted image 20241002234319.png",
"Pasted image 20241002233803.png",
"Biometric Systems/final notes/2. Performance indexes.md",
"Biometric Systems/slides/LEZIONE2_Indici_di_prestazione.pdf",
"Biometric Systems/final notes/Untitled.md",
"Biometric Systems/final notes/1. Introduction.md",
"[LEZIONE2_Indici_di_prestazione.pdf.md",
"[[[LEZIONE2_Indici_di_prestazione.pdf.md",
"Autonomous Networking/images/Pasted image 20241002235837.png",
"().md",
"a.md",
"Pasted image 20241002181936.png",
"Pasted image 20241002181932.png",
"Pasted image 20241002135922.png",
"Pasted image 20241002114133.png",
"[[[LEZIONE2_Indici_di_prestazione.pdf.md",
"[LEZIONE2_Indici_di_prestazione.pdf.md",
"Autonomous Networking/images/Pasted image 20241002235555.png",
"Autonomous Networking/images/Pasted image 20241002235259.png",
"Autonomous Networking/images/Pasted image 20241002235016.png",
"Autonomous Networking/images/Pasted image 20241002234319.png",
"Autonomous Networking/images/Pasted image 20241002233803.png",
"Biometric Systems/images/Pasted image 20241002181932.png",
"Biometric Systems/images/Pasted image 20241002181936.png",
"Biometric Systems/images/Pasted image 20241002135922.png",
"Autonomous Networking/images/Pasted image 20241002114133.png",
"Autonomous Networking/notes/3 WSN.md",
"Autonomous Networking/slides/3 WSN.pdf",
"Biometric Systems/final notes/1. Introduction.md",
"Foundation of data science/slides/Untitled.md",
"conflict-files-obsidian-git.md",
"Autonomous Networking/slides/2 RFID.pdf",

View file

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View file

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

View file

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View file

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

View file

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View file

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View file

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View file

@ -39,37 +39,33 @@ Most difficult traits to exploit:
- Euclidian distance
- Cosine similarity
- cosine of the angle between two vectors
- Pearson correlation
- Bhattacharyya distance
> [!PDF|yellow] [[LEZIONE2_Indici_di_prestazione.pdf#page=9&selection=8,0,10,31&color=yellow|LEZIONE2_Indici_di_prestazione, p.9]]
> > or cosine similarity may provide either a distance measure or a similarity measure
>
> shows "more stuff" than Euclidian distance, such as orientation ecc.. Shows how templates are similar to eachother. While distance shows how templates are... distant!
- affected also by the direction of the vectors
- Pearson correlation (for histograms or sets of points)
- statistical measure that evaluates the **linear relationship** between two variables. It tells you whether an increase or decrease in one variable tends to correspond with an increase or decrease in another, and how strong that relationship is (ChatGPT)
- Bhattacharyya distance (histograms)
- measure of the similarity (or dissimilarity) between two probability distributions
- the Bhattacharyya distance can compare feature distributions between two different classes (e.g., color histograms of objects)
> [!PDF|yellow] [[LEZIONE2_Indici_di_prestazione.pdf#page=10&selection=3,1,4,21&color=yellow|LEZIONE2_Indici_di_prestazione, p.10]]
> > (Pearson) Correlation
>
> how signals are similar to eachother. Often used to compare fingerprints, by computing the correlation between two fingerprints.
Histograms needs other ways to be compared.
For time series we have to address an issue: temporal sequences may vary in speed or timing, e.g. in two repetitions of a walking sequence, there might be differences in walking speed between repetitions, but the spatial path of limbs remain highly similar.
Another example could be audio recordings, same voice but different speed.
The same happens with time series: speed for example may speed the final outcome of the time series, even if the patterns are the same.
Dynamic Time Warping allows for "warping" of the time axis, meaning it can stretch or compress sections of the sequences to achieve the best possible alignment. This is useful when parts of one sequence are faster or slower than the corresponding parts in the other sequence.
So what do we do?
sometimes we use correlation, but Dynamic time Warping is the most used.
![[Pasted image 20241002135922.png]]
each point is paired with the most convenient one. It's not necessaty that points corresponds to the same instant in time.
each point is paired with the most convenient one. It's not necessarily that points corresponds to the same instant in time.
if using deep learning we should use the architecture to extract the embeddings (for both gallery and probe templates).
##### Comparing the results of submitting a template to a Deep Learning model
- if using deep learning we should use the architecture to extract the embeddings (for both gallery and probe templates): we can delete the classification layer in order to get the embeddings that the architecture would use for the final classification.
- mbeddings can be compard as they were vectors of hand-crafted features.
//
after normalization in range [0, 1] we will have that distance = 1 - similarity.
#### Possible errors: verification
### Possible errors: verification
- Genuine Match (GM, GA): the claimed identity is true and subject is accepted
- False Rejection (FR, FNM, type I error): claimed identity is true but the subjet is rejected
- Genuine Reject (GR, GNM): an impostor is rejected
@ -79,13 +75,18 @@ It's important to define a good threshold.
If too high we will get a lot of false acceptance. If too low we will get a lot of false rejection!
When computing rates:
- False Rejection Rate (FRR) is the number of FR divided by ONLY the number of GM+FR.
- in fact, GM + FR have the same denominator and sum up to 1.
- False Acceptance Rate is the number of FA divided by FA + GR
- **False Rejection Rate (FRR)** is the number of FR divided by the number of GM+FR.
- in fact, GM and FR have the same denominator and sum up to 1.
- **False Acceptance Rate** is the number of FA divided by total number of impostor attempts (FA + GR)
- **Equal Error Rate** is the value at a specific threshold, where FAR and FRR are the same value.
- **Detection Error Trade-off:** a plot that shows the **trade-off** between the **FAR** and **FRR** at different threshold settings of a system
- **Receiving Operating Curve:** a plot that shows the True Positive Rate (TPR) (also called **Sensitivity**) against the False Positive Rate (FPR) (1 - Specificity) at various threshold settings.
Equal Error Rate is the value at a specific threshold, where FAR and FRR are the same value.
Key Differences Between ROC and DET Curves:
- **ROC Curve**: Focuses on the **true positives** and **false positives**, showing the ability to discriminate between classes (genuine vs impostor).
- **DET Curve**: Focuses on the **false rejection rate (FRR)** and **false acceptance rate (FAR)**, helping to analyze trade-offs between security and usability in verification systems.
two synthetic metrics could be ERR and area below ROC curve.
Two synthetic metrics for instance could be ERR and area below ROC curve.
(we might have more templates for the same person to address inter-class variation.
Of course templates should be different, not computed i.e. by frames of the same video, as some of them could be blurred and close frames are exactly the same!)

View file

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View file

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 143 KiB

View file

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

0
a.md
View file