Classification of Pneumonia in X-Ray Images Using CNN ResNet50V2 with Transfer Learning

##plugins.themes.bootstrap3.article.main##

Muhammad Afian Anwar Yana Aditia Gerhana Undang Syaripudin

Abstract

The utilization of technology to build models that can classify pneumonia medical images automatically is needed for early diagnosis. This study aims to implement a Convolutional Neural Network (CNN) model with ResNet50V2 architecture that has been proven to have high accuracy in medical image classification. The model adopts a deep and efficient residual architecture, which facilitates deeper training of the model without suffering from vanishing gradient problem. This study went through four main stages: pneumonia and normal X-ray image data collection, data pre-processing (including set division, transformation, and augmentation), modeling using CNN with hyperparameter tuning, and model evaluation. Evaluation was performed using accuracy, F1-score, and Confusion Matrix metrics. The CNN model with ResNet50V2 as the backbone achieved 97% accuracy, showing excellent performance in differentiating between pneumonia and normal despite a small amount of misclassification. Although this model showed impressive results, challenges such as potential misclassification in cases with unclear or ambiguous images remain. Compared to previous approaches, this model offers advantages in accuracy and processing efficiency thanks to the use of a deeper and more sophisticated ResNet50V2. These advantages are expected to improve the precision of automated diagnosis in future medical applications.

##plugins.themes.bootstrap3.article.details##

