Hybrid Separable Conv-ViT–CheXNet with Explainable Localization for Pneumonia Diagnosis
Abstract
This research presents a robust, interpretable, and computationally efficient deep learning framework for multiclass pneumonia classification from chest X-ray images, with a strong emphasis on diagnostic accuracy, model transparency, and real-time applicability in clinical settings. We propose SCViT-CheXNet, a novel hybrid architecture that integrates a Separable Convolution Vision Transformer (SCViT) with a simplified CheXNet backbone based on DenseNet121 to achieve efficient spatial feature extraction, hierarchical representation learning, and faster model convergence. The use of separable convolution significantly reduces computational complexity while preserving discriminative feature learning, and the transformer module effectively captures long-range dependencies in radiographic patterns. To address the critical issue of class imbalance inherent in medical imaging datasets, an Auxiliary Classifier Deep Convolutional Generative Adversarial Network (ADCGAN) is employed to generate synthetic samples for underrepresented pneumonia categories, thereby enhancing data diversity and improving model generalization. The proposed framework is extensively evaluated on two benchmark datasets: Dataset-1, consisting of Normal, Viral, Bacterial, and Fungal Pneumonia cases, and Dataset-2, comprising Normal, Viral Pneumonia, COVID-19, and Lung Opacity classes. Model interpretability is ensured through Gradient-weighted Class Activation Mapping (Grad-CAM), which enables visualization of disease-specific regions in chest X-ray images and validates the clinical relevance of the learned representations. Experimental results demonstrate that SCViT-CheXNet consistently outperforms existing convolutional neural network and transformer-based approaches, achieving 99% accuracy, precision, recall, and F1-score across both datasets. The synergistic integration of separable convolution, transformer-based feature modeling, and GAN-driven data augmentation results in a lightweight yet highly accurate and interpretable diagnostic system. Overall, the SCViT-CheXNet framework shows strong potential for deployment in automated pneumonia and COVID-19 screening systems, offering reliable support for real-time clinical decision-making and contributing to improved patient outcomes.
Downloads
References
Hota, S. R., A. Roy, and U. Satija. “R2REst: A Unified Deep Learning Framework for Estimating Respiration Rate From Respiratory Sounds.” IEEE Signal Processing Letters, 2025, pp. 1–5. https://doi.org/10.1109/LSP.2025.3578932.
Padmavathi, V., and Kavitha Ganesan. “LungNet-ViT: Efficient Lung Disease Classification Using a Multistage Vision Transformer Model from Chest Radiographs.” Journal of X-Ray Science and Technology, vol. 33, no. 4, 2025, pp. 742–759. https://doi.org/10.1177/08953996251320262.
J. P. G., P. S., V. V. Mayil, and S. Saini. “Optimized Double Transformer Residual Super-Resolution Network-Based X-Ray Images for Classification of Pneumonia Identification.” Knowledge-Based Systems, vol. 311, 2025, p. 113037. https://doi.org/10.1016/j.knosys.2025.113037.
Munir, K., M. Usama Tanveer, H. J. Alyamani, A. Bermak, and A. Ur Rehman. “PneuX-Net: An Enhanced Feature Extraction and Transformation Approach for Pneumonia Detection in X-Ray Images.” IEEE Access, vol. 13, 2025, pp. 84024–84037. https://doi.org/10.1109/ACCESS.2025.3568885.
El-Ghandour, M., and M. I. Obayya. “Pneumonia Detection in Chest X-Ray Images Using an Optimized Ensemble with XGBoost Classifier.” Multimedia Tools and Applications, vol. 84, no. 9, 2025, pp. 5491–5521. https://doi.org/10.1007/s11042-024-18975-6.
Shah, K., A. Patel, and H. Yadav. “Fine-Tuning Deep Learning Model Using Transfer Learning for Pneumonia Diagnosis.” Lecture Notes in Networks and Systems, vol. 1159, 2025, pp. 333–344. https://doi.org/10.1007/978-981-97-8526-1_26.
Appavu, N., S. Kadry, and N. Kennedy Babu. “A Transfer Learning Strategy to Identify Covid-19 from X-ray.” IETE Journal of Research, 2025, pp. 1–13. https://doi.org/10.1080/03772063.2025.2497514.
Dhungana, P., M. Roy, R. Aryal, S. Chaudhary, M. T. R., and P. Dhungana. “Ensemble Deep Learning Approach for Pneumonia Detection Using DenseNet, MobileNet, and EfficientNet with Transfer Learning.” In 2025 International Conference on Data Science and Business Systems (ICDSBS), 2025, pp. 1–7. https://doi.org/10.1109/icdsbs63635.2025.11031996.
Kavitha, S., and H. H. Inbarani. “MHWF-CNN: Multiscale Horizontal Wavelet Fusion Convolutional Neural Network with Transfer Learning for Image Classification.” Evolving Systems, vol. 16, no. 2, 2025, p. 73. https://doi.org/10.1007/s12530-025-09697-7.
Rabbah, J., M. Ridouani, and L. Hassouni. “Improving Pneumonia Diagnosis with High-Accuracy CNN-Based Chest X-Ray Image Classification and Integrated Gradient.” Biomedical Signal Processing and Control, vol. 101, 2025, p. 107239. https://doi.org/10.1016/j.bspc.2024.107239.
Gu, C., 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, 2024, p. 406. https://doi.org/10.3390/bioengineering11040406.
Haque, R., et al. “A Scalable Solution for Pneumonia Diagnosis: Transfer Learning for Chest X-ray Analysis.” In Proceedings of International Conference on Contemporary Computing and Informatics (IC3I 2024), vol. 7, 2024, pp. 255–262. https://doi.org/10.1109/IC3I61595.2024.10829132.
Maquen-Niño, G. L. E., J. G. Nuñez-Fernandez, F. Y. Taquila-Calderon, I. Adrianzén-Olano, P. De-La-cruz-vdv, and G. Carrión-Barco. “Classification Model Using Transfer Learning for the Detection of Pneumonia in Chest X-Ray Images.” International Journal of Online and Biomedical Engineering, vol. 20, no. 5, 2024, pp. 150–161. https://doi.org/10.3991/ijoe.v20i05.45277.
Lenny, C., A. A. Margharet, B. Shiny, S. Tigga, and S. T. George. “Pneumonia Detection from Chest X-Ray Images Using Deep Learning Methods.” Lecture Notes in Electrical Engineering, vol. 905, 2022, pp. 643–655. https://doi.org/10.1007/978-981-19-2177-3_60.
Khattab, R., I. R. Abdelmaksoud, and S. Abdelrazek. “Automated Detection of COVID-19 and Pneumonia Diseases Using Data Mining and Transfer Learning Algorithms with Focal Loss from Chest X-Ray Images.” Applied Soft Computing, vol. 162, 2024, p. 111806. https://doi.org/10.1016/j.asoc.2024.111806.
Feng, S., X. Wu, and L. Li. “A Novel Deep Convolutional Network Based on Transfer Learning for Lung Image Disease Diagnosis.” Applied and Computational Engineering, vol. 99, no. 1, 2024, pp. 161–167. https://doi.org/10.54254/2755-2721/99/20251816.
Godbole, S., A. Kattukaran, S. Savla, V. Pradhan, P. Kanani, and D. Patil. “Enhancing Paediatric Pneumonia Detection and Classification Using Customized CNNs and Transfer Learning Based Ensemble Models.” International Research Journal of Multidisciplinary Technovation, vol. 6, no. 6, 2024, pp. 38–53. https://doi.org/10.54392/irjmt2463.
Mujahid, M., F. Rustam, R. Álvarez, J. L. Vidal Mazón, I. de la T. Díez, and I. Ashraf. “Pneumonia Classification from X-ray Images with Inception-V3 and Convolutional Neural Network.” Diagnostics, vol. 12, no. 5, 2022. https://doi.org/10.3390/diagnostics12051280.
Singh, Sukhendra, et al. “Efficient Pneumonia Detection Using Vision Transformers on Chest X-Rays.” Scientific Reports, vol. 14, no. 1, 2024, pp. 1–17. https://doi.org/10.1038/s41598-024-52703-2.
Ali, Abbas M., et al. “COVID-19 Pneumonia Level Detection Using Deep Learning Algorithm and Transfer Learning.” Evolutionary Intelligence, vol. 17, no. 2, 2024, pp. 1035–46. https://doi.org/10.1007/s12065-022-00777-0.
Putri, Kania Ardhani, and Wikky Fawwaz Al Maki. “Enhancing Pneumonia Disease Classification Using Genetic Algorithm-Tuned DCGANs and VGG-16 Integration.” Journal of Electronics, Electromedical Engineering, and Medical Informatics, vol. 6, no. 1, 2024, pp. 11–22. https://doi.org/10.35882/jeeemi.v6i1.349.
Asnake, Nigus Wereta, et al. “X-Ray Image-Based Pneumonia Detection and Classification Using Deep Learning.” Multimedia Tools and Applications, vol. 83, no. 21, 2024, pp. 60789–60807. https://doi.org/10.1007/s11042-023-17965-4.
Arulananth, T. S., et al. “Classification of Paediatric Pneumonia Using Modified DenseNet-121 Deep-Learning Model.” IEEE Access, vol. 12, February 2024, pp. 35716–35727. https://doi.org/10.1109/ACCESS.2024.3371151.
Raj, A., M. O. Pallavi, and N. Manoj. “Development of CheXNet-Based Web Application to Detect Pneumonia Using Chest X-Ray Images.” In 8th IEEE International Conference on Distributed Computing, VLSI, Electrical Circuits and Robotics (DISCOVER 2024) – Proceedings, 2024, pp. 322–327. https://doi.org/10.1109/DISCOVER62353.2024.10750561.
Ghia, Canna Jagdish, and Gautam Sudhakar Rambhad. “Systematic Review and Meta-Analysis of Comorbidities and Associated Risk Factors in Indian Patients of Community-Acquired Pneumonia.” SAGE Open Medicine, January 2022. https://doi.org/10.1177/20503121221095485.
Rajaguru, Vasuki, Tae H. Kim, Jaeyong Shin, Sang G. Lee, and Whiejong Han. “Ability of the LACE Index to Predict 30-Day Readmissions in Patients with Acute Myocardial Infarction.” Journal of Personalized Medicine, vol. 12, no. 7, 2022, p. 1085. https://doi.org/10.3390/jpm12071085.
Lewis, M. O., P. T. Tran, Y. Huang, R. A. Desai, Y. Shen, and J. D. Brown. “Disease Severity and Risk Factors of 30-Day Hospital Readmission in Pediatric Hospitalizations for Pneumonia.” Journal of Clinical Medicine, vol. 11, no. 5, 2022, p. 1185. https://doi.org/10.3390/jcm11051185.
Ieracitano, Cosimo, Nadia Mammone, Mario Versaci, Giuseppe Varone, Abder-Rahman Ali, Antonio Armentano, et al. “A Fuzzy-Enhanced Deep Learning Approach for Early Detection of Covid-19 Pneumonia from Portable Chest X-Ray Images.” Neurocomputing, vol. 481, 2022, pp. 202–215. https://doi.org/10.1016/j.neucom.2022.01.055.
Rostami, Mehrdad, and Mourad Oussalah. “A Novel Explainable COVID-19 Diagnosis Method by Integration of Feature Selection with Random Forest.” Informatics in Medicine Unlocked, vol. 30, 2022. https://doi.org/10.1016/j.imu.2022.100941.
Aviles-Rivero, Angelica I., Philip Sellars, Carola-Bibiane Schönlieb, and Nicolas Papadakis. “GraphXCOVID: Explainable Deep Graph Diffusion Pseudo-Labelling for Identifying COVID-19 on Chest X-Rays.” Pattern Recognition, vol. 122, 2022. https://doi.org/10.1016/j.patcog.2021.108274.
Malhotra, Aakarsh, Surbhi Mittal, Puspita Majumdar, Saheb Chhabra, Kartik Thakral, Mayank Vatsa, et al. “Multi-task Driven Explainable Diagnosis of COVID-19 Using Chest X-Ray Images.” Pattern Recognition, vol. 122, 2022. https://doi.org/10.1016/j.patcog.2021.108243.
Mondal, Arnab Kumar, et al. “xViTCOS: Explainable Vision Transformer Based COVID-19 Screening Using Radiography.” IEEE Journal of Translational Engineering in Health and Medicine, vol. 10, December 2021, p. 1100110. https://doi.org/10.1109/JTEHM.2021.3134096.
Ren, H., et al. “Interpretable Pneumonia Detection by Combining Deep Learning and Explainable Models with Multisource Data.” IEEE Access, vol. 9, 2021, pp. 95872–95883. https://doi.org/10.1109/ACCESS.2021.3090215.
Panwar, H., P. K. Gupta, M. K. Siddiqui, R. Morales-Menendez, P. Bhardwaj, and V. Singh. “A Deep Learning and Grad-CAM Based Color Visualization Approach for Fast Detection of COVID-19 Cases Using Chest X-Ray and CT-Scan Images.” Chaos, Solitons and Fractals, vol. 140, 2020, p. 110190. https://doi.org/10.1016/j.chaos.2020.110190.
Wang, X., Y. Peng, L. Lu, Z. Lu, M. Bagheri, and R. M. Summers. “NIH Chest X-rays Dataset.” Kaggle, 2017. https://www.kaggle.com/datasets/nih-chest-xrays/data.
Patel, B. N., M. P. Lungren, and A. Y. Ng. “CheXpert: A Large Chest Radiograph Dataset for Automated Chest X-ray Interpretation.” Kaggle, 2019. https://www.kaggle.com/datasets/ashery/chexpert.
Mooney, P. “Chest X-ray Images (Pneumonia).” Kaggle, 2017. https://www.kaggle.com/paultimothymooney/chest-xray-pneumonia/version/2.
Copyright (c) 2026 Khushboo Trivedi, Chintan Bhupeshbhai Thacker

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlikel 4.0 International (CC BY-SA 4.0) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).


.png)
.png)
.png)
.png)
.png)