betaFeedback

WorksComputer Science

FedTumor-IoMT: Federated Learning-Aided Brain Tumor Diagnosis on Resource-Constrained Edge IoMT Devices

Abstract

Joint brain tumor segmentation and classification models are computationally intensive, limiting their training on resource-constrained edge platforms and restricting privacy-preserving Federated Learning FL in the Internet of Medical Things IoMT. Existing approaches either perform both tasks on GPU-equipped workstations or support only classification on edge devices. To address this gap, this work proposes a lightweight multitask FL framework for joint segmentation and classification through local edge training. A shared pretrained LiteMedSAM encoder with TinyViT extracts features for a coordinate-attention-based segmentation decoder and a segmentation-guided classification head, eliminating a separate feature extractor. Selective encoder freezing retains 95% trainable parameters while reducing on-device training costs. The proposed framework is experimentally validated on a laboratory testbed of five resource-constrained edge clients using 1,200 T1-weighted MRI samples. It achieves 94.20% classification accuracy, 88.53% DSC, 83.68% IoU, and 99.87% ROC-AUC. Its classification accuracy remains within 0.6% of the GPU-trained baseline of 95.21% across five FL rounds. The attention and feature refinement modules improve DSC and IoU by 3.82% and 4.60%, respectively, with 0.74 GFLOPs of additional computation. On edge hardware, the framework achieves 46.54 s inference latency, 52.8% CPU utilization, and a peak temperature of 65∘^\circC without thermal throttling. Its inference latency is observed to be 6.4–10.5 times lower than that of existing frameworks. These results demonstrate the feasibility of privacy-preserving joint brain tumor segmentation and classification on resource-constrained edge platforms.

Introduction

Brain tumors are life-threatening diseases that essentially demand early and accurate diagnosis for effective neuro-oncological treatment and improved clinical outcomes, particularly for gliomas, meningiomas, and pituitary tumors [1, 2]. The diagnosis involves tumor segmentation to delineate the region and classification to identify its category. These tasks are mutually dependent, as precise spatial delineation of the lesion directly informs its classification. While centralized training is effective, aggregating multi-source MRI scans introduces severe privacy and regulatory challenges [3, 4]. Additionally, transferring high-dimensional data to centralized servers incurs heavy bandwidth requirements, high latency, and security vulnerabilities during wireless communication [5]. The Internet of Medical Things (IoMT) connects medical imaging systems and low-cost computing devices across healthcare facilities, enabling data processing closer to its source. It aligns with Industry 5.0 priorities of human-centricity, sustainability, and resilience. In this context, Federated Learning (FL) offers a practical approach to edge-assisted distributed learning, wherein hospitals train models locally and exchange model updates rather than raw MRI scans. This is particularly relevant because individual hospitals often possess limited, site-specific datasets, while data protection laws, and institutional policies restrict centralized data sharing. FL also allows models to accommodate variations in patient populations and imaging systems across hospitals.

However, FL places a training burden on edge devices, where limited memory, CPU capacity, and energy make deploying large Convolutional Neural Networks (CNNs) difficult. Existing joint segmentation–classification methods further exacerbate these challenges. Most state-of-the-art works use separate networks for the two tasks, leading to redundant feature extraction as well as increased computational and parameter costs [6, 7]. Although encoder-sharing multi-task models improve integration, recent hybrid designs have grown to 37 M–109 M parameters and run only on GPUs [8, 9]. Conversely, the few edge-deployable models achieve small footprints by omitting segmentation entirely and support only inference, while requiring GPU-based training [10]. Moreover, state-of-the-art work on medical diagnosis has not sufficiently reported practical post-federated-learning deployment performance metrics for joint segmentation and classification. Crucially, essential deployment metrics, such as inference latency, memory footprint, and thermal behavior, remain largely undocumented for resource-constrained IoMT devices. This leaves a critical gap between model-level performance and real-world deployability, as the feasibility of local training and execution on low-cost edge hardware has not been sufficiently demonstrated. Addressing this gap is essential to translating the Industry 5.0 principles of privacy, sustainability, and resilience into practical medical Artificial Intelligence (AI) systems.

The major contributions are mentioned as follows:

  • An FL-aided IoMT framework is proposed that trains joint brain tumor segmentation and classification locally on resource-constrained edge clients, unlike state-of-the-art works, which rely entirely on GPU training to perform this joint task. A single shared LiteMedSAM encoder extracts features once and reuses them for both tasks, without an additional feature extractor, thereby substantially reducing computation and communication payloads and making the framework suitable for resource-constrained edge clients.

  • The proposed framework introduces a coordinate-attention segmentation decoder with progressive channel reduction and a 1×11 \times1 convolution-based feature-refinement module, boosting the DSC by 3.82% and IoU by 4.60% at an additional 0.74 GFLOPs of computation.

  • It applies selective encoder freezing to reduce on-device training computation while maintaining model performance across federated communication rounds, ensuring data privacy by exchanging only model weights rather than raw local data.

  • The proposed framework has been experimentally evaluated in laboratory environment. It is trained on resource-constrained embedded computing client platform without thermal throttling, unlike GPU-dependent frameworks that fail or degrade on edge hardware. Compared to the state-of-the-art works on brain tumor detection, the proposed IoMT framework reduces CPU utilization to 52.8% versus 68.5–99%, and lowers per-image latency by 6.4 to 10.5 times, while achieving the highest accuracy among frameworks that run on the edge device.

The remainder of this paper is organized as follows: § 2 provides a detailed analysis of the existing literature on deep learning-based brain tumor segmentation and classification. The research gaps that motivate the present work are also identified there. § 3 describes the proposed framework that covers the overall system architecture. § 4 presents the experimental setup as well as reports and discusses the results. Finally, § 5 concludes the paper and outlines directions for future research.

Related Prior Work

