# RepViT-CXR: A Channel Replication Strategy for Vision Transformers in Chest X-ray Tuberculosis and Pneumonia Classification

arXiv: https://arxiv.org/abs/2509.08234 · HTML: https://mlsanity.com/paper/2509.08234/

## Key facts

- Cited by 7 papers in the map (data through 14 Oct 2026).
- Builds on 9 of its 35 references that are in the map.
- First posted on arXiv 10 Sep 2025.

## Builds on (most cited first, 9 of 9)

- [An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale](https://mlsanity.com/paper/2010.11929/) (2020)
- [Swin Transformer: Hierarchical Vision Transformer using Shifted Windows](https://mlsanity.com/paper/2103.14030/) (2021)
- [Reliable Tuberculosis Detection using Chest X-ray with Deep Learning, Segmentation and Visualization](https://mlsanity.com/paper/2007.14895/) (2020)
- [Transfer Learning with Deep Convolutional Neural Network (CNN) for Pneumonia Detection using Chest X-ray](https://mlsanity.com/paper/2004.06578/) (2020)
- [Chest X-Ray Bone Suppression for Improving Classification of Tuberculosis-Consistent Findings](https://mlsanity.com/paper/2104.04518/) (2021)
- [Topological Signatures vs. Gradient Histograms: A Comparative Study for Medical Image Classification](https://mlsanity.com/paper/2507.03006/) (2025)
- [HOG-CNN: Integrating Histogram of Oriented Gradients with Convolutional Neural Networks for Retinal Image Classification](https://mlsanity.com/paper/2507.22274/) (2025)
- [HistoViT: Vision Transformer for Accurate and Scalable Histopathological Cancer Diagnosis](https://mlsanity.com/paper/2508.11181/) (2025)
- [Transfer Learning with EfficientNet for Accurate Leukemia Cell Classification](https://mlsanity.com/paper/2508.06535/) (2025)

## Built on by (most cited first, 7 of 7)

- [Efficient Breast and Ovarian Cancer Classification via ViT-Based Preprocessing and Transfer Learning](https://mlsanity.com/paper/2509.18553/) (2025)
- [Colormap-Enhanced Vision Transformers for MRI-Based Multiclass (4-Class) Alzheimer's Disease Classification](https://mlsanity.com/paper/2512.16964/) (2025)
- [Four-Stage Alzheimer's Disease Classification from MRI Using Topological Feature Extraction, Feature Selection, and Ensemble Learning](https://mlsanity.com/paper/2601.00918/) (2026)
- [Hybrid Topological and Deep Feature Fusion for Accurate MRI-Based Alzheimer's Disease Severity Classification](https://mlsanity.com/paper/2602.00956/) (2026)
- [Brain Tumor Classification from 3D MRI Using Persistent Homology and Betti Features: A Topological Data Analysis Approach on BraTS2020](https://mlsanity.com/paper/2603.13771/) (2026)
- [Enhancing Brain Tumor Classification Using Vision Transformers with Colormap-Based Feature Representation on BRISC2025 Dataset](https://mlsanity.com/paper/2603.21234/) (2026)
- [Bridging Topology and Deep Representation Learning: A TDA-ViT Fusion Model for Four-Class Brain Tumor Classification](https://mlsanity.com/paper/2606.00927/) (2026)

## Abstract (arXiv)

Chest X-ray (CXR) imaging remains one of the most widely used diagnostic tools for detecting pulmonary diseases such as tuberculosis (TB) and pneumonia. Recent advances in deep learning, particularly Vision Transformers (ViTs), have shown strong potential for automated medical image analysis. However, most ViT architectures are pretrained on natural images and require three-channel inputs, while CXR scans are inherently grayscale. To address this gap, we propose RepViT-CXR, a channel replication strategy that adapts single-channel CXR images into a ViT-compatible format without introducing additional information loss. We evaluate RepViT-CXR on three benchmark datasets. On the TB-CXR dataset,our method achieved an accuracy of 99.9% and an AUC of 99.9%, surpassing prior state-of-the-art methods such as Topo-CXR (99.3% accuracy, 99.8% AUC). For the Pediatric Pneumonia dataset, RepViT-CXR obtained 99.0% accuracy, with 99.2% recall, 99.3% precision, and an AUC of 99.0%, outperforming strong baselines including DCNN and VGG16. On the Shenzhen TB dataset, our approach achieved 91.1% accuracy and an AUC of 91.2%, marking a performance improvement over previously reported CNN-based methods. These results demonstrate that a simple yet effective channel replication strategy allows ViTs to fully leverage their representational power on grayscale medical imaging tasks. RepViT-CXR establishes a new state of the art for TB and pneumonia detection from chest X-rays, showing strong potential for deployment in real-world clinical screening systems.
