A Lightweight Lung Segmentation and Vision Transformer Framework for CT-Based Lung Cancer Classification

Background: Lung cancer remains a major cause of cancer-related mortality, and accurate analysis of pulmonary abnormalities on computed tomography (CT) images is important for supporting timely diagnosis. However, automated lung cancer classification remains challenging because pulmonary lesions exhibit substantial variability in size, morphology, intensity, and anatomical location, while image noise and irrelevant surrounding structures can adversely affect model performance. This study investigates an integrated deep learning framework combining image restoration, anatomical segmentation, and transformer-based classification for computer-aided lung cancer analysis. Methods: The proposed framework consists of three sequential stages. First, Fast Non-Local Means (FNLM) denoising is applied to reduce image noise while preserving relevant anatomical structures. Second, lung regions are isolated using intensity-based thresholding followed by morphological operations and contour-based refinement. The resulting lung masks are applied to the denoised CT images to suppress irrelevant surrounding structures. Finally, the segmented lung images are resized and normalized and supplied to a Vision Transformer (ViT), which learns contextual representations for classification. The framework is evaluated using a single open-access CT image dataset under two classification settings: binary classification of cancerous and non-cancerous CT images and multiclass discrimination among normal, benign, and malignant cases. Results: In binary lung cancer classification, the proposed framework correctly classified 982 of 1000 CT images, achieving an accuracy of 98.20%, with sensitivity, specificity, precision, and F1 scores of 98.20%. For multiclass classification of normal, benign, and malignant cases, the framework correctly classified 951 of 1005 CT images, corresponding to an overall accuracy of 94.63%. Class-wise precision, recall, specificity, F1 score, and ROC-AUC were additionally evaluated to provide a more comprehensive assessment of classification performance. These findings reflect performance under the evaluated experimental conditions. Conclusions: The proposed framework demonstrates promising performance for CT-based lung cancer classification by integrating FNLM denoising, conventional lung-region extraction, and transformer-based representation learning. However, because the evaluation relied on a single open-access dataset with image-level partitioning, the generalizability of the findings to independent patient populations and clinical settings remains uncertain. Further patient-disjoint evaluation, external validation using multi-institutional datasets, and prospective clinical assessment are required before its potential clinical utility can be established.

Authors

Institutions

Publication Details

Journal
Bioengineering
Published
2026-11-11
DOI
https://doi.org/10.3390/bioengineering13111342
Primary Topic
AI in cancer detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

A Lightweight Lung Segmentation and Vision Transformer Framework for CT-Based Lung Cancer Classification

Farhan Amin, Mirtha Silvana Garat de Marín, Isha Bhatia, Isabel de la Torre Díez et al.
Bioengineering
AI in cancer detection
article

A Lightweight Lung Segmentation and Vision Transformer Framework for CT-Based Lung Cancer Classification

Farhan Amin, Mirtha Silvana Garat de Marín, Isha Bhatia, Isabel de la Torre Díez, Eduardo Silva Alvarado
article en

Abstract

Background: Lung cancer remains a major cause of cancer-related mortality, and accurate analysis of pulmonary abnormalities on computed tomography (CT) images is important for supporting timely diagnosis. However, automated lung cancer classification remains challenging because pulmonary lesions exhibit substantial variability in size, morphology, intensity, and anatomical location, while image noise and irrelevant surrounding structures can adversely affect model performance. This study investigates an integrated deep learning framework combining image restoration, anatomical segmentation, and transformer-based classification for computer-aided lung cancer analysis. Methods: The proposed framework consists of three sequential stages. First, Fast Non-Local Means (FNLM) denoising is applied to reduce image noise while preserving relevant anatomical structures. Second, lung regions are isolated using intensity-based thresholding followed by morphological operations and contour-based refinement. The resulting lung masks are applied to the denoised CT images to suppress irrelevant surrounding structures. Finally, the segmented lung images are resized and normalized and supplied to a Vision Transformer (ViT), which learns contextual representations for classification. The framework is evaluated using a single open-access CT image dataset under two classification settings: binary classification of cancerous and non-cancerous CT images and multiclass discrimination among normal, benign, and malignant cases. Results: In binary lung cancer classification, the proposed framework correctly classified 982 of 1000 CT images, achieving an accuracy of 98.20%, with sensitivity, specificity, precision, and F1 scores of 98.20%. For multiclass classification of normal, benign, and malignant cases, the framework correctly classified 951 of 1005 CT images, corresponding to an overall accuracy of 94.63%. Class-wise precision, recall, specificity, F1 score, and ROC-AUC were additionally evaluated to provide a more comprehensive assessment of classification performance. These findings reflect performance under the evaluated experimental conditions. Conclusions: The proposed framework demonstrates promising performance for CT-based lung cancer classification by integrating FNLM denoising, conventional lung-region extraction, and transformer-based representation learning. However, because the evaluation relied on a single open-access dataset with image-level partitioning, the generalizability of the findings to independent patient populations and clinical settings remains uncertain. Further patient-disjoint evaluation, external validation using multi-institutional datasets, and prospective clinical assessment are required before its potential clinical utility can be established.

BioengineeringVol. 13(11)
Universidad de Valladolid (ES), Universidad Europea del Atlántico (ES), Universidad Internacional Iberoamericana (PR), Yeungnam University (KR)
AI in cancer detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon