Back to Trending
RepositoryUSUnited States
ZhiningLiu1998

ZhiningLiu1998/awesome-imbalanced-learning

😎 Everything about class-imbalanced/long-tail learning: papers, codes, frameworks, and libraries | 有关类别不平衡/长尾学习的一切:论文、代码、框架与库

1.5kstars
230forks
2issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: imbalanced-classification

#1 Repository of the week

1
TINIX TRENDING·Topic: class-imbalance

#1 Repository of the week

1
TINIX TRENDING·Topic: imbalanced-data

#1 Repository of the week

Curated imbalanced learning papers, codes, and libraries

Language: [English] [中文]

Class-imbalance (also known as the long-tail problem) is the fact that the classes are not represented equally in a classification problem, which is quite common in practice. For instance, fraud detection, prediction of rare adverse drug reactions and prediction gene families. Failure to account for the class imbalance often causes inaccurate and decreased predictive performance of many classification algorithms. Imbalanced learning aims to tackle the class imbalance problem to learn an unbiased model from imbalanced data.

Inspired by awesome-machine-learning. In this repository:

  • Frameworks and libraries are grouped by programming language.
  • Research papers are grouped by research field.

Note:

  • ⭐ Please leave a STAR if you like this project! ⭐
  • Contribute and you will appear in the contributors✨!
  • There are numerous papers in this field of research, so this list is not intended to be exhaustive.
  • We aim to keep only the "awesome" works that either have a good impact or have been published in reputed top conferences/journals.

What's new:

Check out Zhining's other open-source projects!


Imbalanced-Ensemble [PythonLib]

GitHub stars

Machine Learning [Awesome]

GitHub stars

Self-paced Ensemble [ICDE]

GitHub stars

Meta-Sampler [NeurIPS]

GitHub stars

Table of Contents

1. Frameworks and Libraries

1.1 Python

  • imbalanced-ensemble [Github][Documentation][Gallery][Paper]

    NOTE: written in python, easy to use.

    • imbalanced-ensemble is a Python toolbox for quick implementing and deploying ensemble learning algorithms on class-imbalanced data. It is featured for:
      • (i) Unified, easy-to-use APIs, detailed documentation and examples.
      • (ii) Capable for multi-class imbalanced learning out-of-box.
      • (iii) Optimized performance with parallelization when possible using joblib.
      • (iv) Powerful, customizable, interactive training logging and visualizer.
      • (v) Full compatibility with other popular packages like scikit-learn and imbalanced-learn.
    • Currently (v0.1.4), it includes more than 15 ensemble algorithms based on re-sampling and cost-sensitive learning (e.g., SMOTEBoost/Bagging, RUSBoost/Bagging, AdaCost, EasyEnsemble, BalanceCascade, SelfPacedEnsemble, ...).
  • imbalanced-learn [Github][Documentation][Paper]

    NOTE: written in python, easy to use.

    • imbalanced-learn is a python package offering a number of re-sampling techniques commonly used in datasets showing strong between-class imbalance. It is compatible with scikit-learn and is part of scikit-learn-contrib projects.
    • Currently (v0.8.0), it includes 21 different re-sampling techniques, including over-sampling, under-sampling and hybrid ones (e.g., SMOTE, ADASYN, TomekLinks, NearMiss, OneSideSelection, SMOTETomek, ...)
    • This package also provides many utilities, e.g., Batch generator for Keras/TensorFlow, see API reference.
  • smote_variants [Documentation][Github] - A collection of 85 minority over-sampling techniques for imbalanced learning with multi-class oversampling and model selection features (All writen in Python, also support R and Julia).

1.2 R

  • smote_variants [Documentation][Github] - A collection of 85 minority over-sampling techniques for imbalanced learning with multi-class oversampling and model selection features (All writen in Python, also support R and Julia).
  • caret [Documentation][Github] - Contains the implementation of Random under/over-sampling.
  • ROSE [Documentation] - Contains the implementation of ROSE (Random Over-Sampling Examples).
  • DMwR [Documentation] - Contains the implementation of SMOTE (Synthetic Minority Over-sampling TEchnique).

