Abstract
Accurate lung tumor segmentation using computed tomography (CT) scans is needed for efficient tumor treatment. However, the development of deep learning models is often constrained by strict patient privacy regulations that limit direct data sharing. This work presents a system that enables multi-institutional collaboration while training high-quality lung tumor segmentation models without requiring access to sensitive patient data. The proposed framework features the AuraViT suite, which includes the standard AuraViT—a hybrid model with 136 million parameters that combines a Vision Transformer (ViT) encoder, Atrous Spatial Pyramid Pooling (ASPP), and attention-gated residual connections—and the Lightweight AuraViT (LAURA) family (Small, Tiny, and Mobile). These variants are designed for resource-constrained environments and potential edge deployment scenarios. Training is conducted on publicly available datasets (MSD Lung and NSCLC) in a simulated five-client federated learning setup that emulates collaboration among institutions while ensuring patient privacy. The framework uses a federated learning setup with FedProx, adaptive weighted aggregation, and a dynamic virtual client strategy to handle data and system differences. The framework is further evaluated through ablation studies on model architecture and feature importance. The results show that the standard AuraViT-FL achieves a global mean Dice score of 80.81%, while maintaining performance close to centralized training. Additionally, the LAURA variations show a better trade-off between accuracy and efficiency. Notably, the Mobile variant with ∼5 M parameters reduces model complexity by over 96% while maintaining competitive performance (82.96% Dice on MSD Lung).
1. Introduction
Lung tumors pose a severe and persistent global health crisis, representing the leading cause of tumor death worldwide [1]. The lack of symptoms in the early stages often delays diagnosis until the tumor has spread, significantly reducing survival rates [1]. Medical imaging techniques, specifically computed tomography (CT), are widely used in the management of lung tumors due to their high spatial resolution [2]. These tools are also valued for their widespread availability in modern clinical settings [3]. Contrast-enhanced spiral CT is the preferred technique for clinically measuring tumor size and identifying invasion of mediastinal structures, thereby validating clinical staging for therapy planning [2]. Multidetector computed tomography remains the modality of choice for initial assessment because of its high spatial resolution, which accurately delineates advanced tumors and guides lymph node biopsies [3]. Modern diagnostic protocols recommend 18F-FDG PET-CT as the most accurate imaging modality for evaluating tumor structure and activity in patients eligible for radical treatment [4]. This information guides radiotherapy planning and reduces radiation exposure to organs-at-risk (OARs) [4]. However, clinical processing still relies on manual delineation by skilled radiologists, a process that is time-consuming, labor-intensive, and subjective [5]. This dependence often leads to significant inter- and intra-observer variability in target volume delineation [6].
The transition from traditional methods to deep learning has led to the adoption of the U-Net architecture for medical image segmentation [7]. The robustness of the U-Net architecture has been further validated in federated learning settings, where it effectively handles the statistical diversity of non-identically distributed (non-IID) data across institutions [8]. The ability to generalize across diverse, non-identically distributed datasets is particularly valuable in distributed environments where privacy constraints limit the amount of available training data at individual sites, enabling accurate segmentation even with scarce local resources [8]. To address the complexity of anatomical artifacts, advanced variants, such as ResUNet++, integrate residual blocks and attention modules to significantly improve training stability and convergence speed in noisy environments [9]. Consequently, the ResUNet++ framework has proven highly effective for lung segmentation, maintaining high performance even when processing images corrupted by significant acquisition noise [9]. Frameworks such as ARUC-GAN further support the diagnostic process by removing noise from low-dose CT scans, making LDCT a more viable alternative for routine clinical diagnostics [10]. To manage volumetric data, 3D multi-fiber networks reduce computational load by using groups of lightweight convolutional layers, achieving real-time performance while maintaining high accuracy [11]. Integrated attention gates improve the performance of standard U-Net models by enabling them to focus on target organs or tumors while ignoring irrelevant background regions, yielding more accurate models [12].
However, a significant weakness of standard convolutional networks is their limited field of view, which prevents them from learning global relationships across an image [13]. In the literature, capturing this global context is considered essential for making precise predictions in complex medical tasks [14]. Vision Transformers address this problem by modeling long-range dependencies across different parts of a scan [15]. While these models are highly scalable, they require large amounts of data to be trained effectively [16]. Hybrid architectures such as UNETR address these needs by using transformer encoders to process 3D images and capture multi-scale information [17]. New foundational models, such as SAM2, also show great promise for medical tasks because they can be quickly adapted to diverse image and video modalities [18]. For lung cancer, two-stage frameworks have improved accuracy by first localizing the area of interest and then performing a detailed segmentation of the tumor mass [19].
Despite these successes, keeping all data in a single central location creates privacy risks and makes it difficult for hospitals to collaborate [20]. Adopting federated learning can address these issues by enabling models to be trained across multiple sites without sharing private patient records [20]. This privacy-preserving paradigm has recently also proven effective in other distributed, resource-constrained domains, such as agricultural IoT networks for soil moisture prediction using lightweight models [21]. Furthermore, federated learning has demonstrated significant potential for cybersecurity, enabling the detection of network attacks across distributed architectures without compromising data privacy. A federated graph attention network framework was proposed in [22], which collaboratively trains models on network traffic logs from multiple departments to detect intrusions while keeping sensitive information local. This decentralized approach successfully addresses the challenges of data isolation and high heterogeneity in cross-layer network environments [22].
This decentralized approach enables the creation of secure models capable of handling the natural heterogeneity of data across different healthcare centers [20,23]. The standard federated averaging (FedAvg) algorithm coordinates federated learning by aggregating local model updates to build a shared global model without exchanging raw data [24]. However, when data vary significantly across institutions, algorithms such as FedProx are often required to maintain accuracy while accounting for these statistical differences [24]. Another approach to address this data diversity is the stochastic controlled averaging (SCAFFOLD) algorithm [25]. SCAFFOLD explicitly targets the client drift problem that occurs when local updates across clients diverge due to irregular data distributions [25]. By introducing control variates to estimate update directions, this method corrects for drift, achieving more stable convergence than standard aggregation methods [25].
The framework proposed in this paper features the AuraViT suite, which includes the standard AuraViT—a hybrid model with 136 million parameters that combines a Vision Transformer (ViT) encoder, Atrous Spatial Pyramid Pooling (ASPP), and attention-gated residual connections—and the Lightweight AuraViT (LAURA) family (Small, Tiny, and Mobile). These variants are developed with a focus on resource-constrained environments and intended for potential edge deployment. Training is conducted on publicly available datasets (MSD Lung and NSCLC) in a simulated five-client federated learning setup that emulates collaboration among institutions while ensuring patient privacy.
The rest of this paper is organized as follows: Section 2 describes the datasets, the preprocessing steps, and the AuraViT and LAURA architectures. This section also explains the federated learning framework and training methods. Section 3 presents the results, including performance comparisons, lightweight model analysis, error studies, and limitations. Finally, Section 4 summarizes the findings and suggests future work.
2. Methodology
This section presents the end-to-end pipeline for automatic lung tumor segmentation that uses both centralized and federated learning. The pipeline, shown in Figure 1, comprises data augmentation, model architecture, training, and evaluation.
Figure 1.
Pipeline of the proposed AuraViT model for lung tumor segmentation.
2.1. System Overview
In the proposed architecture, hierarchical automatic segmentation of lung tumors is achieved by combining an end-to-end pipeline with centralized and federated learning. The core contribution is the AuraViT model. This is a hybrid architecture that integrates the global context modeling capability of Vision Transformers (ViTs) with the precise spatial localization of a U-Net-like decoder and multi-scale feature extraction via Atrous Spatial Pyramid Pooling (ASPP) and attention gates.
The proposed pipeline comprises four integrated stages. It commences with data preparation, where 3D CT scans are preprocessed into 2D axial slices, and views containing tumors are selected. This is followed by centralized training, during which an AuraViT model is trained using convergence strategies comprising a Dice-CE loss, the AdamW optimizer, and learning rate scheduling.
To address data privacy concerns, the framework adopts federated learning (FL), where a family of AuraViT variants is deployed across multiple clients. To improve this process, the FedProx algorithm is used to handle heterogeneity across patients from different institutions by regulating client drift during training. The pipeline implements dynamic virtual client configuration and an adaptive weighted-aggregation mechanism to balance model updates based on both data size and similarity, thereby avoiding bias toward large institutions. This design ensures high segmentation performance while maintaining the flexibility for secure, decentralized deployment across heterogeneous clinical environments.
2.2. Dataset Description
This study used two public datasets: the NSCLC-Radiogenomics dataset [26] and the Medical Segmentation Decathlon (MSD) Task 06 Lung dataset [27]. The NSCLC-Radiogenomics dataset consists of 211 subjects. This dataset comprises computed tomography (CT) scans, positron emission tomography (PET)/CT images, and semantic tumor annotations. Additionally, 144 of these subjects have associated 3D tumor segmentation maps. The MSD Task 06 Lung dataset comprises 96 3D CT volumes from patients with non-small cell lung cancer. The dataset includes corresponding pixel-level tumor segmentations. Combined, these sources provide 307 patient cases. The data is split into a training set (70%, 215 cases), a validation set (10%, 31 cases), and a held-out test set (20%, 61 cases) using a constant random seed to ensure reproducibility. The demographic and clinical characteristics for both datasets are summarized in Table 1. Demographic variables such as age, sex, and ethnicity are not consistently available for the MSD dataset and are therefore not reported.
Table 1.
Demographic, clinical, and technical characteristics per dataset.
2.3. Preprocessing Pipeline
A standardized preprocessing pipeline transforms 3D volumetric data into a homogeneous 2D format. Raw 3D volumes and masks are parsed using “rt-utils” for the NSCLC-Radiomics DICOM/RTSTRUCT files and “Nibabel” for the MSD NIfTI files. Only axial slices containing the tumor with non-zero segmentation masks are extracted, focusing the training process on relevant information and reducing computational overhead. Image intensities are clipped to the HU range [−1000, 400] and normalized to [0.0, 1.0]. All 2D images and masks are resized and padded to a fixed resolution of pixels.
2.4. Data Augmentation
To enhance model generalization and reduce overfitting, on-the-fly data augmentation is applied to the training set. The MONAI-based transformation pipeline includes random 90-degree rotations, random horizontal and vertical flips, and random affine transforms (translations, rotations, and scaling), each with a 30% probability. A Gaussian noise is applied with 10% probability and random intensity scaling with 20% probability. Bilinear interpolation is used for images, and nearest-neighbor interpolation is used for masks to preserve label integrity.
2.5. The Proposed Model Architecture: AuraViT
The core of the pipeline is AuraViT, a hybrid architecture integrating multiple deep learning concepts for medical image segmentation. AuraViT uses ASPP for multi-scale features, residual CNN blocks for localized accuracy, attention gates for feature refinement, and a suite of convergence strategies. The model architecture (See Figure 2) comprises four primary components: a ViT encoder for global context, an ASPP module (See Figure 3) for multi-scale features, a convolutional decoder with attention gates for precise localization, and convergence strategies.
Figure 2.
Architecture of the proposed AuraViT segmentation model.
Figure 3.
Atrous Spatial Pyramid Pooling (ASPP) module used within AuraViT for multi-scale feature extraction.
The model’s encoder is a ViT enhanced with pre-normalization layers. The input image () is divided into non-overlapping patches. Each patch is flattened, linearly projected into a 768-dimensional embedding space, and regularized. Learnable positional embeddings are employed instead of fixed encodings to better adapt to the consistent anatomical structure of lung CT scans. Since the lungs are centrally located in the preprocessed images, learned embeddings allow the model to capture dataset-specific spatial priors, effectively encoding the typical location of the region of interest. Algorithm 1 explains the ViT-ASPP processing pipeline.
| Algorithm 1 Generalized ViT Encoder processing with ASPP Module |
| Require: Image Batch X, Layer Set L, Skip Indices , Dilation Rates Ensure: Aligned Feature Maps
|
The segmentation decoder follows a U-Net-like structure, progressively upsampling features to reconstruct the segmentation map. At each decoder level, attention gates (AG) selectively emphasize relevant features from skip connections, highlighting important spatial locations while suppressing irrelevant background. Table 2 shows the decoder configuration.
Table 2.
Decoder stages and channel configurations.
These refined features are combined with upsampled representations through residual blocks with dropout for regularization. This process enables the decoder to integrate high-level abstract features with fine-grained spatial details to reconstruct precise boundaries. The final layer is a convolution with sigmoid activation.
2.6. Lightweight AuraViT (LAURA) Variants
This section introduces a family of lightweight model variants designed to address computational constraints and enable federated learning on resource-limited clients. The proposed variants, termed LAURA (Lightweight AuraViT), retain the core hybrid ViT, ASPP, and decoder architecture described previously. To reduce model complexity, these models employ a width-scaling strategy while preserving the overall architectural design. By systematically reducing the hidden dimension of the Vision Transformer () and, correspondingly, the channel widths in the decoder and ASPP modules, this work constructs three efficient variants. Specifically, LAURA-Small (∼30 M params) is designed for high-performance setups with moderate memory constraints, while LAURA-Tiny (∼15 M params) provides a balanced configuration for standard clinical workstations. LAURA-Mobile (∼5 M params) provides a compact variant designed with edge deployment in mind, as its reduced parameter count and computational cost suggest suitability for resource-constrained environments, although dedicated edge-hardware validation remains future work. This model achieves over 96% parameter reduction relative to the standard model while preserving essential architectural features. The differences between the main model AuraViR and LAURA are shown in Table 3.
Table 3.
Summary of key differences between AuraViT and LAURA.
2.7. Federated Learning Framework
A federated learning variant of AuraViT is implemented to address data privacy challenges. The complete federated learning workflow is illustrated in Figure 4, showing the iterative process of model distribution, local training, and aggregation across multiple clients.
Figure 4.
Federated learning workflow.
2.7.1. Federated Learning Algorithm: FedProx
The implementation employs the FedProx algorithm [24], which extends federated averaging by adding a proximal term to handle data heterogeneity. As shown in Figure 4, each client optimizes a local objective function that includes this proximal regularization term. The local objective function for client k is
where is the segmentation loss, are local parameters, are global parameters, and is the proximal parameter. This term constrains local updates to remain close to the global model, mitigating client drift.
2.7.2. Adaptive Weighted Aggregation
Following local training at each client (See Figure 4), an adaptive averaging mechanism combines data-size weighting with model similarity. The aggregation weights are computed as
where denotes a cosine similarity-based weight, represents the data-size weight, and controls the balance between the two. This mechanism downweights divergent client updates.
2.7.3. Dynamic Virtual Client Configuration
To mitigate model bias toward institutions with large datasets, this approach employs a dynamic virtual client partitioning strategy, as shown in the decision branch of Figure 4. This approach algorithmically subdivides large datasets into smaller, independent units. An adaptive algorithm governs the subdivision.
An institution’s dataset is flagged for subdivision if it exceeds a threshold , where . The institution is partitioned into virtual clients using stratified sampling. This method preserves the statistical characteristics of the original dataset.
To mitigate the risk of global model bias toward high-volume institutions, each virtual client is treated as an independent participant, thereby ensuring a finer-grained contribution to the global objective. This strategy prevents “client drift” and enables smaller hospitals to maintain significant influence during aggregation. We implement dynamic reweighting of institutional influence based on the empirical distribution of each participating source, thereby enhancing model generalization by regularizing the optimization landscape.
The effectiveness of this adaptive splitting strategy is evidenced by the reduction in dataset skewness. Initially, the NSCLC dataset (7335 slices) disproportionately overwhelmed the MSD dataset (1657 slices), resulting in a significant imbalance ratio of . The adaptive splitting algorithm automatically partitions these sources into 8 virtual clients: 2 derived from MSD (mean slice size ) and 6 derived from NSCLC (mean slice size ≈ 1222). This redistribution yields a more balanced federation, reducing the final imbalance factor to and facilitating a more uniform distribution across the 8992 total samples (See Figure 5).
Figure 5.
Data distribution before and after virtual client splitting, showing the reduction in imbalance from 4.43:1 to 1.48:1. This residual imbalance is well within the effective operating range of the region-based Dice-CE loss function, which mitigates the impact of background dominance without requiring perfect class parity.
2.7.4. Heterogeneous Training Strategy
To account for system heterogeneity, clients use different local training configurations, including varying numbers of local epochs and client-specific learning-rate multipliers. A consistent proximal parameter provides uniform regularization.
2.8. Training Strategy and Loss Function
The framework is implemented using PyTorch 1.12.0, TorchVision 0.13.0, and MONAI 1.0.0. The model is trained on an NVIDIA T4 GPU, using a batch size of 4 for 200 epochs (centralized) or 100 communication rounds (federated) with automatic mixed precision (AMP). The AdamW optimizer (initial LR , weight decay ) is used, incorporating several training enhancements to ensure convergence, including gradient clipping and gradient explosion detection. A learning rate scheduler with a 15-epoch warmup followed by cosine annealing is used. For segmentation, a Dice-CE loss function is employed, which includes built-in numerical safeguards.
The Dice component is computed with smoothing parameters () to prevent numerical issues.
Each communication round follows the workflow shown in Figure 4 and involves broadcasting the global model, parallel local training, collecting local parameters, performing adaptive weighted aggregation to create a new global model, and validating the updated model. The process includes monitoring and early stopping to ensure convergence across heterogeneous clients.
2.9. Training Enhancements
Stability of training is addressed across three aspects: numerical validity, convergence stability, and optimization control. Numerical validity is ensured by checking for NaNs and clamping output predictions to prevent extreme values. The stability of the convergence process is maintained using the automatic mixed-precision gradient scaling technique. Additionally, the gradient is managed using gradient clipping and gradient explosion detection to prevent unstable updates during training. For the optimization control, an adaptive learning rate scheduler that includes both the warmup stage and the cosine annealing strategy is used.
The full set of training hyperparameters and pipeline variables used for AuraViT, including centralized and federated settings, is summarized in Table 4.
Table 4.
Hyperparameters and Pipeline Variables for AuraViT.
3. Results and Discussion
The performance of the AuraViT framework is evaluated through a multi-faceted analysis that includes quantitative metrics, comparative benchmarking, and ablation studies.
3.1. Quantitative Analysis and Federated Learning Dynamics
The primary performance metric is the Dice similarity coefficient (DSC). The model’s performance is assessed on the two datasets using a held-out test set and three-fold cross-validation, with the results reported in Table 5. On the MSD Lung dataset, the model achieves a mean Dice score of 84.24%. On the more challenging NSCLC dataset, it obtains a mean Dice score of 81.09%. For both datasets, the minimal difference between the test set and cross-validation scores indicates strong generalization.
Table 5.
Segmentation performance of AuraViT on two datasets using a held-out test set and three-fold cross-validation.
The federated learning implementation (See Table 6) produces a competitive mean Dice score of 80.81%, confirming the model’s effectiveness in a decentralized setting. This corresponds to only a minor performance degradation relative to centralized training, demonstrating that the federated model preserves segmentation accuracy while providing the critical privacy benefits of decentralized learning.
Table 6.
Segmentation performance of AuraViT federated learning.
3.1.1. Discussion of Centralized vs. Federated Performance
The federated performance is compared against a baseline AuraViT model trained centrally on the same datasets (See Figure 6). The centralized AuraViT model achieves a Dice score of 84.24% on the MSD Lung test set and 81.09% on the NSCLC test set. The federated model’s score of 80.81% represents a performance drop of less than 1% compared to the centralized baseline.
Figure 6.
Comparison of centralized vs. federated learning performance.
From a clinical perspective, a <1% difference in Dice score typically reflects only minor boundary deviations. In radiotherapy planning, such deviations are generally well within the safety margins of approximately 3–5 mm used in stereotactic ablative radiotherapy (SABR) to account for respiratory motion in lung treatments [28]. Therefore, the 0.69% drop is clinically acceptable given the privacy benefits of keeping patient data within local institutions.
To evaluate the performance difference between centralized and federated training, a paired t-test is conducted on the individual Dice scores of all test samples. The analysis yields p-values of 0.0271 for the MSD dataset and 0.0429 for the NSCLC dataset. These results indicate a statistically significant but numerically small performance drop (<1%), representing a privacy–performance trade-off, where the minor reduction in segmentation accuracy is far outweighed by the critical ability to train models on decentralized, private clinical data that would otherwise be inaccessible for centralized training.
3.1.2. Statistical Significance and Baseline Comparison
Statistical testing is conducted (See Table 7), and the framework performance is compared against established federated learning baselines. The AuraViT-FL (Dice: 80.81%) is evaluated against FedAvg (Dice: 80.06%) and SCAFFOLD (Dice: 74.33%). A Wilcoxon signed-rank test is performed on the individual test scores to assess the significance of these improvements. AuraViT-FL significantly outperforms both FedAvg (p < 0.001) and SCAFFOLD (p < 0.001). These findings confirm that the performance gains, while numerically focused, are statistically reliable and consistent across the clinical test cases, providing a clearer picture of the specific advantages of our aggregation strategy.
Table 7.
Comparison of federated learning strategies on the test set.
3.2. Comparative Evaluation of Segmentation Models
AuraViT is evaluated against established lung-specific and general medical segmentation models (See Table 8 and Table 9).
Table 8.
Comparative analysis of the centralized model with existing methods on the MSD Lung dataset.
Table 9.
Comparative analysis of the centralized model with existing methods on the NSCLC lung tumor dataset.
Compared to standard 3D architectures, such as nnU-Net [29], which reported a Dice score of 69.2% as part of the MSD challenge results, AuraViT’s 2D slice-based design attained 84.24%. The 2D approach is more robust to uneven slice resolution, which is common in clinical CT scans, and reduces memory requirements, allowing larger batch sizes and more stable training. The hybrid ViT-CNN architecture provides sufficient global context via self-attention without the computational overhead of 3D methods. Figure 7 and Figure 8 show a graphical representation of the dice score differences.
Figure 7.
Performance analysis of Dice scores on the MSD Lung dataset relative to nnU-Net [29] and Carvalho et al. [30].
Figure 8.
Performance comparison on the NSCLC datasetagainst Hossain et al. [31] and Pang et al. [32].
3.3. Lightweight Architectures and Edge Deployment
To address deployment in resource-constrained environments, variants of Lightweight AuraViT (LAURA) are developed. Table 10 presents the quantitative performance. On the NSCLC dataset, the “Small” LAURA model achieved a Dice score of 80.20%, only 0.89% lower than the standard AuraViT (136 M parameters), despite having a fraction of the parameters (∼30 M). Even the “Mobile” variant (∼5M parameters) maintains strong performance (78.64%).
Table 10.
Performance comparison between AuraViT and Lightweight AuraViT (LAURA) variants on MSD Lung and NSCLC datasets.
By replacing standard convolutional blocks with depthwise separable convolutions integrated with a reduced ViT backbone, effective segmentation with fewer parameters and sub-20 ms inference times (See Table 11), suggesting feasibility for real-time deployment on edge-class hardware, pending validation on dedicated edge devices. To ensure equitable performance across diverse clinical settings, a weighted aggregation strategy is employed. This prevents the global model from becoming disproportionately biased toward larger hospitals, ensuring robust generalization for smaller institutions. Performance metrics for LAURA on box boundary masks are provided in Table 12, while Figure 9 and Figure 10 illustrate the performance improvements of the LAURA family over the baseline AuraViT model.
Table 11.
Computational profiles of the LAURA model variants.
Table 12.
Performance of Lightweight AuraViT (LAURA) variants on MSD Lung and NSCLC datasets trained and tested on boundary box masks.
Figure 9.
Lightweight variant performance on the MSD dataset versus AuraViT.
Figure 10.
Lightweight variant performance on the NSCLC dataset versus AuraViT.
3.4. Qualitative Error Analysis
Failure modes are analyzed to provide a transparent evaluation (Figure 11). The AuraViT performance is sensitive to tumor volume. Quantitative analysis of the NSCLC dataset metadata extracted from DICOM headers (pixel spacing 0.977 mm × 0.977 mm, slice thickness 3 mm) revealed specific volumetric thresholds for these failure modes. As shown in row (a), the model failed to detect a small nodule with a volume of approximately 434.88 mm3 (152 px), resulting in a false negative. Row (b) illustrates over-segmentation of a medium-sized tumor of 1808.17 mm3 (632 px), where the prediction expanded into the chest wall. Conversely, row (c) shows under-segmentation of a large 4529.00 mm3 (1583 px) mass.
Figure 11.
Examples of model failures compared to the ground truth. The overlays represent the Ground Truth (Green) and the model Prediction (Red).
This drop-off for small nodules may be related to known limitations of Vision Transformer architectures, where the initial patch embedding step involves aggressive downsampling that can reduce sensitivity to very small structures. Signals from sub-centimeter nodules may be smoothed out before reaching the deeper attention layers. Despite these edge cases related to volumetric extremes, the model demonstrates high fidelity in standard clinical scenarios, as evidenced by the successful segmentations illustrated in Figure 12.
Figure 12.
Qualitative segmentation result. Comparison of the ground truth mask and the model’s prediction.
Performance degraded for peripheral tumors near the pleura (Row 2). The model occasionally included chest wall tissue in the segmentation due to similar Hounsfield unit values. However, central tumors near the lung hilum were segmented with high precision due to the high contrast provided by the surrounding lung parenchyma.
3.5. Ablation Studies and Resource Efficiency
An ablation study is conducted (See Figure 13) to assess the impact of architectural decisions on segmentation performance. The proposed model is compared against two variants: a “No_Attention” configuration, which removes attention mechanisms to test their necessity for feature refinement, and a “ViT_Tiny” configuration, which reduces encoder depth and hidden dimensions to evaluate parameter efficiency.
Figure 13.
Combined ablation study results on MSD and NSCLC datasets. The bar chart compares the Dice scores of the proposed model against the “No_Attention” and “ViT_Tiny” variants, demonstrating comparable performance across different architectural configurations. Significance levels: ns: not significant, *: .
Comparing the full model to the “No_Attention” variant revealed no statistically significant difference in Dice scores across both datasets, indicating that the hybrid CNN-Transformer backbone already captures sufficient spatial context for these tasks without requiring additional attention mechanisms. The “ViT_Tiny” variant, utilizing approximately half the parameters, demonstrated remarkable resilience: on the smaller MSD dataset, performance remained statistically equivalent to the larger model, while on the larger NSCLC dataset, it achieved a statistically significant improvement in accuracy (See Table 13).
Table 13.
Ablation study results comparing the proposed AuraViT model with architectural variants on the MSD and NSCLC datasets. Asterisks (*) indicate results that are statistically significant ().
These results demonstrate that increased model complexity does not strictly correlate with improved segmentation accuracy. While the absolute improvement of the ‘ViT_Tiny’ variant on the NSCLC dataset is modest (∼0.65%), it is statistically significant () and, crucially, is achieved with approximately 50% fewer parameters (13.9 M vs. 29.4 M). This result is clinically relevant, as it suggests that the lighter model mitigates overfitting and generalizes better to unseen data while simultaneously offering substantial benefits in computational efficiency and deployment feasibility for resource-constrained clinical settings.
As shown in Table 14, using the ViT Tiny variant reduced the total data transfer volume from 109.8 GB (Small) to 51.7 GB over 100 rounds, representing a 52.9% reduction in communication overhead. The Mobile variant achieved even greater efficiency, lowering the total transfer volume to just 20.6 GB (an 81.2% reduction). Furthermore, the model choice significantly impacted the actual training time per communication round. The Tiny configuration reduced the training duration per round from 1601.8 s to 1402.5 s, while the Mobile variant further reduced it to 1117.7 s. For hospitals with limited network infrastructure and computational resources, these substantial reductions in both communication overhead and training latency are critical for the feasibility of collaborative training.
Table 14.
Comparison of model configurations, communication overhead, and training time in a federated setting.
3.6. Resource Efficiency and Heterogeneity Analysis
The proposed AuraViT model uses 3196.10 MB of VRAM on the MSD dataset (Table 15). In comparison, the ViT_Tiny variant demonstrates superior efficiency, reducing VRAM usage to 2809.81 MB. This reduction indicates the potential suitability of lightweight variants for edge deployment, suggesting they may be viable in environments where computational resources are scarce. Regarding training duration, the recorded times reflect the total time spent on an NVIDIA T4 GPU. Notably, while the ViT_Tiny model is computationally lighter per epoch, it takes longer to complete training on the NSCLC dataset (40,728 s vs. 39,217 s). This time difference is attributed to the model requiring more epochs to meet the early-stopping convergence criteria than the larger-capacity models.
Table 15.
Computational efficiency comparison between the proposed AuraViT and its variants (centralized).
The data distributions reveal significant heterogeneity between the participating clients. A distinct domain shift in pixel intensities is observed across datasets, as shown in Figure 14. We analyze the raw, pre-normalization intensity distributions to address concerns regarding potential normalization artifacts. The MSD dataset has a lower mean intensity () than the NSCLC dataset (), indicating greater inherent data diversity.
Figure 14.
Pre-normalization raw intensity distributions reveal heterogeneity between MSD and NSCLC. MSD has a lower mean intensity than NSCLC, and the standard deviation indicates sufficient contrast for model learning.
The MSD standard deviation of indicates that the images retain sufficient contrast for effective model learning, clarifying that the previously observed data concentration at is a scaling artifact rather than a lack of usable signal. Disparities are also observed in tumor morphology (Figure 15). While both datasets are right-skewed, the MSD dataset features predominantly smaller tumors (mean pixels), whereas the NSCLC dataset contains larger tumors and a broader size distribution.
Figure 15.
Tumor size distributions show heterogeneity in MSD and NSCLC. MSD predominantly has smaller tumors, whereas NSCLC has larger, more variable sizes.
3.7. Limitations
While the proposed AuraViT-FL framework demonstrates performance and privacy preservation, several limitations warrant discussion to guide future research. The current framework’s reliance on 2D slice processing ensures computational efficiency, but it does so at the expense of ignoring critical volumetric context.
The federated environment is simulated using the public datasets MSD and NSCLC. While heterogeneity is ensured by using datasets from different sources, real-world deployment faces additional challenges, such as asynchronous client updates, varying client uptime, and stricter firewall configurations. This study was also limited by computational resource constraints, using a single NVIDIA T4 GPU for all experiments.
4. Conclusions and Future Work
This work proposed and validated AuraViT-FL, a novel federated learning framework for automatic lung tumor segmentation from CT scans. By training an efficient hybrid model featuring attention-gated residual skip connections across multiple simulated clients using advanced algorithms such as FedProx, dynamic virtual client partitioning, and adaptive aggregation, this model achieved a mean Dice score of 80.81%. This result is highly competitive, demonstrating a negligible performance drop (≪1%) relative to the ideal expected centralized performance (81.09–84.24%) while preserving data privacy. The Lightweight AuraViT (LAURA) variants were also validated. The model complexity was reduced by more than 96%, from ∼136 M to ∼5 M parameters, without degrading segmentation quality, thereby supporting potential deployment on edge devices. The proposed 2D federated model achieved high segmentation accuracy, competitive with results from several more computationally intensive 3D centralized architectures.
Tests comparing edge-grade hardware with high-end server GPUs will be conducted in future studies. Additionally, we plan to develop a 2.5D version of AuraViT-FL that leverages information from neighboring slices to reduce inter-slice discontinuities in real-world deployments.
Author Contributions
Conceptualization, S.S. and L.A.S.; methodology, H.M.N., M.A.A., S.A., S.S. and L.A.S.; implementation, H.M.N., M.A.A. and S.A.; validation, H.M.N., M.A.A. and S.A.; formal analysis, H.M.N., M.A.A. and S.A.; investigation, H.M.N., M.A.A. and S.A.; resources, S.S. and L.A.S.; data curation, H.M.N., M.A.A. and S.A.; writing—original draft preparation, H.M.N., M.A.A. and S.A.; writing—review and editing, S.S. and L.A.S.; visualization, H.M.N., M.A.A. and S.A.; supervision, S.S. and L.A.S.; project administration, S.S. and L.A.S.; funding acquisition, L.A.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Arab—German Young Academy of Sciences and Humanities (AGYA), supported by the German Federal Ministry of Research, Technology, and Space (BMFTR), grant number 01DL25001. The authors are solely responsible for the content and recommendations of this publication, which do not necessarily reflect the views of AGYA or its funding partners.
Data Availability Statement
The datasets used in this study are publicly available from the Medical Segmentation Decathlon (MSD) http://medicaldecathlon.com/ and the NSCLC-Radiomics repository https://www.cancerimagingarchive.net/collection/nsclc-radiomics/ (accessed on 2 July 2025). The experimental code used in this study is publicly available on GitHub at the corresponding repository https://github.com/Mohamed-Alaa-1/AuraVIT/ (accessed on 24 December 2025). You can find instructions for installing the dependencies and running the experiment.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Sung, H.; Ferlay, J.; Siegel, R.L.; Laversanne, M.; Soerjomataram, I.; Jemal, A.; Bray, F. Global cancer statistics 2020: GLOBOCAN estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA Cancer J. Clin. 2021, 71, 209–249. [Google Scholar] [PubMed]
- Rami-Porta, R.; Call, S.; Dooms, C.; Obiols, C.; Sánchez, M.; Travis, W.D.; Vollmer, I. Lung cancer staging: A concise update. Eur. Respir. J. 2018, 51, 1800190. [Google Scholar] [CrossRef] [Scilit]
- De Wever, W.; Verschakelen, J.; Coolen, J. Role of imaging in diagnosis, staging and follow-up of lung cancer. Curr. Opin. Pulm. Med. 2014, 20, 385–392. [Google Scholar] [CrossRef] [Scilit]
- Philip, F.; Kumar, S.; Garg, R.; Kanwar, R.; Gupta, A.; Kulkarni, S.; Ganeshan, B.; Sahni, S.; Thalkuri, S. Imaging recommendations for diagnosis, staging, and management of lung cancer. Indian J. Radiol. Imaging 2023, 33, 86–103. [Google Scholar]
- Rezvani, S.; Fateh, M.; Jalali, Y.; Fateh, A. FusionLungNet: Multi-scale fusion convolution with refinement network for lung CT image segmentation. Biomed. Signal Process. Control 2025, 107, 107858. [Google Scholar] [CrossRef] [Scilit]
- van Mourik, A.M.; Elkhuizen, P.H.; Minkema, D.; Duppen, J.C.; van Vliet-Vroegindeweij, C. Interobserver variability in the delineation of the tumour bed using seroma and surgical clips based on 4DCT scan for external-beam partial breast irradiation. Radiat. Oncol. 2015, 10, 66. [Google Scholar] [CrossRef] [Scilit]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional networks for biomedical image segmentation. In Proceedings of the 18th International Conference Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015, Munich, Germany, 5–9 October 2015; pp. 234–241. [Google Scholar]
- Gad, E.; Abou Khatwa, M.; A. Elattar, M.; Selim, S. A Novel Approach to Breast Cancer Segmentation Using U-Net Model with Attention Mechanisms and FedProx. In Proceedings of the 27th Annual Conference Medical Image Understanding and Analysis (MIUA), Aberdeen, UK, 19–21 July 2023; pp. 310–324. [Google Scholar]
- Ibrahim, S.; Elgohary, K.; Higazy, M.; Mohannad, T.; Selim, S.; Elattar, M. Lung Segmentation Using ResUnet++ Powered by Variational Auto Encoder-Based Enhancement in Chest X-ray Images. In Proceedings of the 26th Annual Conference Medical Image Understanding and Analysis (MIUA), Cambridge, UK, 27–29 July 2022; pp. 339–356. [Google Scholar]
- Mansour, M.; Djenouri, D.; Said, L.A.; Latif, S.; Maalel, A.; Abdelhadi, A.M.S. ARUC-GAN: A CycleGAN-Based Attention Residual U-Net for Low-Dose CT Denoising in Smart Healthcare. IEEE Access 2025, 13, 72544–72557. [Google Scholar] [CrossRef] [Scilit]
- Chen, C.; Liu, X.; Ding, M.; Zheng, J.; Li, J. 3D dilated multi-fiber network for real-time brain tumor segmentation in MRI. IEEE Trans. Med. Imaging 2019, 38, 2485–2494. [Google Scholar]
- Oktay, O.; Schlemper, J.; Folgoc, L.L.; Lee, M.J.; Heinrich, M.P.; Misawa, K.; Mori, K.; McDonagh, S.G.; Hammerla, N.Y.; Kainz, B.; et al. Attention U-Net: Learning Where to Look for the Pancreas. arXiv 2018, arXiv:1804.03999. [Google Scholar] [CrossRef] [Scilit]
- Chen, J.; Mei, J.; Li, X.; Lu, Y.; Yu, Q.; Wei, Q.; Luo, X.; Xie, Y.; Adeli, E.; Wang, Y.; et al. TransUNet: Rethinking the U-Net architecture design for medical image segmentation through the lens of transformers. Med. Image Anal. 2024, 97, 103280. [Google Scholar] [CrossRef] [Scilit]
- Shamshad, F.; Khan, S.; Zamir, S.W.; Khan, M.H.; Hayat, M.; Khan, F.S.; Fu, H. Transformers in medical imaging: A survey. Med. Image Anal. 2023, 88, 102802. [Google Scholar]
- Peng, Z.; Huang, W.; Gu, S.; Xie, L.; Wang, Y.; Jiao, J.; Ye, Q. Conformer: Local Features Coupling Global Representations for Visual Recognition. arXiv 2021, arXiv:2105.03889. [Google Scholar] [CrossRef] [Scilit]
- Khan, S.H.; Naseer, M.; Hayat, M.; Zamir, S.W.; Khan, F.S.; Shah, M. Transformers in Vision: A Survey. arXiv 2021, arXiv:2101.01169. [Google Scholar]
- Hatamizadeh, A.; Tang, Y.; Nath, V.; Yang, D.; Myronenko, A.; Landman, B.; Roth, H.R.; Drozdzal, M. Unetr: Transformers for 3d medical image segmentation. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA, 3–8 January 2022; pp. 574–584. [Google Scholar] [CrossRef] [Scilit]
- Ma, J.; Kim, S.; Li, F.; Baharoon, M.; Asakereh, R.; Lyu, H.; Wang, B. Segment Anything in Medical Images and Videos: Benchmark and Deployment. arXiv 2024, arXiv:2408.03322. [Google Scholar] [CrossRef] [Scilit]
- Chen, C.; Liu, X.; Li, K.; Feng, Q. RAU-Net for precise lung cancer GTV segmentation in radiation therapy planning. Sci. Rep. 2025, 15, 15075. [Google Scholar] [CrossRef] [Scilit]
- Abbas, S.R.; Abbas, Z.; Zahir, A.; Lee, S.W. Federated Learning in Smart Healthcare: A Comprehensive Review on Privacy, Security, and Predictive Analytics with IoT Integration. Healthcare 2024, 12, 2587. [Google Scholar] [CrossRef] [Scilit]
- Zakzouk, S.; Said, L.A. Federated Learning for Soil Moisture Prediction: Benchmarking Lightweight CNNs and Robustness in Distributed Agricultural IoT Networks. Mach. Learn. Knowl. Extr. 2025, 7, 132. [Google Scholar] [CrossRef] [Scilit]
- Wu, J.; Qiu, G.; Wu, C.; Jiang, W.; Jin, J. Federated learning for network attack detection using attention-based graph neural networks. Sci. Rep. 2024, 14, 19088. [Google Scholar] [CrossRef] [Scilit]
- Choudhury, A.; Volmer, L.; Martin, F.; Fijten, R.; Wee, L.; Dekker, A.; Soest, J.v. Advancing Privacy-Preserving Health Care Analytics and Implementation of the Personal Health Train: Federated Deep Learning Study. JMIR AI 2025, 4, e60847. [Google Scholar] [CrossRef] [Scilit]
- Idrissi, M.J.; Alami, H.; El Mahdaouy, A.; El Mekki, A.; Oualil, S.; Yartaoui, Z.; Berrada, I. Fed-ANIDS: Federated learning for anomaly-based network intrusion detection systems. Expert Syst. Appl. 2023, 234, 121000. [Google Scholar] [CrossRef] [Scilit]
- Karimireddy, S.P.; Kale, S.; Mohri, M.; Reddi, S.J.; Stich, S.U.; Suresh, A.T. SCAFFOLD: Stochastic Controlled Averaging for On-Device Federated Learning. arXiv 2019, arXiv:1910.06378. [Google Scholar]
- Bakr, S.; Gevaert, O.; Echegaray, S.; Ayers, K.; Zhou, M.; Shafiq, M.; Zheng, H.; Benson, J.A.; Zhang, W.; Leung, A.N.C.; et al. A radiogenomic dataset of non-small cell lung cancer. Sci. Data 2018, 5, 180202. [Google Scholar] [CrossRef] [Scilit]
- Antonelli, M.; Reinke, A.; Bakas, S.; Farahani, K.; Kopp-Schneider, A.; Landman, B.A.; Litjens, G.; Menze, B.; Ronneberger, O.; Summers, R.M.; et al. The Medical Segmentation Decathlon. Nat. Commun. 2022, 13, 4128. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Jasper, K.; Liu, B.; Olson, R.; Matthews, Q. Evidence-Based Planning Target Volume Margin Reduction for Modern Lung Stereotactic Ablative Radiation Therapy Using Deformable Registration. Adv. Radiat. Oncol. 2021, 6, 100750. [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]
- Carvalho, J.; Moreira, J.; Figueiredo, M.; Papanikolaou, N. Automatic Detection and Segmentation of Lung Lesions using Deep Residual CNNs. In Proceedings of the IEEE 19th International Conference on BioInformatics and BioEngineering (BIBE), Athens, Greece, 28–30 October 2019; pp. 977–983. [Google Scholar]
- Hossain, S.; Najeeb, S.; Shahriyar, A.; Abdullah, Z.; Haque, M. A Pipeline for Lung Tumor Detection and Segmentation from CT Scans Using Dilated Convolutional Neural Networks. In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Brighton, UK, 12–17 May 2019; pp. 1348–1352. [Google Scholar]
- Pang, S.; Du, A.; He, X.; Díez, J.; Orgun, M.A. Fast and Accurate Lung Tumor Spotting and Segmentation for Boundary Delineation on CT Slices in a Coarse-to-Fine Framework. In Proceedings of the 26th International Conference Neural Information Processing (ICONIP), Sydney, Australia, 12–15 December 2019; pp. 589–597. [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.














