# Balanced-MixUp for Highly Imbalanced Medical Image Classification

arXiv: https://arxiv.org/abs/2109.09850 · HTML: https://mlsanity.com/paper/2109.09850/

## Key facts

- Cited by 46 papers in the map (data through 14 Oct 2026).
- Builds on 19 of its 35 references that are in the map.
- First posted on arXiv 20 Sep 2021.

## Builds on (most cited first, 19 of 19)

- [PyTorch: An Imperative Style, High-Performance Deep Learning Library](https://mlsanity.com/paper/1912.01703/) (2019)
- [mixup: Beyond Empirical Risk Minimization](https://mlsanity.com/paper/1710.09412/) (2017)
- [MobileNetV2: Inverted Residuals and Linear Bottlenecks](https://mlsanity.com/paper/1801.04381/) (2018)
- [Class-Balanced Loss Based on Effective Number of Samples](https://mlsanity.com/paper/1901.05555/) (2019)
- [A Survey on Deep Learning in Medical Image Analysis](https://mlsanity.com/paper/1702.05747/) (2017)
- [Decoupling Representation and Classifier for Long-Tailed Recognition](https://mlsanity.com/paper/1910.09217/) (2019)
- [Big Transfer (BiT): General Visual Representation Learning](https://mlsanity.com/paper/1912.11370/) (2019)
- [Focal Loss for Dense Object Detection](https://mlsanity.com/paper/1708.02002/) (2017)
- [Exploring the Limits of Weakly Supervised Pretraining](https://mlsanity.com/paper/1805.00932/) (2018)
- [A systematic study of the class imbalance problem in convolutional neural networks](https://mlsanity.com/paper/1710.05381/) (2017)
- [On Mixup Training: Improved Calibration and Predictive Uncertainty for Deep Neural Networks](https://mlsanity.com/paper/1905.11001/) (2019)
- [Remix: Rebalanced Mixup](https://mlsanity.com/paper/2007.03943/) (2020)
- [Grader variability and the importance of reference standards for evaluating machine learning models for diabetic retinopathy](https://mlsanity.com/paper/1710.01711/) (2017)
- [DRvertGRADUATE: uncertainty-aware deep learning-based diabetic retinopathy grading in eye fundus images](https://mlsanity.com/paper/1910.11777/) (2019)
- [Automatic detection of rare pathologies in fundus photographs using few-shot learning](https://mlsanity.com/paper/1907.09449/) (2019)
- [Medical-based Deep Curriculum Learning for Improved Fracture Classification](https://mlsanity.com/paper/2004.00482/) (2020)
- [Cost-Sensitive Regularization for Diabetic Retinopathy Grading from Eye Fundus Images](https://mlsanity.com/paper/2010.00291/) (2020)
- [Iterative Augmentation of Visual Evidence for Weakly-Supervised Lesion Localization in Deep Interpretability Frameworks: Application to Color Fundus Images](https://mlsanity.com/paper/1910.07373/) (2019)
- [MixBoost: Synthetic Oversampling with Boosted Mixup for Handling Extreme Imbalance](https://mlsanity.com/paper/2009.01571/) (2020)

## Built on by (most cited first, 30 of 46)

- [Deep Long-Tailed Learning: A Survey](https://mlsanity.com/paper/2110.04596/) (2021)
- [Long-Tailed Classification of Thorax Diseases on Chest X-Ray: A New Benchmark Study](https://mlsanity.com/paper/2208.13365/) (2022)
- [Mine yOur owN Anatomy: Revisiting Medical Image Segmentation with Extremely Limited Labels](https://mlsanity.com/paper/2209.13476/) (2022)
- [Domain generalization across tumor types, laboratories, and species -- insights from the 2022 edition of the Mitosis Domain Generalization Challenge](https://mlsanity.com/paper/2309.15589/) (2023)
- [CAT: Exploiting Inter-Class Dynamics for Domain Adaptive Object Detection](https://mlsanity.com/paper/2403.19278/) (2024)
- [DirMixE: Harnessing Test Agnostic Long-tail Recognition with Hierarchical Label Variations](https://mlsanity.com/paper/2405.07780/) (2024)
- [Toward Robustness in Multi-label Classification: A Data Augmentation Strategy against Imbalance and Noise](https://mlsanity.com/paper/2312.07087/) (2023)
- [Identifying the key components in ResNet-50 for diabetic retinopathy grading from fundus images: a systematic investigation](https://mlsanity.com/paper/2110.14160/) (2021)
- [FoPro-KD: Fourier Prompted Effective Knowledge Distillation for Long-Tailed Medical Image Recognition](https://mlsanity.com/paper/2305.17421/) (2023)
- [A Comprehensive Survey on Imbalanced Data Learning](https://mlsanity.com/paper/2502.08960/) (2025)
- [MixUp-MIL: Novel Data Augmentation for Multiple Instance Learning and a Study on Thyroid Cancer Diagnosis](https://mlsanity.com/paper/2211.05862/) (2022)
- [An Analysis on Ensemble Learning optimized Medical Image Classification with Deep Convolutional Neural Networks](https://mlsanity.com/paper/2201.11440/) (2022)
- [Robust Asymmetric Loss for Multi-Label Long-Tailed Learning](https://mlsanity.com/paper/2308.05542/) (2023)
- [Interdisciplinary Fairness in Imbalanced Research Proposal Topic Inference: A Hierarchical Transformer-based Method with Selective Interpolation](https://mlsanity.com/paper/2309.01717/) (2023)
- [LesionMix: A Lesion-Level Data Augmentation Method for Medical Image Segmentation](https://mlsanity.com/paper/2308.09026/) (2023)
- [Detecting Mitoses with a Convolutional Neural Network for MIDOG 2022 Challenge](https://mlsanity.com/paper/2208.12437/) (2022)
- [Text-guided Foundation Model Adaptation for Long-Tailed Medical Image Classification](https://mlsanity.com/paper/2408.14770/) (2024)
- [Federated Model Aggregation via Self-Supervised Priors for Highly Imbalanced Medical Image Classification](https://mlsanity.com/paper/2307.14959/) (2023)
- [Slot-Mixup with Subsampling: A Simple Regularization for WSI Classification](https://mlsanity.com/paper/2311.17466/) (2023)
- [SMSMix: Sense-Maintained Sentence Mixup for Word Sense Disambiguation](https://mlsanity.com/paper/2212.07072/) (2022)
- [Infinite Class Mixup](https://mlsanity.com/paper/2305.10293/) (2023)
- [How Can We Tame the Long-Tail of Chest X-ray Datasets?](https://mlsanity.com/paper/2309.04293/) (2023)
- [Understanding differences in applying DETR to natural and medical images](https://mlsanity.com/paper/2405.17677/) (2024)
- [Learning Discriminative Representation via Metric Learning for Imbalanced Medical Image Classification](https://mlsanity.com/paper/2207.06975/) (2022)
- [Hierarchical MixUp Multi-label Classification with Imbalanced Interdisciplinary Research Proposals](https://mlsanity.com/paper/2209.13912/) (2022)
- [Generalized Cross-domain Multi-label Few-shot Learning for Chest X-rays](https://mlsanity.com/paper/2309.04462/) (2023)
- [MixUp-MIL: A Study on Linear & Multilinear Interpolation-Based Data Augmentation for Whole Slide Image Classification](https://mlsanity.com/paper/2311.03052/) (2023)
- [From Uncertainty to Clarity: Uncertainty-Guided Class-Incremental Learning for Limited Biomedical Samples via Semantic Expansion](https://mlsanity.com/paper/2409.07757/) (2024)
- [Long-tailed Medical Diagnosis with Relation-aware Representation Learning and Iterative Classifier Calibration](https://mlsanity.com/paper/2502.03238/) (2025)
- [GazeLT: Visual attention-guided long-tailed disease classification in chest radiographs](https://mlsanity.com/paper/2508.09478/) (2025)

## Abstract (arXiv)

Highly imbalanced datasets are ubiquitous in medical image classification problems. In such problems, it is often the case that rare classes associated to less prevalent diseases are severely under-represented in labeled databases, typically resulting in poor performance of machine learning algorithms due to overfitting in the learning process. In this paper, we propose a novel mechanism for sampling training data based on the popular MixUp regularization technique, which we refer to as Balanced-MixUp. In short, Balanced-MixUp simultaneously performs regular (i.e., instance-based) and balanced (i.e., class-based) sampling of the training data. The resulting two sets of samples are then mixed-up to create a more balanced training distribution from which a neural network can effectively learn without incurring in heavily under-fitting the minority classes. We experiment with a highly imbalanced dataset of retinal images (55K samples, 5 classes) and a long-tail dataset of gastro-intestinal video frames (10K images, 23 classes), using two CNNs of varying representation capabilities. Experimental results demonstrate that applying Balanced-MixUp outperforms other conventional sampling schemes and loss functions specifically designed to deal with imbalanced data. Code is released at https://github.com/agaldran/balanced_mixup .