Brain tumor analysis from MRI involves segmentation, which delineates the tumor region, and classification, which assigns the tumor type. In task-specific two-stage pipelines, both tasks are performed in sequence by separately trained networks as proposed in [6],[11], [7], and [12], which combined U-Net variants with YOLOv2, CapsVGGNet, CNN, and VGG19 classifiers, respectively, with accuracies of 97%, 99%, and 98.7% in the first three frameworks. However, the YOLOv2 classifier in [6] required 19.83 M parameters and 16 GB of GPU memory. In [11], generalization and interpretability were not validated in the existing frameworks. Segmentation raised four-class accuracy only from 98.7% to 98.8% in [7], and achieved a validation DSC of 75% despite 98% pixel accuracy in [12], indicating overfitting. This redundant feature extraction added cost without a proportional classification gain. Multi-task designs removed redundant feature extraction and training at each stage by using a shared encoder, achieving DSCs of 0.92 and 0.86 with 97% accuracy in [13] and [14], respectively. However, [13] required both a mask and a label per image, whereas BT-Net [14] used separate datasets at the cost of a lower DSC. These frameworks captured only local features, missing global tumor information, and offered no interpretability. Accuracy-driven hybrids addressed these limitations at high computational cost, i.e., in [8] fused CNN and Vision Transformer features with Grad-CAM, SHAP, and LIME XAIs, and the model in [9] combined CVAE-based synthesis, UNETR segmentation, and ResNet50–VGG16 classification, achieving DSC of 0.966 for WT and 97.45% and accuracies of 99.18% and 99.35%, respectively. However, it requires ≈36.96\approx36.96 M and ≈109.4\approx109.4 M parameters, with the latter taking 1.65 s per image on an RTX 4090 GPU.

Deployment-oriented studies targeted distributed and low-resource settings. In [15], IoMT transmission was followed by RU-Net segmentation, BWO-GA feature selection, and AlexNet classification at the receiver, reporting 99.97% segmentation and 99.98% classification accuracy. However, its three independent modules increased complexity, and performance degraded when processing unseen images. The model was further processed centrally across all images. In [10], a 2.8 M-parameter wavelet-attention CNN achieved 95.88% four-class accuracy on a Raspberry Pi 5, but performed only classification and was trained centrally on a Tesla P100 GPU. Thus, the reviewed frameworks mainly performed joint segmentation and classification on GPU workstations, with limited attention to on-device execution and training on resource-constrained hardware, revealing the following gaps:

  • Redundant feature extraction in [6, 11, 7, 12] and heavy hybrid models in [8, 9] exceed edge budgets. While the only edge model exempts the segmentation task in [10] and performs only the classification task. Hence, a single lightweight encoder serving both tasks is required.

  • CNN-based multi-task models lost segmentation accuracy in [13, 14], while transformer hybrids regained it only at high cost in [8, 9]. Hence, a decoder that recovers spatial and global context with minimal computation is required.

  • Training was confined to GPU or cloud platforms for the models used in [6, 12, 9, 10], and in [15], which sent raw images centrally. Hence, privacy-preserving training is required in which edge clients update part of the model locally and share only its weights.

  • Evaluation was limited to GPU workstations in [9], with resource usage reported only for a single task in [10]. Hence, on-device training and evaluation reporting CPU utilization, thermal stability, and latency is required.

Overview of Proposed IoMT System for Brain Tumor Detection

The proposed framework is deployed as a two-tier FL-based IoMT system comprising a global server and KK edge clients, where each client represents a medical institution in a smart city holding a private MRI dataset Di={(xj,mj,yj)}j=1ni\mathcal{D}_i = \{(x_j,m_j,y_j)\}_{j=1}^{n_i}, with xjx_j the MRI image, mjm_j the tumor mask, and yjy_j the class label. In order to ensure patient privacy, raw images never leave the client, and only the model parameters θ={W,b}\theta= \{\mathbf{W},\mathbf{b}\} are exchanged, where W\mathbf{W} and b\mathbf{b} represent weights and biases, respectively. Since segmentation and classification share a single encoder, each client optimizes one parameter set for both tasks by minimizing the joint loss expressed as:

Li(θ)=1ni∑j=1ni[λsLseg(Sj,mj)+λcLcls(y^j,yj)],(1)\mathcal{L}_i(\theta) = \frac{1}{n_i}\sum_{j=1}^{n_i}\left[\lambda_s\mathcal{L}_{\mathrm{seg}}(S_j,m_j)+\lambda_c\mathcal{L}_{\mathrm{cls}}(\hat{y}_j,y_j)\right], \tag*{(1)}

where Li(θ)\mathcal{L}_i(\theta) is the local loss of client ii for the model parameters θ\theta. nin_i denotes the number of training samples at client ii, and jj is the sample index. Lseg\mathcal{L}_{\mathrm{seg}} and Lcls\mathcal{L}_{\mathrm{cls}} denote the segmentation and cross-entropy classification losses, respectively. The weights λs\lambda_s and λc\lambda_c balance the segmentation and classification losses. In each communication round (r)(r), client ii receives the global model θr−1\theta^{r-1} and performs local training on its dataset as follows:

θir=θr−1−η∇Li(θr−1),(2)\theta_i^r = \theta^{r-1} - \eta\nabla\mathcal{L}_i(\theta^{r-1}), \tag*{(2)}

where η\eta is the learning rate and ∇Li\nabla\mathcal{L}_i is the gradient of the local loss. The node executes EE local optimization epochs, updating only the designated trainable parameters while freezing the early encoder layers, thereby reducing on-device computational overhead. For experimental consistency, all clients are assumed to employ identical and fixed local training configurations, i.e., optimizer, learning rate η\eta, batch size, and number of local epochs EE in every round, without client-specific hyperparameter adaptation. Thereby, isolating the effect of the proposed framework from variations in local optimization settings under heterogeneous deployment conditions [16].The server further aggregates the client updates via Federated Averaging (FedAvg) using:

θr=∑i=1Kninθir,n=∑i=1Kni,(3)\theta^r = \sum_{i=1}^{K}\frac{n_i}{n}\theta_i^r,\qquad n = \sum_{i=1}^{K}n_i, \tag*{(3)}

where nin_i denotes the local dataset size at client ii and KK is the number of participating clients. It reduces to a uniform average over RR communication rounds due to balanced client dataset sizes. The resulting cumulative communication overhead (CcommC_{\mathrm{comm}}) is estimated using:

