The Impact of Squeeze-and-Excitation Blocks on CNN Models and Transfer Learning for Pneumonia Classification Using Chest X-ray Images
DOI:
https://doi.org/10.29207/resti.v9i6.6693Keywords:
Pneumonia Classification, Chest X-ray Imaging, Squeeze-and-Excitation Block, Transfer Learning, Deep CNNAbstract
Pneumonia is one of the leading causes of death due to respiratory tract infections, especially in children and the elderly. Early detection using chest X-ray images is crucial to accelerate diagnosis and treatment, but manual interpretation is often subjective and error-prone. This study evaluates the effect of Squeeze-and-Excitation (SE) Block integration on the performance of a custom Convolutional Neural Network (CNN) model and three popular transfer learning architectures: MobileNetV2, VGG16, and InceptionV3 in X-ray image-based pneumonia classification. A dataset of 5,856 images, taken from Chest X-ray Images (Pneumonia) on Kaggle, was processed through preprocessing, undersampling, and augmentation. Each model was tested in two configurations: without and with SE Block. Evaluation was performed using accuracy, precision, recall, F1-score, and test loss metrics. The results show that SE Block integration improves the performance of most models. The accuracy of the custom CNN increased from 95.17% to 95.88%, MobileNetV2 from 97.18% to 97.59%, and VGG16 from 96.88% to 97.69%. InceptionV3 also saw an accuracy increase from 94.06% to 94.16%, although accompanied by an increase in test loss. SE Block proved effective in strengthening the model's emphasis on important features through an inter-channel recalibration mechanism, especially on efficient architectures like MobileNetV2 and complex models like VGG16. These findings support the development of a more accurate, efficient, and adaptive deep learning-based pneumonia diagnosis system, especially for implementation in healthcare facilities with limited resources.
Downloads
References
World Health Organization, “Pneumonia.” [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/pneumonia
Kementerian Kesehatan Republik Indonesia, “Profil Kesehatan Indonesia 2023.” [Online]. Available: https://kemkes.go.id/app_asset/file_content_download/172231123666a86244b83fd8.51637104.pdf
C. Gu and M. Lee, “Deep Transfer Learning Using Real-World Image Features for Medical Image Classification, with a Case Study on Pneumonia X-ray Images,” Bioengineering, vol. 11, no. 4, p. 406, Apr. 2024, doi: 10.3390/bioengineering11040406.
I. Mwendo, K. Gikunda, and A. Maina, “Deep transfer learning for detecting Covid-19, Pneumonia and Tuberculosis using CXR images -- A Review,” Mar. 26, 2023, arXiv: arXiv:2303.16754. doi: 10.48550/arXiv.2303.16754.
M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L.-C. Chen, “MobileNetV2: Inverted Residuals and Linear Bottlenecks,” in 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT: IEEE, Jun. 2018, pp. 4510–4520. doi: 10.1109/CVPR.2018.00474.
K. Simonyan and A. Zisserman, “Very Deep Convolutional Networks for Large-Scale Image Recognition,” Apr. 10, 2015, arXiv: arXiv:1409.1556. doi: 10.48550/arXiv.1409.1556.
C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna, “Rethinking the Inception Architecture for Computer Vision,” Dec. 11, 2015, arXiv: arXiv:1512.00567. doi: 10.48550/arXiv.1512.00567.
Z. Gao, Y. Tian, S.-C. Lin, and J. Lin, “A CT Image Classification Network Framework for Lung Tumors Based on Pre-trained MobileNetV2 Model and Transfer learning, And Its Application and Market Analysis in the Medical Field,” ACE, vol. 133, no. 1, pp. 90–96, Jan. 2025, doi: 10.54254/2755-2721/2025.20605.
S. Sharma and K. Guleria, “A Deep Learning based model for the Detection of Pneumonia from Chest X-Ray Images using VGG-16 and Neural Networks,” Procedia Computer Science, vol. 218, pp. 357–366, 2023, doi: 10.1016/j.procs.2023.01.018.
M. Mujahid, F. Rustam, R. Álvarez, J. Luis Vidal Mazón, I. D. L. T. Díez, and I. Ashraf, “Pneumonia Classification from X-ray Images with Inception-V3 and Convolutional Neural Network,” Diagnostics, vol. 12, no. 5, p. 1280, May 2022, doi: 10.3390/diagnostics12051280.
Y. Pan et al., “Fundus image classification using Inception V3 and ResNet-50 for the early diagnostics of fundus diseases,” Front. Physiol., vol. 14, p. 1126780, Feb. 2023, doi: 10.3389/fphys.2023.1126780.
M. Neshat, M. Ahmed, H. Askari, M. Thilakaratne, and S. Mirjalili, “Hybrid Inception Architecture with Residual Connection: Fine-tuned Inception-ResNet Deep Learning Model for Lung Inflammation Diagnosis from Chest Radiographs,” Procedia Computer Science, vol. 235, pp. 1841–1850, 2024, doi: 10.1016/j.procs.2024.04.175.
M. Ali et al., “Pneumonia Detection Using Chest Radiographs With Novel EfficientNetV2L Model,” IEEE Access, vol. 12, pp. 34691–34707, 2024, doi: 10.1109/ACCESS.2024.3372588.
R. Tamilkodi et al., “Automated Medical Image Classification for Disease Prognosis,” in Proceedings of the International Conference on Computational Innovations and Emerging Trends (ICCIET 2024), vol. 112, K. R. Madhavi, P. Subba Rao, J. Avanija, I. L. Manikyamba, and B. Unhelkar, Eds., in Advances in Computer Science Research, vol. 112. , Dordrecht: Atlantis Press International BV, 2024, pp. 1325–1334. doi: 10.2991/978-94-6463-471-6_127.
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, vol. 12, no. 13, p. 6448, Jun. 2022, doi: 10.3390/app12136448.
J. Zhou et al., “scSE-NL V-Net: A Brain Tumor Automatic Segmentation Method Based on Spatial and Channel ‘Squeeze-and-Excitation’ Network With Non-local Block,” Front. Neurosci., vol. 16, p. 916818, May 2022, doi: 10.3389/fnins.2022.916818.
S. Jiang, X. Chen, and C. Yi, “SSA‐UNet: Whole brain segmentation by U‐Net with squeeze‐and‐excitation block and self‐attention block from the 2.5D slice image,” IET Image Processing, vol. 18, no. 6, pp. 1598–1612, May 2024, doi: 10.1049/ipr2.13052.
G. Prasanna, J. R. Ernest, G. Lalitha, and S. Narayanan, “Squeeze Excitation Embedded Attention U-Net for Brain Tumor Segmentation,” in Emerging Electronics and Automation, vol. 1088, M. Gabbouj, S. S. Pandey, H. K. Garg, and R. Hazra, Eds., in Lecture Notes in Electrical Engineering, vol. 1088. , Singapore: Springer Nature Singapore, 2024, pp. 107–117. doi: 10.1007/978-981-99-6855-8_9.
J.-S. Kim et al., “E-HRNet: Enhanced Semantic Segmentation Using Squeeze and Excitation,” Electronics, vol. 12, no. 17, p. 3619, Aug. 2023, doi: 10.3390/electronics12173619.
K. A. Huang, A. Alkadri, and N. Prakash, “Employing Squeeze-and-Excitation Architecture in a Fine-Tuned Convolutional Neural Network for Magnetic Resonance Imaging Tumor Classification,” Cureus, vol. 17, no. 3, pp. 1–9, Mar. 2025, doi: 10.7759/cureus.80084.
Md. R. Hasan, S. M. Azmat Ullah, and S. Md. Rabiul Islam, “Recent advancement of deep learning techniques for pneumonia prediction from chest X-ray image,” Medical Reports, vol. 7, p. 100106, Oct. 2024, doi: 10.1016/j.hmedic.2024.100106.
R. Siddiqi and S. Javaid, “Deep Learning for Pneumonia Detection in Chest X-ray Images: A Comprehensive Survey,” J. Imaging, vol. 10, no. 8, p. 176, Jul. 2024, doi: 10.3390/jimaging10080176.
A. Roy, A. Bhattacharjee, D. Oliva, O. Ramos-Soto, F. J. Alvarez-Padilla, and R. Sarkar, “FA-Net: A Fuzzy Attention-aided Deep Neural Network for Pneumonia Detection in Chest X-Rays,” Jun. 21, 2024, arXiv: arXiv:2406.15117. doi: 10.48550/arXiv.2406.15117.
T. Borvornvitchotikarn and T. Yooyativong, “Combining convolutional neural networks and spatial-channel ‘squeeze and excitation’ block for multiple-label image classification,” IJ-AI, vol. 13, no. 1, p. 368, Mar. 2024, doi: 10.11591/ijai.v13.i1.pp368-374.
C.-T. Yen and C.-Y. Tsao, “Lightweight convolutional neural network for chest X-ray images classification,” Sci Rep, vol. 14, no. 1, p. 29759, Nov. 2024, doi: 10.1038/s41598-024-80826-z.
T. Sanida, M. V. Sanida, A. Sideris, and M. Dasygenis, “Optimizing Lung Condition Categorization through a Deep Learning Approach to Chest X-ray Image Analysis,” BioMedInformatics, vol. 4, no. 3, pp. 2002–2021, Sep. 2024, doi: 10.3390/biomedinformatics4030109.
M. Paul, “Chest X-Ray Images (Pneumonia),” Kaggle. [Online]. Available: https://www.kaggle.com/datasets/paultimothymooney/chest-xray-pneumonia/data
S. Saponara and A. Elhanashi, “Impact of Image Resizing on Deep Learning Detectors for Training Time and Model Performance,” in Applications in Electronics Pervading Industry, Environment and Society, vol. 866, S. Saponara and A. De Gloria, Eds., in Lecture Notes in Electrical Engineering, vol. 866. , Cham: Springer International Publishing, 2022, pp. 10–17. doi: 10.1007/978-3-030-95498-7_2.
R. Buettner, C. Mai, and P. Penava, “Improvement of Deep Learning Models Using Retinal Filter: A Systematic Evaluation of the Effect of Gaussian Filtering With a Focus on Industrial Inspection Data,” IEEE Access, vol. 13, pp. 43201–43217, 2025, doi: 10.1109/ACCESS.2025.3549271.
C. Mai, P. Penava, and R. Buettner, “A Novel Deep Learning-Based Approach for Defect Detection of Synthetic Leather Using Gaussian Filtering,” IEEE Access, vol. 12, pp. 196702–196714, 2024, doi: 10.1109/ACCESS.2024.3521497.
P. Ormeño-Arriagada, G. Márquez, D. Araya, C. Rimassa, and C. Taramasco, “Applying Machine Learning Sampling Techniques to Address Data Imbalance in a Chilean COVID-19 Symptoms and Comorbidities Dataset,” Applied Sciences, vol. 15, no. 3, p. 1132, Jan. 2025, doi: 10.3390/app15031132.
C. Yang, E. A. Fridgeirsson, J. A. Kors, J. M. Reps, and P. R. Rijnbeek, “Impact of random oversampling and random undersampling on the performance of prediction models developed using observational health data,” J Big Data, vol. 11, no. 1, p. 7, Jan. 2024, doi: 10.1186/s40537-023-00857-7.
R. S. Abdulsadig and E. Rodriguez-Villegas, “A comparative study in class imbalance mitigation when working with physiological signals,” Front. Digit. Health, vol. 6, p. 1377165, Mar. 2024, doi: 10.3389/fdgth.2024.1377165.
C. Yashvi, U. Vivek, B. Yamini, L. Nidhi, and R. Ravindra, “Data Augmentation Techniques applied to Medical Images,” International Journal of Research Publication and Reviews, vol. 5, no. 7, pp. 483–501, Jul. 2024.
M. Rohan, “Data Splitting (Train-Test-Validation) in Machine Learning.” [Online]. Available: https://medium.com/@rohanmistry231/data-splitting-train-test-validation-in-machine-learning-2d5d1927fa69
A. Surya, A. K. Shah, J. Kabore, and S. T. Sasikumar, “Enhanced Breast Cancer Tumor Classification using MobileNetV2: A Detailed Exploration on Image Intensity, Error Mitigation, and Streamlit-driven Real-time Deployment,” Dec. 2023, arXiv: arXiv:2312.03020. doi: 10.48550/arXiv.2312.03020.
M. Ilham, A. Prihantoro, I. K. Perdana, R. Magdalena, and S. Saidah, “Experimenting with the Hyperparameter of Six Models for Glaucoma Classification,” J. Ilm. Tek. Elektro Komput. Dan Inform, vol. 9, no. 3, pp. 571–584, Jul. 2023, doi: 10.26555/jiteki.v9i3.26331.
H. H. Zargar, S. H. Zargar, R. Mehri, and F. Tajdini, “Using VGG16 Algorithms for classification of lung cancer in CT scans Image,” May 2023, arXiv: arXiv:2305.18367. doi: 10.48550/arXiv.2305.18367.
A. Sharma and S. Arora, “Brain Tumor Detection using CNN and VGG-16 Model,” International Journal of Intelligent Systems and Applications in Engineering, vol. 12, no. 3, pp. 4203–4212, Mar. 2024.
A. Tharwat, “Classification assessment methods,” ACI, vol. 17, no. 1, pp. 168–192, Jan. 2021, doi: 10.1016/j.aci.2018.08.003.
Downloads
Published
Issue
Section
License
Copyright in each article belongs to the author
- The author acknowledges that the RESTI Journal (System Engineering and Information Technology) is the first publisher to publish with a license Creative Commons Attribution 4.0 International License.
- Authors can enter writing separately, arrange the non-exclusive distribution of manuscripts that have been published in this journal into other versions (eg sent to the author's institutional repository, publication in a book, etc.), by acknowledging that the manuscript has been published for the first time in the RESTI (Rekayasa Sistem dan Teknologi Informasi) journal ;





