Heterogeneous Stacking Ensemble Learning With Catboost Meta-Learner For Explainable and Statistically Validated PCOS Classification From Clinical Tabular Data
Keywords:
polycystic ovary syndrome, stacking ensemble, machine learning, explainable artificial intelligence, McNemar’s test, class imbalance.Abstract
Polycystic Ovary Syndrome (PCOS) is a hormonal disorder among reproductive-aged women, with approximately 70% of cases going undiagnosed due to the intricacy of existing diagnostic criteria. In this study, we performed a statistically validated comparative analysis of six classifiers, Random Forest(RF), AdaBoost, XGBoost, Support Vector Machine(SVM), Multi-Layer Perceptron(MLP), and a novel two-level stacking ensemble, to distinguish between PCOS and non-PCOS cases using the Kaggle PCOS dataset (n = 541). The proposed stacking ensemble combines five heterogeneous base learners through a hyperparameter-optimized CatBoost meta-learner trained on out-of-fold predictions, with SMOTE applied to address class imbalance. The implementation of stratified 10-fold cross-validation in conjunction with McNemar's statistical test represents a significant contribution of this research, an approach that has not been consistently documented in earlier studies. Our results indicate that the proposed stacking ensemble is the most effective model, demonstrating a test accuracy of 93.58%, precision of 96.77%, F1-score of 89.55%, and an AUC-ROC of 0.9680. Furthermore, cross-validation yielded a mean AUC-ROC of 0.9875 ± 0.0111. McNemar's test corroborated the statistically significant superiority of the ensemble relative to both Random Forest and AdaBoost. Additionally, SHAP enabled global interpretability of the optimized XGBoost model, while LIME provided patient-specific explanations for the stacking ensemble, identifying follicle count, hirsutism, weight gain, skin darkening, and menstrual irregularity as critical predictors, establishing a robust foundation for explainable clinical decision-support systems.