Ccomm=R⋅K⋅(Pdown+Pup),P≈q∣θ∣,(4)C_{\mathrm{comm}} = R \cdot K \cdot\left(P_{\mathrm{down}} + P_{\mathrm{up}}\right), \qquad P \approx q \lvert\theta\rvert, \tag*{(4)}

where PdownP_{\mathrm{down}} and PupP_{\mathrm{up}} denote the per-client downlink and uplink payload sizes, respectively. The global server–edge client communication link is assumed to be reliable, with no packet loss or retransmission delays; thus, the overhead in Eq. (4) depends solely on payload size. Each payload depends on the number of model parameters ∣θ∣\lvert\theta\rvert and the number of bits qq used to represent each parameter. The client model jointly produces the segmentation output SjS_j and class prediction y^j\hat{y}_j using a single parameter set θ\theta, whose size determines the communication payload in Eq. (4) and whose depth influences the local training cost in Eq. (2). In order to meet the resource-constrained design criteria, the proposed IoMT framework integrates pixel-level tumor segmentation and four-class tumor classification into a single end-to-end architecture using a lightweight pretrained encoder. The proposed framework shares encoder features, reducing redundant computation and communication overhead by requiring each client to train and transmit only one parameter set, unlike two-stage approaches that train separate models for each task. The detailed architecture of the proposed framework is presented in Figure 1.

Overall architecture of the proposed resource-constrained multi-task framework

Figure 1. Overall Architecture of the proposed resource-constrained multi-task framework, illustrating the Federated Learning (FL) mechanism in the uppermost block and the input preprocessing pipeline in the second block of the first row.

The proposed system is functionally decomposed into two major functional components: (i) a lightweight, partially frozen backbone encoder, and (ii) a shared-representation multi-task lightweight attention module decoder that performs segmentation and classification. The complete processing pipeline can be comprehended as:

I→E(I)→{S,Fg}→{S,C},(5)I \to E(I) \to\{S, F_g\} \to\{S, C\}, \tag*{(5)}

where II denotes the input MRI image, E(⋅)E(\cdot) represents the LiteMedSAM image encoder [17], SS represents the predicted tumor segmentation mask, FgF_g denotes the segmentation-guided feature representation, and CC denotes the predicted tumor class. The algorithm used to perform the multi-task in a resource-constrained environment, as well as the training and validation procedures, are presented in Algorithm 1.

Lightweight Feature Extraction Encoder

Algorithm 1 Resource-Constrained Federated Learning Trained Proposed Framework

  1. Input: MRI dataset D\mathcal{D}, pretrained LiteMedSAM encoder EθE_{\theta}, number of clients K=5K = 5, communication rounds R=5R = 5

  2. Initialize LiteMedSAM/TinyViT; freeze early encoder layers and fine-tune the final two stages and neck

  3. Build segmentation decoder DsegD_{\mathrm{seg}} (256→128→64→32→1256 \to128 \to64 \to32 \to1) with coordinate attention

  4. Construct the classification head HclsH_{\mathrm{cls}}

  5. Forward pass: F=Eθ(x)F = E_{\theta}(x), S=Dseg(F)S = D_{\mathrm{seg}}(F)

  6. Fg=F⊙Resize⁡(σ(S))F_g = F \odot\operatorname{Resize}(\sigma(S))

  7. Ac=σ(Wc2∗GELU⁡(Wc1∗Fg))A_c = \sigma(W_{c2} * \operatorname{GELU}(W_{c1} * F_g))

  8. y^=Hcls(GAP⁡(Fg⊙Ac))\hat{y} = H_{\mathrm{cls}}(\operatorname{GAP}(F_g \odot A_c))

  9. Train on global data to initialize and fine-tune (W0,b0)(W^0, b^0)

  10. for r=1,…,Rr = 1, \ldots, R do

  11. for i=1,…,Ki = 1, \ldots, K do

  12. Send (Wr−1,br−1)(W^{r-1}, b^{r-1}) to client ii

  13. Locally train on Di\mathcal{D}_i and return (Wir,bir)(W_i^r, b_i^r)

  14. end for

  15. FedAvg: (Wr,br)=1K∑i=1K(Wir,bir)(W^r, b^r) = \frac{1}{K} \sum_{i=1}^{K}(W_i^r, b_i^r)

  16. end for

  17. Return: Global model (WR,bR)(W^R, b^R)

Lightweight Feature Extraction Encoder

The feature extraction stage is based on LiteMedSAM, whose lightweight TinyViT-based image encoder is computationally more efficient than large vision backbones [17, 18, 19] as represented in Figure 1. Instead of fine-tuning all encoder parameters, the proposed framework selectively freezes TinyViT layers and unfreezes the encoder neck, so that the majority of the pretrained weights and biases are subsequently optimized during training. This selective fine-tuning reduces the number of trainable parameters and irrelevant weight updates, lowering computational requirements without compromising feature extraction for downstream tasks. The proposed lightweight encoder transforms the 256×256256 \times256 input MRI into a compact high-level feature map.

Let the input image be

I∈R3×256×256.(6)I \in\mathbb{R}^{3 \times256 \times256}. \tag*{(6)}

The image encoder produces an embedding

F=ETinyViT(I)(7)F = E_{\mathrm{TinyViT}}(I) \tag*{(7)}

where in Eq. (7) FF denotes the encoded feature map used simultaneously by the segmentation and classification pathways.

Attentive Segmentation and Segmentation-Guided Feature-Enhanced Classification Decoder

The decoder uses the shared feature maps extracted by the encoder to support both tumor segmentation and subsequent tumor classification.

Lightweight Attention-Enhanced Segmentation

To enhance the segmentation, the encoded feature maps are passed to a lightweight decoder that upsamples them while progressively reducing the number of channels at each stage, as shown in Figure 1. The lightweight coordinate attention [20] refines the spatial feature maps as represented in Figure 1. The feature maps are pooled along the height and width dimensions using 1D adaptive pooling. It is then combined and transformed with a 1×11 \times1 pointwise convolution with Group Normalization and GELU activation, keeping the block lightweight. The result is separated into horizontal as well as vertical components and projected back to the original channel dimension. Unlike conventional channel-only attention, this block separately models spatial information along the height and width of the tumor region. For an intermediate feature tensor

