Abstract
Accurate segmentation of non-small cell lung cancer (NSCLC) on positron emission tomography/computed tomography (PET/CT) is an essential prerequisite for automated metabolic tumor volume (MTV) quantification and staging. Although deep learning models achieve high performance on large-scale datasets, their generalization across different clinical domains is limited by variations in imaging protocols and patient demographics. This study aims to evaluate several deep learning architectures and investigate a transfer learning strategy to mitigate domain shift. Three architectures, including ResNet-backbone 3D U-Net, nnU-Net v2, and Swin UNETR, were benchmarked from scratch and compared with a fine-tuned nnU-Net initialized with AutoPET II weights. Results on the internal dataset showed that the fine-tuned nnU-Net achieved a Dice similarity coefficient (DSC) of 83.4 ± 6.5%, a 95% Hausdorff distance (HD95) of 5.1 ± 3.6 mm, and a precision of 89.6 ± 8.2%. Compared to the nnU-Net v2, the fine-tuned nnU-Net improved the absolute DSC by 6.8% while reducing local training time by 37.5% by bypassing the initial feature-learning phase. The fine-tuned nnU-Net model also demonstrated a high correlation between the MTV and the ground truth (Pearson r = 0.96, p < 0.001), indicating its potential as a reliable automated approach for quantitative MTV extraction and NSCLC prognostic-related analysis.
Keywords:
NSCLC; PET/CT; deep learning; nnU-Net; domain shift; transfer learning; tumor segmentation 1. Introduction
Non-small cell lung cancer (NSCLC) is a leading cause of cancer-related mortality globally, with an increasing incidence in Asian countries, including Vietnam. In modern clinical diagnostics, 18F-FDG positron emission tomography/computed tomography (PET/CT) plays an important role in tumor staging and treatment response assessment by combining anatomical details from CT with metabolic characteristics from PET. This multimodal integration can improve diagnostic accuracy by 20% to 30% compared to standalone CT [1]. However, manual 3D tumor segmentation remains a challenge: it is time-consuming, highly subjective, and suffers from inter-observer variability [2]. Such inconsistencies reduce the reliability of quantitative biomarkers like metabolic tumor volume (MTV) and total lesion glycolysis (TLG), which are essential for prognosticating patient outcomes [3].
The application of deep learning, particularly self-configuring architectures like nnU-Net, has established new high-performance baselines in medical image segmentation [4]. Recent international challenges, such as AutoPET, have demonstrated that automated models can achieve a Dice similarity coefficient (DSC) of approximately 0.80 on large-scale datasets [5,6]. Despite these advancements, generalization remains limited when deploying these models across different clinical environments. The performance of PET-based segmentation algorithms is influenced by domain shift, which originates not only from variations in patient demographics and pathological characteristics but also from differences in imaging hardware, acquisition protocols, and reconstruction methods across institutions [7].
Furthermore, the lack of histologically confirmed datasets in contemporary AI research limits the assessment of clinical accuracy [8]. While several large-scale public PET/CT datasets exist (e.g., AutoPET, LUNG-PET-CT-Dx), they often suffer from an absence of comprehensive histological validation or remain unoptimized for evaluating domain shift across diverse ethnicities [8]. To address these limitations, our study introduces and benchmarks a large-scale dataset comprising 400 PET/CT scans from a Vietnamese patient cohort [9]. The primary contributions of this study are: (1) histopathological confirmation of all NSCLC cases; (2) a multi-rater annotation protocol involving three experienced physicians, combined with the STAPLE consensus algorithm [10,11]; and (3) the implementation of preprocessing pipelines to improve the tumor-to-background signal ratio.
Utilizing this dataset enhances model reliability and improves demographic representation in global medical AI development [12,13]. Specifically, this study benchmarks contemporary reference algorithms on the Vietnamese PET/CT dataset. Furthermore, domain shift and cross-generalization capabilities are evaluated using international public datasets [6,14]. Finally, the correlation between AI-predicted volumetric metrics and clinical outcomes is analyzed in accordance with recent biomedical evaluation guidelines [15].
2. Materials and Methods
The automated NSCLC segmentation framework is illustrated in Figure 1. The evaluated pipeline operates in three sequential steps. First, during the data preparation, raw 3D PET/CT images are pre-processed and a consensus ground truth is generated from three expert annotations using the STAPLE algorithm, followed by conversion into NIfTI format. Second, during the training phase, the dataset is partitioned using stratified 5-fold cross-validation. An nnU-Net v2 model is fine-tuned and compared against models trained from scratch (standard nnU-Net v2, Swin UNETR, and ResNet-backbone 3D U-Net) under a unified configuration (hybrid loss, patch size of 128 × 128 × 128, AdamW optimizer). Finally, in the inference and evaluation stage, predictions are generated using a sliding-window strategy with test-time augmentation, followed by post-processing to obtain final 3D segmentation masks. Model performance is assessed using spatial metrics (DSC, HD95, ASSD) and clinical relevance via MTV correlation.
Figure 1.
Overview of the implemented validation end-to-end framework for automated NSCLC segmentation.
2.1. Dataset Preparation
This study utilized an extended version of the Vietnamese NSCLC PET/CT dataset [9]. Data were collected between June 2019 and June 2023 from three oncology centers: Vietnam National Cancer Hospital, Hanoi Oncology Hospital, and Ho Chi Minh City Oncology Hospital. Clinicopathological characteristics of the patient cohort and PET/CT dataset are shown in Table 1. A total of 416 whole-body PET/CT scans were initially retrieved. After excluding 16 cases with respiratory motion artifacts, 400 cases were included for analysis. This cohort consisted of 284 NSCLC patients (with a total of 342 primary and metastatic lesions, averaging 1.2 lesions per patient) and 116 negative controls (healthy individuals or patients with benign pathologies). The negative controls were included to evaluate the model’s capacity to control the false-positive rate in regions with physiological FDG uptake, analogous to the design of the AutoPET dataset. All 284 NSCLC cases were confirmed via histopathology (biopsy or surgery).
Table 1.
Clinicopathological characteristics of the patient cohort and PET/CT dataset.
To address the imaging domain characteristics, the acquisition parameters across the participating centers were standardized. Following standard clinical preparation, patients were instructed to fast for at least 6 h prior to the scan, and blood glucose levels were verified to be within normal limits. 18F-FDG was administered intravenously with a weight-based activity ranging from 3.7 to 5.5 MBq/kg, followed by a standardized uptake time of approximately 60 min.
Whole-body PET/CT scans were primarily performed using Siemens Biograph mCT systems (Siemens Healthineers, Erlangen, Germany) across the Vietnam National Cancer Hospital, Hanoi Oncology Hospital, and Ho Chi Minh City Oncology Hospital. Unenhanced low-dose CT scans were acquired for attenuation correction and anatomical localization. The native CT images were reconstructed with a matrix size of 512 × 512 pixels, an in-plane pixel spacing of 1.037 × 1.037 mm2, and a slice thickness of 3.26 mm. For the PET imaging, data were acquired in 3D mode and reconstructed using the ordered-subset expectation maximization (OSEM) algorithm with 2 iterations and 24 subsets, resulting in a matrix size of 192 × 192 pixels, an in-plane resolution of 3.646 × 3.646 mm2, and a matching slice thickness of 3.26 mm.
Figure 2 illustrates the multimodal imaging inputs and the ground-truth generation workflow utilized in this study. By fusing anatomical details from unenhanced CT scans with metabolic activity from 18F-FDG PET, NSCLC lesions were localized and subsequently manually delineated in 3D Slicer (version 5.2.2; Surgical Planning Laboratory, Brigham and Women’s Hospital, Boston, MA, USA) by three senior nuclear medicine physicians, each with over 10 years of clinical experience in oncologic PET/CT imaging. To account for inter-observer variability, the STAPLE algorithm [10] was applied to synthesize these independent annotations into a unified probability map, which was then thresholded at p ≥ 0.5 to produce a binary reference standard based on the optimal weighting of each rater’s performance. This process yields a consistent consensus that mitigates subjective human bias [11], providing a reference standard for training the deep learning architectures. Finally, the dataset was partitioned using a 5-fold cross-validation strategy, stratified by tumor volume and SUVmax, and standardized into 3D binary masks (where 1 represents the tumor region and 0 denotes healthy tissue).
Figure 2.
Visualization of multimodal PET/CT data and the ground-truth generation process. (A) Unenhanced CT; (B) 18F-FDG PET (SUV map); (C) Fused PET/CT; (D) Inter-observer variability among three experts; (E) STAPLE probability map; and (F) Final probabilistic consensus used as the reference standard.
2.2. Image Preprocessing
The entire preprocessing pipeline was implemented via the nnU-Net v2 framework (version 2.2.1) [4]. To harmonize the native heterogeneous spatial resolutions described above (CT: 1.037 × 1.037 × 3.26 mm3 vs. PET: 3.646 × 3.646 × 3.26 mm3), both PET and CT images were uniformly resampled to an isotropic voxel spacing of 2.0 × 2.0 × 2.0 mm3. Cubic spline interpolation was used for intensity data, and nearest-neighbor interpolation was applied for mask labels to preserve the multi-rater STAPLE tumor boundaries.
- CT Channel: Window clipping was applied at [−1000, 400] HU to focus on the lung parenchyma and exclude bone artifacts. Subsequently, Z-score normalization was applied. Following the default and validated workflow of the nnU-Net v2 architecture, the normalization statistics (mean and standard deviation) were automatically extracted from the global foreground voxels of the entire training directory (imagesTr) prior to cross-validation fold splitting. This standard procedure establishes a stable intensity baseline across the dataset without introducing spatial feature leakage.
- PET Channel: Radioactivity intensity was converted to Standardized Uptake Value (SUV) based on body weight and clipped at [0, 20] to mitigate the impact of outliers. Similar to the CT channel, the PET Z-score normalization was executed using the global dataset-level foreground statistics as defined by the default nnU-Net v2 preprocessing pipeline.
Data augmentation was applied dynamically (on-the-fly) during training using the batchgenerators framework, rather than expanding the dataset offline. Each 3D patch sampled for a batch was subjected to stochastic transformations (including random rotation, scaling, and Gaussian noise simulation) with a predefined probability of 20% per transformation.
2.3. Segmentation Models
The selection of deep learning architectures in this study aims to optimize segmentation performance and establish a benchmarking system to evaluate the adaptability of contemporary models to the specific anthropometric characteristics and image distributions of Vietnamese patients. The nnU-Net v2 was utilized as the baseline model due to its automated self-configuring capabilities based on data characteristics, allowing for the determination of training parameters without manual intervention. With an input patch size of 128 × 128 × 128 voxels, this model simultaneously ingests multi-channel PET and CT data, facilitating consistent delineation of anatomical boundaries [16].
To address the limitations of traditional CNNs, which are constrained by local receptive fields, the Swin UNETR architecture was included to evaluate the self-attention mechanism of the Transformer network. By tokenizing 3D data into patches and processing them through hierarchical Swin Transformer blocks with a 7 × 7 × 7 window size, this model is capable of modeling the long-range dependencies of biomedical signals. This characteristic is suitable for identifying large NSCLC tumors or those with complex invasive morphologies, contributing to segmentation sensitivity [17].
Finally, a ResNet-backbone 3D U-Net [18] based on the MONAI framework (version 1.3.0) [19] was included as an architectural baseline to assess the efficacy of feature fusion at the encoder level. The performance contrast between this model and the fine-tuned nnU-Net version indicates that standard architectures, when not subjected to transfer learning on the target data domain, may exhibit limited capability in mitigating domain shift.
2.4. Training and Implementation Details
To ensure a standardized benchmark, the experimental setup was divided into shared environmental constraints and architecture-specific optimization schedules. All models were trained on an identical hardware environment equipped with an NVIDIA RTX Pro 6000 Blackwell Max-Q Edition GPU (96GB GDDR7; NVIDIA Corporation, Santa Clara, CA, USA). The shared constraints included a multi-channel input patch size of 128 × 128 × 128 voxels, a synchronized dynamic patch extraction mechanism, and the hybrid loss function.
Patch extraction was performed during the training process. To mitigate the class imbalance between the NSCLC tumors and the background, a forced oversampling strategy was employed. Specifically, one-third of the extracted patches within each training batch were constrained to center on a foreground class (tumor voxel), while the remaining two-thirds were sampled uniformly at random across the entire 3D image volume. Furthermore, the total number of patches extracted per original image is not a fixed integer; instead, patches are continuously and stochastically sampled across the entire training dataset to formulate 250 training iterations per epoch.
- Training regimen:
Optimization schedules were tailored to achieve convergence for each specific network topology rather than enforcing a fixed epoch budget. For the nnU-Net architecture, the training process adhered to the default schedule with a maximum of 1000 epochs. Notably, the fine-tuned nnU-Net model was initialized with weights from the AutoPET II 2023 challenge (publicly shared on the Zenodo platform by Isensee et al. [20]) and fine-tuned for 500 additional epochs. Algorithmic convergence was defined by the exhaustion of the polynomial learning rate (polyLR) schedule, wherein the learning rate incrementally decayed to near zero. Network weights were selected based on the highest exponential moving average of the pseudo-Dice score evaluated on the validation set to prevent overfitting. For architectures deployed via the MONAI framework (ResNet-backbone 3D U-Net and Swin UNETR), the models were trained for 300 epochs using the AdamW optimizer, reaching convergence via an early-stopping mechanism. The initial learning rate was set at 1 × 10−4 with a cosine annealing decay schedule and a weight decay coefficient of 1 × 10−5. The overall batch size was established at 8 through a gradient accumulation mechanism.
- Loss function:
A hybrid loss function was utilized to optimize the network, combining the stability of the cross-entropy loss with the capability of handling class imbalance inherent to the soft-Dice loss. In this evaluated framework, the weighting coefficients for both loss components were set to a 1:1 ratio. This equal weighting follows the empirically validated default settings of the nnU-Net architecture. Maintaining this 1:1 ratio balances the voxel-level classification from the cross-entropy loss and the spatial overlap optimization from the Dice loss, which facilitates model convergence without requiring manual hyperparameter tuning. The formula is defined as follows:
in which the components are calculated according to the formula:
where is the actual ground truth label at the i-th voxel; is the predicted probability of the model at that voxel; N is the total number of voxels in the 3D image space; and is a very small smoothing constant to prevent division by zero errors.
- Inference and Post-processing:
The inference process on the test set applied a sliding-window approach with a 50% patch overlap, combined with test-time augmentation (TTA) techniques by averaging predictions across image mirroring operations. The post-processing step utilized a connected component analysis (CCA) algorithm to eliminate small noise regions, retaining lesion clusters. An internal ablation study indicated that combining a probability threshold of 0.5 with TTA and CCA reduced the false-positive area in regions of physiological FDG uptake (such as brown fat and myocardium).
2.5. Evaluation Metrics
The evaluation of spatial accuracy and detection performance followed guidelines from Metrics Reloaded [15]. To ensure computational reproducibility, metric evaluations were executed via the monai.metrics library with explicit parameter configurations. Specifically, the 95% Hausdorff Distance was calculated using HausdorffDistanceMetric configured with percentile = 95 and include_background = False. The Average Symmetric Surface Distance (ASSD) was computed using SurfaceDistanceMetric with symmetric = True and include_background = False. For all distance-based metrics, the physical voxel spacing was automatically extracted from the NIfTI affine matrix to account for the actual physical dimensions (mm) rather than voxel counts. The mathematical formulations are defined as follows:
- DSC: Measures the degree of spatial overlap between the predicted label (P) and the ground truth (G).
- HD95: Computes the maximum distance between two sets of surface points while excluding the top 5% of outliers, thereby mitigating noise caused by isolated, highly divergent predictions.
- ASSD: Measures the average distance from the surface of the automated segmentation to the surface of the manual annotation, and vice versa. A lower ASSD demonstrates that the predicted contour closely adheres to the original label.
Statistical analysis was performed at the case level, utilizing the aggregated predictions from the 5-fold cross-validation. Continuous performance metrics (DSC, HD95, ASSD) are expressed as mean ± standard deviation across the individual patient cases. To evaluate the statistical significance of performance differences between the baseline architectures and the fine-tuned nnU-Net, paired case-level comparisons were conducted using the non-parametric Wilcoxon signed-rank test. To control the family-wise error rate arising from multiple comparisons (three baseline models versus the fine-tuned model), the Holm–Bonferroni correction was applied to all reported p-values.
Because distance metrics are undefined for empty sets, the spatial evaluations (DSC, HD95, ASSD) were exclusively calculated on the cohort of 284 histologically confirmed lesion-positive NSCLC cases. To evaluate the model’s pathological detection capabilities and its performance in regions of physiological FDG uptake, voxel-level Sensitivity (Recall) and Precision (Positive Predictive Value) were defined as follows:
where TP (True Positive) represents correctly identified tumor voxels, FN (False Negative) indicates missed tumor voxels, and FP (False Positive) signifies healthy tissue incorrectly classified as tumor.
Furthermore, the 116 negative-control scans (empty-mask cases) were analyzed independently to determine the physiological False-Positive Rate (FPRcase) at the case level. A negative control scan was classified as a false positive if the automated framework predicted a lesion volume strictly greater than zero after post-processing. The formulation is defined as:
where NFP_scan is the number of negative-control scans containing at least one false-positive prediction, and NNegative_controls is the total number of healthy/benign cases (n = 116).
To assess the absolute clinical agreement in MTV quantification between the customized pipeline and the manual STAPLE consensus, the intraclass correlation coefficient (ICC) was computed. Specifically, a two-way random-effects model for absolute agreement of a single rater, denoted as ICC(2,1), was utilized to account for systematic differences, alongside the 95% confidence intervals (95% CI). In this analysis, an ICC value ≥ 0.90 was predefined as indicating excellent absolute agreement for clinical applicability.
3. Results
3.1. Performance on Internal Dataset
Table 2 summarizes the hardware environment, optimization schedules, convergence criteria, and training efficiency across all evaluated architectures. The baseline nnU-Net v2 and fine-tuned nnU-Net architectures were trained for 1000 and 500 epochs, requiring approximately 16.0 and 10.0 h per fold, respectively. The MONAI-based ResNet-backbone 3D U-Net and Swin UNETR models were both trained for 300 epochs, with a local training time per fold of approximately 12.5 and 24.0 h, respectively.
Table 2.
Hardware, optimization schedules, and computational cost across benchmarked architectures.
The results of the 5-fold cross-validation on the Vietnamese patient PET/CT dataset are reported in detail to identify the optimal model architecture. Table 3 presents the quantitative segmentation performance of three deep learning models (trained from scratch), compared with the model employing a transfer learning strategy (fine-tuned from pretrained weights).
Table 3.
Quantitative comparison of segmentation performance across different deep learning architectures on the internal Vietnamese cohort.
As shown in Table 3, the nnU-Net model (pretrained + fine-tuned) achieved a DSC of 83.4 ± 6.5%. Additionally, this model recorded an HD95 of 5.1 ± 3.6 mm and an ASSD of 2.0 ± 2.2 mm. The precision of the fine-tuned architecture was 89.6 ± 8.2%, indicating control over false positives in regions of physiological FDG uptake.
Among the architectures trained from scratch, the baseline nnU-Net v2 yielded a DSC of 76.6 ± 7.5% and HD95 of 7.3 ± 8.6 mm, followed by Swin UNETR with a DSC of 71.2 ± 8.6%. Although its DSC was lower than that of nnU-Net, Swin UNETR recorded the highest sensitivity (80.4 ± 8.1%). This capability to minimize false negatives can be attributed to the self-attention mechanism inherent to Transformer networks, which facilitates global context modeling. Conversely, the ResNet-backbone 3D U-Net achieved a DSC of 65.0 ± 10.2% and an HD95 of 15.8 ± 8.5 mm.
Figure 3 presents qualitative results from five representative patient cases, comparing the segmentation outputs of the evaluated architectures. Visual assessment indicates that the baseline nnU-Net and Swin UNETR models exhibit deviations when delineating complex tumor boundaries. In contrast, the fine-tuned nnU-Net demonstrates the closest overlap with the STAPLE consensus, particularly in regions of heterogeneous FDG uptake. Given its higher spatial accuracy and precision, the fine-tuned nnU-Net was utilized for all downstream analyses in this study.
Figure 3.
Representative qualitative results with different training architectures. (A) Fused PET/CT; (B) Ground Truth (STAPLE); (C) nnU-Net (Baseline, blue color); (D) Swin UNETR (Yellow color); and (E) Fine-tuned nnU-Net (Red Color).
3.2. Inter-Observer Agreement
Evaluating a deep learning model against human inter-observer variability is a prerequisite for determining its feasibility for clinical application. In this study, the human baseline, measured as the average pairwise DSC among the three independent nuclear medicine experts, was 80.2 ± 6.6%.
The fine-tuned nnU-Net achieved its highest spatial agreement (DSC = 83.4%) when evaluated against the STAPLE consensus label, as this probabilistic map served as its training target. To evaluate the model’s performance against individual human variability, it was compared with each rater independently. As detailed in Table 4, when evaluated against Rater 1, Rater 2, and Rater 3, the fine-tuned model attained DSC values of 81.5%, 82.2%, and 81.8%, respectively, resulting in an average DSC of 81.8%.
Table 4.
Agreement DSC analysis between the fine-tuned model and individual expert radiologists.
The automated model demonstrated higher spatial agreement with individual physicians than the agreement observed among the physicians themselves. Furthermore, the segmentation performance of the model exceeded the human inter-observer baseline in 68% of the evaluated cases. These findings indicate that the fine-tuned framework captures consensus characteristics and maintains segmentation consistency, mitigating the variability associated with manual delineation. This performance supports its potential application for automated MTV quantification in clinical workflows.
3.3. Performance on International Dataset
To evaluate domain generalization and sensitivity to domain shift, the segmentation architectures were applied directly (zero-shot, without retraining) to an independent external dataset: the LUNG-PET-CT-Dx (TCIA) [14]. A sub-cohort of 50 patient cases was selected based on the availability of paired whole-body 18F-FDG PET and unenhanced CT scans, along with primary lung cancer diagnoses (predominantly non-small cell lung cancer). The reference masks for this external cohort were derived from the original dataset annotations provided by thoracic radiologists. To ensure methodological consistency and prevent data leakage, the preprocessing pipeline for the external dataset replicated the procedure applied to the internal validation set.
As presented in Table 5, the models trained from scratch on the internal dataset exhibited performance degradation when evaluated on external data. The baseline nnU-Net v2 and Swin UNETR models recorded average DSC decreases of 22.9% and 21.3%, respectively. Furthermore, these baseline architectures demonstrated substantial spatial boundary errors, with HD95 values reaching 19.9 mm and 21.7 mm, and ASSD values of 7.0 mm and 8.4 mm. Their precision metrics dropped to 65.1% and 69.5%, indicating an increase in false-positive predictions on the external domain. This performance decline originates from systematic differences in scanner protocols, SUV normalization techniques, and demographic variations between Asian and Western patient populations.
Table 5.
Zero-shot generalization performance of the segmentation models on the LUNG-PET-CT-Dx dataset.
Conversely, the fine-tuned nnU-Net model maintained a DSC of 79.8% on the LUNG-PET-CT-Dx dataset, limiting the average drop to 4.5%. The customized pipeline also preserved spatial boundary accuracy, recording an HD95 of 6.9 mm and an ASSD of 2.2 mm. With a precision of 83.7%, the fine-tuning strategy demonstrated a consistent capability to control false positives and adapt to domain shifts compared to the architectures trained from scratch.
The generalization capability of the fine-tuned model is illustrated through the statistical distribution in Figure 4. The chart indicates that when evaluated on external datasets, the baseline architectures (nnU-Net v2 and Swin UNETR) exhibited decreases in median DSC values and increased data dispersion. Specifically, the interquartile ranges (IQRs) for these models widened, accompanied by multiple outliers with performance dropping below a DSC of 0.4. In contrast, the fine-tuned nnU-Net model maintained consistent performance. The IQR of the fine-tuned model on LUNG-PET-CT-Dx datasets remained narrow and comparable to its distribution on the internal dataset. This suggests that the fine-tuned framework preserves segmentation accuracy and mitigates errors associated with variations in imaging protocols and scanner equipment.
Figure 4.
Distribution of DSC across internal and external datasets. The boxplots illustrate the median, interquartile range (IQR), and outlier circles for the benchmarked models, highlighting the superior stability of the fine-tuned framework under domain shift.
3.4. Ablation Study: Effect of Pretrained Fine-Tuning
To systematically isolate the empirical benefits of domain-specific fine-tuning from the inherent capabilities of the pretrained model, an ablation study was conducted. We compared three distinct configurations: a baseline model trained from scratch with random initialization, a zero-shot pretrained model (initialized with AutoPET II weights but without any local retraining), and the fine-tuned model in Table 6.
Table 6.
Ablation study results evaluating the impact of transfer learning on segmentation accuracy and training efficiency.
As presented in Table 6, the zero-shot pretrained model yielded a DSC of 76.7%, which is comparable to the baseline model trained entirely from scratch (76.6%). However, a discrepancy was observed in the spatial boundary error. The zero-shot pretrained model exhibited an HD95 of 198.1 mm, compared to 7.30 mm for the baseline model. This spatial error indicates the presence of a domain shift between the training and target datasets. When directly applying the AutoPET II pretrained weights to the local dataset, the model produced distant false-positive predictions (likely in regions of physiological FDG uptake such as the brain, myocardium, or urinary tract). This is driven by systematic differences in scanner protocols, SUV normalization techniques, and the specific focus on NSCLC versus a multi-cancer cohort.
The fine-tuned nnU-Net increased the spatial overlap to a DSC of 83.4% and reduced the HD95 to 5.10 mm. These results reveal that deploying global pretrained weights without local adaptation is susceptible to domain shift artifacts. Furthermore, these findings indicate that an appropriate fine-tuning strategy on the target domain enables the model to adapt to institution-specific imaging protocols, data characteristics, and disease-related variations.
3.5. Clinical Assessment of Metabolic Tumor Volume
Beyond spatial overlap metrics (such as DSC and HD95), the clinical utility of a deep learning model in oncology depends on its accuracy in extracting quantitative parameters, particularly the MTV. To assess this capability, the tumor volumes predicted by the automated model were compared with the volumes derived from the STAPLE consensus labels.
Figure 5A presents the statistical analysis evaluating MTV on a per-patient basis (n = 284). The automated predictions demonstrated absolute agreement with the STAPLE consensus, yielding an ICC of 0.94 (95% CI: 0.91–0.96, p < 0.001), and a Pearson correlation of r = 0.96.
Figure 5.
Clinical agreement analysis of MTV extracted by the fine-tuned nnU-Net model versus the expert STAPLE consensus. (A) Correlation of metabolic tumor volume and (B) Bland–Altman agreement analysis.
Furthermore, the Bland–Altman analysis [21] (Figure 5B) illustrates the volumetric consistency of the evaluated framework, recording a mean bias of +1.8 mL. The 95% limits of agreement ranged from −11.5 mL to +15.0 mL. Previous multi-center studies evaluating inter-observer variability in NSCLC PET/CT segmentation [22,23] indicate that manual MTV delineations exhibit volume variations of up to 15–20 mL due to the ambiguous boundaries of heterogeneous tumors. Consequently, the volume differences produced by the fine-tuned pipeline fall within the established range of human inter-observer variability, supporting its application for quantitative tumor staging.
The fine-tuning process on the internal data mitigated false-positive phenomena in regions of physiological FDG uptake. Compared to the baseline nnU-Net model, the misidentification rate in areas such as brown fat and the myocardium decreased from 14% to 6%. This reduction indicates that the model differentiated pathological signals from the patient-specific physiological metabolic activities.
Figure 6 illustrates the visual discrepancies between the STAPLE consensus label (solid green line) and the prediction from the evaluated framework (dashed red line). The model exhibited segmentation differences in complex anatomical and physical scenarios. In instances of close proximity, such as tumor–pleural interfaces, the model produced over-segmentation due to partial volume effects blurring the boundaries (Figure 6A). Figure 6B presents a case of under-segmentation in a tumor containing a non-FDG-avid necrotic core, where the prediction was confined to the hypermetabolic rim and omitted the internal necrotic volume delineated by the expert consensus. Furthermore, the model demonstrated over-segmentation by including adjacent post-obstructive atelectasis, as it struggled to differentiate between the malignant lesion and inflamed tissue on the multimodal images (Figure 6C). Figure 6D shows boundary deviation caused by spatial misalignment from patient respiratory motion artifacts. Finally, Figure 6E highlights under-segmentation resulting from the spatial mismatch where the metabolic PET signal spills over the CT anatomical boundary. These discordant cases illustrate the ongoing challenges in segmenting heterogeneous tumors and handling multimodal imaging artifacts. Finally, Figure 6F demonstrates boundary deviation when the tumor is located in close proximity to regions of high physiological 18F-FDG uptake, which complicates the delineation of the true metabolic tumor volume.
Figure 6.
Qualitative analysis of segmentation discordance in challenging anatomical boundary regions: (A) pleural over-segmentation; (B) under-segmentation of a non-FDG-avid necrotic tumor core; (C) Over-segmentation into adjacent post-obstructive atelectasis; (D) Boundary deviation affected by spatial misalignment from respiratory motion artifacts; (E) Under-segmentation resulting from spatial mismatch; (F) Over-segmentation due to the tumor’s close proximity to physiological uptake.
4. Discussion
This study implemented and validated an automated NSCLC tumor segmentation framework on multimodal 18F-FDG PET/CT images based on nnU-Net v2. The pipeline was optimized for a Vietnamese patient population using a dataset of 400 cases featuring histologically confirmed lesions and STAPLE consensus labels from three nuclear medicine experts. The quantitative results provide evidence of the fine-tuned nnU-Net architecture’s improved performance over architectures trained from scratch, as well as its generalization capability on external data.
In the internal 5-fold cross-validation, the fine-tuned nnU-Net model achieved a DSC of 83.4 ± 6.5%, an HD95 of 5.1 ± 3.6 mm, and a precision of 89.6 ± 8.2%. Compared to the baseline nnU-Net v2 (DSC 76.6 ± 7.5%; HD95 7.3 ± 8.6 mm), the fine-tuned architecture improved spatial accuracy and precision while reducing surface error (ASSD decreased from 2.5 ± 2.3 mm to 2.0 ± 2.2 mm). This aligns with the recommendations of Isensee et al. [16] regarding the benefits of fine-tuning nnU-Net on target data and is consistent with recent studies on domain adaptation in PET/CT segmentation [17,24].
The cross-domain generalization potential was evaluated directly on external datasets. While the pairwise DSC among the three physicians was 80.2%, the fine-tuned model achieved an average DSC of 81.8% when evaluated independently against each rater, peaking at 83.4% against the STAPLE consensus label. The automated performance exceeded the inter-observer baseline in 68% of the cases, supporting the clinical feasibility of the framework. Furthermore, models trained from scratch (baseline nnU-Net v2 and Swin UNETR) exhibited average DSC decreases of 22.9% and 21.3% on the external data, respectively. In contrast, the fine-tuned nnU-Net model recorded a performance decrease of only 4.5% (maintaining a DSC of 79.8% on LUNG-PET-CT-Dx). The statistical distribution illustrates that the fine-tuned model possesses a narrow dispersion range and fewer outliers, mitigating domain shift caused by variations in demographics, SUV distributions, and scanner protocols.
The ablation analysis indicates the value of transfer learning. The zero-shot model yielded a high spatial error (HD95 of 198.1 mm) because the AutoPET II pretrained weights were derived from a multi-cancer cohort. Consequently, the model lacked specificity for lung-confined lesions and was sensitive to variations in local SUV normalization parameters. Transfer learning through local fine-tuning resolved this issue by adapting the network weights to the lung-specific evaluation context. This adaptation successfully reduced the HD95 to 5.1 mm, increased the DSC from 76.6% to 83.4%, and reduced local training time by 37.5%. These findings confirm that deploying globally pretrained weights without local adaptation is susceptible to domain shift artifacts, and that target-domain fine-tuning is necessary to ensure reliable automated segmentation.
Regarding clinical utility, the fine-tuned model demonstrated a linear correlation with the MTV manually measured by experts (Pearson r = 0.96, p < 0.001), with a Bland–Altman mean bias of +1.8 mL (95% LoA: −11.5 to +15.0 mL). Concurrently, the false-positive rate in regions of physiological FDG uptake (such as brown fat, myocardium, and brain) decreased from 14% to 6%, indicating that the model differentiated pathological signals from physiological metabolic activities.
Despite the overall segmentation accuracy, qualitative analysis (Figure 6) revealed limitations in complex anatomical boundaries. As observed in Figure 6A, the model occasionally exhibited deviations in delineating the boundary between the tumor and adjacent structures such as the pleura, leading to over-segmentation. This is likely exacerbated by the partial volume effect inherent to PET imaging, which blurs signals at the edges. Conversely, for large tumors with central necrosis (Figure 6B), the network tended toward under-segmentation. Because the necrotic region lacks FDG avidity, the model primarily relied on the hypermetabolic PET signal, resulting in the omission of the tumor core despite the CT channel providing tissue density information. These localized boundary discordances explain the residual error in the DSC (~16.5%) and HD95 (5.1 mm) metrics. Future algorithmic refinements could focus on integrating boundary-aware loss functions or enhancing attention mechanisms for the CT feature stream, compelling the model to recognize morphology comprehensively rather than relying predominantly on FDG metabolism.
To systematically quantify the limitations observed in Figure 6, an error analysis was conducted on the discordant cases (defined as predictions yielding a DSC < 0.70). Among these suboptimal segmentations, pleural over-segmentation (Figure 6A) was the most frequent error, accounting for 45% of the failed cases. This error was predominantly associated with lesions located directly adjacent to the chest wall or mediastinum, where partial volume effects blur the anatomical borders. Under-segmentation of necrotic cores (Figure 6B) constituted 23% of the errors, primarily observed in large-volume tumors (volume > 43 mL) exhibiting central necrosis and non-avid 18F-FDG centers. Furthermore, the remaining discordant cases were primarily distributed among three specific challenging scenarios. Over-segmentation into adjacent post-obstructive atelectasis (Figure 6C) accounted for 12% of the errors, as the model struggled to differentiate malignant tissue from secondary lung inflammation. Boundary deviations caused by spatial misalignment from respiratory motion artifacts (Figure 6D) represented 12%. About 8% of the errors were linked to under-segmentation resulting from the blooming effect, where the metabolic PET signal spills over the CT anatomical boundary (Figure 6E). These numerical findings indicate that the evaluated framework faces specific challenges when processing tumors with extreme morphological heterogeneity, adjacent inflammatory processes, or multimodal spatial mismatches.
The evaluation of external datasets was conducted in silico, and the direct impact on patient prognosis was not measured. Future prospective, multi-center trials are required to establish the clinical feasibility and generalization capacity of this automated framework in real-world nuclear medicine and clinical oncology workflows.
Additionally, while the local fine-tuning phase required 10.0 h per fold, this efficiency metric inherently relies on the substantial computational cost previously amortized during the generation of the public AutoPET II weights. A potential limitation of this comparative analysis is the uneven training budget. Specifically, the MONAI-based models (ResNet-backbone 3D U-Net and Swin UNETR) were trained for 300 epochs until early-stopping convergence, whereas the nnU-Net architecture ran for a default budget of 1000 epochs. Although this discrepancy reflects the utilization of native optimal configurations for each framework, it results in unequal computational budgets. Future benchmarking studies should consider standardizing these computational parameters to ensure a strictly equitable comparison baseline.
5. Conclusions
This study investigated an automated NSCLC tumor segmentation framework for 18F-FDG PET/CT based on a fine-tuned nnU-Net v2 architecture using a histologically confirmed dataset of 400 Vietnamese patients. Compared with models trained from scratch, including the baseline nnU-Net and Swin UNETR, the fine-tuned model achieved improved segmentation performance, demonstrated strong agreement with expert-derived MTV measurements (r = 0.96), and reduced physiological false-positive detections from 14% to 6%.
The evaluated framework also showed competitive performance on an external dataset, achieving a DSC of 79.8% on LUNG-PET-CT-Dx. Compared with the baseline model, the fine-tuned approach exhibited substantially lower performance degradation under domain shift conditions, with an average DSC decrease of 4.5% versus 22.9% for the baseline model. In addition, the fine-tuning strategy reduced local training time by 37.5%, improving computational efficiency.
These findings suggest that domain shift may present a bidirectional challenge for PET/CT tumor segmentation, affecting both locally trained models applied to external datasets and globally pretrained models applied to local datasets. The results further suggest that target-domain fine-tuning can improve model adaptation to differences in imaging protocols, scanner characteristics, and disease distributions, which may facilitate automated MTV quantification. Nevertheless, further independent multi-center and prospective validation will be necessary to confirm the generalizability and broader clinical applicability of the proposed framework.
Author Contributions
Conceptualization, methodology, writing—original draft: Q.T.H. and N.H.B.; data curation, formal analysis, validation: T.D.T., Q.H.K., V.T.N., T.T.N., D.T.M., Q.D.T., D.C.N., N.H.G.T. and K.N.V.; software, review: X.C.L. and H.Q.N.; visualization, editing: V.C.C. and T.H.B.; translating & editing: T.T.V.; supervision, review & editing: N.T.T. and H.Q.H. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the National Foundation for Science and Technology Development (NAFOSTED) under grant number No. NCUD.01-2025.32.
Institutional Review Board Statement
The study was conducted in accordance with the Declaration of Helsinki and approved by the Institutional Review Board of Ho Chi Minh Oncology Hospital, Vietnam (protocol code 519/BVUB-CDT and date of approval 1 August 2023). All imaging and clinical data were strictly de-identified prior to analysis to ensure patient privacy and confidentiality.
Informed Consent Statement
Patient consent was waived by the Institutional Review Board of Ho Chi Minh Oncology Hospital due to the strictly retrospective nature of this study, the use of fully anonymized data, and the unavailability of patients.
Data Availability Statement
The raw whole-body 3D PET/CT imaging datasets analyzed in this study are not publicly available due to institutional regulations and ethical restrictions related to patient privacy. De-identified datasets may be available from the corresponding author upon reasonable request and subject to approval by the Institutional Review Board of Ho Chi Minh Oncology Hospital, Vietnam.
Acknowledgments
The authors would like to express their sincere gratitude to the medical staff, radiologists, and nuclear medicine experts at Vietnam National Cancer Hospital, Ho Chi Minh City Oncology Hospital, and 108 Military Central Hospital for their invaluable support in data collection and STAPLE consensus annotation. We also extend our appreciation to the creators of the AutoPET II and LUNG-PET-CT-Dx datasets for providing the public cohorts used for our cross-domain generalization testing.
Conflicts of Interest
Author Hai Quan Ho was employed by the company Viettel Group. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
References
- Xiang, D.; Zhang, B.; Lu, Y.; Deng, S. Modality-specific segmentation network for lung tumor segmentation in PET-CT images. IEEE J. Biomed. Health Inform. 2022, 27, 1237–1248. [Google Scholar]
- Hershman, M.; Yousefi, B.; Serletti, L.; Galperin-Aizenberg, M.; Roshkovan, L.; Luna, J.M.; Thompson, J.C.; Aggarwal, C.; Carpenter, E.L.; Kontos, D.; et al. Impact of Interobserver Variability in Manual Segmentation of Non-Small Cell Lung Cancer (NSCLC) Applying Low-Rank Radiomic Representation on Computed Tomography. Cancers 2021, 13, 5985. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Liao, S.; Penney, B.C.; Wroblewski, K.; Zhang, H.; Simon, C.A.; Kampalath, R.; Shih, M.-C.; Shimada, N.; Chen, S.; Salgia, R.; et al. Prognostic value of metabolic tumor burden on 18F-FDG PET in nonsurgical patients with non-small cell lung cancer. Eur. J. Nucl. Med. Mol. Imaging 2012, 39, 27–38. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Isensee, F.; Jaeger, P.F.; Kohl, S.A.; Petersen, J.; Maier-Hein, K.H. nnU-Net: A self-configuring method for deep learning-based biomedical image segmentation. Nat. Methods 2021, 18, 203–211. [Google Scholar] [PubMed]
- Gatidis, S.; Früh, M.; Fabritius, M.P.; Gu, S.; Nikolaou, K.; Fougère, C.L.; Ye, J.; He, J.; Peng, Y.; Bi, L.; et al. Results From the AutoPET Challenge on Fully Automated Lesion Segmentation in Oncologic PET/CT Imaging. Nat. Mach. Intell. 2024, 6, 1396–1405. [Google Scholar] [CrossRef] [Scilit]
- Dexl, J.; Gatidis, S.; Früh, M.; Jeblick, K.; Mittermeier, A.; Stüber, A.T.; Schachtner, B.; Topalis, J.; Fabritius, M.P.; Gu, S.; et al. AutoPET Challenge on Fully Automated Lesion Segmentation in Oncologic PET/CT Imaging, Part 2: Domain Generalization. J. Nucl. Med. 2026, 67, 481–488. [Google Scholar] [PubMed]
- Guan, H.; Liu, M. Domain adaptation for medical image analysis: A survey. IEEE Trans. Biomed. Eng. 2021, 69, 1173–1185. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ciarmiello, A.; Yosifov, N.; Masciale, D.; Ferrando, O.; Foppiano, F.; Milano, A.; Canevari, M.; Florimonte, L.; Castellani, M.; Giovacchini, G.; et al. Global and regional accuracy of deep learning-based tumor segmentation from whole-body [18F] fluorodeoxyglucose PET/CT images. EJNMMI Res. 2026, 16, 3. [Google Scholar]
- Tuan, H.Q.; Duong, T.T.; Ha, B.N.; Quyet, N.H.; Tinh, L.V.; Tuynh, C.V.; Nam, V.K.; Dao, L.T.Q.; Luong, C.V.; Linh, D.T.M.; et al. Development of a Vietnamese PET/CT Dataset for Machine Learning-Based Analysis of Non-Small Cell Lung Cancer Images. At. Indones. 2025, 51, 137–143. [Google Scholar] [CrossRef] [Scilit]
- Warfield, S.K.; Zou, K.H.; Wells, W.M. Simultaneous truth and performance level estimation (STAPLE): An algorithm for the validation of image segmentation. IEEE Trans. Med. Imaging 2004, 23, 903–921. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Dewalle-Vignion, A.S.; Betrouni, N.; Baillet, C.; Vermandel, M. Is STAPLE algorithm confident to assess segmentation methods in PET imaging? Phys. Med. Biol. 2015, 60, 9473–9492. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Seyyed-Kalantari, L.; Zhang, H.; McDermott, M.B.; Chen, I.Y.; Ghassemi, M. Underdiagnosis bias of artificial intelligence algorithms applied to chest radiographs in under-served patient populations. Nat. Med. 2021, 27, 2176–2182. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Celi, L.A.; Cellini, J.; Charpignon, M.-L.; Dee, E.C.; Dernoncourt, F.; Eber, R.; Mitchell, W.G.; Moukheiber, L.; Schirmer, J.; Situ, J.; et al. Sources of bias in artificial intelligence that perpetuate healthcare disparities—A global review. PLoS Digit. Health 2022, 1, e0000022. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, P.; Wang, S.; Li, T.; Lu, J.; HuangFu, Y.; Wang, D. A Large-Scale CT and PET/CT Dataset for Lung Cancer Diagnosis (Lung-PET-CT-Dx) [Data Set]; The Cancer Imaging Archive: Little Rock, AR, USA, 2020. [Google Scholar] [CrossRef]
- Maier-Hein, L.; Reinke, A.; Godau, P.; Tizabi, M.D.; Buettner, F.; Christodoulou, E.; Glocker, B.; Isensee, F.; Kleesiek, J.; Kozubek, M.; et al. Metrics reloaded: Recommendations for image analysis validation. Nat. Methods 2024, 21, 195–212. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Isensee, F.; Wald, T.; Ulrich, C.; Baumgartner, M.; Roy, S.; Maier-Hein, K.; Jaeger, P.F. nnU-net revisited: A call for rigorous validation in 3d medical image segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention; Springer Nature: Cham, Switzerland, 2024; pp. 488–498. [Google Scholar]
- Hatamizadeh, A.; Nath, V.; Tang, Y.; Yang, D.; Roth, H.R.; Xu, D. Swin unetr: Swin transformers for semantic segmentation of brain tumors in MRI images. In International MICCAI Brainlesion Workshop; Springer International Publishing: Cham, Switzerland, 2021; pp. 272–284. [Google Scholar]
- Çiçek, Ö.; Abdulkadir, A.; Lienkamp, S.S.; Brox, T.; Ronneberger, O. 3D U-Net: Learning dense volumetric segmentation from sparse annotation. In International Conference on Medical Image Computing and Computer-Assisted Intervention; Springer International Publishing: Cham, Switzerland, 2016; pp. 424–432. [Google Scholar]
- Cardoso, M.J.; Li, W.; Brown, R.; Ma, N.; Kerfoot, E.; Wang, Y.; Murrey, B.; Myronenko, A.; Zhao, C.; Yang, D.; et al. MONAI: An open-source framework for deep learning in healthcare. arXiv 2022, arXiv:2211.02701. [Google Scholar]
- Isensee, F.; Maier-Hein, K.H. Look Ma, no code: Fine tuning nnU-Net for the AutoPET II challenge by only adjusting its JSON plans. arXiv 2023, arXiv:2309.13747. [Google Scholar]
- Bland, J.M.; Altman, D.G. Statistical methods for assessing agreement between two methods of clinical measurement. Lancet 1986, 1, 307–310. [Google Scholar] [CrossRef] [Scilit]
- Van Baardwijk, A.; Bosmans, G.; Boersma, L.; Buijsen, J.; Wanders, S.; Hochstenbag, M.; van Suylen, R.-J.; Dekker, A.; Dehing-Oberije, C.; Houben, R.; et al. Pet-ct–based auto-contouring in non–small-cell lung cancer correlates with pathology and reduces interobserver variability in the delineation of the primary tumor and involved nodal volumes. Int. J. Radiat. Oncol. Biol. Phys. 2007, 68, 771–778. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Steenbakkers, R.J.; Duppen, J.C.; Fitton, I.; Deurloo, K.E.; Zijp, L.; Uitterhoeve, A.L.; Rodrigus, P.T.R.; Kramer, G.W.P.; Bussink, J.; De Jaeger, K.; et al. Observer variation in target volume delineation of lung cancer related to radiation oncologist–computer interaction: A ‘Big Brother’evaluation. Radiother. Oncol. 2005, 77, 182–190. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, H.; Chen, W.; Luo, X.; Xing, Z.; Liu, L.; Qin, J.; Wu, S.C.; Zhu, L. Toward fair and accurate cross-domain medical image segmentation: A vlm-driven active domain adaptation paradigm. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: New York, NY, USA, 2025; pp. 24102–24112. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.





