vault backup: 2024-10-16 17:56:45
This commit is contained in:
parent
e0c10ab711
commit
b532555769
10 changed files with 209 additions and 57 deletions
134
.obsidian/workspace.json
vendored
134
.obsidian/workspace.json
vendored
|
@ -1,39 +1,54 @@
|
|||
{
|
||||
"main": {
|
||||
"id": "9c5b007ab74924bc",
|
||||
"id": "457b1626aad25933",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "ee1680277f6a0d97",
|
||||
"id": "4ed64efefb09317f",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "8d8de4cd4c80f0f8",
|
||||
"id": "6d4343be199e576a",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Foundation of data science/notes/1 CV Basics.md",
|
||||
"file": "Biometric Systems/notes/3. Recognition Reliability.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "924948579db1cec9",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "pdf",
|
||||
"state": {
|
||||
"file": "Biometric Systems/slides/LEZIONE3_Affidabilita_del_riconoscimento.pdf",
|
||||
"page": 29,
|
||||
"left": -4,
|
||||
"top": 89,
|
||||
"zoom": 0.8
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"stacked": true
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
},
|
||||
"left": {
|
||||
"id": "e2078ffa3de56c07",
|
||||
"id": "6a3cb9001ef6ba4d",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "d86cb8d8115f9e4b",
|
||||
"id": "c0a60ed96ba06609",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "2b2245f56092006e",
|
||||
"id": "5d5551c2fd0314c8",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "file-explorer",
|
||||
|
@ -43,7 +58,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "954699747dc12b5e",
|
||||
"id": "a4bcc1c786569338",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "search",
|
||||
|
@ -58,7 +73,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "71e92c2ed6f6f21c",
|
||||
"id": "2dfc44e60fc51bbe",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "bookmarks",
|
||||
|
@ -69,23 +84,24 @@
|
|||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 300
|
||||
"width": 300,
|
||||
"collapsed": true
|
||||
},
|
||||
"right": {
|
||||
"id": "bc4b945ded1926e3",
|
||||
"id": "11560c155f3d8f6e",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "00a3201508c9b6f7",
|
||||
"id": "95208597e1d680ae",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "34cc5dc90419b254",
|
||||
"id": "3c35a40edfa1f381",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "Foundation of data science/notes/1 CV Basics.md",
|
||||
"file": "Biometric Systems/notes/3. Recognition Reliability.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
|
@ -97,19 +113,19 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "f4a0915b879a43cd",
|
||||
"id": "926b8cdb0ccf5242",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "Foundation of data science/notes/1 CV Basics.md",
|
||||
"file": "Biometric Systems/notes/3. Recognition Reliability.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "c12ba700d0604b95",
|
||||
"id": "9fbde0b1f6b76a5d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "tag",
|
||||
|
@ -120,17 +136,17 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "77997770a5699d72",
|
||||
"id": "7745bbb89c3a5344",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outline",
|
||||
"state": {
|
||||
"file": "Foundation of data science/notes/1 CV Basics.md"
|
||||
"file": "Biometric Systems/notes/3. Recognition Reliability.md"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "0d5325c0f9289cea",
|
||||
"id": "b5d8a3515919e28a",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "git-view",
|
||||
|
@ -142,62 +158,66 @@
|
|||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 233.5
|
||||
"width": 300
|
||||
},
|
||||
"left-ribbon": {
|
||||
"hiddenItems": {
|
||||
"switcher:Apri selezione rapida": false,
|
||||
"graph:Apri vista grafo": false,
|
||||
"canvas:Crea nuova lavagna": false,
|
||||
"daily-notes:Apri nota del giorno": false,
|
||||
"templates:Inserisci modello": false,
|
||||
"command-palette:Apri riquadro comandi": false,
|
||||
"obsidian-ocr:Search OCR": false,
|
||||
"switcher:Open quick switcher": false,
|
||||
"graph:Open graph view": false,
|
||||
"canvas:Create new canvas": false,
|
||||
"daily-notes:Open today's daily note": false,
|
||||
"templates:Insert template": false,
|
||||
"command-palette:Open command palette": false,
|
||||
"pdf-plus:PDF++: Toggle auto-copy": false,
|
||||
"pdf-plus:PDF++: Toggle auto-focus": false,
|
||||
"pdf-plus:PDF++: Toggle auto-paste": false,
|
||||
"obsidian-git:Open Git source control": false
|
||||
}
|
||||
},
|
||||
<<<<<<< HEAD
|
||||
"active": "e23f9dfc04a75f51",
|
||||
=======
|
||||
"active": "0d5325c0f9289cea",
|
||||
>>>>>>> origin/main
|
||||
"active": "6d4343be199e576a",
|
||||
"lastOpenFiles": [
|
||||
"Biometric Systems/slides/LEZIONE3_Affidabilita_del_riconoscimento.pdf",
|
||||
"Biometric Systems/notes/3. Recognition Reliability.md",
|
||||
"Pasted image 20241016174417.png",
|
||||
"Pasted image 20241016174411.png",
|
||||
"Pasted image 20241016174120.png",
|
||||
"Pasted image 20241016143112.png",
|
||||
"Pasted image 20241016141746.png",
|
||||
"Foundation of data science/slides/IP CV Basics.pdf",
|
||||
"Foundation of data science/slides/notes 2.md",
|
||||
"Foundation of data science/slides/Untitled.md",
|
||||
"Foundation of data science/notes/1 CV Basics.md",
|
||||
"Biometric Systems/notes/2. Performance indexes.md",
|
||||
"Foundation of data science/notes",
|
||||
"Biometric Systems/slides/LEZIONE2_Indici_di_prestazione.pdf",
|
||||
"Biometric Systems/notes/1. Introduction.md",
|
||||
"Autonomous Networking/notes/4 WSN Routing.md",
|
||||
"Foundation of data science/slides/Untitled.md",
|
||||
"Autonomous Networking/slides/4 WSN2.pdf",
|
||||
"Autonomous Networking/images/Pasted image 20241012174130.png",
|
||||
"conflict-files-obsidian-git.md",
|
||||
"Autonomous Networking/notes/4 WSN pt. 2.md",
|
||||
"Foundation of data science/notes",
|
||||
"Biometric Systems/notes/2. Performance indexes.md",
|
||||
"Biometric Systems/notes/1. Introduction.md",
|
||||
"Biometric Systems/notes",
|
||||
"Autonomous Networking/notes/4 WSN Routing.md",
|
||||
"Autonomous Networking/notes/3 WSN MAC.md",
|
||||
"Autonomous Networking/images/Pasted image 20241012182403.png",
|
||||
"Autonomous Networking/images/Pasted image 20241012175224.png",
|
||||
"Autonomous Networking/slides/3 WSN.pdf",
|
||||
"conflict-files-obsidian-git.md",
|
||||
"Autonomous Networking/slides/2 RFID.pdf",
|
||||
"Foundation of data science/slides/FDS_intro_new.pdf",
|
||||
"Foundation of data science/slides",
|
||||
"Foundation of data science",
|
||||
"Biometric Systems/images/Pasted image 20241002181936.png",
|
||||
"Biometric Systems/images/Pasted image 20241002181932.png",
|
||||
"Biometric Systems/images/Pasted image 20241002135922.png",
|
||||
"BUCA/Queues.md",
|
||||
"BUCA",
|
||||
"Autonomous Networking/images/Pasted image 20241012174130.png",
|
||||
"Untitled.md",
|
||||
"Autonomous Networking/images/Pasted image 20241011191033.png",
|
||||
"Autonomous Networking/images/Pasted image 20241011182343.png",
|
||||
"Autonomous Networking/images/Pasted image 20241011182036.png",
|
||||
"Autonomous Networking/images/Pasted image 20241011182031.png",
|
||||
"Autonomous Networking/notes/3 WSN.md",
|
||||
"Autonomous Networking/slides/3 WSN.pdf",
|
||||
"Autonomous Networking/notes/2 RFID.md",
|
||||
"Autonomous Networking/images",
|
||||
"BUCA/Queues.md",
|
||||
"BUCA",
|
||||
"Biometric Systems/slides/LEZIONE2_Indici_di_prestazione.pdf",
|
||||
"Biometric Systems/final notes/2. Performance indexes.md",
|
||||
"().md",
|
||||
"a.md",
|
||||
"[[[LEZIONE2_Indici_di_prestazione.pdf.md",
|
||||
"[LEZIONE2_Indici_di_prestazione.pdf.md",
|
||||
"Biometric Systems/final notes/1. Introduction.md",
|
||||
"Autonomous Networking/slides/2 RFID.pdf",
|
||||
"Autonomous Networking/slides",
|
||||
"Foundation of data science/slides/notes 2.md",
|
||||
"Biometric Systems/slides/lezione1 notes.md",
|
||||
"prova per obsidian.md",
|
||||
"Senza nome.canvas"
|
||||
"Untitled.canvas"
|
||||
]
|
||||
}
|
123
Biometric Systems/notes/3. Recognition Reliability.md
Normal file
123
Biometric Systems/notes/3. Recognition Reliability.md
Normal file
|
@ -0,0 +1,123 @@
|
|||
- identification is much more than verification
|
||||
|
||||
- decidability (aggiungere parte mancante)
|
||||
> [!PDF|yellow] [[LEZIONE3_Affidabilita_del_riconoscimento.pdf#page=3&selection=0,0,1,1&color=yellow|LEZIONE3_Affidabilita_del_riconoscimento, p.3]]
|
||||
> > Extending
|
||||
>
|
||||
> decidability
|
||||
|
||||
- misure come FAR, FRR, CMS ecc. non sono abbastanza per avere una solida valutazione dei sistemi
|
||||
- se il dataset è limitato
|
||||
- la prestazione di un sistema biometrico è molto sensibile al contesto in cui viene utilizzato, se ad es. viene usato in europa o in asia ecc.
|
||||
|
||||
- per una comparazione affidabile bisogna considerare
|
||||
- numero e caratteristiche del dataset usato
|
||||
- dimensione delle immagini
|
||||
- dimensione di probe e gallery
|
||||
- quantità e qualità
|
||||
- cross-dataset evaluation: training on a dataset but testing on a different one
|
||||
- performance may even halve, if not worse.
|
||||
|
||||
## Metrics
|
||||
Una **metrica** su un insieme X è una funzione (detta distance function o distance)
|
||||
$d: XxX -> R$ (R è l'insieme dei numeri reali)
|
||||
|
||||
Una metrica deve soddisfare le seguenti condizioni:
|
||||
- $d(x,y) >= 0$ (non negatività / separazione)
|
||||
- $d(x,y) = 0$ se e solo se $x=y$ (identità indiscernibili / coincidence)
|
||||
- $d(x, y) = d(y, x)$ (simmetria)
|
||||
- $d(x, z) <= d(x,y)+d(y,z)$ (subadditività / triangle inequality)
|
||||
|
||||
Una **semimetrica** soddisfa solo i primi 3, ma non necessariamente l'ultimo.
|
||||
|
||||
- se una misura non è simmetrica possiamo fare la media
|
||||
|
||||
A partire dalla matrice di distanza DM si possono calcolare diverse metriche, spesso chiamate Figures or Merit (FoMs)
|
||||
|
||||
## Doddington zoo
|
||||
Doddington ha definito alcune similitudini con le classi animali per quanto
|
||||
riguarda la voice recognition
|
||||
- Pecora: produce tratti biometrici che matchano bene con altri template di se stesso e male con quelli di altri soggetti (classe media)
|
||||
- Capra: produce tratti biometrici che matchano poco con altri template di se stesso, aumentando cosı̀ i casi di FR
|
||||
- Agnello: produce tratti biometrici che sono facilmente riproducibili da altri, aumentando cosı̀ i casi di FA nei suoi confronti
|
||||
- Lupo: produce un matching score più alto rispetto alla media quando viene confrontato con template diversi dal suo, aumentando cosı̀ i FA.
|
||||
|
||||
La differenza è che gli agnelli sono facili da impersonare, i lupi sono forti a impersonare gli altri. Gli agnelli sono dal lato del gallery, i lupi dal lato del probe.
|
||||
|
||||
> [!PDF|yellow] [[LEZIONE3_Affidabilita_del_riconoscimento.pdf#page=14&selection=0,9,4,9&color=yellow|LEZIONE3_Affidabilita_del_riconoscimento, p.14]]
|
||||
> > Extending the managerie
|
||||
>
|
||||
> integrare questo
|
||||
|
||||
Successivamente Yager ha individuato altre 4 classi, prendendo però in con-
|
||||
siderazione sia score genuini (Gk) che score impostori (Ik), al contrario di Dod-
|
||||
dington che invece prendeva in considerazione solo uno dei due. Ha individuato
|
||||
quindi:
|
||||
- Camaleonte: ha sia Gk che Ik alti, quindi riesce facilmente ad apparire simile ad altri. Può produrre tanti FA ma pochi FR
|
||||
- ad es. possiede delle caratteristiche a cui il sistema biometrico dà molto peso
|
||||
- Fantasma: ha sia Gk che Ik bassi, quindi causa tanti FR
|
||||
- Colomba: è un’estensione della pecora di Doddington, ha Gk alto e Ik basso, quindi è l’utente ideale
|
||||
- Verme: avendo Gk basso e Ik alto è il peggiore utente che si possa avere
|
||||
- difficili da riconoscere ma impersonano facilmente
|
||||
|
||||
I sample presi in input possono avere una qualità diversa (per diversi motivi, es.:
|
||||
qualità sensore, tempo, ombre, etc..), possiamo quindi definire delle misure di
|
||||
affidabilità del riconoscimento che ci aprono ulteriori opzioni come ad esempio
|
||||
il richiedere all’utente di ripetere la cattura del sample.
|
||||
![[Pasted image 20241016141746.png]]
|
||||
|
||||
During enrollment we usually have good quality samples because the user is guided (controlled system)
|
||||
|
||||
We should not only compare good quality samples with good quality, bad quality wiith bad quality...
|
||||
e.g. if an image is perfect but not the other one, we may have a bad result.
|
||||
|
||||
##### Qualità dell'immagine
|
||||
Una possibile misura di qualità è tramite la stima della qualità dell’immagine.
|
||||
Questa può essere effettuata in diversi modi:
|
||||
- Prendendo tutte le immagini in TR e calcolando un template medio da utilizzare come riferimento.
|
||||
- Stimando la nitidezza dell’immagine andando a visualizzare l’istogramma delle frequenze; una mancanza di alte frequenze significa una bassa nitidezza (immagine sfocata)
|
||||
|
||||
![[Pasted image 20241016143112.png]]
|
||||
un modo per calcolarli è misurare le distanze tra gli elementi della faccia, l'angolo della retta che collega gli occhi ecc.
|
||||
|
||||
- SP per misurare la distorsione rispetto a una posa frontale, misuriamo quindi dei disallineamenti sui vari assi di rotazione
|
||||
- $SP = α(1 − roll) + β(1 − yaw) + γ(1 − pitch)$
|
||||
- SI per misurare l’omogeneità dei livelli di grigio in alcune zone predeterminate della faccia, utile per vedere se ci sono ombre nette in alcuni punti
|
||||
- $SI = 1 − F (std(mc))$
|
||||
- SY per misurare la simmetria della faccia
|
||||
- $SY = \sum_{(i,j) \in X}{sym(Pi, Pj)}$
|
||||
|
||||
Visualizzando la distribuzione di un dataset rispetto alle misure proposte/scelte è possibile decidere quali sample scartare (possibilmente soloquelli che presentano gravi distorsioni), sapendo a priori quanto questo inciderà sulla grandezza finale del dataset. Per valutare le performance di una misura
|
||||
di qualità possiamo verificare l’aumento o la diminuzione delle performance
|
||||
del modello finale (EER): una buona misura di qualità dovrebbe aumentare
|
||||
l’efficacia del modello sui sample con score alti
|
||||
|
||||
vedere slide per integrare formule
|
||||
- **Universal Image Quality Index (UIQI):** any image distortion as a combination of three factors: loss of correlation, luminance distortion, and contrast distortion
|
||||
- x = {xi | i = 1...N} immagine originale
|
||||
- y = {yi | i = 1...N} immagine di test
|
||||
- the index is defined as $$Q=\frac{4 \sigma_{xy} \overline{x}\overline{y}}{(\sigma^{2}_{x} + \sigma^{2}_{y})[(\overline{x}^{2})+(\overline{y}^{2})]}$$
|
||||
![[Pasted image 20241016174120.png]]
|
||||
|
||||
- $\sigma^2$ rappresenta la varianza, $\sigma_{xy}$ la covarianza
|
||||
|
||||
- **Sharpness Estimation Quality Index:** In order to estimate the sharpness of an image I of x\*y pixels, we compute the mean of intensity differences between adjacent pixels, taken in both the vertical and horizontal directions![[Pasted image 20241016174417.png]]
|
||||
|
||||
|
||||
**alcuni dataset per face recognition:**
|
||||
- **FERET:** first 250 images of the fa (frontal) group, corresponding to 116 subject
|
||||
- **LFW:** (Labeled Face in the Wild): 480 images, the first 6 of the first 80 subjects
|
||||
- **Scface:** 650 images of 130 subjects, corresponding to groups cam1-5 (visible light) of the subgroup dist3 (greater distance).
|
||||
|
||||
#### Misurare la qualità di una misura di qualità
|
||||
- bisogna effettuare le misure di qualità sul dataset, e vedere come i valori sono distribuiti
|
||||
- in questo modo possiamo capire il livello medio di qualità del dataset per ogni specifica misura
|
||||
- possiamo comparare due o più misure calcolando il livello di correlazione tra i valori restituiti
|
||||
- possiamo così scartare immagini troppo distorte a priori
|
||||
- variando la tolleranza possiamo vedere come varia l'ERR del sistema
|
||||
- bisogna ridurre il più possibile gli errori del sistema scartando il minor numero di campioni possibili dal dataset
|
||||
|
||||
#### Margine
|
||||
Un altro approccio è tramite il concetto di “margine”, che viene calcolato
|
||||
nel seguente modo: $M(t) = |FAR(t) − FRR(t)|$
|
||||
notare in corrispondenza dell'ERR, si ha $M(t) = 0$
|
Binary file not shown.
9
Foundation of data science/slides/Untitled.md
Normal file
9
Foundation of data science/slides/Untitled.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
> [!PDF|yellow] [[IP CV Basics.pdf#page=172&selection=82,0,82,9&color=yellow|IP CV Basics, p.172]]
|
||||
> > Precision
|
||||
>
|
||||
|
||||
> > [!PDF|yellow] [[IP CV Basics.pdf#page=173&selection=124,2,124,13&color=yellow|IP CV Basics, p.173]]
|
||||
> > Sensitivity
|
||||
>
|
||||
> Recall is also called sensitivity as we want to see how our model is sensitivity to the positive matches. If the model is not so sensitive, we may miss some true positives.
|
||||
|
BIN
Pasted image 20241016141746.png
Normal file
BIN
Pasted image 20241016141746.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 81 KiB |
BIN
Pasted image 20241016143112.png
Normal file
BIN
Pasted image 20241016143112.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 109 KiB |
BIN
Pasted image 20241016174120.png
Normal file
BIN
Pasted image 20241016174120.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
BIN
Pasted image 20241016174411.png
Normal file
BIN
Pasted image 20241016174411.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.7 KiB |
BIN
Pasted image 20241016174417.png
Normal file
BIN
Pasted image 20241016174417.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.7 KiB |
Loading…
Reference in a new issue