X∈RB×C×H×W,(8)X \in\mathbb{R}^{B \times C \times H \times W}, \tag*{(8)}

Two-directional representations are obtained using 1D adaptive average pooling is represented in Eq. (9) and Eq. (10) derived from [20]:

Xh=Pool⁡h(X),(9)X_h = \operatorname{Pool}_h(X), \tag*{(9)}
Xw=Pool⁡w(X).(10)X_w = \operatorname{Pool}_w(X). \tag*{(10)}

The transformed representation is subsequently separated into height and width components. The independent 1×11 \times1 convolutions followed by sigmoid activation are then used to generate the corresponding attention maps [21], which are represented in Eq. (11) and Eq. (12):

Ah=σ(Conv⁡h(Xh)),(11)A_h = \sigma\left(\operatorname{Conv}_h(X_h)\right), \tag*{(11)}
Aw=σ(Conv⁡w(Xw)).(12)A_w = \sigma\left(\operatorname{Conv}_w(X_w)\right). \tag*{(12)}

The directional attention maps [22] are combined multiplicatively as shown in Eq. (13) and Eq. (14):

A=Ah⊙Aw,(13)A = A_h \odot A_w, \tag*{(13)}

where ⊙\odot denotes element-wise multiplication. A residual formulation is subsequently applied as

Xout=X+γ(X⊙A),(14)X_{\mathrm{out}} = X + \gamma\left(X \odot A\right), \tag*{(14)}

where γ\gamma is a learnable scalar initialized to zero. This residual formulation enables the attention mechanism to progressively learn its contribution during training without disrupting the pretrained feature map at the start of optimization.

Segmentation Guided Feature Extraction

The predicted segmented tumor region is used to guide the classification pathway. First, the segmentation logits are converted into a probability map using the sigmoid function as shown in Eq. (15):

M=σ(S).(15)M = \sigma(S). \tag*{(15)}

Since the segmentation decoder produces a higher-resolution feature map than the encoder, the predicted probability map MM is resized to MrM_r. The spatial dimensions of the encoder feature map using bilinear interpolation are represented in Eq. (16):

Mr=Resize⁡(M,HF,WF).(16)M_r = \operatorname{Resize}(M, H_F, W_F). \tag*{(16)}

where HFH_F and WFW_F are the height and width features of the predicted tumor region.

The resized segmentation probability map is then used as a spatial weighting mask for the encoder features as:

Fg=F⊙Mr,(17)F_g = F \odot M_r, \tag*{(17)}

where in Eq. (17) FgF_g represents the segmentation-guided feature representation and ⊙\odot denotes element-wise multiplication. Consequently, features corresponding to regions with high tumor probability receive greater emphasis, whereas features from regions with low predicted tumor probability are attenuated. This operation establishes an explicit information flow from the segmentation task to the classification task, enabling the classifier to make predictions using tumor-focused rather than globally distributed image features.

Segmentation-Guided Feature Refinement for Classification

The classification task reuses the encoded features along with the segmented tumor region for guided feature analysis. The segmented feature map spatially guides the features for class-based classification as shown in Figure 1. From a resource-constraint perspective, the localized tumor region in the MRI image is also provided as input to the classification head. The segmentation-guided feature representation (FgF_g) is subsequently processed by a lightweight module consisting of two 1×11 \times1 convolutions with a GELU, which generates a channel-wise refinement map rather than expensive spatial convolutions. This refinement provides additional feature refinement capability without a substantial increase in computational complexity [23, 24]. The feature refinement module is represented mathematically in Eq. (18):

Ac=σ(Conv⁡1×1(2)(GELU⁡(Conv⁡1×1(1)(Fg)))).(18)A_c = \sigma\left(\operatorname{Conv}_{1 \times1}^{(2)}\left(\operatorname{GELU}\left(\operatorname{Conv}_{1 \times1}^{(1)}(F_g)\right)\right)\right). \tag*{(18)}

The refined classification representation in Eq. (19) is subsequently utilized for final class prediction.

Fc=Fg⊙Ac,(19)F_c = F_g \odot A_c, \tag*{(19)}

where ⊙\odot denotes element-wise multiplication.

Refined Feature Reuse for Classification Task

The refined feature map FcF_c is further converted to a compressed feature vector using adaptive average pooling as shown in Eq. (20) and as represented in Figure 1.

z=GAP⁡(Fc).(20)z = \operatorname{GAP}(F_c). \tag*{(20)}

The compact feature vector is passed through a Fully Connected (FC) classification head containing a linear transformation, layer normalization, GELU activation, dropout, and a residual FC block, as shown in Eq. (21).

zr=z1+F(z1),(21)z_r = z_1 + \mathcal{F}(z_1), \tag*{(21)}

where F(⋅)\mathcal{F}(\cdot) represents the fully connected transformation followed by normalization, nonlinear activation, and dropout. The representation is subsequently projected to 256 dimensions and finally mapped to four class logits:

y^=W2ϕ(W1zr)+b,(22)\hat{y} = W_2\phi(W_1z_r) + b, \tag*{(22)}

where in Eq. (22) ϕ(⋅)\phi(\cdot) represents the intermediate nonlinear transformation. The classification head used in the proposed framework substantially reduces the computational and memory overhead compared with classification heads that directly process high-resolution feature maps, as shown in Figure 1.

Results and Discussion

The proposed IoMT-based framework for brain tumor detection has been experimentally evaluated in order to investigate its classification performance, federated learning effectiveness, and computational feasibility under the considered experimental setup.

Experimental Setup and Training Strategy

The proposed IoMT-based framework has been implemented in a laboratory environment as shown in Figure 2. It is

Experimental setup of the proposed IoMT-based framework

Figure 2. Experimental Setup of the Proposed IoMT-based Framework

highlighted that the server-side computation has been executed on a workstation equipped with an Intel Xeon Silver 4214R CPU operating at 2.40 GHz with 12 cores, an NVIDIA RTX A4000 GPU with 16 GB memory, and 64 GB DDR4 RAM.

