File size: 1,677 Bytes
beb236f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
license: mit
tags:
- medical-imaging
- chest-xray
- pneumonia-detection
- efficientnet
- pytorch
- adversarial-ai
pipeline_tag: image-classification
---

# adversarial-ai-target

EfficientNet-B3 fine-tuned for binary chest X-ray classification.
Built as the primary attack target for the [adversarial-ai-attacks-mitigations](https://github.com/emsikes/adversarial-ai-attacks-mitigations) research series.

## Model Details

| Property | Value |
|---|---|
| Architecture | EfficientNet-B3 (ImageNet pretrained) |
| Task | Binary image classification |
| Classes | NORMAL (0), PNEUMONIA (1) |
| Input size | 300 × 300 RGB |
| Framework | PyTorch 2.0 |
| Dataset | [Kaggle chest-xray-pneumonia](https://www.kaggle.com/datasets/paultimothymooney/chest-xray-pneumonia) |

## Training

| Property | Value |
|---|---|
| Phase 1 (epochs 1-4) | Backbone frozen, head only, lr=1e-3 |
| Phase 2 (epochs 5-10) | Last 3 backbone blocks unfrozen, lr=1e-4 |
| Optimizer | AdamW |
| Scheduler | CosineAnnealingLR |
| Batch size | 64 (A100) |
| Class balancing | WeightedRandomSampler |

## Performance

| Metric | Value |
|---|---|
| Test Accuracy | 0.8862 |
| AUC | 0.9738 |
| PNEUMONIA Recall | 0.99 |
| NORMAL Precision | 0.99 |

## Intended Use

This model is intended strictly for adversarial AI security research and education.
It serves as the attack surface for chapters 4-9 and 12 of the hands-on lab series
covering poisoning attacks, evasion attacks, model extraction, membership inference,
and GAN-based attacks.

**Do not use this model for clinical decision making.**

## Research Series

Part of [The Inference Loop](https://theinferenceloop.substack.com) research series.