1.3 Java

  • KEEL [Github][Paper] - KEEL provides a simple GUI based on data flow to design experiments with different datasets and computational intelligence algorithms (paying special attention to evolutionary algorithms) in order to assess the behavior of the algorithms. This tool includes many widely used imbalanced learning techniques such as (evolutionary) over/under-resampling, cost-sensitive learning, algorithm modification, and ensemble learning methods.

    NOTE: wide variety of classical classification, regression, preprocessing algorithms included.

1.4 Scalar

1.5 Julia

  • smote_variants [Documentation][Github] - A collection of 85 minority over-sampling techniques for imbalanced learning with multi-class oversampling and model selection features (All writen in Python, also support R and Julia).

2. Research Papers

2.1 Surveys

  • Learning from imbalanced data (IEEE TKDE, 2009, 6000+ citations) [Paper]

    • Highly cited, classic survey paper. It systematically reviewed the popular solutions, evaluation metrics, and challenging problems in future research in this area (as of 2009).
  • Learning from imbalanced data: open challenges and future directions (2016, 900+ citations) [Paper]

    • This paper concentrates on the open issues and challenges in imbalanced learning, i.e., extreme class imbalance, imbalance in online/stream learning, multi-class imbalanced learning, and semi/un-supervised imbalanced learning.
  • Learning from class-imbalanced data: Review of methods and applications (2017, 900+ citations) [Paper]

    • A recent exhaustive survey of imbalanced learning methods and applications, a total of 527 papers were included in this study. It provides several detailed taxonomies of existing methods and also the recent trend of this research area.

2.2 Ensemble Learning

2.2.1 General ensemble

  • Self-paced Ensemble (ICDE 2020, 20+ citations) [Paper][Code][Slides][Zhihu/知乎][PyPI]

    NOTE: versatile solution with outstanding performance and computational efficiency.

  • MESA: Boost Ensemble Imbalanced Learning with MEta-SAmpler (NeurIPS 2020) [Paper][Code][Video][Zhihu/知乎]

    NOTE: learning an optimal sampling policy directly from data.

  • Exploratory Undersampling for Class-Imbalance Learning (IEEE Trans. on SMC, 2008, 1300+ citations) [Paper]

    NOTE: simple but effective solution.

    • EasyEnsemble [Code]
    • BalanceCascade [Code]
  • The Effects of Ensembling on Long-Tailed Data (Neurips 2023 Heavy Tails Workshop) [Paper]

    NOTE: Adding more (>10) ensemble members continues to improve performance on imbalanced datasets. There are differences between logit and probability ensembling on imbalanced datasets depending on the ensemble diversity and dependency.

    • Logit vs. Probability Ensembles [Code]

2.2.2 Boosting-based

  • AdaBoost (1995, 18700+ citations) [Paper][Code] - Adaptive Boosting with C4.5
  • DataBoost (2004, 570+ citations) [Paper] - Boosting with Data Generation for Imbalanced Data
  • SMOTEBoost (2003, 1100+ citations) [Paper][Code] - Synthetic Minority Over-sampling TEchnique Boosting
  • MSMOTEBoost (2011, 1300+ citations) [Paper] - Modified Synthetic Minority Over-sampling TEchnique Boosting
  • RAMOBoost (2010, 140+ citations) [Paper] [Code] - Ranked Minority Over-sampling in Boosting
  • RUSBoost (2009, 850+ citations) [Paper] [Code] - Random Under-Sampling Boosting
  • AdaBoostNC (2012, 350+ citations) [Paper] - Adaptive Boosting with Negative Correlation Learning
  • EUSBoost (2013, 210+ citations) [Paper] - Evolutionary Under-sampling in Boosting

2.2.3 Bagging-based

  • Bagging (1996, 20000+ citations) [Paper][Code] - Bagging predictor

  • Diversity Analysis on Imbalanced Data Sets by Using Ensemble Models (2009, 400+ citations) [Paper]

    • UnderBagging [Code]
    • OverBagging [Code]
    • SMOTEBagging [Code]