A total of 1200 class-balanced T1-weighted MRI samples are considered in this work, comprising Meningioma, Pituitary, and Glioma samples from the publicly available Figshare dataset [25] and no-tumor samples from the Sartaj dataset [26]. Instead of a single centralized training configuration, the samples were divided into 600 for offline GPU-based global training, 360 for federated learning on resource-constrained clients, and 240 for testing, corresponding to 50%, 30%, and 20%, respectively. The global training uses 480 samples for training, 60 for validation, and 60 for testing. The 360-sample client partition was sized to the compute and memory budget of the 16 GB Raspberry Pi 5 [27] and distributed equally across five clients, each holding 72 samples with a 40:16:16 samples for training:validation:test split. The remaining 240 samples form a held-out external test set shared by the global and federated configurations.

Comparative Evaluation of Centralized and Distributed Learning Performance

The client-based model is trained on GPU-accelerated weights and achieves classification accuracy close to the global baseline of 95.21%, as shown in Figure 3. The accuracy remains close to the global baseline of 95.21%, with relative

Performance Evaluation of the Proposed IoMT Framework Across Federated Rounds

Figure 3. Performance Evaluation of the Proposed IoMT Framework Across Federated Rounds

changes ranging from a 0.59% decrement to a 0.08% increment across the five federated rounds.

It can be observed that the overall accuracy closely tracks the global baseline, varying from -0.59% to +0.08%. Round 2 achieves the highest segmentation fidelity, with relative improvements in DS and IoU of 2.00% and 2.95%, respectively. Subsequent rounds exhibit performance degradation across both overlap metrics despite pixel accuracy persisting above 99.9%, highlighting its limited sensitivity to segmentation degradation. This indicates that local weight and bias updates on low-power hardware maintain performance close to that of the globally trained model. DSC and IoU exceed the global baselines of 90.04% and 84.31% in Round 1 and Round 2, peaking at 91.84% and 86.80%, which increases by 1.80% and 2.49%, respectively. Since both metrics move in the same direction in every round, this gain reflects a generalized improvement in weight updates. Round 2 provides the strongest performance, with accuracy of 95.24%, DSC of 91.84%, IoU of 86.80%, and pixel accuracy of 99.98%, all exceeding the global performance metrics by +0.03, +1.80, +2.49, and +0.06, respectively. While pixel accuracy remains between 99.92% and 99.99% across all rounds, without highlighting substantial variation across rounds. DSC and IoU then decline to 85.15% and 79.88% by Round 5, showing that local weight updates adapt the shared feature representations to client-specific data distributions. Hence, the model potentially improves client-level adaptation and generalization rather than simply preserving the globally fine-tuned segmentation weights. Furthermore, the communication payload remains nearly constant at approximately 42.2 MB downlink and 48.7 MB uplink per round, varying by less than 0.05 MB, which amounts to 210.86 MB downlink and 243.65 MB uplink per client over five rounds, totaling 454.51MB. As a single multitask framework serves both segmentation and classification, separate payloads of comparable size for two independent pipelines are avoided, making the communication design suitable for resource-constrained edge clients.

Impact of Trainable Parameters on Model Performance and Hardware Efficiency

In the proposed framework, the percentage of trainable parameters is systematically varied from 100% to 70%, as shown in Table 1. Freezing 5% of the parameters and utilizing 95% trainable parameters decreases the number of trainable parameters by 489,565 and training FLOPs by 3.98 G, as shown in Table 1. In comparison with the performance of 100% trainable parameters, the 95% trainable parameters exhibited changes in performance of -0.15%, -0.08%, -0.25%, -0.01%, and -0.02% in Accuracy, DSC, IoU, Pixel Accuracy, and ROC-AUC, respectively. The 95% to 90% reduction in trainable parameters resulted in a variation of -0.24% in accuracy, -0.34% in DSC, and -0.46% in IoU. At 70% trainable parameters, the computational cost decreases to 55.69 G FLOPs, representing a reduction of 23.86 G FLOPs compared with 100% trainable parameters. This configuration resulted in performance drop of 1.35% in accuracy, 1.64% in DSC, 2.33% in IoU, 0.09% in pixel-accuracy, and 0.22% in ROC-AUC, compared with the 100% trainable-parameter configuration. In comparison, the 95% trainable configuration reduces the computational cost to 75.57 G FLOPs, with corresponding performance of -0.15%, -0.08%, -0.25%, and -0.02% in accuracy, DSC, IoU, and ROC-AUC, respectively. This signifies that, with 95% of parameters trainable, compared with 100% trainable, it largely preserves distinct multiclass tumor features and performs multi-tasking effectively. The 95% freezing configuration offers an optimal trade-off between computational efficiency and task-specific adaptation, while retaining most of the extracted features.

Trainable (%)Trainable Params.Frozen Params.FLOPs (Train/Total)Accuracy (%)DSC (%)IoU (%)Pixel Acc. (%)ROC-AUC (%)
1009,791,300079.55/79.55 G94.3588.6183.9399.9099.89
959,301,735489,56575.57/79.55 G94.2088.5383.6899.8999.87
908,812,170979,13071.60/79.55 G93.9688.1983.2299.8799.84
858,322,6051,468,69567.62/79.55 G93.5887.7482.6399.8599.79
706,853,9102,937,39055.69/79.55 G92.7186.5881.0999.7999.63

Table 1. Performance Evaluation Under Different Trainable Parameter Configurations

Components-wise Ablation Analysis

In order to determine the individual contribution of the proposed framework, the ablation study is conducted using three configurations: (i) M1: Fine-tuned LiteMedSAM + Classification Head; (ii) M2: M1+Coordinate Attention (CA) Module; (iii) M3: M2+Feature Refinement(FR) (Proposed Framework). In Figure 4, the results demonstrate a progressive improvement as each component is added. The baseline M1 achieves an accuracy of 92.84%, DSC of 84.71%, and

Ablation Study of the Proposed Framework

Figure 4. Ablation Study of the Proposed Framework

