Related Experiment Video
Updated: Jun 2, 2025

A Swin Transformer-Based Model for Thyroid Nodule Detection in Ultrasound Images
Published on: April 21, 2023
Enhanced Pneumonia Detection in Chest X-Rays Using Hybrid Convolutional and Vision Transformer Networks
Benzorgat Mustapha1, Yatong Zhou1, Chunyan Shan2
1School of Electronics and Information Engineering, Hebei University of Technology, Tianjin 300401, China.
A new hybrid deep learning model combining Convolutional Neural Networks (CNNs) and Swin Transformers significantly improves pneumonia detection in X-rays. This accurate and robust AI tool offers potential for accessible diagnostics in underserved regions.
Area of Science:
- Medical Imaging Analysis
- Artificial Intelligence in Healthcare
- Deep Learning for Diagnostics
Background:
- Pneumonia detection from chest X-rays is crucial for timely treatment.
- Existing diagnostic methods face limitations, especially in resource-constrained areas.
- Deep learning offers promising avenues for automated and accurate image analysis.
Purpose of the Study:
- To develop and evaluate a novel hybrid deep learning model for enhanced pneumonia detection in chest X-rays.
- To improve diagnostic accuracy and reduce misclassifications compared to traditional methods.
- To create a robust and deployable solution for regions with limited access to healthcare.
Main Methods:
- A hybrid model integrating Convolutional Neural Networks (CNNs) with modified Swin Transformer blocks was developed.
- CNN layers extracted local features, while Swin Transformers captured global context via window-based self-attention.
- Image preprocessing included resizing and CLAHE; data augmentation and Bayesian optimization (Optuna) were used for robustness and fine-tuning.
Main Results:
- The hybrid model achieved 98.72% accuracy and a low loss of 0.064 on an unseen dataset.
- It significantly outperformed a baseline CNN model across all metrics, including precision (0.9738 normal, 1.0000 pneumonia) and F1-score (0.9872).
- Confusion matrices indicated high sensitivity and specificity, with minimal misclassifications.
Conclusions:
- The hybrid CNN-ViT model effectively captures both local and global features in X-rays, leading to superior pneumonia detection performance.
- Its lightweight design facilitates deployment in resource-limited settings, potentially improving patient outcomes globally.
- Future work includes model refinement, advanced image processing, and explainable AI integration.
Related Concept Videos
Pneumonia III: Complications and Assessment
Radiological Investigation I: X-ray and CT
Radiological Investigation II: MRI and Ventilation Perfusion Scan
Magnetic Resonance Imaging (MRI) and Ventilation Perfusion Scans are two radiological investigations that offer detailed diagnostic images of the body, particularly lung structures.
MRI
MRI uses magnetic fields and radiofrequency signals to distinguish between normal and abnormal tissues. This technology provides a more detailed diagnostic image than CT scans, enabling it to characterize pulmonary nodules, stage bronchogenic carcinoma, and evaluate inflammatory activity in...
Computed Tomography
The technique was invented in the 1970s and is based on the principle that as X-rays pass through the body, they are absorbed or reflected at different levels. In the technique, a patient lies on a motorized platform while a computerized axial tomography (CAT) scanner rotates...
X-ray Imaging
Imaging Studies for Cardiovascular System III: X-Ray
Definition and Purpose
An X-ray, or radiograph, is a non-invasive method that uses ionizing radiation to take images of internal structures. It is mainly used in cardiac imaging to examine the heart, lungs, and major blood vessels, aiming to identify abnormalities in the heart's size, shape, and position, such as heart failure, congenital defects, and vascular...

