MorphGuard V3.2 β Synchronize 21-model calibrated artifacts, metadata, and non-commercial research model card
ca3e739 verified |
Download README.md from AniketAgarwal-aa/MorphGuard-Models: direct link, hf CLI and curl.
- Browser
- Download file 9.33 kB
-
https://huggingface.co/AniketAgarwal-aa/MorphGuard-Models/resolve/main/README.md
- Command line
-
hf download hf://AniketAgarwal-aa/MorphGuard-Models/README.md
-
curl -L -o README.md https://huggingface.co/AniketAgarwal-aa/MorphGuard-Models/resolve/main/README.md
9.33 kB
| license: other | |
| license_name: non-commercial-research | |
| tags: | |
| - biometrics | |
| - facial-morphing-detection | |
| - computer-vision | |
| - pytorch | |
| - scikit-learn | |
| datasets: | |
| - MONOT | |
| - ONOT | |
| metrics: | |
| - accuracy | |
| - acer | |
| - apcer | |
| - bpcer | |
| - roc_auc | |
| - pr_auc | |
| # MorphGuard-Models: Facial Morph Attack Detection Artifacts | |
| Trained model checkpoints, multi-model ensembles, and evaluation metadata for the **MorphGuard V3.2** research platform. | |
| - **Source Code Repository:** [https://github.com/AniketAgarwal-aa/MorphGuard](https://github.com/AniketAgarwal-aa/MorphGuard) | |
| - **Live Application:** Streamlit Community Cloud (`https://morphguard.streamlit.app/`) | |
| - **Evaluation Standard:** ISO/IEC 30107-3 Biometric Presentation Attack Detection | |
| - **Intended Purpose:** Academic research, experimental replication, and educational benchmarking only. | |
| - **Repository Visibility:** Public (Restricted to non-commercial academic research). | |
| --- | |
| ## 1. Governance, Provenance & Licensing Disclaimers | |
| > [!IMPORTANT] | |
| > **Non-Commercial Academic Research Artifacts**: These models are experimental research prototypes. The repository owner does not grant commercial rights or commercial sublicenses. | |
| ### 1.1 Dataset Provenance & Source Restrictions | |
| - **Source Corpora:** The models were trained and evaluated on two benchmark morphing detection corpora: | |
| - **MONOT** (Morphing Attacks on Newborns, Children and Adults) β 24,140 facial image captures. | |
| - **ONOT** (Ongoing Morphing Attack Detection) β 22,652 facial image captures. | |
| - **Source Terms:** Both MONOT and ONOT datasets were accessed under the **Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)** license and corresponding research data agreements. Under Section 2(a)(1) of CC BY-NC 4.0, any use directed towards commercial advantage or monetary compensation is strictly prohibited. | |
| - **Pretrained Deep Backbones:** Base neural network backbones (`resnet18`, `resnet34`, `resnet50`, `efficientnet_b0`, `mobilenet_v3_small`, `densenet121`) originate from PyTorch torchvision baselines released under the **BSD 3-Clause License**. | |
| - **Application Code:** The MorphGuard detection pipeline, feature extractors, and user interface are licensed under the open-source **MIT License** (see GitHub repository). | |
| ### 1.2 Redistribution Rights & Public Usage Terms | |
| - The legal classification of trained machine learning weights as "Adapted Material" (derivative works) under CC BY-NC 4.0 remains an evolving question across international legal jurisdictions (e.g., US doctrine treating model parameters as functional/factual vs. European DSM Directive Art. 3/4 and contractual research covenants). | |
| - The authors do not claim original proprietary copyright over the biometric distributions learned from the source datasets. | |
| - Consequently, downstream usage and redistribution of these parameters is encumbered by the source corpora's non-commercial covenants. Commercial exploitation, sublicensing for profit, or incorporation into closed commercial products is strictly unauthorized. | |
| - Public model hosting on Hugging Face Hub is provided solely to facilitate open scientific reproducibility, peer review, and academic benchmarking under ISO/IEC 30107-3. | |
| ### 1.3 Biometric Privacy & Ethics (GDPR Art. 9) | |
| - **Zero Raw Biometric Data:** In compliance with GDPR Article 9 (protection of biometric data) and human-subject research ethics, **no raw facial imagery, individual facial crops, subject identities, or personal identifiable information (PII) are stored in or distributed through this repository**. | |
| - All uploaded artifacts are compiled statistical parameters (neural network weights and scikit-learn estimators). | |
| - Model inversion risks on discriminative binary classification backbones have been theoretically assessed as minimal; however, these artifacts are experimental prototypes and are not certified for operational identity verification or unsupervised border control. | |
| --- | |
| ## 2. Multi-Model Benchmark & Methodology (ISO/IEC 30107-3) | |
| Evaluation was performed on a held-out test split of **285 unseen samples** (228 morphed attacks, 57 genuine bona fide) with zero subject/identity leakage across training, validation, and test partitions. | |
| All decision thresholds ($\tau^*$) were strictly calibrated on an independent validation split (321 samples) by minimizing the **Average Classification Error Rate (ACER = (APCER + BPCER) / 2)**. **No thresholds were calibrated on the test set.** | |
| ### Authoritative Performance Benchmark Table | |
| | Architecture | Artifact Path | Test Acc | ACER | APCER | BPCER | ROC-AUC | Optimal $\tau^*$ | | |
| | :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: | | |
| | **Combined SVM (RBF)** | `classical/combined_svm.joblib` | **96.49%** | **0.0680** | 0.0132 | 0.1228 | **0.9878** | **0.0051** | | |
| | **HOG SVM (RBF)** | `classical/hog_svm.joblib` | **96.14%** | **0.0899** | 0.0044 | 0.1754 | **0.9867** | **0.0040** | | |
| | **Logistic Regression** | `classical/logistic_regression.joblib` | **96.14%** | **0.0965** | 0.0000 | 0.1930 | **0.9769** | **0.0016** | | |
| | **Hist Gradient Boosting** | `classical/hist_gradient_boosting.joblib`| **96.14%** | **0.0965** | 0.0000 | 0.1930 | **0.9911** | **0.0006** | | |
| | **Extra Trees** | `classical/extra_trees.joblib` | **95.44%** | **0.1140** | 0.0000 | 0.2281 | **0.9950** | **0.2526** | | |
| | **Random Forest** | `classical/rf_combined.joblib` | **95.09%** | **0.1228** | 0.0000 | 0.2456 | **0.9879** | **0.2670** | | |
| | **Linear SVM** | `classical/linear_svm.joblib` | **95.09%** | **0.1162** | 0.0044 | 0.2281 | **0.9675** | **0.0010** | | |
| | **EfficientNet-B0** | `deep_learning/efficientnet_b0.pt` | **91.58%** | **0.0987** | 0.0746 | 0.1228 | **0.9631** | **0.0032** | | |
| | **Voting Ensemble** | `ensembles/voting_ensemble.joblib` | **89.12%** | **0.1535** | 0.0789 | 0.2281 | 0.8688 | **0.1631** | | |
| | **Stacking Ensemble** | `ensembles/stacking_ensemble.joblib` | **88.07%** | **0.1338** | 0.1096 | 0.1579 | **0.9044** | **0.4435** | | |
| | **Custom CNN** | `deep_learning/custom_cnn.pt` | **87.72%** | **0.1096** | 0.1316 | 0.0877 | **0.9601** | **0.5000** | | |
| | **LBP SVM (RBF)** | `classical/lbp_svm.joblib` | **82.46%** | **0.2083** | 0.1535 | 0.2632 | 0.8503 | **0.0917** | | |
| | **MobileNetV3-Small** | `deep_learning/mobilenet_v3_small.pt`| **80.00%** | **0.5000** | 0.0000 | 1.0000 | 0.1632 | **0.9318** | | |
| | **LDA** | `classical/lda.joblib` | **76.49%** | **0.1996** | 0.2588 | 0.1404 | 0.8690 | **0.5580** | | |
| | **ResNet-18** | `deep_learning/resnet18.pt` | **71.23%** | **0.3180** | 0.2675 | 0.3684 | 0.8121 | **0.00000664** | | |
| | **DenseNet-121** | `deep_learning/densenet121.pt` | **63.86%** | **0.2917** | 0.4079 | 0.1754 | 0.8089 | **0.0060** | | |
| | **ResNet-34** | `deep_learning/resnet34.pt` | **62.11%** | **0.2434** | 0.4693 | 0.0175 | 0.8841 | **0.3113** | | |
| | **Gaussian Naive Bayes**| `classical/gaussian_nb.joblib` | **60.35%** | **0.3004** | 0.4605 | 0.1404 | 0.8560 | **0.3712** | | |
| | **GLCM Random Forest** | `classical/glcm_rf.joblib` | **52.98%** | **0.3202** | 0.5702 | 0.0702 | 0.9058 | **0.4196** | | |
| | **ResNet-50** | `deep_learning/resnet50.pt` | **48.77%** | **0.3596** | 0.6140 | 0.1053 | 0.8045 | **0.000703** | | |
| | **KNN** | `classical/knn.joblib` | **37.54%** | **0.4167** | 0.7632 | 0.0702 | 0.6682 | **0.5921** | | |
| > [!CRITICAL] | |
| > **Threshold Sensitivity Warning:** For models such as `combined_svm` ($\tau^* = 0.0051$) and `efficientnet_b0` ($\tau^* = 0.0032$), outputs reflect calibrated probabilities or decision boundaries. Evaluating `combined_svm` with a naive default threshold of `0.5000` results in severe false rejection (21.05% test accuracy). Always ensure the model registry's `optimal_threshold` is applied during runtime inference. | |
| --- | |
| ## 3. Repository Directory Structure | |
| ```text | |
| AniketAgarwal-aa/MorphGuard-Models/ | |
| βββ classical/ | |
| β βββ combined_svm.joblib # Primary classical baseline (6,103D features) | |
| β βββ hog_svm.joblib | |
| β βββ rf_combined.joblib | |
| β βββ ... (12 classical classifiers) | |
| βββ deep_learning/ | |
| β βββ efficientnet_b0.pt # Top deep learning detector | |
| β βββ custom_cnn.pt | |
| β βββ mobilenet_v3_small.pt | |
| β βββ resnet18.pt | |
| β βββ resnet34.pt | |
| β βββ resnet50.pt | |
| β βββ densenet121.pt | |
| βββ ensembles/ | |
| β βββ voting_ensemble.joblib # Multi-classifier voting | |
| β βββ stacking_ensemble.joblib # Multi-classifier stacking meta-estimator | |
| βββ metadata/ | |
| β βββ model_registry.json # Canonical 21-model manifest with SHA-256 and thresholds | |
| β βββ <model_name>.json # Per-model architecture descriptors | |
| βββ model_registry.json # Root-level mirror of canonical registry | |
| βββ README.md # Model card and provenance documentation | |
| ``` | |
| --- | |
| ## 4. Citation & Attribution | |
| If using MorphGuard models, architectures, or evaluation protocols in academic research, cite the following: | |
| ```bibtex | |
| @misc{agarwal2026morphguard, | |
| author = {Agarwal, Aniket}, | |
| title = {MorphGuard: Multi-Scale Texture and Deep Feature Fusion for Robust Facial Morph Attack Detection}, | |
| year = {2026}, | |
| publisher = {GitHub and Hugging Face}, | |
| howpublished = {\url{https://github.com/AniketAgarwal-aa/MorphGuard}} | |
| } | |
| ``` | |