IoU of 79.08%. In M2, adding the lightweight coordinate attention module to the baseline M1 improves accuracy by 0.97%, DSC by 2.21%, and IoU by 2.63%. In M3, the addition of the feature refinement further improves accuracy by 0.39%, DSC by 1.61%, and IoU by 1.97% compared to M2. In comparison with the baseline M1 and the proposed framework M3, overall improvements of 1.36% in accuracy, 3.82% in DSC, and 4.60% in IoU are observed. Thus, the ablation results indicate that the additional architectural components contribute not only to multi-class classification but also improve the spatial segmentation of the tumor region. Although the computational complexity increases as the component progresses from M1 to M3, the proposed framework provides additional representational capability with a comparatively controlled computational overhead.

These improvements are accompanied by a gradual increase in computational complexity and parameter count. The total FLOPs increase from 78.81 G in M1 to 79.18 G in M2 and 79.55 G in M3, while trainable parameters increase from 9,108,642 to 9,226,954 and 9,301,735, respectively. The corresponding CPU utilization rises from 50.7% to 52.8%, RAM usage from 6.88 GB to 7.01 GB, and CPU temperature from 58.9°C to 60.6°C. Subsequently, the proposed M3 introduces only 0.74 G in additional total FLOPs and 193,093 additional trainable parameters compared to M1, while improving DSC by 3.82%, IoU by 4.60%, and classification accuracy by 1.36%. These results indicate that the additional computational cost is accompanied by a significant improvement in performance quality, with a comparatively modest increase in computational resources.

Comparison with State-of-the-Art Frameworks on Edge Hardware

Table 2 compares the proposed IoMT framework with ten state-of-the-art brain tumor diagnosis frameworks, all evaluated on the same dataset using a 16 GB Raspberry Pi 5 client. Where available, the reported hyperparameters

AuthorModelCPU Util. (%)Memory (GB)BW Util. (%)Peak Headroom (GB)Avg. Temp. (°C)Peak Temp. (°C)ThrottlingLatency (s/image)Round Time (min)BW Frequency / Execution StatusAccuracy (%)DSC (%)IoU (%)Pixel Accuracy (%)ROC-AUC (%)
Renugadevi [8] [8]VggVU-ED9213.2822.627885Yes380354.672.2 GHz at Round 392.8985.7483.2399.7597.65
NeenaKA (2026) [10]PWT + CNN + Self-Attention68.54.253511.5758.664.2No350326.672.09 GHz; Full run completed93.42******99.01
Akter et al. [7] [7]UNet + 39-layer CNN762.83513.26872Soft3303082.2 GHz; Clock reduced to 1.5 GHz at Round 393.5883.4580.9897.7597.89
Kordnoori et al. [13] [13]Shared Encoder + U-Net Decoder + MLP (Global)8712.28803.548285Yes––2.4 GHz; Stopped during Round 197.6995.8293.8999.8599.79
Salama [9] [9]CVAE-UNETR-ResNet50 + VGG16 (Global)9815.6980.28385Yes––2.4 GHz; Stopped during Round 198.5696.8294.8299.9299.85
Ramprasad et al. [15] [15]SBTC-Net + Black Widow + Genetic Optimization859.5896.327382Yes3002802.2 GHz; Clock reduced to 1.5 GHz at Round 293.2185.6282.6497.8998.98
Jabbar et al. [11]CapsNet + VGGNet94.27.8068.58.0274.282.1Yes4564262.2 GHz; Clock reduced to 1.5 GHz at Round 492.9886.5983.0298.3598.58
Alshomrani et al. [12]Residual U-Net + FT-CNN (Global)94.510.2985.628385Yes––2.4 GHz; Executed and stopped95.2994.7793.5499.9798.99
Sahoo et al. [6] [6]ResNet-18 U-Net + YOLOv2 (Global)997.8688.08385Yes––2.4 GHz; Stopped during Round 196.7288.9285.7999.78100.00
Rabby et al. [14] [14]BT-Net918.9646.97579No490457.342.0 GHz; Full run completed91.8986.9281.9995.6797.71
Proposed FrameworkFedTumor-IoMT52.87.01558.816065No46.54451.5 GHz; Full run completed94.2088.5383.6899.8999.87

Table 2. Comparison of the Proposed Framework with State-of-the-Art Joint Segmentation and Classification Methods in Terms of Computational, Thermal, and Diagnostic Performance

Note: “–” in the Latency and Round Time columns denotes frameworks marked (Global), which are trained and evaluated on GPU-based global systems. The per-image latency and round time are therefore not reported, as they are not directly comparable with those of the resource-constrained edge clients. The ** in DSC, IoU, and Pixel Accuracy columns indicates that the framework performs only classification and does not report segmentation metrics.

of each framework are adopted; otherwise, a common baseline of batch size = 2, learning rate = 0.001, and the Adam optimizer is used to maintain experimental consistency. The comparison covers diagnostic performance, thermal behavior, and computational efficiency.

Diagnostic Performance

Existing frameworks largely rely on separately trained segmentation and classification networks, in which the classifier does not explicitly exploit the predicted tumor region. Under edge execution, the existing frameworks achieve accuracies of only 91.89–93.58%, and those performing segmentation achieve DSC values of 83.45–86.92% [7, 8, 10, 11, 14, 15]. In contrast, the proposed framework addresses this repetitive training through federated feature reuse, achieving 94.20% accuracy, 88.53% DSC, 83.68% IoU, 99.89% pixel accuracy, and 99.87% ROC-AUC, the highest values on all five metrics among the frameworks executed on the edge client. The shared encoder with U-Net decoder and MLP classifier [13], CVAE-UNETR-ResNet50-VGG16 [9], Residual U-Net+FT-CNN [12], and ResNet-18 U-Net+YOLOv2 [6] report higher accuracies of 95.29–98.56%. However, these values reflect GPU-based evaluation, since the resource demands of these architectures could not be accommodated by resource-constrained training on edge devices. Hence, the proposed framework provides competitive, effective diagnostic performance in comparison with GPU-scale models while completing all federated rounds on the edge client.

Thermal Behavior

