Deep Learning-Based Lung Cancer Detection from CT scan Using EfficientNetV2 with Spatial Attention and Explainable AI

Authors

  • Rakhi Gangal
  • Avneesh Kumar

Keywords:

Lung Cancer Detection, EfficientNetV2, Spatial Attention, Deep Learning, CT scan, EigenCAM, SHAP, Focal Loss, Transfer Learning, Explainable AI

Abstract

Lung cancer remains the leading cause of cancer-related mortality worldwide, making early and accurate subtype classification critical for timely intervention. This paper presents LungNet256, a deep learning framework for automated lung cancer detection and classification from chest CT images. The model employs an EfficientNetV2-B0 backbone pre-trained on ImageNet, augmented with a custom Spatial Attention Pooling module to emphasize diagnostically relevant regions, classifying scans into four categories: Adenocarcinoma, Large Cell Carcinoma, Squamous Cell Carcinoma, and Normal tissue. A two-stage training strategy—frozen-backbone head training followed by fine-tuning of the last four backbone blocks—combined with Focal Loss and label smoothing addresses class imbalance, while Test-Time Augmentation enhances inference performance. Model interpretability is achieved through EigenCAM and SHAP attributions. On the chest CT dataset, LungNet256 achieves 97.33% test accuracy and a Macro AUC-ROC of 0.9975, highlighting its potential as an effective clinical decision-support tool.

Downloads

Published

2026-09-14

How to Cite

Gangal, R., & Kumar, A. (2026). Deep Learning-Based Lung Cancer Detection from CT scan Using EfficientNetV2 with Spatial Attention and Explainable AI. International Journal of Artificial Intelligence and Machine Learning, 6(10s), 1579–1589. Retrieved from https://mail.svedbergopen.com/index.php/ijaiml/article/view/1985