Unified Transformer with cross-attention and conditional TransMix for lung infection severity assessment from CT and X-ray

Abstract

Background and Objective: Pulmonary infections constitute a major health concern due to their potential for rapid progression, especially during pandemics. Accurate severity assessment from medical imaging using artificial intelligence is crucial for supporting timely clinical decision-making and improving patient outcomes. In this study, we propose a novel framework for lung infection severity evaluation, applicable to both chest Computed Tomography and X-ray images. Methods: The proposed framework introduces two key contributions: (i) a Transformer-based architecture that leverages parallel encoders, a cross-gated attention mechanism, and a feature aggregation module to effectively capture multi-scale representations; and (ii) Conditional Online Transformer-based Mixup, a dedicated data augmentation strategy that addresses class imbalance by generating mixed-score image patches during training. The proposed framework was evaluated on two publicly available datasets: the RALO benchmark dataset and the Per-COVID-19 benchmark challenge dataset for COVID-19 infection percentage estimation, which provides expert-annotated severity scores under a standardized evaluation protocol. Results: The proposed method achieved state-of-the-art performance on the RALO CXR dataset, obtaining MAE values of 0.362 and 0.337, and PC of 0.971 and 0.945 for geographic extent and lung opacity severity scores, respectively. On the Per-COVID-19 CT dataset, the proposed framework achieved a MAE of 4.45 and a PC of 0.809, demonstrating strong generalization across different imaging modalities. These results highlight the effectiveness of combining advanced augmentation techniques with gated attention mechanisms in improving the robustness and accuracy of lung infection severity assessment. Conclusions: The proposed framework offers a reliable and adaptable tool for clinical diagnosis, disease monitoring, and personalized treatment planning. The source code is publicly available to support reproducibility and further research. The source code is available at: https://github.com/bouthainas/QCross-Att-PVT.

Publication
Biomedical Signal Processing and Control
Bouthaina Slika
Bouthaina Slika
Former PhD Student

My research focuses on generalizable deep learning methods for computer vision for medical image analysis.

Fadi Dornaika
Fadi Dornaika
Ikerbasque Research Professor

Ikerbasque Research Professor with expertise in computer vision, machine learning, and pattern recognition.