A synthetic over-sampling method with minority and majority classes for imbalance problems

Hadi Akbarzadeh Khorshidi, Uwe Aickelin

Abstract

Class imbalance is a substantial challenge in classifying many real-world cases. Synthetic over-sampling methods have been effective to improve the performance of classifiers for imbalance problems. However, most synthetic over-sampling methods generate synthetic instances within the convex hull formed by the existing minority instances as they only concentrate on the minority class and ignore the vast information provided by the majority class. They also often do not perform well for extremely imbalanced data, as fewer minority instances mean less information with which to generate synthetic instances. Moreover, existing methods that generate synthetic instances using the majority class distributional information cannot perform effectively when the majority class has a multi-modal distribution. We propose a new method to generate diverse and adaptable synthetic instances using Synthetic Over-sampling with Minority and Majority classes (SOMM). SOMM generates synthetic instances diversely within the minority data space and updates them adaptively to the neighborhood including both classes.

Introduction

In machine learning, "class imbalance" occurs when target instances (e.g., fraud, rare diseases) are vastly outnumbered by "normal" cases. Standard classifiers often achieve high accuracy by simply ignoring the minority class. To address this, researchers use over-sampling to create synthetic versions of rare instances. While the standard SMOTE algorithm interpolates between minority neighbors, it often suffers from over-generalization (placing points in majority territory), the "convex hull" trap (failing to cover the full potential space), and failure in cases of extreme imbalance.

This paper introduces SOMM (Synthetic Over-sampling with Minority and Majority classes), which leverages information from both classes to generate diverse synthetic data that adaptively avoids majority-class territory.

The SOMM Algorithm

SOMM moves away from simple neighbor-to-neighbor interpolation. Its workflow involves five key steps:

  1. Normalization: Scaling features between 0 and 1.
  2. Bound Setting: Identifying the min/max range for each feature in the minority class.
  3. Diverse Generation: Randomly generating points within those bounds to ensure broad coverage of the data space.
  4. Adaptive Update: For every synthetic point, SOMM evaluates the $k$-nearest neighbors from both classes.
  5. Rule 1: Delete points surrounded only by majority instances.
  6. Rule 2: Keep points whose closest neighbor is a minority instance.
  7. Rule 3: If the closest neighbor is majority, but a minority instance is nearby, "move" the synthetic point toward the minority neighbor and away from the majority cluster.
  8. Transformation: Scaling data back to original units.
Illustration of the adaptive update rule moving a synthetic point s to s_u based on minority and majority neighbors.

Experimental Evaluation

The authors evaluated SOMM using 6 synthetic datasets with complex geometries, 20 real-world binary datasets (e.g., Pima Indians Diabetes), and 10 multiclass datasets.

Key Results

  • Extreme Imbalance: SOMM consistently outperformed SMOTE, ADASYN, and MAHAKIL in scenarios where the minority class was as small as 1% or contained only 6 instances.
  • Statistical Significance: Using Friedman and Nemenyi tests, SOMM achieved the highest average ranking for extreme imbalance.
  • Efficiency: SOMM maintains a low runtime complexity of $O(km)$, proving significantly faster than other high-performing methods like SMOM in multiclass tests.
  • Visual Performance: Visualization via PCA plots demonstrates how SOMM fills "holes" in the minority data space while respecting the boundaries of the majority class distribution.
Visual comparison of synthetic instance generation across different data distributions and methods.

Discussion and Conclusion

SOMM's primary innovation is treating the majority class as a "no-go zone" to refine synthetic point placement. By starting with random points and filtering them, it avoids the linear constraints of SMOTE. While highly effective, SOMM may still face challenges in cases of heavy class overlap or when the majority class follows a very simple unimodal distribution where other specialized algorithms excel. Future work will focus on handling highly dispersed majority classes and extending the logic to more complex multiclass scenarios.

Summary updated

BibTeX
@article{khorshidi2025synthetic,
  author = {Hadi Akbarzadeh Khorshidi and Uwe Aickelin},
  title = {{A synthetic over-sampling method with minority and majority classes for imbalance problems}},
  journal = {Knowledge and Information Systems},
  year = {2025},
  doi = {10.1007/s10115-025-02394-6},
}
Figure