2.2.4 Cost-sensitive ensemble

  • AdaCost (ICML 1999, 800+ citations) [Paper][Code] - Misclassification Cost-sensitive boosting
  • AdaUBoost (NIPS 1999, 100+ citations) [Paper][Code] - AdaBoost with Unequal loss functions
  • AsymBoost (NIPS 2001, 700+ citations) [Paper][Code] - Asymmetric AdaBoost and detector cascade

2.3 Data resampling

2.3.1 Over-sampling

  • ROS [Code] - Random Over-sampling
  • SMOTE (2002, 9800+ citations) [Paper][Code] - Synthetic Minority Over-sampling TEchnique
  • Borderline-SMOTE (2005, 1400+ citations) [Paper][Code] - Borderline-Synthetic Minority Over-sampling TEchnique
  • ADASYN (2008, 1100+ citations) [Paper][Code] - ADAptive SYNthetic Sampling
  • SPIDER (2008, 150+ citations) [Paper][Code(Java)] - Selective Preprocessing of Imbalanced Data
  • Safe-Level-SMOTE (2009, 370+ citations) [Paper][Code(Java)] - Safe Level Synthetic Minority Over-sampling TEchnique
  • SVM-SMOTE (2009, 120+ citations) [Paper][Code] - SMOTE based on Support Vectors of SVM
  • MDO (2015, 150+ citations) [Paper][Code] - Mahalanobis Distance-based Over-sampling for Multi-Class imbalanced problems.

NOTE: See more over-sampling methods at smote-variants.

2.3.2 Under-sampling

  • RUS [Code] - Random Under-sampling
  • CNN (1968, 2100+ citations) [Paper][Code] - Condensed Nearest Neighbor
  • ENN (1972, 1500+ citations) [Paper] [Code] - Edited Condensed Nearest Neighbor
  • TomekLink (1976, 870+ citations) [Paper][Code] - Tomek's modification of Condensed Nearest Neighbor
  • NCR (2001, 500+ citations) [Paper][Code] - Neighborhood Cleaning Rule
  • NearMiss-1 & 2 & 3 (2003, 420+ citations) [Paper][Code] - Several kNN approaches to unbalanced data distributions.
  • CNN with TomekLink (2004, 2000+ citations) [Paper][Code(Java)] - Condensed Nearest Neighbor + TomekLink
  • OSS (2007, 2100+ citations) [Paper][Code] - One Side Selection
  • EUS (2009, 290+ citations) [Paper] - Evolutionary Under-sampling
  • IHT (2014, 130+ citations) [Paper][Code] - Instance Hardness Threshold

2.3.3 Hybrid-sampling

  • A Study of the Behavior of Several Methods for Balancing Training Data (2004, 2000+ citations) [Paper]

    NOTE: extensive experimental evaluation involving 10 different over/under-sampling methods.

  • SMOTE-RSB (2012, 210+ citations) [Paper][Code] - Hybrid Preprocessing using SMOTE and Rough Sets Theory

  • SMOTE-IPF (2015, 180+ citations) [Paper][Code] - SMOTE with Iterative-Partitioning Filter

2.4 Cost-sensitive Learning

  • CSC4.5 (2002, 420+ citations) [Paper][Code(Java)] - An instance-weighting method to induce cost-sensitive trees
  • CSSVM (2008, 710+ citations) [Paper][Code(Java)] - Cost-sensitive SVMs for highly imbalanced classification
  • CSNN (2005, 950+ citations) [Paper][Code(Java)] - Training cost-sensitive neural networks with methods addressing the class imbalance problem.
  • Bayesian weighted-likelihood (2026) [Paper][Preprint][Code(R/Python/Julia)] - Cost-sensitive Bayesian GLMs with a weighted likelihood (also known as power-prior, generalized Bayes, Gibbs posterior).

2.5 Deep Learning

