Optimized Machine Learning Pipeline for Lung Cancer Classification: Feature Reduction and Hyperparameter Tuning
Open Access
- 17 April 2026
- journal article
- research article
- Published by MDPI AG in Diagnostics
- Vol. 16 (8) , 1198
Abstract
Background: Lung cancer remains one of the leading causes of cancer-related mortality worldwide, primarily due to late diagnosis. Although machine learning (ML) techniques have been widely applied for lung cancer classification, many studies lack a fully optimized end-to-end pipeline using routine clinical data. This study proposes an optimized ML framework that integrates demographic, lifestyle, and clinical features with systematic hyperparameter tuning to improve classification performance. Methods: A dataset of 309 patient records containing demographic, lifestyle, and clinical attributes was used. The data were preprocessed and split into training and testing sets in an 80:20 ratio. Feature selection was performed using metaheuristic algorithms, including Red Deer Optimization, Binary Grasshopper Optimization, Gray Wolf Optimization, and Bee Colony Optimization. Six ML classifiers—Logistic Regression, Support Vector Classifier, Gradient Boosting, Random Forest, K-Nearest Neighbors, and Gaussian Naive Bayes—were trained with optimized hyperparameters. Model performance was evaluated using accuracy, precision, recall, F1-score, and ROC–AUC. Results: The optimized pipeline significantly improved classification performance. Logistic Regression achieved the highest accuracy of 91.07% with an AUC of 0.91, outperforming more complex ensemble models. Gradient Boosting and Random Forest both achieved an accuracy of 87.5%, while other classifiers demonstrated moderate performance. Conclusions: The proposed optimized ML pipeline enhances lung cancer classification accuracy using routine clinical data. The results highlight that simpler, well-optimized models can outperform complex approaches on structured datasets. This framework shows strong potential for early lung cancer risk screening and clinical decision support, although further validation on larger datasets is recommended.Keywords
Funding Information
- Imam Mohammad Ibn Saud Islamic University (IMSIU-DDRSP2601)
This publication has 44 references indexed in Scilit:
- Multi-spatial channel attention and inceptionv3-based CAD system with optimized MLP for lung cancer detectionJournal of Computer-Aided Molecular Design, 2026
- Digital Biomarkers for Precision Early Detection of Lung Cancer: Integrating AI ‐Driven Multi‐Omics Into Clinical PathwaysCancer Medicine, 2026
- Enhanced genetic algorithm-optimized deep learning features for lung cancer classificationAlexandria Engineering Journal, 2025
- A critical review of explainable deep learning in lung cancer diagnosisArtificial Intelligence Review, 2025
- Meta‐Heuristic Optimization for the Multi‐Classification of Chronic Disease: A Review With Machine Learning PerspectivesWIREs Data Mining and Knowledge Discovery, 2025
- Advancements in Hybrid Machine Learning Models for Biomedical Disease Classification Using Integration of Hyperparameter-Tuning and Feature Selection Methodologies: A Comprehensive ReviewArchives of Computational Methods in Engineering, 2025
- Advanced prediction and classification of pulmonary emphysema in COPD using deep graph convolutional neural network with improved weighted quantum ant bee optimization for CT-based diagnosisIran Journal of Computer Science, 2025
- A Novel Assessment of Lung Cancer Classification System Using Binary Grasshopper with Artificial Bee Optimisation Algorithm with Double Deep Neural Network ClassifierJournal of The Institution of Engineers (India): Series B, 2024
- Enhancing lung cancer prediction through crow search, artificial bee colony algorithms, and support vector machineInternational Journal of Information Technology, 2024
- Deep learning neural network for lung cancer classification: enhanced optimization functionMultimedia Tools and Applications, 2022