A Comparative Study of Feature Selection in Machine Learning for Survey-Based Lung Cancer Classification Utilizing SHAP

Lung Cancer Feature Selection machine learning XAI SHAP

Authors

June 17, 2026
August 20, 2026
November 19, 2026

Downloads

Lung cancer is a fatal malignancy requiring early detection. While machine learning aids in diagnosis using survey data, existing studies frequently suffer from extreme class imbalance and methodological flaws, specifically data leakage during feature selection, leading to optimistically biased performance. This study aims to determine the most robust feature selection and classification methodology for lung cancer prediction while strictly eliminating information leakage and addressing class imbalance. Duplicate entries were removed from a 309-record survey dataset, resulting in 276 unique patients (86.23% positive, 13.77% negative). An unbiased evaluation framework was established using Nested Stratified 10-Fold Cross-Validation. Within this architecture, nine classifiers were optimized across five dynamic feature selection techniques (ANOVA + Chi-Square, Forward Selection, Backward Elimination, Mutual Information Gain, and Recursive Feature Elimination) strictly within the inner training loops. The K-Nearest Neighbors algorithm paired with Recursive Feature Elimination (KNN-RFE) achieved the highest overall predictive accuracy (91.28% ± 4.91%) and F1-score (95.02% ± 2.81%). However, Logistic Regression optimized with Backward Elimination (LR-BE) demonstrated superior stability in the presence of skewed data, achieving the highest balanced accuracy (89.95% ± 8.42%) and precision (98.25% ± 2.85%). Additionally, SHAP (SHapley Additive exPlanations) analysis was integrated, transparently identifying 'Swallowing Difficulty' and 'Coughing' as the most critical predictive biomarkers. In practice, KNN-RFE is recommended for maximizing overall diagnostic discrimination, whereas LR-BE is strictly preferred for handling severe class imbalances to minimize false positives. The rigorous nested validation ensures these metrics reflect realistic clinical generalization rather than algorithmic overfitting. Furthermore, the SHAP integration provides necessary transparency, translating complex predictive pathways into interpretable, evidence-based screening insights for healthcare professionals.

How to Cite

Budiman, I., Rahmawati, N. P., Rizqiana, A., & Rafi'e, R. (2026). A Comparative Study of Feature Selection in Machine Learning for Survey-Based Lung Cancer Classification Utilizing SHAP. Indonesian Journal of Electronics, Electromedical Engineering, and Medical Informatics, 8(4), 633-651. https://doi.org/10.35882/ijeeemi.v8i4.367

Most read articles by the same author(s)

Similar Articles

21-30 of 101

You may also start an advanced similarity search for this article.