Submitted:
06 June 2025
Posted:
06 June 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Related Work
3. Pneumonia Classification and Recognition Model
3.1. Transfer Learning
3.2. Mathematical Principles of Three Models
3.2.1. VGG16
3.2.2. MobileNet
| Layer | Type | Parameters | Input | Output | Activate |
| 1 | Convolutional | 3×3, 32 filters, stride=2, padding=same | 224×224×3 | 112×112×32 | ReLU |
| 2 | Depthwise + Pointwise | Depthwise: 3×3, stride=1 Pointwise: 1×1, 64 filters |
112×112×32 | 112×112×64 | ReLU |
| 3 | Depthwise + Pointwise | Depthwise: 3×3, stride=2 Pointwise: 1×1, 128 filters |
112×112×64 | 56×56×128 | ReLU |
| 4 | Depthwise + Pointwise | Depthwise: 3×3, stride=1 Pointwise: 1×1, 128 filters |
56×56×128 | 56×56×128 | ReLU |
| 5 | Depthwise + Pointwise | Depthwise: 3×3, stride=2 Pointwise: 1×1, 256 filters |
56×56×128 | 28×28×256 | ReLU |
| 6 | Depthwise + Pointwise | Depthwise: 3×3, stride=1 Pointwise: 1×1, 256 filters |
28×28×256 | 28×28×256 | ReLU |
| 7 | Depthwise + Pointwise | Depthwise: 3×3, stride=2 Pointwise: 1×1, 512 filters |
28×28×256 | 14×14×512 | ReLU |
| 8-12 | Depthwise + Pointwise | Depthwise: 3×3, stride=1 Pointwise: 1×1, 512 filters |
14×14×512 | 14×14×512 | ReLU |
| 13 | Depthwise + Pointwise | Depthwise: 3×3, stride=2 Pointwise: 1×1, 1024 filters |
14×14×512 | 7×7×1024 | ReLU |
| 14 | Depthwise + Pointwise | Depthwise: 3×3, stride=2 Pointwise: 1×1, 1024 filters |
7×7×1024 | 4×4×1024 | ReLU |
| 15 | Average Pooling | 4×4, stride=4 | 4×4×1024 | 1×1×1024 | - |
| 16 | Fully Connected | 1000 units | 1×1×1024 | 1000 | Softmax |
3.2.3. Resnet152
| LAYER | TYPE | PARAMETERS | INPUT | OUTPUT | ACTIVATE |
| 1 | Convolutional | 7×7, 64 filters, stride=2, padding=same | 224×224×3 | 112×112×64 | 2 |
| 2 | Max Pooling | 3×3, stride=2, padding=same | 112×112×64 | 56×56×64 | 2 |
| 3-4 | Residual Block (×3) | 3×3, 64 filters, stride=1 | 56×56×64 | 56×56×64 | 1 |
| 5-14 | Residual Block (×4) | 3×3, 128 filters, stride=2 (first block) | 56×56×64 | 28×28×128 | 2/1 |
| 15-34 | Residual Block (×6) | 3×3, 256 filters, stride=2 (first block) | 28×28×128 | 14×14×256 | 2/1 |
| 35-50 | Residual Block (×3) | 3×3, 512 filters, stride=2 (first block) | 14×14×256 | 7×7×512 | 2/1 |
| 51 | Average Pooling | 7×7, stride=1 | 7×7×512 | 1×1×512 | 1 |
| 52 | Fully Connected | 1000 units | 1×1×512 | 1000 | - |
4. Results
4.1. Dataset

4.2. Comparison and Analysis of Results
4.2.1. VGG16
| Precision | Recall | F1-score | Support | |
| Covid | 0.93 | 1.00 | 0.96 | 26 |
| Normal | 0.68 | 0.85 | 0.76 | 20 |
| Viral Pneumonia | 0.77 | 0.50 | 0.61 | 20 |
|
Accuracy |
0.80 |
66 |
||
| Macro avg | 0.79 | 0.78 | 0.77 | 66 |
| Weighted avg | 0.80 | 0.80 | 0.79 | 66 |


