Skip to main content
QUICK REVIEW

[Paper Review] VOS: a Method for Variational Oversampling of Imbalanced Data

Val Andrei Fajardo, David M. Findlay|arXiv (Cornell University)|Sep 7, 2018
Imbalanced Data Classification TechniquesComputer Science11 references11 citations
TL;DR

This paper proposes VOS (Variational Oversampling), a novel generative oversampling method for imbalanced datasets using Variational Autoencoders (VAEs) to synthesize minority class samples. By learning a latent distribution of minority data and generating realistic synthetic samples, VOS significantly improves downstream classification performance over SMOTE and ADASYN, achieving state-of-the-art F1 scores and precision in fraud detection and cancer image classification tasks.

ABSTRACT

Class imbalanced datasets are common in real-world applications that range from credit card fraud detection to rare disease diagnostics. Several popular classification algorithms assume that classes are approximately balanced, and hence build the accompanying objective function to maximize an overall accuracy rate. In these situations, optimizing the overall accuracy will lead to highly skewed predictions towards the majority class. Moreover, the negative business impact resulting from false positives (positive samples incorrectly classified as negative) can be detrimental. Many methods have been proposed to address the class imbalance problem, including methods such as over-sampling, under-sampling and cost-sensitive methods. In this paper, we consider the over-sampling method, where the aim is to augment the original dataset with synthetically created observations of the minority classes. In particular, inspired by the recent advances in generative modelling techniques (e.g., Variational Inference and Generative Adversarial Networks), we introduce a new oversampling technique based on variational autoencoders. Our experiments show that the new method is superior in augmenting datasets for downstream classification tasks when compared to traditional oversampling methods.

Motivation & Objective

  • To address the challenge of class imbalance in real-world datasets, where minority class misclassification leads to high business and medical risks.
  • To develop a generative oversampling method that produces higher-quality synthetic minority samples than traditional techniques like SMOTE and ADASYN.
  • To explore the application of variational inference and VAEs to minority class data augmentation in both tabular and image data.
  • To evaluate the effectiveness of VOS in improving classification metrics such as F1-score, precision, and accuracy on imbalanced datasets.
  • To demonstrate the method's generalizability across different classifiers (e.g., logistic regression, MLP, random forest, CNN) and data types (tabular and image).

Proposed method

  • VOS employs a two-stage VAE architecture: the first encoder maps input features to a latent space $ z_1 $, and the second encoder maps $ z_1 $ to a refined latent space $ z_2 $, with target responses used to condition $ z_2 $.
  • The model is trained using variational inference to maximize a lower bound on the log-likelihood of the minority class data, enabling end-to-end learning of the generative process.
  • Synthetic minority samples are generated by sampling from the learned prior distribution in $ z_2 $, decoding through the generator network, and reconstructing the original feature space.
  • For image data, the VOS-generated flattened vectors are reshaped into 3D image tensors before being passed to a CNN classifier.
  • The method incorporates a sample_weight parameter (set to 0.2 for synthetic samples) to prevent overfitting to generated data during downstream training.
  • The approach is extended to multi-class settings and tested with diverse classifiers, including logistic regression, MLP, random forest, and CNN.

Experimental results

Research questions

  • RQ1Can a variational autoencoder-based generative model outperform traditional oversampling methods like SMOTE and ADASYN in terms of classification performance on imbalanced datasets?
  • RQ2How does VOS perform across different downstream classifiers, including logistic regression, MLP, random forest, and CNN?
  • RQ3To what extent does VOS improve F1-score and precision for minority class predictions in high-stakes applications like fraud detection and cancer diagnosis?
  • RQ4Does the use of a two-stage latent structure in the VAE enhance the quality and diversity of generated minority samples compared to standard VAEs?
  • RQ5How does the method generalize across different data modalities, such as tabular data and high-dimensional image data?

Key findings

  • On the fraud detection dataset, VOS+LR achieved an F1-score of 0.852 and precision of 0.802, significantly outperforming SMOTE+LR (F1: 0.852, precision: 0.105) and ADASYN+LR (F1: 0.852, precision: 0.035).
  • For the MLP classifier, VOS+MLP achieved an F1-score of 0.863 and precision of 0.830, surpassing SMOTE+MLP (F1: 0.852, precision: 0.236) and ADASYN+MLP (F1: 0.863, precision: 0.230).
  • In the random forest experiment, VOS+RF achieved an F1-score of 0.773 and precision of 0.667, outperforming SMOTE+RF (F1: 0.891, precision: 0.905) and ADASYN+RF (F1: 0.878, precision: 0.878), though RF without oversampling performed comparably.
  • On the BreakHis image dataset, VOS+CNN achieved an F1-score of 0.965 and accuracy of 0.943, significantly improving upon the baseline CNN (F1: 0.926, accuracy: 0.900).
  • The performance gain from VOS was most pronounced in precision and F1-score for logistic regression and MLP, indicating better minority class discrimination.
  • The use of sample_weight (set to 0.2 for synthetic data) had minimal impact on results, suggesting that the method is robust to class weighting adjustments.

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.