OncoSeg2D: A deep framework for semantic segmentation of lung cancer in 2D CT scans

L Luhang Yu X Xueshan Dong K Kai Fa Y Yifan Li

Abstract

Lung cancer lesion segmentation in two-dimensional computed tomography (2D CT) images remains challenging due to blurred boundaries, heterogeneous morphologies, and annotation uncertainty, leading to unreliable delineations and reduced clinical usability. To address this research gap, we propose a novel 2D CT lung cancer semantic segmentation framework, OncoSeg2D, which explicitly tackles boundary ambiguity and morphological distortion through two complementary modules. Specifically, an Uncertainty-aware Boundary Modeling (UBM) module probabilistically represents tumor edges via learnable mean–variance estimation and gradient-weighted sampling, while a Morphology-Preserving Regularization (MPR) module constrains the segmentation with curvature, compactness, and convexity priors to maintain global shape consistency. The framework integrates these designs with multi-scale feature extraction from a SegFormer backbone and requires no additional annotations or three-dimensional (3D) reconstruction. Experiments conducted on the Medical Segmentation Decathlon Challenge dataset and the lung cancer segmentation dataset demonstrate that OncoSeg2D achieves IoU scores of 0.865 and 0.788, mIoU scores of 0.881 and 0.799, and Dice Similarity Coefficients (DSC) of 0.923 and 0.816, consistently outperforming conventional CNN-based models and mainstream Transformer-based methods. Compared with the SegFormer baseline, the proposed method improves mIoU by 3.8% and 4.0% on the two datasets, respectively, while reducing the Hausdorff distance from 5.61 to 3.41 and from 7.26 to 5.28, indicating superior boundary refinement and stronger global shape consistency. These results verify that explicitly integrating uncertainty modeling and morphological priors yields both higher accuracy and better interpretability. Overall, the proposed framework not only enhances segmentation accuracy but also improves clinical interpretability and reliability, offering a promising solution for lung cancer diagnosis assistance and therapeutic outcome monitoring.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 21, Issue 7
Published July 02, 2026
Pages e0348719
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (4)

L

Luhang Yu

X

Xueshan Dong

K

Kai Fa

Y

Yifan Li