Section
Articles
References
[1] S. A. Aljawarneh and R. Al-Quraan, “Pneumonia Detection Using Enhanced Convolutional Neural Network Model on Chest X-Ray Images.,” Big Data, p., 2023, doi: 10.1089/big.2022.0261.
[2] R. Bhuria, K. S. Gill, D. Upadhyay, and S. Devliyal, “Automated Pneumonia Detection from Chest X-Rays Using Convolutional Neural Networks: Advancements, Optimization, and Performance Analysis,” in 2024 2nd International Conference on Sustainable Computing and Smart Systems (ICSCSS), 2024, pp. 1360–1364. doi: 10.1109/ICSCSS60660.2024.10624988.
[3] S. Ramadasan, T. Manju, K. Vijayakumar, and S. Prabha, “Classification of Chest Radiographs into Normal and Pneumonia Class Using Fused Deep-Features,” in 2024 Ninth International Conference on Science Technology Engineering and Mathematics (ICONSTEM), 2024, pp. 1–6. doi: 10.1109/ICONSTEM60960.2024.10568776.
[4] A. Torres et al., “Pneumonia,” Dec. 01, 2021, Nature Research. doi: 10.1038/s41572-021-00259-0.
[5] M. R. Hasan, S. M. A. Ullah, and M. Hasan, “Deep Learning in Radiology:A Transfer-Learning Based Approach for the Identification and Classification of COVID-19 and Pneumonia in Chest X-ray Images,” in 2023 Fourth International Conference on Smart Technologies in Computing, Electrical and Electronics (ICSTCEE), 2023, pp. 1–6. doi: 10.1109/ICSTCEE60504.2023.10585226.
[6] K. K. L, R. Rajalakshmi, K. Ramalakshmi, A. Lakshmi, G. Subhashini, and G. Theivanathan, “Enhancing Pneumonia Detection Through Convolutional Neural Networks and Data Augmentation In Chest X-Ray Imaging,” in 2024 10th International Conference on Advanced Computing and Communication Systems (ICACCS), 2024, pp. 715–718. doi: 10.1109/ICACCS60874.2024.10717046.
[7] A. Mabrouk, R. P. D. Redondo, A. Dahou, M. A. Elaziz, and M. Kayed, “Pneumonia Detection on Chest X-ray Images Using Ensemble of Deep Convolutional Neural Networks,” Applied Sciences (Switzerland), vol. 12, no. 13, Jul. 2022, doi: 10.3390/app12136448.
[8] M. Singla, K. S. Gill, S. Malhotra, and S. Devliyal, “Chest X-ray Image Pneumonia Detection using Transfer Learning and Xception CNN Model,” in 2024 International Conference on Intelligent Systems for Cybersecurity (ISCS), 2024, pp. 1–5. doi: 10.1109/ISCS61804.2024.10581194.
[9] H. Liz, M. A. Sánchez-Montañés, A. Tagarro, S. Domínguez-Rodríguez, R. Dagan, and D. Camacho, “Ensembles of Convolutional Neural Network models for pediatric pneumonia diagnosis,” Future Gener. Comput. Syst., vol. 122, pp. 220–233, 2020, doi: 10.1016/j.future.2021.04.007.
[10] G. Vrbancic and V. Podgorelec, “Efficient ensemble for image-based identification of Pneumonia utilizing deep CNN and SGD with warm restarts,” Expert Syst. Appl., vol. 187, p. 115834, 2022, doi: 10.1016/j.eswa.2021.115834.
[11] V. Kant, “A Comprehensive CNN-based Approach to Pneumonia Detection,” in 2024 5th International Conference on Smart Electronics and Communication (ICOSEC), 2024, pp. 958–963. doi: 10.1109/ICOSEC61587.2024.10722467.
[12] A. A. Handoko, M. A. Rosid, and U. Indahyanti, “Implementasi Convolutional Neural Network (CNN) Untuk Pengenalan Tulisan Tangan Aksara Bima,” SMATIKA JURNAL, vol. 14, no. 01, pp. 96–110, Jul. 2024, doi: 10.32664/smatika.v14i01.1196.
[13] M. R. Kumar and B. G. Vani, “Implementation of Deep Learning Mechanisms for Detection and Classification of Pneumonia on Chest X-Ray Dataset,” in 2024 International Conference on Computational Intelligence for Green and Sustainable Technologies (ICCIGST), 2024, pp. 1–6. doi: 10.1109/ICCIGST60741.2024.10717560.
[14] I. M. Dendi Maysanjaya, “Klasifikasi Pneumonia pada Citra X-rays Paru-paru dengan Convolutional Neural Network (Classification of Pneumonia Based on Lung X-rays Images using Convolutional Neural Network),” 2020.
[15] J. Mantik, B. Imran, and L. Darmawan Bakti, “Implementation of Machine Learning Model for Pneumonia Classification Based on X-Ray Images,” 2021.
[16] Ahmad Naswin and Adityo Permana Wibowo, “Performance Analysis of the Decision Tree Classification Algorithm on the Pneumonia Dataset,” International Journal of Artificial Intelligence in Medical Issues, vol. 1, no. 1, pp. 1–9, May 2023, doi: 10.56705/ijaimi.v1i1.83.
[17] Dr. Sunil L. Bangare, Hrushikesh S. Rajankar, Pavan S. Patil, Karan V. Nakum, and Gopal S. Paraskar, “Pneumonia Detection and Classification using CNN and VGG16,” International Journal of Advanced Research in Science, Communication and Technology, pp. 771–779, May 2022, doi: 10.48175/ijarsct-3851.
[18] F. Antony, H. Irsyad, M. Ezar, and A. Rivan, “KNN Dan Gabor Filter Serta Wiener Filter Untuk Mendiagnosis Penyakit Pneumonia Citra X-RAY Pada Paru-Paru,” Jurnal Algoritme, vol. 1, no. 2, pp. 147–155, 2021.
[19] Lusiana, A. A. Kurniasari, and I. F. Kusumawati, “Enhancing Accuracy in the Detection of Pneumonia in Adult Patients: An Approach by Using Convolutional Neural Networks,” in Lecture Notes in Electrical Engineering, Springer Science and Business Media Deutschland GmbH, 2024, pp. 593–609. doi: 10.1007/978-981-97-1463-6_41.
[20] A. Hafidh, A. #1, A. Arifianto, K. Nur, and R. #3, “Pneumonia Classification from X-ray Images using Residual Neural Network OPEN ACCESS,” Journal on Computing, vol. 5, no. 2, pp. 43–54, 2020, doi: 10.21108/indojc.2020.5.2.454.
[21] M. Harahap, Em Manuel Laia, Lilis Suryani Sitanggang, Melda Sinaga, Daniel Franci Sihombing, and Amir Mahmud Husein, “Deteksi Penyakit Covid-19 Pada Citra X-Ray Dengan Pendekatan Convolutional Neural Network (CNN),” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 6, no. 1, pp. 70–77, Feb. 2022, doi: 10.29207/resti.v6i1.3373.
[22] W. Li et al., “Machine Learning Model of ResNet50-Ensemble Voting for Malignant–Benign Small Pulmonary Nodule Classification on Computed Tomography Images,” Cancers (Basel), vol. 15, no. 22, Nov. 2023, doi: 10.3390/cancers15225417.
[23] K. S. Gill, V. Anand, R. Chauhan, R. S. Rawat, and R. Gupta, “Kidney Disease X-Ray Image Classification Using a ResNet50V2 Model based Machine Learning Approach,” in 2023 2nd International Conference on Futuristic Technologies (INCOFT), 2023, pp. 1–5. doi: 10.1109/INCOFT60753.2023.10425099.