Explainable Lung Disease Classification From X-Ray Images Using Embedded Discrete Cosine Transform Filtering And Residual Attention Mechanism
10th International Conference on Computer Science and Engineering, UBMK 2025, İstanbul, Türkiye, 17 - 21 Eylül 2025, ss.941-945, (Tam Metin Bildiri)
- Yayın Türü: Bildiri / Tam Metin Bildiri
- Doi Numarası: 10.1109/ubmk67458.2025.11206838
- Basıldığı Şehir: İstanbul
- Basıldığı Ülke: Türkiye
- Sayfa Sayıları: ss.941-945
- Anahtar Kelimeler: Convolutional Neural Network, Covid-19, Deep Learning, Discrete Cosine Transform, Pneumonia, Residual Attention Mechanism, Tuberculosis, U-Net
- Yıldız Teknik Üniversitesi Adresli: Evet
Özet
According to the World Health Organization (WHO), lung diseases such as pneumonia, COVID-19, and tuberculosis remain among the leading causes of global morbidity and mortality, with patterns evolving over time. Early and accurate detection is critical to reduce transmission, enable timely treatment, and prevent severe complications. While deep learning has shown strong performance in identifying lung diseases from chest X-rays, many models lack transparency, limiting clinical trust. We propose an explainable deep learning pipeline for detecting and differentiating multiple lung conditions from chest X-rays. Designed for flexibility, it can distinguish between bacterial and viral pneumonia, identify COVID-19 features, and detect tuberculosis. In preprocessing, a custom U-Net generates soft lung masks to remove irrelevant anatomical structures such as shoulders, ribs, and image borders. A Discrete Cosine Transform (DCT) layer enhances frequency details linked to disease-specific patterns. The backbone incorporates a residual attention mechanism combining channel and spatial attention to focus on clinically relevant features. Finally, Gradient-Weighted Class Activation Mapping (Grad-CAM) with condition-specific color schemes provides visual explanations of predictions. We name our architecture the DCT-Residual Attention Model (DCTRAM) to highlight its novel components. Comparative evaluations demonstrate that DCTRAM not only achieves high accuracy across diverse lung diseases but also delivers interpretable outputs, offering a reliable foundation for future explainable X-ray diagnostics.