DAL: Dynamic Angular Loss for Imbalanced Medical Image Classification
Salman Mohammad, Furkan Kasım, Manuel Günther
Abstract
Class imbalance remains a major obstacle in medical image classification, where rare but clinically important classes are often overshadowed by majority categories. Although current strategies for reducing bias, including angle-based softmax (ABS) losses, offer strong discriminative features, their behavior in settings with a small number of severely imbalanced classes remains insufficiently understood. Previous approaches that estimate the intrinsic parameters of ABS rely on the assumption of many classes, which does not hold in medical settings. We derive data-driven upper and lower bounds for the scale parameter and an upper bound for the angular margin using negative-angle statistics, and use these to drive a batch-adaptive angular margin (BAAM), which we combine with dynamically-weighted cross entropy (DWCE) to define our dynamic angular loss (DAL). Across four highly imbalanced medical image classification benchmarks spanning dermatology, ophthalmology, and gastrointestinal endoscopy, our method consistently achieves superior balanced accuracy and the lowest coefficient of variation of per-class recall. Although this entails a small performance reduction on majority classes, the gains on minority categories are substantial, yielding a reliable and equitable overall classifier. Our source code is available at: https://github.com/msalman95/DAL.
Create a lesson
Related papers
Leakage-Free Is Not Confounder-Free: What a Patient-Level Split Cannot Certify About a Medical Imaging Benchmark
Shared title terminology · Ignazio Gallo, Mattia Gatti, Leonardo Sgroi et al.
Towards Text-Mask Consistency in Medical Image Segmentation
Shared title terminology · Jie Gui, Hang Tu, Wen Sha et al.
When Foundation Models Disagree: Representational Heterogeneity for Calibrated Uncertainty in Whole-Slide Image Classification
Shared title terminology · Yekai Shen, Yuqian Wang, Zishun Liao et al.
Physical Laws without Physics Loss? Probing Learned Dynamics in Video World Models through Forced Response
Shared title terminology · Yutao Li, Chen Wang, Wangmeng Zuo et al.
Solar-Conditioned Flow Matching for Multitemporal Aerial Visible-to-Infrared Image Translation
Shared title terminology · Wenwen Fang, Bingwei Hui, Xin Chen et al.
What Stays in the Picture? From Redundant Instructions to Dependency-Aware Image Editing
Shared title terminology · Zi-Jun Wang, Yu Lin, Zhilin Zhao