This project implements a biometric identity verification system using a MambaVision backbone trained on forehead images. The system evaluates identity similarity using cosine similarity of learned embeddings and analyzes robustness against adversarial (E-dataset) inputs.
Each subject contains 20 images:
Subject_i/
โโโ 1.jpg
โโโ ...
โโโ 10.jpg -> Gallery (reference)
โโโ 11.jpg
โโโ ...
โโโ 20.jpg -> Probe (query)
Output:
best_mamba_model.pthEach image is converted into a:
640-dimensional embedding vector
Command:
python extract_features.py
Output:
features.pt
Cosine similarity is computed between:
Pairing strategy:
Gallery (1-10) vs Probe (11-20)
Command:
python similarity.py
Evaluate robustness using modified images:
Real Gallery vs E-dataset Probe
Command:
python extract_features_e.py
python attack_similarity.py
| Type | Avg Similarity |
|---|---|
| Genuine | ~0.681 |
| Imposter | ~0.0108 |
| Attack | ~0.340 |



The model remains robust but is not fully resistant to adversarial inputs.
# Train model
python train.py
# Extract features (real dataset)
python extract_features.py
# Compute similarity
python similarity.py
# Extract features (E-dataset)
python extract_features_e.py
# Attack evaluation
python attack_similarity.py
This project is part of a Deep Learning study on biometric verification systems. Feedback and suggestions are welcome.
This project implements a biometric identity verification system using a MambaVision backbone trained on forehead images. The system evaluates identity similarity using cosine similarity of learned embeddings and analyzes robustness against adversarial (E-dataset) inputs.
Each subject contains 20 images:
Subject_i/
โโโ 1.jpg
โโโ ...
โโโ 10.jpg -> Gallery (reference)
โโโ 11.jpg
โโโ ...
โโโ 20.jpg -> Probe (query)
Output:
best_mamba_model.pthEach image is converted into a:
640-dimensional embedding vector
Command:
python extract_features.py
Output:
features.pt
Cosine similarity is computed between:
Pairing strategy:
Gallery (1-10) vs Probe (11-20)
Command:
python similarity.py
Evaluate robustness using modified images:
Real Gallery vs E-dataset Probe
Command:
python extract_features_e.py
python attack_similarity.py
| Type | Avg Similarity |
|---|---|
| Genuine | ~0.681 |
| Imposter | ~0.0108 |
| Attack | ~0.340 |



The model remains robust but is not fully resistant to adversarial inputs.
# Train model
python train.py
# Extract features (real dataset)
python extract_features.py
# Compute similarity
python similarity.py
# Extract features (E-dataset)
python extract_features_e.py
# Attack evaluation
python attack_similarity.py
This project is part of a Deep Learning study on biometric verification systems. Feedback and suggestions are welcome.