2.5.1 Surveys

  • A systematic study of the class imbalance problem in convolutional neural networks (2018, 330+ citations) [Paper]

  • Survey on deep learning with class imbalance (2019, 50+ citations) [Paper]

    NOTE: a recent comprehensive survey of the class imbalance problem in deep learning.

2.5.2 Graph Data Mining

  • Semi-Supervised Graph Imbalanced Regression (KDD 2023) [Paper] [Code]
  • TAM: Topology-Aware Margin Loss for Class-Imbalanced Node Classification (ICML 2022) [Paper][Code]
  • GraphSMOTE: Imbalanced Node Classification on Graphs with Graph Neural Networks (WSDM 2021) [Paper][Code]
  • Topology-Imbalance Learning for Semi-Supervised Node Classification (NeurIPS 2021) [Paper][Code]
  • GraphENS: Neighbor-Aware Ego Network Synthesis for Class-Imbalanced Node Classification (ICLR 2022) [Paper][Code]
  • LTE4G: Long-Tail Experts for Graph Neural Networks (CIKM 2022) [Paper][Code]
  • Multi-Class Imbalanced Graph Convolutional Network Learning (IJCAI 2020) [Paper]

2.5.3 Hard example mining

  • Training region-based object detectors with online hard example mining (CVPR 2016, 840+ citations) [Paper][Code] - In the later phase of NN training, only do gradient back-propagation for "hard examples" (i.e., with large loss value)

2.5.4 Loss function engineering

  • Focal loss for dense object detection (ICCV 2017, 2600+ citations) [Paper][Code (detectron2)][Code (unofficial)] - A uniform loss function that focuses training on a sparse set of hard examples to prevents the vast number of easy negatives from overwhelming the detector during training.

    NOTE: elegant solution, high influence.

  • Training deep neural networks on imbalanced data sets (IJCNN 2016, 110+ citations) [Paper] - Mean (square) false error that can equally capture classification errors from both the majority class and the minority class.

  • Deep imbalanced attribute classification using visual attention aggregation (ECCV 2018, 30+ citation) [Paper][Code]

  • Imbalanced deep learning by minority class incremental rectification (TPAMI 2018, 60+ citations) [Paper] - Class Rectification Loss for minimizing the dominant effect of majority classes by discovering sparsely sampled boundaries of minority classes in an iterative batch-wise learning process.

  • Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss (NIPS 2019, 10+ citations) [Paper][Code] - A theoretically-principled label-distribution-aware margin (LDAM) loss motivated by minimizing a margin-based generalization bound.

  • Gradient harmonized single-stage detector (AAAI 2019, 40+ citations) [Paper][Code] - Compared to Focal Loss, which only down-weights "easy" negative examples, GHM also down-weights "very hard" examples as they are likely to be outliers.

  • Class-Balanced Loss Based on Effective Number of Samples (CVPR 2019, 70+ citations) [Paper][Code] - a simple and generic class-reweighting mechanism based on Effective Number of Samples.

  • Influence-Balanced Loss for Imbalanced Visual Classification (ICCV 2021) [Paper][Code]

  • AutoBalance: Optimized Loss Functions for Imbalanced Data (NeurIPS 2021) [Paper]

  • Label-Imbalanced and Group-Sensitive Classification under Overparameterization (NeurIPS 2021) [Paper][Code]

2.5.5 Meta-learning

  • Learning to model the tail (NIPS 2017, 70+ citations) [Paper] - Transfer meta-knowledge from the data-rich classes in the head of the distribution to the data-poor classes in the tail.

  • Learning to reweight examples for robust deep learning (ICML 2018, 150+ citations) [Paper][Code] - Implicitly learn a weight function to reweight the samples in gradient updates of DNN.

    NOTE: representative work to solve the class imbalance problem through meta-learning.

  • Meta-weight-net: Learning an explicit mapping for sample weighting (NIPS 2019) [Paper][Code] - Explicitly learn a weight function (with an MLP as the function approximator) to reweight the samples in gradient updates of DNN.

  • Learning Data Manipulation for Augmentation and Weighting (NIPS 2019) [Paper][Code]

  • Learning to Balance: Bayesian Meta-Learning for Imbalanced and Out-of-distribution Tasks (ICLR 2020) [Paper][Code]

  • MESA: Boost Ensemble Imbalanced Learning with MEta-SAmpler (NeurIPS 2020) [Paper][Code][Video]

    NOTE: meta-learning-powered ensemble learning

