Class imbalance on medical image classification: towards better evaluation practices for discrimination and calibration performance
- PMID: 38861161
- DOI: 10.1007/s00330-024-10834-0
Class imbalance on medical image classification: towards better evaluation practices for discrimination and calibration performance
Abstract
Purpose: This work aims to assess standard evaluation practices used by the research community for evaluating medical imaging classifiers, with a specific focus on the implications of class imbalance. The analysis is performed on chest X-rays as a case study and encompasses a comprehensive model performance definition, considering both discriminative capabilities and model calibration.
Materials and methods: We conduct a concise literature review to examine prevailing scientific practices used when evaluating X-ray classifiers. Then, we perform a systematic experiment on two major chest X-ray datasets to showcase a didactic example of the behavior of several performance metrics under different class ratios and highlight how widely adopted metrics can conceal performance in the minority class.
Results: Our literature study confirms that: (1) even when dealing with highly imbalanced datasets, the community tends to use metrics that are dominated by the majority class; and (2) it is still uncommon to include calibration studies for chest X-ray classifiers, albeit its importance in the context of healthcare. Moreover, our systematic experiments confirm that current evaluation practices may not reflect model performance in real clinical scenarios and suggest complementary metrics to better reflect the performance of the system in such scenarios.
Conclusion: Our analysis underscores the need for enhanced evaluation practices, particularly in the context of class-imbalanced chest X-ray classifiers. We recommend the inclusion of complementary metrics such as the area under the precision-recall curve (AUC-PR), adjusted AUC-PR, and balanced Brier score, to offer a more accurate depiction of system performance in real clinical scenarios, considering metrics that reflect both, discrimination and calibration performance.
Clinical relevance statement: This study underscores the critical need for refined evaluation metrics in medical imaging classifiers, emphasizing that prevalent metrics may mask poor performance in minority classes, potentially impacting clinical diagnoses and healthcare outcomes.
Key points: Common scientific practices in papers dealing with X-ray computer-assisted diagnosis (CAD) systems may be misleading. We highlight limitations in reporting of evaluation metrics for X-ray CAD systems in highly imbalanced scenarios. We propose adopting alternative metrics based on experimental evaluation on large-scale datasets.
Keywords: Computer-assisted diagnosis; Deep learning; Machine learning; Prevalence; X-rays.
© 2024. The Author(s), under exclusive licence to European Society of Radiology.
Conflict of interest statement
Comment in
-
When AUC-ROC and accuracy are not accurate: what everyone needs to know about evaluating artificial intelligence in radiology.Eur Radiol. 2024 Dec;34(12):7892-7894. doi: 10.1007/s00330-024-10859-5. Epub 2024 Jun 24. Eur Radiol. 2024. PMID: 38913248 No abstract available.
Similar articles
-
Class imbalance should not throw you off balance: Choosing the right classifiers and performance metrics for brain decoding with imbalanced data.Neuroimage. 2023 Aug 15;277:120253. doi: 10.1016/j.neuroimage.2023.120253. Epub 2023 Jun 28. Neuroimage. 2023. PMID: 37385392
-
Assessing and mitigating the effects of class imbalance in machine learning with application to X-ray imaging.Int J Comput Assist Radiol Surg. 2020 Dec;15(12):2041-2048. doi: 10.1007/s11548-020-02260-6. Epub 2020 Sep 23. Int J Comput Assist Radiol Surg. 2020. PMID: 32965624
-
COVID-19 diagnosis: A comprehensive review of pre-trained deep learning models based on feature extraction algorithm.Results Eng. 2023 Jun;18:101020. doi: 10.1016/j.rineng.2023.101020. Epub 2023 Mar 16. Results Eng. 2023. PMID: 36945336 Free PMC article. Review.
-
Deep learning model calibration for improving performance in class-imbalanced medical image classification tasks.PLoS One. 2022 Jan 27;17(1):e0262838. doi: 10.1371/journal.pone.0262838. eCollection 2022. PLoS One. 2022. PMID: 35085334 Free PMC article.
-
Biphasic majority voting-based comparative COVID-19 diagnosis using chest X-ray images.Expert Syst Appl. 2023 Apr 15;216:119430. doi: 10.1016/j.eswa.2022.119430. Epub 2022 Dec 21. Expert Syst Appl. 2023. PMID: 36570382 Free PMC article. Review.
Cited by
-
Hybrid transformer-based model for mammogram classification by integrating prior and current images.Med Phys. 2025 May;52(5):2999-3014. doi: 10.1002/mp.17650. Epub 2025 Jan 30. Med Phys. 2025. PMID: 39887755 Free PMC article.
-
CORE-MD clinical risk score for regulatory evaluation of artificial intelligence-based medical device software.NPJ Digit Med. 2025 Feb 6;8(1):90. doi: 10.1038/s41746-025-01459-8. NPJ Digit Med. 2025. PMID: 39915308 Free PMC article. Review.
-
Determining risk and predictors of head and neck cancer treatment-related lymphedema: A clinicopathologic and dosimetric data mining approach using interpretable machine learning and ensemble feature selection.Clin Transl Radiat Oncol. 2024 Feb 28;46:100747. doi: 10.1016/j.ctro.2024.100747. eCollection 2024 May. Clin Transl Radiat Oncol. 2024. PMID: 38450218 Free PMC article.
-
Pathological changes or technical artefacts? The problem of the heterogenous databases in COVID-19 CXR image analysis.Comput Methods Programs Biomed. 2023 Oct;240:107684. doi: 10.1016/j.cmpb.2023.107684. Epub 2023 Jun 19. Comput Methods Programs Biomed. 2023. PMID: 37356354 Free PMC article.
-
Machine Learning-Based Prediction of Unplanned Readmission Due to Major Adverse Cardiac Events Among Hospitalized Patients with Blood Cancers.Cancer Control. 2025 Jan-Dec;32:10732748251332803. doi: 10.1177/10732748251332803. Epub 2025 Apr 17. Cancer Control. 2025. PMID: 40243279 Free PMC article.
References
-
- Luque A, Carrasco A, Martín A, de las Heras A (2019) The impact of class imbalance in classification performance metrics based on the binary confusion matrix. Pattern Recognit 91:216–231 - DOI
-
- Çallı E, Sogancioglu E, van Ginneken B, van Leeuwen KG, Murphy K (2021) Deep learning for chest X-ray analysis: a survey. Med Image Anal 72:102–125 - DOI
-
- Wang X, Peng Y, Lu L, Lu Z, Bagheri M, Summers RM (2017) Chestx-ray8: hospital-scale chest X-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases. In: Proceedings of the IEEE conference on computer vision and pattern recognition. IEEE, pp 2097–2106
Publication types
MeSH terms
LinkOut - more resources
Full Text Sources
Research Materials
Miscellaneous