ResNet-18 U-Net+YOLOv2 [6], VggVU-ED [8], CVAE-UNETR-ResNet50-VGG16 [9], Residual U-Net+FT-CNN [12], and the shared encoder model in [13] reach peak temperatures of 85°C, while CapsNet+VGG [11] and SBTC-Net [15] reach 82.1°C and 82°C, respectively. In UNet+39-layer CNN [7], CapsNet+VGG [11], and SBTC-Net [15], the processor frequency is reduced to 1.5 GHz in later rounds, lowering the effective computational capacity and extending training time. The proposed framework extracts features once and reuses them for both tasks, utilizing a partially frozen shared encoder. This, in contrast, limits the sustained processor load, maintaining an average temperature of 60°C and a peak of 65°C at a fixed 1.5 GHz clock, with no throttling events across all five federated rounds. The proposed framework achieves thermal performance comparable to that of PWT+CNN+Self-Attention [10]. This existing architecture performs only the classification task and skips the segmentation task, with average and peak temperatures of 58.6°C and 64.2°C. In contrast, the proposed framework jointly performs segmentation and classification tasks, with each round 7.3 times faster at slightly higher average and peak temperatures of 60 °C and 65°C, respectively.

Computational Efficiency

VggVU-ED [8], CapsNet+VGG [11], Residual U-Net+FT-CNN [12], CVAE-UNETR-ResNet50-VGG16 [9], and ResNet-18 U-Net+YOLOv2 [6] operate at 92–99% CPU utilization, leaving insufficient headroom for gradient computation and federated communication due to the redundant feature extraction across each separate network, saturating the processor computational memory. VggVU-ED [8] requires 13.2 GB of RAM, and its training process is terminated by the operating system at Round 3, due to memory exhaustion. CVAE-UNETR-ResNet50-VGG16 [9] requires 15.6 GB of RAM with only 0.2 GB of headroom, while CVAE-UNETR-ResNet50-VGG16 [9] and Residual U-Net+FT-CNN [12] consume 98% of the memory bandwidth, and SBTC-Net [15] consumes 89%. As these architectures are designed for GPU workstations, their memory and processing requirements exceed the budget of an edge-device-based, resource-constrained client. The models in [13, 9, 12, 6] exceed the on-device training budget beyond the first round. In contrast, the proposed framework addresses this by using a joint segmentation and classification approach with a single shared encoder. This eliminates the need for redundant training for feature extraction, reducing the number of trainable parameters. It operates at 52.8% CPU utilization, 7.01 GB of RAM with 8.81 GB of headroom, and 55% memory bandwidth utilization, leaving sufficient resources for local training and weight exchange among the global server and client-based server.

A low memory footprint alone, however, does not ensure efficient execution. PWT+CNN+Self-Attention [10] uses only 4.25 GB of RAM and 35% memory bandwidth, yet requires 350 s/image and 326.67 min/round, while BT-Net [14] requires 490 s/image and 457.34 min/round. In contrast, the proposed framework performs the entire brain tumor diagnosis by sharing encoder feature maps between segmentation and classification and processing them through a lightweight decoder and classification head, reducing the per-image processing time to 46.54 s and the round time to 45 min. Consequently, the proposed framework achieves a per-image processing time 6.4 times lower than that of SBTC-Net [15] and 10.5 times lower than that of BT-Net [14], which represent the fastest and slowest existing frameworks with measurable latency, respectively. Likewise, the joint task reduces the round time by 7.3 and 2.0 times, respectively, as compared to PWT+CNN+Self-Attention [10] and BT-Net [14], which complete all federated rounds without throttling.

Overall, the existing frameworks are constrained on the edge client by limited processing and memory resources, elevated temperatures, or prolonged round times. The proposed framework addresses each of these through shared feature extraction, segmentation-guided feature reuse and refinement, and selective encoder freezing. Consequently, it provides stable, multi-round, client-based federated training with the highest diagnostic performance among edge-executed frameworks.

Conclusion

This work experimentally validates the feasibility of joint brain tumor segmentation and classification on resource-constrained edge devices within an FL-based IoMT system. The proposed architecture eliminates redundant feature extraction by sharing a single LiteMedSAM encoder and reusing segmentation-guided features. It completes all five federated rounds without thermal throttling, achieving 94.20% classification accuracy and 88.53% DSC, the highest among frameworks executed on the same hardware, while its accuracy across the five federated rounds remains within 0.6% of the GPU-trained baseline. The coordinate attention and feature refinement modules improve DSC and IoU by 3.82% and 4.60%, respectively, with only 0.74 GFLOPs of additional computation. Compared with existing frameworks, the proposed approach achieves 52.8% CPU utilization and 6.4–10.5 times lower per-image processing time. Training 95% of the parameters reduces computation by 3.98 GFLOPs with at most 0.25% degradation in any metric.

In future work, the proposed framework will be extended from T1-weighted MRI to multimodal MRI with tumor sub-region segmentation, and from five balanced clients to larger client populations with non-identical data distributions across diverse edge platforms. In addition, model quantization and secure aggregation will be investigated to further reduce computational overhead and strengthen privacy during federated weight exchange.