2.5.6 Representation Learning

  • Learning deep representation for imbalanced classification (CVPR 2016, 220+ citations) [Paper]

  • Supervised Class Distribution Learning for GANs-Based Imbalanced Classification (ICDM 2019) [Paper]

  • Decoupling Representation and Classifier for Long-tailed Recognition (ICLR 2020) [Paper][Code]

    NOTE: interesting findings on representation learning and classifier learning

  • Supercharging Imbalanced Data Learning With Energy-based Contrastive Representation Transfer (NeurIPS 2021) [Paper]

  • Tailoring Self-Supervision for Supervised Learning (ECCV 2022) [Paper][Code]

2.5.7 Posterior Recalibration

  • Posterior Re-calibration for Imbalanced Datasets (NeurIPS 2020) [Paper][Code]
  • Long-tail learning via logit adjustment (ICLR 2021) [Paper][Code]

2.5.8 Semi/Self-supervised Learning

  • Rethinking the Value of Labels for Improving Class-Imbalanced Learning (NeurIPS 2020) [Paper][Code][Video]

    NOTE: semi-supervised training / self-supervised pre-training helps imbalance learning

  • Distribution Aligning Refinery of Pseudo-label for Imbalanced Semi-supervised Learning (NeurIPS 2020) [Paper][Code]

  • ABC: Auxiliary Balanced Classifier for Class-imbalanced Semi-supervised Learning (NeurIPS 2021) [Paper][Code]

  • Improving Contrastive Learning on Imbalanced Data via Open-World Sampling (NeurIPS 2021) [Paper]

  • DASO: Distribution-Aware Semantics-Oriented Pseudo-label for Imbalanced Semi-Supervised Learning (CVPR 2022) [Paper][Code]

2.5.9 Curriculum Learning

  • Dynamic Curriculum Learning for Imbalanced Data Classification (ICCV 2019) [Paper]

2.5.10 Two-phase Training

  • Brain tumor segmentation with deep neural networks (2017, 1200+ citations) [Paper][Code (unofficial)]

    Pre-training on balanced dataset, fine-tuning the last output layer before softmax on the original, imbalanced data.

2.5.11 Network Architecture

  • BBN: Bilateral-Branch Network with Cumulative Learning for Long-Tailed Visual Recognition (CVPR 2020) [Paper][Code]
  • Class-Imbalanced Deep Learning via a Class-Balanced Ensemble (TNNLS 2021) [Paper]

2.5.12 Deep Generative Model

  • Deep Generative Model for Robust Imbalance Classification (CVPR 2020) [Paper]

2.5.13 Imbalanced Regression

  • Semi-Supervised Graph Imbalanced Regression (KDD 2023) [Paper] [Code]
  • RankSim: Ranking Similarity Regularization for Deep Imbalanced Regression (ICML 2022) [Paper] [Code]
  • Balanced MSE for Imbalanced Visual Regression (CVPR 2022) [Paper] [Code]
  • Delving into Deep Imbalanced Regression (ICML 2021) [Paper][Code][Video]
  • Density-based weighting for imbalanced regression (Machine Learning [J], 2021) [Paper][Code]

2.5.14 Data Augmentation

  • Minority-Oriented Vicinity Expansion with Attentive Aggregation for Video Long-Tailed Recognition (AAAI 2023) [Paper][Code]

3. Miscellaneous

