Enhanced Pneumonia Detection from Chest X-rays via VGG-16 and Self-Attention Mechanisms

Authors

Keywords:

Pneumonia Detection, Chest X-ray Images, VGG16 Architecture, Self-Attention Mechanism

Abstract

Early and accurate detection of pneumonia in chest X-rays is critical for effective treatment, especially in resource-constrained healthcare settings. Manual diagnosis is time-consuming and prone to variations, underscoring the need for robust automated approaches. This study addresses the challenge of improving the diagnostic accuracy and interpretability of deep learning models for pneumonia detection from chest radiographs. The method proposes a novel deep-learning framework that combines transfer learning using a pre-trained VGG16 model with a self-attention-enhanced convolutional architecture. The VGG16 backbone extracts low-level visual features, while the self-attention mechanism highlights clinically relevant lung regions, improving spatial focus during classification. The proposed model leverages the VGG16 backbone to extract low-level visual features, while a self-attention mechanism enhances spatial focus by emphasizing clinically significant lung regions. The VGG16 model, guided by attention, achieved 97% accuracy, precision, and recall in pneumonia detection. Also, Grad-CAM visualizations improved interpretability and model performance compared to baseline CNNs and pre-trained architectures. The integration of a self-attention mechanism into a transfer learning framework significantly improves both the performance and interpretability of pneumonia detection models in chest X-rays. This approach closely replicates the spatial reasoning of human experts and offers a scalable solution for clinical deployment. The results indicate that attention-enhanced deep learning architectures are well-suited for medical imaging tasks, particularly in resource-constrained settings where diagnostic expertise may be limited.

Downloads

Published

12.12.2025

How to Cite

1.
BISWAS P, SANA S, NAG A, KUNDU S. Enhanced Pneumonia Detection from Chest X-rays via VGG-16 and Self-Attention Mechanisms. Appl Med Inform [Internet]. 2025 Dec. 12 [cited 2025 Dec. 13];. Available from: https://ami.info.umfcluj.ro/index.php/AMI/article/view/1225

Issue

Section

Articles