Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- medical-imaging
|
| 5 |
+
- chest-xray
|
| 6 |
+
- pneumonia-detection
|
| 7 |
+
- efficientnet
|
| 8 |
+
- pytorch
|
| 9 |
+
- adversarial-ai
|
| 10 |
+
pipeline_tag: image-classification
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# adversarial-ai-target
|
| 14 |
+
|
| 15 |
+
EfficientNet-B3 fine-tuned for binary chest X-ray classification.
|
| 16 |
+
Built as the primary attack target for the [adversarial-ai-attacks-mitigations](https://github.com/emsikes/adversarial-ai-attacks-mitigations) research series.
|
| 17 |
+
|
| 18 |
+
## Model Details
|
| 19 |
+
|
| 20 |
+
| Property | Value |
|
| 21 |
+
|---|---|
|
| 22 |
+
| Architecture | EfficientNet-B3 (ImageNet pretrained) |
|
| 23 |
+
| Task | Binary image classification |
|
| 24 |
+
| Classes | NORMAL (0), PNEUMONIA (1) |
|
| 25 |
+
| Input size | 300 × 300 RGB |
|
| 26 |
+
| Framework | PyTorch 2.0 |
|
| 27 |
+
| Dataset | [Kaggle chest-xray-pneumonia](https://www.kaggle.com/datasets/paultimothymooney/chest-xray-pneumonia) |
|
| 28 |
+
|
| 29 |
+
## Training
|
| 30 |
+
|
| 31 |
+
| Property | Value |
|
| 32 |
+
|---|---|
|
| 33 |
+
| Phase 1 (epochs 1-4) | Backbone frozen, head only, lr=1e-3 |
|
| 34 |
+
| Phase 2 (epochs 5-10) | Last 3 backbone blocks unfrozen, lr=1e-4 |
|
| 35 |
+
| Optimizer | AdamW |
|
| 36 |
+
| Scheduler | CosineAnnealingLR |
|
| 37 |
+
| Batch size | 64 (A100) |
|
| 38 |
+
| Class balancing | WeightedRandomSampler |
|
| 39 |
+
|
| 40 |
+
## Performance
|
| 41 |
+
|
| 42 |
+
| Metric | Value |
|
| 43 |
+
|---|---|
|
| 44 |
+
| Test Accuracy | 0.8862 |
|
| 45 |
+
| AUC | 0.9738 |
|
| 46 |
+
| PNEUMONIA Recall | 0.99 |
|
| 47 |
+
| NORMAL Precision | 0.99 |
|
| 48 |
+
|
| 49 |
+
## Intended Use
|
| 50 |
+
|
| 51 |
+
This model is intended strictly for adversarial AI security research and education.
|
| 52 |
+
It serves as the attack surface for chapters 4-9 and 12 of the hands-on lab series
|
| 53 |
+
covering poisoning attacks, evasion attacks, model extraction, membership inference,
|
| 54 |
+
and GAN-based attacks.
|
| 55 |
+
|
| 56 |
+
**Do not use this model for clinical decision making.**
|
| 57 |
+
|
| 58 |
+
## Research Series
|
| 59 |
+
|
| 60 |
+
Part of [The Inference Loop](https://theinferenceloop.substack.com) research series.
|