3.1 Datasets

  • imbalanced-learn datasets

    This collection of datasets is from imblearn.datasets.fetch_datasets.

    IDNameRepository & TargetRatio#S#F
    1ecoliUCI, target: imU8.6:13367
    2optical_digitsUCI, target: 89.1:15,62064
    3satimageUCI, target: 49.3:16,43536
    4pen_digitsUCI, target: 59.4:110,99216
    5abaloneUCI, target: 79.7:14,17710
    6sick_euthyroidUCI, target: sick euthyroid9.8:13,16342
    7spectrometerUCI, target: > =4411:153193
    8car_eval_34UCI, target: good, v good12:11,72821
    9isoletUCI, target: A, B12:17,797617
    10us_crimeUCI, target: >0.6512:11,994100
    11yeast_ml8LIBSVM, target: 813:12,417103
    12sceneLIBSVM, target: >one label13:12,407294
    13libras_moveUCI, target: 114:136090
    14thyroid_sickUCI, target: sick15:13,77252
    15coil_2000KDD, CoIL, target: minority16:19,82285
    16arrhythmiaUCI, target: 0617:1452278
    17solar_flare_m0UCI, target: M->019:11,38932
    18oilUCI, target: minority22:193749
    19car_eval_4UCI, target: vgood26:11,72821
    20wine_qualityUCI, wine, target: <=426:14,89811
    21letter_imgUCI, target: Z26:120,00016
    22yeast_me2UCI, target: ME228:11,4848
    23webpageLIBSVM, w7a, target: minority33:134,780300
    24ozone_levelUCI, ozone, data34:12,53672
    25mammographyUCI, target: minority42:111,1836
    26protein_homoKDD CUP 2004, minority111:1145,75174
    27abalone_19UCI, target: 19130:14,17710
  • Imbalanced Databases

    Link: https://github.com/gykovacs/mldb

3.2 Github Repositories

3.2.1 Algorithms & Utilities & Jupyter Notebooks

3.2.2 Paper list

3.2.3 Slides

  • acm_imbalanced_learning - slides and code for the ACM Imbalanced Learning talk on 27th April 2016 in Austin, TX.
  • TutorialSearch - Free cross-platform search engine indexing 50,000+ tutorials from Udemy, Skillshare, Pluralsight, and other major learning platforms across 45+ categories.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Zhining Liu
Zhining Liu

💻 🚧 🌍
曾阿信
曾阿信

🚧
WonJun Moon
WonJun Moon

💻
Gang Liu
Gang Liu

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
ZhiningLiu1998/imbalanced-ensemble

[NeurIPS'25]🛠️Class-imbalanced Ensemble Learning Toolbox. | 类别不平衡/长尾机器学习库

428
Mar 5, 2026
RepositoryPython
Albertsr/Class-Imbalance

Cost-Sensitive Learning / ReSampling / Weighting / Thresholding / BorderlineSMOTE / AdaCost / etc.

110
Jul 27, 2026
Repository
ashishpatel26/500-AI-Machine-learning-Deep-learning-Computer-vision-NLP-Projects-with-code

500 AI Machine learning Deep learning Computer vision NLP Projects with code

38.0k
Sep 26, 2026
RepositoryJupyter Notebook
solegalli/machine-learning-imbalanced-data

Code repository for the online course Machine Learning with Imbalanced Data

189
Nov 29, 2024
RepositoryPython
YyzHarry/multi-domain-imbalance

[ECCV 2022] Multi-Domain Long-Tailed Recognition, Imbalanced Domain Generalization, and Beyond

142
Jan 26, 2023
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026
RepositoryPython
d2l-ai/d2l-zh

《动手学深度学习》:面向中文读者、能运行、可讨论。中英文版被70多个国家的500多所大学用于教学。

82.9k
Jul 30, 2024
Repository
sindresorhus/awesome

😎 Awesome lists about all kinds of interesting topics [NOTE: Pull requests are temporarily disabled until I have a chance to catch up with the existing ones]

546.4k
Sep 2, 2026
Repository
awesome-selfhosted/awesome-selfhosted

A list of Free Software network services and web applications which can be hosted on your own servers

342.5k
Nov 28, 2026