The illusion of accuracy: why 100 % results in medicine are a cause for alarm
Background. Public medical imaging datasets used for artificial intelligence training often contain hidden biases that artificially inflate performance metrics and may compromise clinical reliability. The aim of this study was to quantify artifact contamination in the UIdataGB gallbladder ultrasound dataset and validate the model’s genuine diagnostic capability after systematic debiasing. Materials and methods. A progressive debiasing pipeline was implemented in four stages with increasingly aggressive artifact removal (energy-based smart cropping, circle field-of-view masking, perceptual-hash deduplication, automated overlay detection). A ResNet-18 network was trained and evaluated at each stage on 10,692 gallbladder ultrasound images from 1,782 patients across nine pathological categories. Results. Initial training on the raw dataset achieved 100 % accuracy across all nine classes (5-fold cross-validation mean 100.0 %; SD 0.0 %). Progressive debiasing successively reduced accuracy to 99.0 % (mild), 93.5 % (standard), and 74.9 % (maximum), each stage yielding a statistically significant decrease (all p < 0.001). Aggressive filtering removed 87.3 % of images (9,339 of 10,692; n = 1,353 retained), with retention ranging from 7.2 % (polyps) to 16.0 % (carcinoma). After maximum debiasing, on the test set (n = 211) the macro-average AUC was 0.948 (95% CI 0.932–0.961) and all per-class AUCs exceeded 0.89. Adenomyomatosis showed the best discrimination (F1 = 0.905; AUC = 0.993; AP = 0.945) and polyps a high one (AUC = 0.972), whereas the “various causes of wall thickening” class was lowest (F1 = 0.650; AUC = 0.897). Perforation reached a perfect precision of 1.000 at a recall of only 0.545, and AP ranged from 0.737 (carcinoma) to 0.945. The artifact contribution was 25.1 % (100.0 – 74.9 %). Conclusions. Approximately 25 % of initial model performance was attributable to dataset artifacts, and 87 % of images proved redundant or artifact-contaminated. The retained AUC of 0.948 on 1,353 images confirms a genuine diagnostic signal before any clinical deployment of artificial intelligence systems.
Authors
- S.S. Chuklin (ORCID: https://orcid.org/0000-0001-8979-721X)
Institutions
- Lviv National Musical Academy named after Mykola Lysenko (UA)
Publication Details
- Journal
- EMERGENCY MEDICINE
- Published
- 2026-11-28
- DOI
- https://doi.org/10.22141/2224-0586.22.7.2026.2089
- Primary Topic
- Artificial Intelligence in Healthcare and Education
- Type
- article
- Field-Weighted Citation Impact
- 0.00