A Comparative Study of Feature Selection in Machine Learning for Survey-Based Lung Cancer Classification Utilizing SHAP
Year: 2026
Type: article
Abstract: 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.
Institution: Lambung Mangkurat University
Language: English
Subfield: Health Information Management
Field: Health Professions
Domain: Health Sciences
Open Access status: diamond
OpenAlex ID: W7236842310
