CALF: A Conditionally Adaptive Loss Function to Mitigate Class-Imbalanced Segmentation

Bashir Alam, Masa Cirkovic, Mete Harun Akcay, Md Kaf Shahrier, Sebastien Lafond +4 more
4/6/2025
eess.IVcs.CV

No confident code implementation found for this paper.

Abstract

Imbalanced datasets pose a considerable challenge in training deep learning (DL) models for medical diagnostics, particularly for segmentation tasks. Imbalance may be associated with annotation quality limited annotated datasets, rare cases, or small-scale regions of interest (ROIs). These conditions adversely affect model training and performance, leading to segmentation boundaries which deviate from the true ROIs. Traditional loss functions, such as Binary Cross Entropy, replicate annotation biases and limit model generalization. We propose a novel, statistically driven, conditionally adaptive loss function (CALF) tailored to accommodate the conditions of imbalanced datasets in DL training. It employs a data-driven methodology by estimating imbalance severity using statistical methods of skewness and kurtosis, then applies an appropriate transformation to balance the training dataset while preserving data heterogeneity. This transformative approach integrates a multifaceted process, encompassing preprocessing, dataset filtering, and dynamic loss selection to achieve optimal outcomes. We benchmark our method against conventional loss functions using qualitative and quantitative evaluations. Experiments using large-scale open-source datasets (i.e., UPENN-GBM, UCSF, LGG, and BraTS) validate our approach, demonstrating substantial segmentation improvements. Code availability: https://anonymous.4open.science/r/MICCAI-Submission-43F9/.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{alam2025calf,
  title  = {CALF: A Conditionally Adaptive Loss Function to Mitigate Class-Imbalanced Segmentation},
  author = {Bashir Alam and Masa Cirkovic and Mete Harun Akcay and Md Kaf Shahrier and Sebastien Lafond and Hergys Rexha and Kurt Benke and Sepinoud Azimi and Janan Arslan},
  year   = {2025},
  eprint = {2504.04458},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.04458v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.04458.svg)](https://codeofpaper.com/paper/2504.04458)

Discussion