Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
In domains such as medical imaging, fraud detection, and industrial fault diagnosis, class distributions are often highly imbalanced, with the minority class represented by only a few samples. This severe imbalance significantly impairs effective representation learning, as standard classifiers are dominated by the majority class and fail to capture discriminative features of rare categories. While methods like the Synthetic Minority Oversampling Technique (SMOTE) and conditional generative models perform reasonably well under moderate imbalance, their effectiveness deteriorates when the number of minority instances becomes extremely limited. In such scenarios, oversampling methods often lead to overfitting by duplicating data, whereas generative models are prone to mode collapse and lack diversity in generated samples, ultimately hindering meaningful representation learning.
To address this challenge, we propose the Batch-aware Modulated Generative Adversarial Network (BM-GAN), which is trained in two stages. First, a supervised autoencoder is pretrained using balanced mini-batches, wavelet convolutions, and a Convolutional Block Attention Module (CBAM) to encode multi-scale, class-specific structures. In the second stage, a conditional GAN inherits the decoder weights, leveraging the well-structured latent space to mitigate the risk of mode collapse. We evaluate BM-GAN on severely imbalanced versions of MNIST, FashionMNIST, and CIFAR-10, using four downstream classifiers. Our method is compared against several baselines, including conditional GAN (cGAN), Auxiliary Classifier GAN (ACGAN), Balancing GAN with gradient penalty (BAGAN-GP), and six sampling-based techniques.
Experimental results show that: (i) BM-GAN consistently generates minority class samples with superior fidelity and diversity across all imbalance levels; (ii) augmenting training sets with BM-GAN samples improves performance across all downstream classifiers; (iii) ablation studies demonstrate that removing any component—balanced mini-batches, wavelet convolutions, or CBAM—reduces sample quality, confirming the necessity of each; and (iv) while the improvements on CIFAR-10 are less pronounced compared to other datasets such as MNIST and Fashion-MNIST, BM-GAN still matches or outperforms classical oversampling methods in terms of overall accuracy and sample diversity.
These findings establish BM-GAN as a principled and modular framework for synthesizing realistic minority class samples under extreme imbalance, thereby enhancing the fairness and robustness of downstream classifiers.
2025. , p. 62