References

  1. [1]A. K. Sekhar, S. Biswas, R. Hazra, A. K. Sunaniya, A. Mukherjee, and L. Yang, “Brain tumor classification using fine-tuned googlenet features and machine learning algorithms: Iomt enabled cad system,” IEEE Journal of Biomedical and Health Informatics, vol. 26, no. 3, pp. 983–991, 2022.DOI
  2. [2]J. Liu, U. A. Bhatti, J. Zhang, Y. Zhang, and M. Huang, “Ef-vpt-net: Enhanced feature-based vision patch transformer network for accurate brain tumor segmentation in magnetic resonance imaging,” IEEE Journal of Biomedical and Health Informatics, vol. 30, no. 9, pp. 7938–7951, 2026.DOI
  3. [3]L. Bao, S. Khan, Y. Wang, Y. Lv, and X. Li, “Explainable deep learning framework for multimodal brain tumor classification via neuroimaging attribute extraction,” IEEE Journal of Biomedical and Health Informatics, pp. 1–14, 2026.DOI
  4. [4]Y. Zhou, J. Wu, J. Fu, Q. Yue, W. Liao, S. Zhang, S. Zhang, and G. Wang, “Vox-mmsd: Voxel-wise multi-scale and multi-modal self-distillation for self-supervised brain tumor segmentation,” IEEE Journal of Biomedical and Health Informatics, vol. 30, no. 9, pp. 7966–7979, 2026.DOI
  5. [5]H.-I. Liu, M. Galindo, H. Xie, L.-K. Wong, H.-H. Shuai, Y.-H. Li, and W.-H. Cheng, “Lightweight deep learning for resource-constrained environments: A survey,” 2024. [Online]. Available: https://arxiv.org/abs/2404.07236
  6. [6]A. K. Sahoo, P. Parida, K. Muralibabu, and S. Dash, “Efficient simultaneous segmentation and classification of brain tumors from mri scans using deep learning,” Biocybernetics and Biomedical Engineering, vol. 43, no. 3, pp. 616–633, 2023. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0208521623000414DOI
  7. [7]A. Akter, N. Nosheen, S. Ahmed, M. Hossain, M. A. Yousuf, M. A. A. Almoyad, K. F. Hasan, and M. A. Moni, “Robust clinical applicable cnn and u-net based algorithm for mri classification and segmentation for brain tumor,” Expert Systems with Applications, vol. 238, p. 122347, 2024. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0957417423028429DOI
  8. [8]M. Renugadevi, K. Narasimhan, K. Ramkumar et al., “A novel hybrid vision UNet architecture for brain tumor segmentation and classification,” Scientific Reports, vol. 15, p. 23742, 2025.DOI
  9. [9]W. M. Salama and M. H. Aly, “Brain tumor segmentation and classification: A cvae-unet-resnet50-vgg16 hybrid deep learning approach,” Alexandria Engineering Journal, vol. 135, pp. 433–449, 2026. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S1110016826000037DOI
  10. [10]K. A. Neena and M. N. Anil Kumar, “Haar-initialized parametric wavelet compression with attention-driven lightweight CNN for brain tumor classification on edge devices,” Biomedical Physics & Engineering Express, vol. 12, no. 1, 2026. [Online]. Available: https://doi.org/10.1088/2057-1976/ae3760
  11. [11]A. Jabbar, S. Naseem, T. Mahmood, T. Saba, F. S. Alamri, and A. Rehman, “Brain tumor detection and multi-grade segmentation through hybrid caps-vggnet model,” IEEE Access, vol. 11, pp. 72 518–72 536, 2023.DOI
  12. [12]F. Alshomrani, “A unified pipeline for simultaneous brain tumor classification and segmentation using fine-tuned cnn and residual unet architecture,” Life, vol. 14, no. 9, 2024. [Online]. Available: https://www.mdpi.com/2075-1729/14/9/1143DOI
  13. [13]S. Kordnoori, M. Sabeti, M. H. Shakoor, and E. Moradi, “Deep multi-task learning structure for segmentation and classification of supratentorial brain tumors in mr images,” Interdisciplinary Neurosurgery, vol. 36, p. 101931, 2024. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S2214751923002141DOI
  14. [14]S. F. Rabby, M. A. Arafat, and T. Hasan, “Bt-net: An end-to-end multi-task architecture for brain tumor classification, segmentation, and localization from mri images,” Array, vol. 22, p. 100346, 2024. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S2590005624000122
  15. [15]M. V. S. Ramprasad, M. Z. U. Rahman, and M. D. Bayleyegn, “Sbtc-net: Secured brain tumor segmentation and classification using black widow with genetic optimization in iomt,” IEEE Access, vol. 11, pp. 88 193–88 208, 2023.DOI
  16. [16]Y. Tian, R. Chandrasekaran, K. Ergun, X. Yu, and T. Rosing, “Federated hyperdimensional computing: Comprehensive analysis and robust communication,” ACM Transactions on Internet of Things, vol. 6, no. 3, pp. 1–30, 2025.
  17. [17]R. Gao, D. Lyu, and M. Staring, “Swin-litemedsam: A lightweight box-based segment anything model for large-scale medical image datasets,” 2024. [Online]. Available: https://arxiv.org/abs/2409.07172
  18. [18]S. Mia, U. Habiba, U. Akter, S. R. Q. Raisa, J. Maliha, M. I. Hossain, and M. S. H. Sumon, “Tiny-vit: A compact vision transformer for efficient and explainable potato leaf disease classification,” 2026. [Online]. Available: https://arxiv.org/abs/2603.26761
  19. [19]K. Aitken, V. V. Ramasesh, Y. Cao, and N. Maheswaranathan, “Understanding how encoder-decoder architectures attend,” 2021. [Online]. Available: https://arxiv.org/abs/2110.15253
  20. [20]Q. Hou, D. Zhou, and J. Feng, “Coordinate attention for efficient mobile network design,” 2021. [Online]. Available: https://arxiv.org/abs/2103.02907
  21. [21]J. Hu, L. Shen, and G. Sun, “Squeeze-and-excitation networks,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2018, pp. 7132–7141.
  22. [22]H. Zhang, I. Goodfellow, D. Metaxas, and A. Odena, “Self-attention generative adversarial networks,” in Proceedings of the 36th International Conference on Machine Learning (ICML), ser. PMLR, vol. 97, 2019, pp. 7354–7363.arxiv.org/abs/1805.08318
  23. [23]S. Woo, J. Park, J.-Y. Lee, and I. S. Kweon, “Cbam: Convolutional block attention module,” in Proceedings of the European Conference on Computer Vision (ECCV), 2018, pp. 3–19.arxiv.org/abs/1807.06521
  24. [24]D. Hendrycks and K. Gimpel, “Gaussian error linear units (GELUs),” arXiv preprint arXiv:1606.08415, 2016.
  25. [25]J. Cheng, “Brain tumor dataset,” Apr. 2017. [Online]. Available: https://doi.org/10.6084/m9.figshare.1512427.v8
  26. [26]M. Nickparvar, “Brain tumor mri dataset,” 2026. [Online]. Available: https://www.kaggle.com/dsv/14832123
  27. [27]Raspberry Pi Ltd, “Raspberry pi documentation,” https://www.raspberrypi.com/documentation/, accessed: Oct. 9, 2026.

Paper details

vlnc:W_quwexxku
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents