Skip to main content
QUICK REVIEW

[Paper Review] GenSample: A Genetic Algorithm for Oversampling in Imbalanced Datasets

Vishwa Karia, Wenhao Zhang|arXiv (Cornell University)|Oct 23, 2019
Imbalanced Data Classification TechniquesComputer Science15 references17 citations
TL;DR

GenSample proposes a genetic algorithm-based oversampling method that dynamically generates synthetic minority class samples by balancing learning difficulty and performance gain, terminating when performance declines to prevent degradation. It achieves the highest F1-score on 8 out of 9 real-world imbalanced datasets, outperforming SMOTE, ADASYN, and baseline decision trees.

ABSTRACT

Imbalanced datasets are ubiquitous. Classification performance on imbalanced datasets is generally poor for the minority class as the classifier cannot learn decision boundaries well. However, in sensitive applications like fraud detection, medical diagnosis, and spam identification, it is extremely important to classify the minority instances correctly. In this paper, we present a novel technique based on genetic algorithms, GenSample, for oversampling the minority class in imbalanced datasets. GenSample decides the rate of oversampling a minority example by taking into account the difficulty in learning that example, along with the performance improvement achieved by oversampling it. This technique terminates the oversampling process when the performance of the classifier begins to deteriorate. Consequently, it produces synthetic data only as long as a performance boost is obtained. The algorithm was tested on 9 real-world imbalanced datasets of varying sizes and imbalance ratios. It achieved the highest F-Score on 8 out of 9 datasets, confirming its ability to better handle imbalanced data compared to other existing methodologies.

Motivation & Objective

  • To address the challenge of poor minority class classification in imbalanced datasets, especially in high-stakes applications like medical diagnosis and fraud detection.
  • To develop a data-level oversampling technique that avoids overfitting and performance degradation from excessive synthetic data generation.
  • To integrate genetic algorithm principles—selection, crossover, and mutation—into the synthetic data generation process to optimize both learning difficulty and performance improvement.
  • To ensure that the classifier’s performance never degrades by terminating oversampling when F1-score begins to decline.
  • To evaluate GenSample’s effectiveness across diverse real-world datasets and compare it against established methods like SMOTE and ADASYN.

Proposed method

  • GenSample uses a genetic algorithm framework where each individual represents a synthetic minority sample, with fitness determined by a combination of learning difficulty and performance gain.
  • The algorithm applies selection, crossover, and mutation operations to evolve a population of synthetic samples over generations, guided by classifier performance on a validation set.
  • Oversampling continues only as long as the F1-score improves; the process terminates at the first performance decline to prevent overfitting.
  • Learning difficulty is quantified by the model’s uncertainty or margin violation for a minority instance, while performance gain is measured via F1-score improvement after adding synthetic samples.
  • The method avoids random duplication and instead generates diverse, informative synthetic samples that enhance decision boundary learning for minority classes.
  • It combines evolutionary computation with imbalanced learning by treating synthetic data generation as an optimization problem under performance constraints.

Experimental results

Research questions

  • RQ1Can a genetic algorithm framework effectively optimize synthetic minority sample generation to improve classifier performance on imbalanced datasets?
  • RQ2Does GenSample outperform established oversampling techniques like SMOTE and ADASYN in terms of F1-score and precision across diverse real-world datasets?
  • RQ3Can adaptive termination based on performance decline prevent degradation in classifier performance while maximizing minority class learning?
  • RQ4How does GenSample balance learning difficulty and performance gain during synthetic data generation compared to static or heuristic-based methods?
  • RQ5To what extent does GenSample maintain or improve overall accuracy while enhancing minority class recall and geometric mean?

Key findings

  • GenSample achieved the highest F1-score on 8 out of 9 real-world imbalanced datasets, demonstrating consistent superiority over baseline models.
  • The algorithm never underperformed the naive decision tree, ensuring that performance degradation is avoided even when improvement is not possible.
  • GenSample improved precision in 8 out of 9 datasets, with only minor losses in cases where it was not the top performer.
  • Recall and geometric mean were highest for GenSample in more than half the datasets, indicating strong performance on minority class identification.
  • Overall accuracy was always the highest for GenSample, showing that it enhances both minority and majority class performance without trade-offs.
  • The adaptive termination mechanism successfully prevented performance decline, confirming that GenSample avoids overfitting from excessive synthetic data generation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.