PneumoniaMNIST+ 64 experiment accompanying FRP PAAIC article 7
Revision performed: 14 November 2026

Study: compact CNN versus CNN-Transformer, three seeds each, 30 epochs.
Dataset: official MedMNIST+ release, Zenodo record 10519652.
URL: https://zenodo.org/records/10519652/files/pneumoniamnist_64.npz?download=1
Data license stated by MedMNIST: CC BY 4.0.
Original source: Kermany et al., Cell 172 (2018), 1122-1131.e9.
MedMNIST benchmark: Yang et al., Scientific Data 10 (2023), 41.
Dataset archive is not included in the public supplement; fetch_data.py downloads it.

Data integrity
- Verify official MD5 8f4eceb4ccffa70c672198ea285246c6.
- SHA256 97c5a52c65a74f6c5b77a3d8b3bb8aba58276d5a1aaa3b0340d079e54f8e9756.
- Keep original split membership; deduplicate exact pixel hashes in train > val > test order.
- Retained counts: 4690 / 516 / 621 images. See data/retained_indices.json.
- Exact-pixel deduplication does not establish independence between patients.

Files
protocol.json: settings fixed before fitting.
environment.json: actual environment and hashes recorded before fitting.
runs/*/epochs.jsonl: all 30 epochs of each run.
runs/*/selection.json: validation-only checkpoint and threshold selection.
runs/frozen_checkpoints.json: hashes of all six checkpoints, recorded before test evaluation.
runs/*/test_predictions.csv and .npz: each retained test index, label, score, and prediction.
runs/test_metrics.json: per-run and mean/sample-SD metrics, plus bootstrap intervals.
verification.json: independent pairwise AUC, confusion-count, index, and provenance checks.

Recompute numerical checks from the public supplement
1. Install Python 3.12 and dependencies: python -m pip install -r requirements.txt
2. Run: python code/fetch_data.py
3. Run: python code/verify_experiment.py --predictions-only
The public supplement omits checkpoint binaries; --predictions-only still checks all
stored predictions, independent AUC arithmetic, confusion counts, selections, and source hashes.
The complete local experiment archive additionally contains all six best.pt checkpoints.

Run a fresh experiment without modifying the recorded outputs
python code/reproduce.py /absolute/path/to/a/new/nonexistent_directory
This downloads the verified dataset, fits six new models, freezes selections,
evaluates the test set, and draws the figures. The recorded run used Apple M2 MPS.
For a CPU rerun, append --device cpu. Hardware/backend and library changes may alter
floating-point results; fixed seeds are not a promise of bit-identical retraining.

Interpretation
Pneumonia is positive. Test metrics use validation-selected thresholds; the fixed-0.5
analysis is in test_metrics.json. Seed29 was specified before fitting for the figures.
No test results were used to choose hyperparameters, model seeds, or thresholds.
All displayed results concern this retrospective benchmark classification experiment.
