cs.CVAug 21, 2026

Extending the Horizon of Early Diagnosis: Lung Cancer Prediction with Vision Transformers

Authors: Olivera Kotevska, Ian Goethert, Michael McGee, Maria Mahbub, Sean R. Wilkinson, Rowena Yip, Myvizhi Esai Selvan, Zeynep H. Gumus, +6 more

Organizations: Mathematics in Computation, Computer Science and Mathematics Division, Oak Ridge National Laboratory · Research Computing Support Division, Oak Ridge National Laboratory · Advanced Intelligent Systems, Cyber Resilience and Intelligence Division, Oak Ridge National Laboratory · National Center for Computational Sciences, Oak Ridge National Laboratory · Icahn School of Medicine at Mount Sinai · Phoenix VA Medical Center · Department of Biomedical Informatics, Vanderbilt University Medical Center · Advanced Computing for Health Sciences, Computational Sciences and Engineering Division, Oak Ridge National Laboratory

Abstract

Lung cancer remains a leading cause of cancer-related mortality worldwide, and early diagnosis is critical for improving survival. However, early-stage malignancies can be subtle on chest X-rays, creating challenges for radiologists. This study evaluates Vision Transformers (ViTs) for predicting lung cancer one to two years before clinical diagnosis. We analyzed 259,361 chest X-rays from 91,020 imaging studies at the Jamaica Plains VA Hospital in Boston, MA. The dataset showed extreme class imbalance, approximately 1:150 cancer to non-cancer, which was addressed using hybrid under- and over-sampling and class-weighted loss optimization. Three ViT configurations were evaluated: a model trained from scratch, an ImageNet-pretrained model, and a Corona-pretrained model fine-tuned on the lung cancer dataset. Transfer learning improved performance, with pretrained models exceeding the scratch baseline by 6-10 percentage points in AUC and about 10-12 percent in balanced accuracy. ImageNet-pretrained models showed the most stable overall performance, while Corona-pretrained models achieved higher sensitivity in some settings but greater variability. Moderate resampling ratios, including 1:1 undersampling and 1.5:2 oversampling, provided favorable trade-offs between sensitivity, precision, and computational efficiency, reducing runtime by up to 70 percent without major performance loss. These findings demonstrate the potential of ViTs for early lung cancer risk prediction from routine chest X-rays. Although performance remains below clinical deployment thresholds, the results support further development of ViT-based triage systems to flag high-risk patients for earlier evaluation.

Figures & tables

Explore similar work

CardsList
  1. Artificial intelligence application in lymphoma diagnosis with Vision Transformer using weakly supervised training

    Apr 15, 2026Nghia, Nguyen, Amer Wahed +9Histopathology Image ClassificationOncology

  2. Attend what matters: Leveraging vision foundational models for breast cancer classification using mammograms

    Apr 21, 2026Samyak Sanghvi, Piyush Miglani, Sarvesh Shashikumar +3Medical ImagingVision Foundation Model Adaptation

  3. When is 3D Worth It? A Resource-Performance Frontier for CNNs and Transformers in Lung CT

    Jun 5, 2026Md Enamul Hoq, Sharafat Hossain, Imraul Emmaka +4Vision Transformer3D Medical Imaging