Downloads · 30 days
0
Daemons-Q/qsh-medical-breastmnist-resnet50
qsh-medical-breastmnist-resnet50 is a image classification model from Daemons-Q. Use it when you need a label for an image. It is set up for onnx. The card lists the license as other.
ResNet-50 @28px, 1-channel stem, trained from random initialisation
Downloads · 30 days
0
Access
Public
Updated Nov 13, 2026
Parameters
23.6M
401 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors94.3 MB · 50%
From the Hugging Face model README
ResNet-50 @28px, 1-channel stem, trained from random initialisation
Part of QSMPC-QKD-QHE-AI-Hybrid,
a quantum-safe orchestration demo.
This is the plaintext model for the medical_fl use case. No code path
evaluates this model under encryption; what each use case encrypts, if anything,
is stated in the notes below.
| metric | value |
|---|---|
accuracy | 0.782051282051282 |
auc | 0.7987677527151211 |
best_val_auc | 0.935673 |
macro_f1 | 0.6492063492063492 |
n_parameters | 23505858 |
resolution | 28 |
wall_clock_s | 12.2 |
accuracy - reported together because the aggregate figure can look healthy while the class that matters is not.780 images at 28x28. The tiny tier; also the source of the FHE-feasible T1 student. TWO problems, both upstream of MedMNIST, both checked 2026-08-10. LICENCE: MedMNIST licenses ITSELF CC BY 4.0, but BreastMNIST is a resize of BUSI (Al-Dhabyani et al., Data in Brief 28:104863, 2020) and the CC BY there attaches to the ARTICLE - PMC carries 'This is an open access article under the CC BY license' and states no separate licence for the data, while the dataset host (scholar.cu.edu.eg) asks only 'If you use this dataset, please cite'. A citation request is not a grant. CHECKED AGAIN 2026-10-26 at every source the authors publish: the host page asks the same in every capture from 2021 to 2026; the article's supplements hold the Baheya Hospital ethics committee's approval to publish the dataset publicly and the waiver of consent, and no licence; the authors made no repository deposit; and every Kaggle mirror carries a licence its uploader chose, none of them an author. So the BUSI authors publish no licence: the data was released publicly with no terms, and the only licence anyone states is MedMNIST's CC BY 4.0 for its derived dataset. The three HF repos stay public on that basis, by decision (2026-10-26). That differs from CIC-IDS2017, declined, and ImageNet, dropped: their providers state conflicting or restrictive terms, and BUSI's state none. CONTAMINATION: Pawlowska, Karwat & Zolek (Letter to the Editor, Data in Brief 48:109247, 2023-05-19; PMC10293973, read 2026-10-31) report that 155 images are copies of other images in the collection, 19% of its 780 (the duplicated cases their Appendix B lists come to 235 items), that eight lesion images appear in both the benign and the malignant sets, and that 70 images, more than 8%, 'show other structures than the breast' (their Table B3 lists them as suspected axilla images); they warn of train/test leakage. MEASURED HERE on the actual npz rather than assumed: at 28x28 exactly ONE pair survives as a pixel-exact duplicate - train[115] label=0 (MALIGNANT) and test[76] label=1 (BENIGN). The same image, trained as malignant and scored as benign. That is 1 of 156 test images, 0.64%, which the model cannot get right and which no amount of training fixes. Loosening to RMSE<=0.05 finds 216 near-duplicate pairs, 120 crossing a split boundary and 6 both crossing AND contradicting - but those are threshold-dependent and the exact pair is the only hard number. So the letter's 19% does NOT wholesale survive downsampling; a real floor on this benchmark does.
Trained to check an ordering in MedMNIST v2's benchmark table rather than to win: the table lists ResNet-50 at AUC 0.857 against ResNet-18's 0.901 on this corpus, and this model's result is reported whichever way it falls. The regime here is not the table's: torchvision's 7x7 stride-2 stem with max-pool, early-stopped at 27 of at most 60 epochs at lr 3e-4, against MedMNIST v2's 3x3 stride-1 stem without max-pool and 100 epochs at lr 1e-3. It replaces a DenseNet-121 entry that named a dataset with no loader, no fetch command and no artefact directory, and linked a Hugging Face repo that did not exist. Architectures benchmarked only ImageNet-pretrained (AlexNet, VGG16, DenseNet-121, EfficientNet-B4 in MedMNIST+) are deliberately absent: this project dropped ImageNet weights over redistribution terms, so their published numbers are not comparable to a from-scratch run. No student is distilled from this model: the page's encrypted tier runs medical_fl.student, distilled from medical_fl.resnet18. MedMNIST states that its dataset is NOT intended for clinical use, and neither is this model.
This model is published as part of a research proof of concept, not as a production system.
Numbers above are what this repository measured on the split described, with the code in
scripts/train/. Where a figure is carried from the literature rather than measured here,
it is labelled as such.