RGCA-Swin-Tiny CXRNet: A Residual Gated Convolutional Attention Guided Swin Transformer for Chest X-ray Classification | IJCT Volume 13 – Issue 4 | IJCT-V13I4P4

International Journal of Computer Techniques
ISSN 2394-2231
Volume 13, Issue 4  |  Published: July – August 2026

Author

Akshay Mool, Ashutosh Pandey, Rahul Kumar, Ankit Yadav

Abstract

Automatic chest X-ray categorization is a crucial research topic for radiological screening and clinical decision-making. However, subtle disease-specific patterns, overlapping thoracic abnormalities, and considerable visual resemblance across chest illnesses make correct categorization difficult. RGCA-Swin-Tiny CXRNet, a hybrid deep learning model for chest X-ray classification, combines an ImageNet-pretrained Swin-Tiny Transformer with a lightweight convolutional attention branch to solve these issues. The convolutional attention branch catches local radiography signals such texture fluctuations, boundary changes, and opacity-like patterns, whereas the Swin-Tiny branch recovers hierarchical global contextual representations. The proposed model’s Residual Gated Convolutional Attention (RGCA) method is novel, in which the convolutional descriptor creates a centered residual gate to adaptively suppress or boost the Swin-Tiny feature representation before classification. The suggested model is tested on a balanced five-class single-label ChestX-ray8 classification setting: Atelectasis, Hernia, No Finding, Pneumonia, and Pneumothorax. The dataset has 7500 images—5000 training, 1000 validation, and 1500 testing. Experimental findings demonstrate that RGCA-Swin-Tiny CXRNet has test accuracy of 64.67%, weighted precision of 64.48%, recall of 64.67%, F1-score of 64.44%, MCC of 0.5583, and AUC of 0.823. The confusion matrix and t-SNE visualization show that the proposed model learns meaningful discriminative representations, although visually overlapping classes like Atelectasis and No Finding remain difficult. Residual gated convolutional refinement is promising for chest X-ray classification using transformer-based global feature learning and local convolutional attention.

Keywords

Chest X-ray classification, Swin Transformer, convolutional attention, residual gated attention, medical image classification, deep learning.

Conclusion

This research proposes RGCA-Swin-Tiny CXRNet, a hybrid deep learning model for five-class chest X-ray classification. ImageNet-pretrained Swin-Tiny Transformers and lightweight convolutional attention branches are used. The Swin-Tiny branch collects hierarchical global contextual representations, while the convolutional attention branch extracts supplementary local radiography characteristics. The Residual Gated Convolutional Attention (RGCA) technique, where the convolutional descriptor creates a centered residual gate to adaptively suppress or boost the Swin-Tiny feature representation before classification, is the fundamental innovation. The trial used a balanced five-class single-label ChestX-ray8 configuration with Atelectasis, Hernia, No Finding, Pneumonia, and Pneumothorax. The model has test accuracy of 64.67%, weighted precision of 64.48%, recall of 64.67%, F1-score of 64.44%, MCC of 0.5583, and AUC of 0.8236. The class-wise study indicated that the model performed best for Hernia, although visual overlap and slight radiographic changes made Atelectasis and No Finding harder. The confusion matrix and t-SNE visualization demonstrated that the model learnt valid feature representations, yet several illness categories had overlapping feature distributions. Transformer-based contextual modeling and convolutional attention-guided local feature refinement show promise for chest X-ray categorization. The proposed RGCA technique lets local convolutional cues dynamically control the pretrained Swin-Tiny representation, unlike CNN–Transformer feature concatenation. This allows radiographic image processing to combine local and global information with controlled and adaptive fusion. Despite these promising outcomes, this study has drawbacks. The experiment started using a five-class single-label subset of ChestX-ray8 instead of the full multi-label setup. Second, the study employed a balanced selection of pictures, which may not reflect real-world radiology dataset class imbalance. Third, while the proposed model shows beneficial feature learning, baseline comparisons and ablation experiments would increase the empirical validity of the RGCA process. The suggested approach may be expanded to multi-label ChestX-ray14 classification in the future. Use patient-wise data separation to improve clinical validity and prevent data leakage. Ablation of the convolutional attention branch and residual gate, comparison with CNN, Transformer, and CNN–Transformer baselines, and assessment on CheXpert or MIMIC-CXR may increase performance. To improve clinical interpretability, Grad-CAM, attention map visualization, and class activation analysis can be used. The model may also learn the residual gating intensity to automatically calculate the appropriate convolutional attention-based feature modulation during training.

References

This research proposes RGCA-Swin-Tiny CXRNet, a hybrid deep learning model for five-class chest X-ray classification. ImageNet-pretrained Swin-Tiny Transformers and lightweight convolutional attention branches are used. The Swin-Tiny branch collects hierarchical global contextual representations, while the convolutional attention branch extracts supplementary local radiography characteristics. The Residual Gated Convolutional Attention (RGCA) technique, where the convolutional descriptor creates a centered residual gate to adaptively suppress or boost the Swin-Tiny feature representation before classification, is the fundamental innovation. The trial used a balanced five-class single-label ChestX-ray8 configuration with Atelectasis, Hernia, No Finding, Pneumonia, and Pneumothorax. The model has test accuracy of 64.67%, weighted precision of 64.48%, recall of 64.67%, F1-score of 64.44%, MCC of 0.5583, and AUC of 0.8236. The class-wise study indicated that the model performed best for Hernia, although visual overlap and slight radiographic changes made Atelectasis and No Finding harder. The confusion matrix and t-SNE visualization demonstrated that the model learnt valid feature representations, yet several illness categories had overlapping feature distributions. Transformer-based contextual modeling and convolutional attention-guided local feature refinement show promise for chest X-ray categorization. The proposed RGCA technique lets local convolutional cues dynamically control the pretrained Swin-Tiny representation, unlike CNN–Transformer feature concatenation. This allows radiographic image processing to combine local and global information with controlled and adaptive fusion. Despite these promising outcomes, this study has drawbacks. The experiment started using a five-class single-label subset of ChestX-ray8 instead of the full multi-label setup. Second, the study employed a balanced selection of pictures, which may not reflect real-world radiology dataset class imbalance. Third, while the proposed model shows beneficial feature learning, baseline comparisons and ablation experiments would increase the empirical validity of the RGCA process. The suggested approach may be expanded to multi-label ChestX-ray14 classification in the future. Use patient-wise data separation to improve clinical validity and prevent data leakage. Ablation of the convolutional attention branch and residual gate, comparison with CNN, Transformer, and CNN–Transformer baselines, and assessment on CheXpert or MIMIC-CXR may increase performance. To improve clinical interpretability, Grad-CAM, attention map visualization, and class activation analysis can be used. The model may also learn the residual gating intensity to automatically calculate the appropriate convolutional attention-based feature modulation during training.

How to Cite This Paper

Akshay Mool, Ashutosh Pandey, Rahul Kumar, Ankit Yadav (2026). RGCA-Swin-Tiny CXRNet: A Residual Gated Convolutional Attention Guided Swin Transformer for Chest X-ray Classification. International Journal of Computer Techniques, 13(4). ISSN: 2394-2231.

© 2026 International Journal of Computer Techniques (IJCT). All rights reserved.

Submit Your Paper