4.2.2. MobileNet
| Precision | Recall | F1-score | Support | |
| Covid | 1.00 | 0.50 | 0.67 | 26 |
| Normal | 0.83 | 0.50 | 0.62 | 20 |
| Viral Pneumonia | 0.49 | 1.00 | 0.66 | 20 |
|
Accuracy |
0.65 |
66 |
||
| Macro avg | 0.77 | 0.67 | 0.65 | 66 |
| Weighted avg | 0.79 | 0.65 | 0.65 | 66 |
4.2.3. Resnet152
| Precision | Recall | F1-score | Support | |
| Covid | 1.00 | 1.00 | 1.00 | 26 |
| Normal | 0.74 | 1.00 | 0.85 | 20 |
| Viral Pneumonia | 1.00 | 0.65 | 0.79 | 20 |
|
Accuracy |
0.89 |
66 |
||
| Macro avg | 0.91 | 0.88 | 0.88 | 66 |
| Weighted avg | 0.92 | 0.89 | 0.89 | 66 |


5. Conclusions
References
- Mani C, S. Acute pneumonia and its complications. Principles and practice of pediatric infectious diseases 2017, 238. [Google Scholar]
- Abdelrahman Z, Li M, Wang X. Comparative review of SARS-CoV-2, SARS-CoV, MERS-CoV, and influenza a respiratory viruses. Frontiers in immunolog 2020, 11, 552909. [CrossRef] [PubMed]
- Garg, M.; Prabhakar, N.; Kiruthika, P.; Agarwal, R.; Aggarwal, A.; Gulati, A.; Khandelwal, N. Imaging of Pneumonia: An Overview. Curr. Radiol. Rep. 2017, 5, 1–14. [Google Scholar] [CrossRef]
- Miotto R, Wang F, Wang S, et al. Deep learning for healthcare: review, opportunities and challenges. Briefings in bioinformatics 2018, 19, 1236–1246. [CrossRef] [PubMed]
- Siddiqi, R.; Javaid, S. Deep Learning for Pneumonia Detection in Chest X-ray Images: A Comprehensive Survey. J. Imaging 2024, 10, 176. [Google Scholar] [CrossRef] [PubMed]
- Simonyan K, Zisserman A. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556,.
- Howard A G, Zhu M, Chen B, et al. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv 2017, arXiv:1704.04861.
- He K, Zhang X, Ren S, et al. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2016; pp. 770-778.
- Salehi, A.W.; Khan, S.; Gupta, G.; Alabduallah, B.I.; Almjally, A.; Alsolai, H.; Siddiqui, T.; Mellit, A. A Study of CNN and Transfer Learning in Medical Imaging: Advantages, Challenges, Future Scope. Sustainability 2023, 15, 5930. [Google Scholar] [CrossRef]
- Kundu, R.; Das, R.; Geem, Z.W.; Han, G.-T.; Sarkar, R.; Damaševičius, R. Pneumonia detection in chest X-ray images using an ensemble of deep learning models. PLOS ONE 2021, 16, e0256630. [Google Scholar] [CrossRef] [PubMed]
- Bai W, Suzuki H, Qin C, et al. Recurrent neural networks for aortic image sequence segmentation with sparse annotations. In Proceedings of the Medical Image Computing and Computer Assisted Intervention–MICCAI 2018: 21st International Conference, Granada, Spain, 16–20 September 2018. Proceedings, Part IV 11. Springer International Publishing, 2018: pp. 586-594.
- Jha D, Riegler M A, Johansen D, et al. Doubleu-net: A deep convolutional neural network for medical image segmentation. In Proceedings of the 2020 IEEE 33rd International symposium on computer-based medical systems (CBMS), IEEE, 2020, pp. 558-564.
- Gang, L.; Haixuan, Z.; Linning, E.; Ling, Z.; Yu, L.; Juming, Z. Recognition of honeycomb lung in CT images based on improved MobileNet model. Med Phys. 2021, 48, 4304–4315. [Google Scholar] [CrossRef] [PubMed]
- Roy P, Chisty M M O, Fattah H M A. Alzheimer’s disease diagnosis from MRI images using ResNet-152 Neural Network Architecture. In Proceedings of the 2021 5th International Conference on Electrical Information and Communication Technology (EICT). IEEE, 2021: 1-6.
- Yang, H.; Ni, J.; Gao, J.; Han, Z.; Luan, T. A novel method for peanut variety identification and classification by Improved VGG16. Sci. Rep. 2021, 11, 1–17. [Google Scholar] [CrossRef] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).