Exploring Ensemble Architectures on Lung X-Ray Multi-Class Image for Classification Using Convolutional Neural Network and Random Forest
DOI:
https://doi.org/10.52436/1.jutif.2026.7.2.5016Keywords:
Augmentation, Chest X-Ray, Convolutional Neural Network, Feature Extraction, MobileNet, Random ForestAbstract
The lungs are vital organs that play an important role in the respiratory and circulatory systems. Early detection of lung diseases through medical images, especially Chest X-Ray (CXR), is still a challenge due to the limited amount of data and complexity in image interpretation. This research aims to develop an effective image classification approach for lung disease detection by comparing two main methods: direct training using Convolutional Neural Network (CNN) and a hybrid method involving feature extraction from CNN model, feature selection using Chi-Square method, and classification using Random Forest algorithm.
To overcome data imbalance and increase variation, data augmentation techniques such as rotation, vertical and horizontal flipping, and zooming are used. Four popular CNN architectures are used in training, namely VGG16, ResNet-50, InceptionV3, and MobileNet. After training, features are extracted and stored in .csv format. Next, feature selection using the Chi-Square method and classification with Random Forest are performed.
The experimental results show that direct CNN training achieves high accuracy, with MobileNet reaching the highest performance at 98.83%. However, this approach requires significant computational resources and longer training time. In contrast, the hybrid method offers competitive accuracy with lower computational demands. The findings highlight the potential of combining deep learning and traditional machine learning to create efficient, accurate, and resource-friendly medical image classification systems. This research has significant implications for supporting early diagnosis of lung diseases, reducing diagnostic workload for medical professionals, and enabling the development of deployable AI-assisted healthcare solutions in resource-limited settings.
Downloads
References
E. Alqaissi, “A novel and ultralight convolutional neural network model for real-time detection of infectious lung diseases,” Digit Health, vol. 11, Jan. 2025, doi: 10.1177/20552076251318155.
I. Mwendo, K. Gikunda, and A. Maina, “Deep transfer learning for detecting Covid-19, Pneumonia and Tuberculosis using CXR images -- A Review,” Mar. 2023, [Online]. Available: http://arxiv.org/abs/2303.16754
D. Colombi et al., “Computer-Aided Evaluation of Interstitial Lung Diseases,” Apr. 01, 2025, Multidisciplinary Digital Publishing Institute (MDPI). doi: 10.3390/diagnostics15070943.
M. M. Kabir, M. F. Mridha, A. Rahman, M. A. Hamid, and M. M. Monowar, “Detection of COVID-19, pneumonia, and tuberculosis from radiographs using AI-driven knowledge distillation,” Heliyon, vol. 10, no. 5, Mar. 2024, doi: 10.1016/j.heliyon.2024.e26801.
P. K. Saha, S. A. Nadeem, and A. P. Comellas, “A survey on artificial intelligence in pulmonary imaging,” Nov. 01, 2023, John Wiley and Sons Inc. doi: 10.1002/widm.1510.
M. Mamalakis et al., “DenResCov-19: A deep transfer learning network for robust automatic classification of COVID-19, pneumonia, and tuberculosis from X-rays,” Apr. 2021, doi: 10.1016/j.compmedimag.2021.102008.
A. Al-Kababji, F. Bensaali, and S. P. Dakua, “Scheduling Techniques for Liver Segmentation: ReduceLRonPlateau Vs OneCycleLR,” Feb. 2022, [Online]. Available: http://arxiv.org/abs/2202.06373
K. Qazi Waqas, “A Machine Learning-based Method for COVID-19 and Pneumonia Detection,” IgMin Research, vol. 2, no. 7, pp. 518–523, Jul. 2024, doi: 10.61927/igmin211.
M. S. Sunarjo, H.-S. Gan, and D. R. I. M. Setiadi, “High-Performance Convolutional Neural Network Model to Identify COVID-19 in Medical Images,” Journal of Computing Theories and Applications, vol. 1, no. 1, pp. 19–30, Aug. 2023, doi: 10.33633/jcta.v1i1.8936.
A. Ait Nasser and M. A. Akhloufi, “A Review of Recent Advances in Deep Learning Models for Chest Disease Detection Using Radiography,” Jan. 01, 2023, Multidisciplinary Digital Publishing Institute (MDPI). doi: 10.3390/diagnostics13010159.
J. Garstka and M. Strzelecki, “Pneumonia detection in X-ray chest images based on convolutional neural networks and data augmentation methods,” in Signal Processing - Algorithms, Architectures, Arrangements, and Applications Conference Proceedings, SPA, IEEE Computer Society, Sep. 2020, pp. 18–23. doi: 10.23919/spa50552.2020.9241305.
S. K. Tiwari, S. Pratap Tomar, S. Swami, and S. Singh Parihar, “Covid-19 Diagnosis from Chest X-Ray Images using Transfer Learning and Data Augmentation,” 2024.
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 September, Sep. 2021, doi: 10.1371/journal.pone.0256630.
S. Pendhari, N. Pendhari, and S. Shroff, “Benchmarking Deep Learning Models for Automated MRI-based Brain Tumor Detection: In-Depth Analysis of CNN, VGG16, VGG19, ResNet-50, MobileNet, and InceptionV3,” 2024. [Online]. Available: https://www.kaggle.com/datasets/sartajbhuvaji/brain-tumor-
I. D. Mienye, T. G. Swart, G. Obaido, M. Jordan, and P. Ilono, “Deep Convolutional Neural Networks in Medical Image Analysis: A Review,” Mar. 01, 2025, Multidisciplinary Digital Publishing Institute (MDPI). doi: 10.3390/info16030195.
M. Caldwell, “Research on Medical Image Diagnosis Models Based on Convolutional Neural Networks,” 2025.
M. S. Al Reshan et al., “Detection of Pneumonia from Chest X-ray Images Utilizing MobileNet Model,” Healthcare (Switzerland), vol. 11, no. 11, Jun. 2023, doi: 10.3390/healthcare11111561.
Farhana Akter Sunny, S. S. Nakshi, M. Parbhez, and M. A. Rahaman, “COVID-19 Identification System from X-Ray Images of Chest using Deep Neural Network with Transfer Learning,” GUB Journal of Science and Engineering, vol. 10, no. 1, pp. 53–67, Jul. 2024, doi: 10.3329/gubjse.v10i1.74945.
K. He, X. Zhang, S. Ren, and J. Sun, “Deep Residual Learning for Image Recognition,” Dec. 2015, [Online]. Available: http://arxiv.org/abs/1512.03385
A. H. M. Linkon, M. M. Labib, T. Hasan, M. Hossain, and M. E. Jannat, “Deep learning in prostate cancer diagnosis and Gleason grading in histopathology images: An extensive study,” Jan. 01, 2021, Elsevier Ltd. doi: 10.1016/j.imu.2021.100582.
Y. Kumaran S, J. J. Jeya, R. Mahesh T, S. B. Khan, S. Alzahrani, and M. Alojail, “Explainable lung cancer classification with ensemble transfer learning of VGG16, Resnet50 and InceptionV3 using grad-cam,” BMC Med Imaging, vol. 24, no. 1, Dec. 2024, doi: 10.1186/s12880-024-01345-x.
A. Chanda, “An In-Depth Analysis of CIFAR-100 Using Inception v3,” 2025, doi: 10.13140/RG.2.2.30629.20969.
V. S. K. Tangudu, J. Kakarla, and I. B. Venkateswarlu, “COVID-19 detection from chest x-ray using MobileNet and residual separable convolution block,” Soft comput, vol. 26, no. 5, pp. 2197–2208, Mar. 2022, doi: 10.1007/s00500-021-06579-3.
A. G. Howard et al., “MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications,” Apr. 2017, [Online]. Available: http://arxiv.org/abs/1704.04861
E. Prasetyo, R. Purbaningtyas, R. D. Adityo, N. Suciati, and C. Fatichah, “Combining MobileNetV1 and Depthwise Separable convolution bottleneck with Expansion for classifying the freshness of fish eyes,” Information Processing in Agriculture, vol. 9, no. 4, pp. 485–496, Dec. 2022, doi: 10.1016/j.inpa.2022.01.002.
S. Velu, “An efficient, lightweight MobileNetV2-based fine-tuned model for COVID-19 detection using chest X-ray images,” Mathematical Biosciences and Engineering, vol. 20, no. 5, pp. 8400–8427, 2023, doi: 10.3934/mbe.2023368.
A. Narin, C. Kaya, and Z. Pamuk, “Automatic detection of coronavirus disease (COVID-19) using X-ray images and deep convolutional neural networks,” Pattern Analysis and Applications, vol. 24, no. 3, pp. 1207–1220, Aug. 2021, doi: 10.1007/s10044-021-00984-y.
I. D. Apostolopoulos and T. A. Mpesiana, “Covid-19: automatic detection from X-ray images utilizing transfer learning with convolutional neural networks,” Phys Eng Sci Med, vol. 43, no. 2, pp. 635–640, Jun. 2020, doi: 10.1007/s13246-020-00865-4.
Y. Hadhoud et al., “From Binary to Multi-Class Classification: A Two-Step Hybrid CNN-ViT Model for Chest Disease Classification Based on X-Ray Images,” Diagnostics, vol. 14, no. 23, Dec. 2024, doi: 10.3390/diagnostics14232754.
Additional Files
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Devin Garmenta Nuriansyah, Putu Desiana Wulaning Ayu, Dandy Pramana Hostiadi

This work is licensed under a Creative Commons Attribution 4.0 International License.





