A hybrid LSTM-GRU framework for lung cancer classification using GWO-WOA algorithm for hyperparameter tuning and BPSO for feature selection

Early identification of lung cancer using questionnaire-based data offers a low-cost, non-invasive pathway to assist clinical decision-making. However, such datasets often contain redundant, noisy, and imbalanced attributes that limit the performance of traditional classifiers. This study introduces a hybrid LSTM-GRU framework optimized using a Grey Wolf-Whale Optimization (GWO-WOA) algorithm for hyperparameter tuning and Binary Particle Swarm Optimization (BPSO) for feature selection. Two public lung cancer datasets sourced from the Kaggle repository were employed: the first comprising 309 samples and the second containing 3000 samples. For both datasets, the preprocessing pipeline included missing-value imputation, categorical encoding, outlier removal, and z-score normalization to ensure feature consistency. Datasets were then split into 70%, 20%, and 10% subsets for training, validation, and testing, respectively. BPSO effectively selected the most informative features that contribute to accurate diagnosis. At the same time, GWO-WOA refined key hyperparameters, such as the learning rate, hidden units, and layer depth, of the hybrid architecture. Experimental results demonstrate the superior performance of the proposed GWO-WOA-LSTM-GRU model, achieving 100.00% accuracy, precision, recall, and F1-score on the 309-sample dataset, and 99.33% accuracy/F1 (precision: 99.34%, recall: 99.33%) on the 3000-sample dataset. In comparison, tuned single models-LSTM, GRU, CNN, and SVM-achieved accuracies ranging from 77.42 to 98.33%. These findings confirm that integrating metaheuristic optimization and hybrid recurrent networks enhances the robustness and generalization capabilities of lung cancer classification systems across diverse datasets, offering a reliable tool for early detection and clinical risk stratification.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-02-13
DOI
https://doi.org/10.1038/s41598-026-39020-6
Primary Topic
Lung Cancer Diagnosis and Treatment
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A hybrid LSTM-GRU framework for lung cancer classification using GWO-WOA algorithm for hyperparameter tuning and BPSO for feature selection

Yasser Fouad, Ahmed M. Elshewey, Mohmod M. Sh. Amrir, Yasser M. Ayid
Scientific Reports
Lung Cancer Diagnosis and Treatment
article

A hybrid LSTM-GRU framework for lung cancer classification using GWO-WOA algorithm for hyperparameter tuning and BPSO for feature selection

Yasser Fouad, Ahmed M. Elshewey, Mohmod M. Sh. Amrir, Yasser M. Ayid
article en

Abstract

Early identification of lung cancer using questionnaire-based data offers a low-cost, non-invasive pathway to assist clinical decision-making. However, such datasets often contain redundant, noisy, and imbalanced attributes that limit the performance of traditional classifiers. This study introduces a hybrid LSTM-GRU framework optimized using a Grey Wolf-Whale Optimization (GWO-WOA) algorithm for hyperparameter tuning and Binary Particle Swarm Optimization (BPSO) for feature selection. Two public lung cancer datasets sourced from the Kaggle repository were employed: the first comprising 309 samples and the second containing 3000 samples. For both datasets, the preprocessing pipeline included missing-value imputation, categorical encoding, outlier removal, and z-score normalization to ensure feature consistency. Datasets were then split into 70%, 20%, and 10% subsets for training, validation, and testing, respectively. BPSO effectively selected the most informative features that contribute to accurate diagnosis. At the same time, GWO-WOA refined key hyperparameters, such as the learning rate, hidden units, and layer depth, of the hybrid architecture. Experimental results demonstrate the superior performance of the proposed GWO-WOA-LSTM-GRU model, achieving 100.00% accuracy, precision, recall, and F1-score on the 309-sample dataset, and 99.33% accuracy/F1 (precision: 99.34%, recall: 99.33%) on the 3000-sample dataset. In comparison, tuned single models-LSTM, GRU, CNN, and SVM-achieved accuracies ranging from 77.42 to 98.33%. These findings confirm that integrating metaheuristic optimization and hybrid recurrent networks enhances the robustness and generalization capabilities of lung cancer classification systems across diverse datasets, offering a reliable tool for early detection and clinical risk stratification.

Scientific ReportsVol. 16(1)
Suez University (EG), Applied Science Private University (JO), University of Jeddah (SA)
University of Jeddah
Peace, Justice and strong institutions
Openalex Percentile: Top 60%
Lung Cancer Diagnosis and Treatment
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.