Enhanced Cervical Cancer Prediction: Comparison of Machine Learning and Deep Learning on Imbalanced Data
Abstract
Cervical cancer remains one of the leading causes of cancer related mortality among women worldwide, with early and accurate detection being critical to improving patient survival outcomes. A fundamental challenge in building reliable predictive models is the severe class imbalance inherent in clinical datasets, where positive cases represent only a small fraction of the total records. This study presents a comparative evaluation of Random Forest and Multilayer Perceptron classifiers for cervical cancer risk prediction, employing the Synthetic Minority Oversampling Technique for Nominal features (SMOTE-N) to address class imbalance in a dataset. Model performance was evaluated using 5-fold cross validation across performance metrics. Prior to balancing, both models demonstrated critically limited clinical utility, with RF achieving only 7.27% sensitivity and MLP recording 0.00%. Following SMOTE-N application, RF sensitivity improved to 95.02% and MLP to 95.27%. In the post-balancing comparison, RF + SMOTE-N outperformed MLP + SMOTE-N, achieving accuracy of 96.45%, specificity of 97.88%, precision of 97.83%, and F-Measure of 96.40%, while MLP + SMOTE-N retained a marginal sensitivity advantage of 0.25%. These findings demonstrate that SMOTE-N is an essential preprocessing step for imbalanced nominal medical data, and that classical ensemble methods can outperform shallow deep learning architectures on small-to-medium structured clinical datasets. The complementary strengths of both models suggest a two-stage clinical deployment strategy, with MLP + SMOTE-N serving as a high-sensitivity first-line screening tool and RF + SMOTE-N as a high-precision confirmatory decision support system.