AI-Driven Pneumonia Detection from Chest X-Rays
Abstract: Pneumonia remains a global health challenge, especially in developing countries where diagnostic tools are limited or unavailable. Early diagnosis is vital in preventing severe complications, reducing mortality, and ensuring effective patient management. In this paper, we propose a deep learning-based pneumonia detection system utilizing Vision Transformer (ViT) architecture for interpreting chest X-ray images. The ViT model, with its powerful attention-based mechanism, captures both local and global dependencies within X-ray scans, providing highly accurate classification results. To enhance transparency and foster trust in AI-based diagnostics, Grad-CAM is integrated to visually highlight regions influencing the model’s decisions. The model was trained and tested on the publicly available Kaggle Chest X-ray dataset, achieving significant improvements over traditional CNN approaches. The complete pipeline is deployed using Streamlit and FastAPI, enabling real-time, browser-accessible diagnostics. Our system demonstrates the potential of combining explainable AI with advanced transformer-based models to augment clinical decision-making and support radiologists in diagnosing pneumonia more reliably. Keywords: Pneumonia Detection, Vision Transformer, Chest X-ray, Explainable AI, Grad-CAM, Deep Learning, Streamlit, FastAPI, Medical Imaging, AI in Healthcare
Authors
- Rasha Sadeq Ameen (ORCID: https://orcid.org/0000-0002-0806-1524)
Publication Details
- Journal
- INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT
- Published
- 2025-05-18
- DOI
- https://doi.org/10.55041/ijsrem48224
- Primary Topic
- COVID-19 diagnosis using AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00