TY - JOUR
T1 - Imbalance-aware loss functions improve medical image classification
AU - Scholz, Daniel
AU - Erdur, Ayhan Can
AU - Buchner, Josef
AU - Peeken, Jan C.
AU - Rueckert, Daniel
AU - Wiestler, Benedikt
N1 - Publisher Copyright:
© 2024 CC-BY 4.0, D. Scholz, A.C. Erdur, J. Buchner, J.C. Peeken, D. Rueckert & B. Wiestler.
PY - 2024
Y1 - 2024
N2 - Deep learning models offer unprecedented opportunities for diagnosis, prognosis, and treatment planning. However, conventional deep learning pipelines often encounter challenges in learning unbiased classifiers within imbalanced data settings, frequently exhibiting bias towards minority classes. In this study, we aim to improve medical image classification by effectively addressing class imbalance. To this end, we employ differentiable loss functions derived from classification metrics commonly used in imbalanced data settings: Matthews correlation coefficient (MCC) and the F1 score. We explore the efficacy of these loss functions both independently and in combination with cross-entropy loss and various batch sampling strategies on diverse medical datasets of 2D fundoscopy and 3D magnetic resonance images. Our findings demonstrate that, compared to conventional loss functions, we achieve notable improvements in overall classification performance, with increases of up to +12% in balanced accuracy and up to +51% in class-wise F1 score for minority classes when utilizing cross-entropy coupled with metrics-derived loss. Additionally, we conduct feature visualization to gain insights into the behavior of these features during training with imbalance-aware loss functions. Our visualization reveals a more pronounced clustering of minority classes in the feature space, consistent with our classification results. Our results underscore the effectiveness of combining cross-entropy loss with class-imbalance-aware loss functions in training more accurate classifiers, particularly for minority classes.
AB - Deep learning models offer unprecedented opportunities for diagnosis, prognosis, and treatment planning. However, conventional deep learning pipelines often encounter challenges in learning unbiased classifiers within imbalanced data settings, frequently exhibiting bias towards minority classes. In this study, we aim to improve medical image classification by effectively addressing class imbalance. To this end, we employ differentiable loss functions derived from classification metrics commonly used in imbalanced data settings: Matthews correlation coefficient (MCC) and the F1 score. We explore the efficacy of these loss functions both independently and in combination with cross-entropy loss and various batch sampling strategies on diverse medical datasets of 2D fundoscopy and 3D magnetic resonance images. Our findings demonstrate that, compared to conventional loss functions, we achieve notable improvements in overall classification performance, with increases of up to +12% in balanced accuracy and up to +51% in class-wise F1 score for minority classes when utilizing cross-entropy coupled with metrics-derived loss. Additionally, we conduct feature visualization to gain insights into the behavior of these features during training with imbalance-aware loss functions. Our visualization reveals a more pronounced clustering of minority classes in the feature space, consistent with our classification results. Our results underscore the effectiveness of combining cross-entropy loss with class-imbalance-aware loss functions in training more accurate classifiers, particularly for minority classes.
KW - Class imbalance
KW - Deep learning
KW - Loss Function
KW - Unbiased Classifier
UR - http://www.scopus.com/inward/record.url?scp=85201491255&partnerID=8YFLogxK
M3 - Conference article
AN - SCOPUS:85201491255
SN - 2640-3498
VL - 250
SP - 1341
EP - 1356
JO - Proceedings of Machine Learning Research
JF - Proceedings of Machine Learning Research
T2 - 7th International Conference on Medical Imaging with Deep Learning, MIDL 2024
Y2 - 3 July 2024 through 5 July 2024
ER -