Variational autoencoder‐guided data augmentation for imbalanced medical diagnostics
• A novel data augmentation strategy, combining variational autoencoders and particle swarm optimization, enhances cancer detection by generating synthetic samples strategically aligned with support vector machine decision margins. • The proposed technique delivers substantial gains in recall and F1-score, offering a robust solution for addressing class imbalance in medical diagnostics. • By focusing on augmentation near classification boundaries, the method enhances the model’s sensitivity to underrepresented classes. • The integration of variational autoencoders and particle swarm optimization enables the creation of realistic and diverse minority-class samples in complex, high-dimensional medical datasets, showing promise for advancing diagnostic accuracy. • This variational autoencoder-based, boundary-aware framework effectively mitigates imbalance-related performance issues in medical classification tasks, highlighting its value for real-world clinical applications. Class imbalance is a persistent challenge in medical classification tasks, where instances of disease are often underrepresented. To tackle this issue, we introduce a pioneering data augmentation framework that merges variational autoencoders (VAEs) with particle swarm optimization (PSO), guided by a support vector machine (SVM) margin function. Unlike traditional oversampling methods, such as SMOTE and its SVM-based extensions, which interpolate linearly in the input space, our method generates synthetic samples in a learned, low-dimensional latent space. This unique feature ensures that the augmented data is both diverse and semantically meaningful. The VAE captures a smooth latent representation of complex medical data. At the same time, PSO is used to identify latent points whose reconstructions lie near the SVM decision boundary, which are areas of high uncertainty critical for enhancing classifier robustness. A diversity-aware penalty in the PSO objective discourages redundancy and promotes coverage of the minority class distribution, mitigating mode collapse. By integrating generative modeling with discriminative margin-based guidance, the method generates synthetic data that extends beyond simple convex combinations, resulting in improved generalization. Experiments on two real-world cancer detection datasets show significant enhancements in classification performance. Using the proposed augmentation strategy, a random forest classifier achieved 92.11% accuracy and an F1-score of 88.75%, surpassing the baseline (89.47% accuracy, 84.62% F1) while maintaining a high precision of 98.61%. These results underscore the potential of our approach in boosting recall and overall model performance on imbalanced medical datasets, instilling optimism for its practical application.
Authors
- Fawaz Waselallah Alsaade (ORCID: https://orcid.org/0000-0003-3723-4532)
- Mohammed S. Al-zahrani (ORCID: https://orcid.org/0000-0002-9149-1604)
- Fuad E. Alsaadi (ORCID: https://orcid.org/0000-0001-6420-3948)
Institutions
- King Abdulaziz University (SA)
- King Faisal University (SA)
Publication Details
- Journal
- Results in Engineering
- Published
- 2025-08-30
- DOI
- https://doi.org/10.1016/j.rineng.2025.107011
- Citations
- 1
- Primary Topic
- Artificial Intelligence in Healthcare
- Type
- article
- Field-Weighted Citation Impact
- 2.94