Pneumonia Detection from Chest X-ray Images using Convolutional Neural Networks and Transfer Learning Techniques

Main Article Content

Pongsathorn Chedsom
https://orcid.org/0009-0001-3919-256X

Abstract

According to data from the Bureau of Epidemiology, between January 1 and October 31, 2023, a total of 239,197 cases of pneumonia or lung inflammation were reported. Over the past five years (2018–2022), the average number of cases was approximately 20,000 per month, with a continuously increasing trend. Early detection and treatment of pneumonia can significantly reduce mortality rates. This study proposes a classification model for pneumonia based on chest X-ray images using Convolutional Neural Networks (CNNs), specifically the VGG16 and VGG19 architectures, in conjunction with the transfer learning technique. The Chest X-Ray Images (Pneumonia) dataset, consisting of 5,232 images (4,273 pneumonia cases and 1,583 normal cases), was used. Data augmentation techniques were applied, and the dataset was divided into 70% training, 20% validation, and 10% testing sets. The experiments were divided into two groups: Group 1 employed the VGG16 and VGG19 architectures, while Group 2 utilized these architectures with transfer learning and customized Fully Connected (FC) layers. In Group 1, the VGG16 achieved an accuracy of 95.42% with a loss value of 0.18, while VGG19 achieved an accuracy of 94.89% with a loss of 0.21. In Group 2, the best performance was achieved using the VGG16 architecture with customized fully connected (FC) layers, consisting of nine layers with 2048, 1024, 512, 256, 128, 64, 32, 16, and 8 nodes, respectively. This configuration achieved the highest accuracy of 97.83% and the lowest loss of 0.11. Compared to the VGG16, the model achieved a 2.41% improvement in accuracy and a 0.07 reduction in loss. When compared to the unmodified VGG19, accuracy improved by 2.94% and loss decreased by 0.10.

Article Details

How to Cite
Chedsom, P. (2025). Pneumonia Detection from Chest X-ray Images using Convolutional Neural Networks and Transfer Learning Techniques. Journal of Applied Informatics and Technology, 7(2), 406–431. https://doi.org/10.14456/jait.2025.25
Section
Research Article

References

Cherdsom, P., & Kanarkard, W. (2023). Analysis of student engagement in online classroom using convolutional neural networks (CNN). ECTI Transaction on Application Research and Development, 3(3), 39-52. https://doi.org/10.37936/ectiard.2023-3-3.250499 [In Thai]

Chiwariro, R., & Wosowei, J. B. (2023). comparative analysis of deep learning convolutional neural networks based on transfer learning for pneumonia detection. International Journal for Research in Applied Science and Engineering Technology, 11(1), 1161–1170. https://doi.org/10.22214/ijraset.2023.48685

Chouhan, V., Singh, S. K., Khamparia, A., Gupta, D., Tiwari, P., Moreira, C., Damaševičius, R., & de Albuquerque, V. H. C. (2020). A novel transfer learning based approach for pneumonia detection in chest X-ray images. Applied Sciences, 10(2), 559. https://doi.org/10.3390/app10020559

Department of Disease Control. (2022). Pneumonia. Retrieved 6 December 2023, from https://ddc.moph.go.th/disease_detail.php?d=21 [In Thai]

Department of Disease Control. (2023). prevention of diseases and health hazards during the winter season in Thailand, 2023. Retrieved 6 December 2023, from https://ddc.moph.go.th/uploads/publish/1501520231123052757.pdf [In Thai]

Iman, M., Arabnia, H. R., & Rasheed, K. (2023). A review of deep transfer learning and recent advancements. Technologies, 11(2), 40. https://doi.org/10.3390/technologies11020040

Karen, S. & Andrew, Z. (2015). very deep convolutional networks for large-scale image recognition. The International Conference on Learning Representations (ICLR). https://doi.org/10.48550/arXiv.1409.1556

Kermany, D., Zhang, K., & Goldbaum, M. (2018). Labeled optical coherence tomography (OCT) and chest X-ray images for classification [Data set]. Mendeley Data. https://data.mendeley.com/datasets/rscbjbr9sj/2

Mabrouk, A., Díaz Redondo, R. P., Dahou, A., Abd Elaziz, M., & Kayed, M. (2022). Pneumonia detection on chest X-ray images using ensemble of deep convolutional neural networks. Applied Sciences, 12(13), 6448. https://doi.org/10.3390/app12136448

Papadimitriou, O., Kanavos, A., & Maragoudakis, M. (2023). automated pneumonia detection from chest X-ray images using deep convolutional neural networks. 2023 14th International Conference on Information, Intelligence, Systems & Applications (IISA), 1–4. https://doi.org/10.1109/iisa59645.2023.10345859

Racic, L., Popovic, T., Cakic, S., & Sandi, S. (2021). pneumonia detection using deep learning based on convolutional neural network. 2021 25th International Conference on Information Technology (IT), 1–4. https://doi.org/10.1109/it51528.2021.9390137

Sengupta, S., Basak, S., Saikia, P., Paul, S., Tsalavoutis, V., Atiah, F., Ravi, V., & Peters, A. (2020). A review of deep learning with special emphasis on architectures, applications and recent trends. Knowledge-Based Systems, 194, 105596. https://doi.org/10.1016/j.knosys.2020.105596

Shankar, A. P., Shah, S., Ghosh, S., Ismail, Z., M, V., J, J., & S, D. (2023). Comparative performance analysis of machine learning and deep learning techniques in pneumonia detection: A study. 2023 14th International Conference on Computing Communication and Networking Technologies (ICCCNT), 1–8. https://doi.org/10.1109/icccnt56998.2023.10306711

Singh, S., Kumar, M., Kumar, A., Verma, B. K., & Shitharth, S. (2023a). Pneumonia detection with QCSA network on chest X-ray. Scientific Reports, 13(1). https://doi.org/10.1038/s41598-023-35922-x

Singh, S., Singh Rawat, S., Gupta, M., K. Tripathi, B., Alanzi, F., Majumdar, A., Khuwuthyakorn, P., & Thinnukool, O. (2023b). Deep attention network for pneumonia detection using chest X-ray images. Computers, Materials & Continua, 74(1), 1673–1691. https://doi.org/10.32604/cmc.2023.032364

Varshni, D., Thakral, K., Agarwal, L., Nijhawan, R., & Mittal, A. (2019). Pneumonia detection using CNN based feature extraction. 2019 IEEE International Conference on Electrical, Computer and Communication Technologies (ICECCT), 1–7. https://doi.org/10.1109/icecct.2019.8869364

Zhang, D., Ren, F., Li, Y., Na, L., & Ma, Y. (2021). pneumonia detection from chest X-ray images based on convolutional neural network. Electronics, 10(13), 1512. https://doi.org/10.3390/electronics10131512