Improved Lung Disease Classification Using Bagging and Averaged Ensemble Models
Abstract
One of the essential medical imaging tasks for early diagnosis and treatment planning is categorizing lung diseases from chest X-ray (CXR) images. This work constructs a strong ensemble learning platform on a variety of deep models for boosting diagnosis performance to detect and identify lung disease. Three prtrianed CNN models InceptionV3, ResNet50, and EfficientNetV2M were trained on a CXR dataset, motivated by the complementary architectural features and the success demonstrated in medical imaging problems, such as chest X-rays. These three networks belong to different families of the CNNs and therefore make different contributions for diversity and stability in the ensemble. The models were then ensembled in two methods: averaging (soft voting) and bagging with hard voting (maximum bootstrap aggregation) in the first method. Various sets of pre-trained models were experimented with for the averaged ensemble. According to experimental results, the soft voting (averaged) ensemble between EfficientNetV2M and InceptionV3 performed better than the other models' combinations and achieved the highest accuracy of 93.00% in classification. This was followed by the combination of EfficientNetV2M and ResNet50 with an accuracy of 92.09%, then InceptionV3 and ResNet50 with a value of 91.75%, and the complete ensemble of the three models with an accuracy of 92.14%.The bagging hard voting strategy was somewhat with lower accuracy, but the InceptionV3 based bagging ensemble attained 90.56%, EfficientNetV2M attained 91.00%, and ResNet50 attained 88.00%. It is evident from the results that soft voting strategy, InceptionV3 and EfficientNetV2M ensemble provides the best optimal and stable classification performance among all the configurations that were attempted. The study proves that ensemble learning improves the accuracy of lung disease classification models, and choosing the right architectures is essential, with EfficientNetV2M and InceptionV3 showing improved performance, resulting in early diagnosis and improved patient outcomes.
Keywords
Full Text:
PDFReferences
M. H. Al-Sheikh, O. Al Dandan, A. S. Al-Shamayleh, H. A. Jalab, and R. W. Ibrahim, “Multi-class deep learning architecture for classifying lung diseases from chest X-Ray and CT images,” Sci Rep, vol. 13, no. 1, p. 19373, Nov. 2023, doi: 10.1038/s41598-023-46147-3.
K. Y. Win, N. Maneerat, S. Sreng, and K. Hamamoto, “Ensemble Deep Learning for the Detection of COVID-19 in Unbalanced Chest X-ray Dataset,” Applied Sciences, vol. 11, no. 22, p. 10528, Nov. 2021, doi: 10.3390/app112210528.
V. Ravi, V. Acharya, and M. Alazab, “A multichannel EfficientNet deep learning-based stacking ensemble approach for lung disease detection using chest X-ray images,” Cluster Comput, vol. 26, no. 2, pp. 1181–1203, Apr. 2023, doi: 10.1007/s10586-022-03664-6.
E. Kotei and R. Thirunavukarasu, “Ensemble Technique Coupled with Deep Transfer Learning Framework for Automatic Detection of Tuberculosis from Chest X-ray Radiographs,” Healthcare, vol. 10, no. 11, p. 2335, Nov. 2022, doi: 10.3390/healthcare10112335.
D. J. Rana and K. Rana, “SEMLCC: A Stacked Ensemble Model with Transfer Learning for High-Accuracy Lung Cancer Classification from CT Images,” Procedia Computer Science, vol. 258, pp. 2584–2596, 2025, doi: 10.1016/j.procs.2025.04.520.
Department of CSE, M.M. Engineering College, Maharishi Markandesh (Deemed to be University) Mullana, Ambala, India, K. Agrawal, R. Kumar, and S. Jain, “An Efficient Ensemble Model for Diagnosing Covid-19 and Pneumonia Using Chest X-Ray Images,” IJST, vol. 15, no. 38, pp. 1900–1906, Oct. 2022, doi: 10.17485/IJST/v15i38.1269.
Research Scholar, Instrumentation and Control Engineering, Gujarat Technological University, Gujarat, India, M. Patel, and M. Shah, “Deep Ensemble Learning Model for Diagnosis of Lung Diseases from Chest X -Ray Images,” IJST, vol. 17, no. 8, pp. 702–712, Feb. 2024, doi: 10.17485/IJST/v17i8.3151.
T. T. Ifty, S. A. Shafin, S. M. Shahriar, and T. Towhid, “Explainable Lung Disease Classification from Chest X-Ray Images Utilizing Deep Learning and XAI,” Apr. 17, 2024, arXiv: arXiv:2404.11428. doi: 10.48550/arXiv.2404.11428.
“ELREI: Ensemble Learning of ResNet, EfficientNet, and Inception-v3 for Lung Disease Classification based on Chest X-Ray Image,” IJIES, vol. 16, no. 5, pp. 149–161, Oct. 2023, doi: 10.22266/ijies2023.1031.14.
Y. H. Bhosale and K. S. Patnaik, “PulDi-COVID: Chronic obstructive pulmonary (lung) diseases with COVID-19 classification using ensemble deep convolutional neural network from chest X-ray images to minimize severity and mortality rates,” Biomedical Signal Processing and Control, vol. 81, p. 104445, Mar. 2023, doi: 10.1016/j.bspc.2022.104445.
N. K. Chowdhury, M. A. Kabir, M. M. Rahman, and N. Rezoana, “ECOVNet: An Ensemble of Deep Convolutional Neural Networks Based on EfficientNet to Detect COVID-19 From Chest X-rays,” PeerJ Computer Science, vol. 7, p. e551, May 2021, doi: 10.7717/peerj-cs.551.
S. Ali et al., “A Soft Voting Ensemble-Based Model for the Early Prediction of Idiopathic Pulmonary Fibrosis (IPF) Disease Severity in Lungs Disease Patients,” Life, vol. 11, no. 10, p. 1092, Oct. 2021, doi: 10.3390/life11101092.
R. R. Nair and T. Singh, “Exploring Ensemble Architectures for Lung X-Ray Multi-Class Image Classification using CNN-LSTM,” Procedia Computer Science, vol. 258, pp. 852–861, 2025, doi: 10.1016/j.procs.2025.04.317.
M. Abad, J. Casas-Roma, and F. Prados, “Generalizable disease detection using model ensemble on chest X-ray images,” Sci Rep, vol. 14, no. 1, p. 5890, Mar. 2024, doi: 10.1038/s41598-024-56171-6.
N. H. Pham and G. S. Tran, “Apply a CNN-Based Ensemble Model to Chest-X Ray Image-Based Pneumonia Classification,” JAIT, no. 11, pp. 1205–1214, 2024, doi: 10.12720/jait.15.11.1205-1214.
M. Abdullah, F. B. Abrha, B. Kedir, and T. Tamirat Tagesse, “A Hybrid Deep Learning CNN model for COVID-19 detection from chest X-rays,” Heliyon, vol. 10, no. 5, p. e26938, Mar. 2024, doi: 10.1016/j.heliyon.2024.e26938.
L. Devnath et al., “Deep Ensemble Learning for the Automatic Detection of Pneumoconiosis in Coal Worker’s Chest X-ray Radiography,” JCM, vol. 11, no. 18, p. 5342, Sep. 2022, doi: 10.3390/jcm11185342.
R. Kundu, R. Das, Z. W. Geem, G.-T. Han, and R. Sarkar, “Pneumonia detection in chest X-ray images using an ensemble of deep learning models,” PLoS ONE, vol. 16, no. 9, p. e0256630, Sep. 2021, doi: 10.1371/journal.pone.0256630.
A. K. Das, S. Ghosh, S. Thunder, R. Dutta, S. Agarwal, and A. Chakrabarti, “Automatic COVID-19 detection from X-ray images using ensemble learning with convolutional neural network,” Pattern Anal Applic, vol. 24, no. 3, pp. 1111–1124, Aug. 2021, doi: 10.1007/s10044-021-00970-4.
S. Rajaraman, S. Sornapudi, P. O. Alderson, L. R. Folio, and S. K. Antani, “Interpreting Deep Ensemble Learning through Radiologist Annotations for COVID-19 Detection in Chest Radiographs,” Jul. 16, 2020. doi: 10.1101/2020.07.15.20154385.
A. Tripathi, T. Singh, R. R. Nair, and P. Duraisamy, “Improving Early Detection and Classification of Lung Diseases With Innovative MobileNetV2 Framework,” IEEE Access, vol. 12, pp. 116202–116217, 2024, doi: 10.1109/ACCESS.2024.3440577.
H. A. Khater and S. A. Gamel, “Early diagnosis of respiratory system diseases (RSD) using deep convolutional neural networks,” J Ambient Intell Human Comput, vol. 14, no. 9, pp. 12273–12283, Sep. 2023, doi: 10.1007/s12652-023-04659-w.
M. Z. I. Noman, K. Sati, M. A. Yousuf, S. Aloteibi, and M. A. Moni, “LungCT-NET: An explainable transfer learning-based robust ensemble model for lung cancer diagnosis,” Knowledge-Based Systems, vol. 324, p. 113854, Aug. 2025, doi: 10.1016/j.knosys.2025.113854.
M. Thapa and R. Kaur, “An Explainable Deep – Learning based Multi-Label Image Classification for Chest X-Rays,” Procedia Computer Science, vol. 258, pp. 2425–2434, 2025, doi: 10.1016/j.procs.2025.04.505.
S. Rajaraman and S. K. Antani, “Modality-Specific Deep Learning Model Ensembles Toward Improving TB Detection in Chest Radiographs,” IEEE Access, vol. 8, pp. 27318–27326, 2020, doi: 10.1109/ACCESS.2020.2971257.
N. Ullah, M. Marzougui, I. Ahmad, and S. A. Chelloug, “DeepLungNet: An Effective DL-Based Approach for Lung Disease Classification Using CRIs,” Electronics, vol. 12, no. 8, p. 1860, Apr. 2023, doi: 10.3390/electronics12081860.
K. El Asnaoui and Y. Chawki, “Using X-ray images and deep learning for automated detection of coronavirus disease,” Journal of Biomolecular Structure and Dynamics, vol. 39, no. 10, pp. 3615–3626, Jul. 2021, doi: 10.1080/07391102.2020.1767212.
Md. N. Islam et al., “Interpretable Differential Diagnosis of Non-COVID Viral Pneumonia, Lung Opacity and COVID-19 Using Tuned Transfer Learning and Explainable AI,” Healthcare, vol. 11, no. 3, p. 410, Jan. 2023, doi: 10.3390/healthcare11030410.
A. Narin, C. Kaya, and Z. Pamuk, “Automatic detection of coronavirus disease (COVID-19) using X-ray images and deep convolutional neural networks,” Pattern Anal Applic, vol. 24, no. 3, pp. 1207–1220, Aug. 2021, doi: 10.1007/s10044-021-00984-y.
DOI: https://doi.org/10.31326/jisa.v8i2.2440
Refbacks
- There are currently no refbacks.
Copyright (c) 2025 Hana Ali Tayib, Azar Abid Salih

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
JOURNAL IDENTITY
Journal Name: JISA (Jurnal Informatika dan Sains)
e-ISSN: 2614-8404, p-ISSN: 2776-3234
Publisher: Program Studi Teknik Informatika Universitas Trilogi
Publication Schedule: June and December
Language: English
APC: The Journal Charges Fees for Publishing
Indexing: EBSCO , DOAJ, Google Scholar, Arsip Relawan Jurnal Indonesia, Directory of Research Journals Indexing, Index Copernicus International, PKP Index, Science and Technology Index (SINTA, S4) , Garuda Index
OAI address: http://trilogi.ac.id/journal/ks/index.php/JISA/oai
Contact: jisa@trilogi.ac.id
Sponsored by: DOI – Digital Object Identifier Crossref, Universitas Trilogi
In Collaboration With: Indonesian Artificial Intelligent Ecosystem(IAIE), Relawan Jurnal Indonesia, Jurnal Teknologi dan Sistem Komputer (JTSiskom)
JISA (Jurnal Informatika dan Sains) is Published by Program Studi Teknik Informatika, Universitas Trilogi under Creative Commons Attribution-ShareAlike 4.0 International License.















