{"id":228142,"date":"2025-10-21T00:48:15","date_gmt":"2025-10-21T00:48:15","guid":{"rendered":"https:\/\/www.newsbeep.com\/ca\/228142\/"},"modified":"2025-10-21T00:48:15","modified_gmt":"2025-10-21T00:48:15","slug":"adaptive-resource-aware-and-privacy-preserving-federated-edge-learning-framework-for-real-time-internet-of-medical-things-applications","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/ca\/228142\/","title":{"rendered":"Adaptive resource aware and privacy preserving federated edge learning framework for real time internet of medical things applications"},"content":{"rendered":"<p>The proposed Adaptive Federated Edge Learning (AFEL) framework is designed to address fundamental challenges in Internet of Medical Things deployments, including heterogeneous data distributions, constrained computational resources, asynchronous connectivity, and strict privacy requirements. As illustrated in Figure\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Fig1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>, the framework integrates Adaptive Modular Learning Units (AMLUs), Dynamic Data Encoding (DDE), Hierarchical Federated Aggregation (HFA), Privacy-Preserving Secure Enclaves (PPSE), and Real-Time Anomaly Detection (RTAD) into a layered workflow. Each component targets a distinct limitation while contributing to a cohesive architecture that supports end-to-end healthcare analytics. AMLUs implement resource-aware training by adjusting model depth and complexity according to device-specific budgets, which prevents overload on low-capacity nodes while preserving local contribution to global optimization. DDE transforms heterogeneous input streams from wearable sensors, imaging systems, and electronic health records into a universal, decorrelated feature space, thereby minimizing covariate shift across devices. This transformation stabilizes convergence during aggregation and improves anomaly detection accuracy. The workflow, as shown in Figure\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Fig1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>, establishes an end-to-end system where heterogeneous inputs are standardized, processed under resource-aware conditions, aggregated hierarchically, secured at the computational level, and analyzed in real time for anomaly detection, enabling reliable and privacy-preserving healthcare analytics in Internet of Medical Things systems.<\/p>\n<p>Fig. 1<a class=\"c-article-section__figure-link\" data-test=\"img-link\" data-track=\"click\" data-track-label=\"image\" data-track-action=\"view figure\" href=\"https:\/\/www.nature.com\/articles\/s41598-025-23398-w\/figures\/1\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" aria-describedby=\"Fig1\" src=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/41598_2025_23398_Fig1_HTML.png\" alt=\"figure 1\" loading=\"lazy\" width=\"685\" height=\"551\"\/><\/a><\/p>\n<p>Proposed system architecture illustrating the hierarchical data flow across Input, Processing, Aggregation, Security, and Output layers for healthcare systems.<\/p>\n<p>The upper layers of the framework coordinate secure aggregation and anomaly detection in real time. HFA performs multi-tier aggregation at edge, fog, and cloud levels using data-size weighting and delay-aware coefficients, which mitigates staleness of model updates while maintaining scalability across large deployments. PPSE enforces privacy at the computation layer by executing training and aggregation within hardware-secured enclaves and injecting calibrated differential privacy noise, preventing gradient inversion and inference attacks on sensitive medical data. RTAD operates as a continuous monitoring pipeline, applying sliding windows, dimensionality reduction, covariance-based scoring, and adaptive thresholds to detect anomalies in patient data streams with low latency. This module supports immediate detection of clinically critical events while leveraging continuously updated global models from the federated process.<\/p>\n<p>AFEL modules working<\/p>\n<p>The Adaptive Federated Edge Learning (AFEL) framework is underpinned by modular components that collaborate to ensure efficiency, scalability, and privacy in IoMT-enabled healthcare systems.<\/p>\n<p>Adaptive Modular Learning Units (AMLUs)<\/p>\n<p>AMLUs implement resource-aware local learning on heterogeneous edge nodes. Each AMLU maintains a module-specific resource metric, a resource-constrained training objective, a resource-normalized activation, a resource-proportional fusion rule, and a federated gradient update. The design targets strict device budgets, bounded latency, and stable convergence under heterogeneous feature distributions. The module stack partitions computation across \\(m\\) hierarchical sub-modules while preserving a common supervision signal.<\/p>\n<p>Let the local dataset be \\({\\textbf{X}}=\\{{\\textbf{x}}_1,\\dots ,{\\textbf{x}}_n\\}\\), \\({\\textbf{x}}_i\\in {\\mathbb {R}}^d\\), with target vector \\({\\textbf{y}}\\in {\\mathbb {R}}^n\\). Computation is partitioned into \\(m\\) sub-modules \\(\\{M_1,\\dots ,M_m\\}\\). Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a> defines the per-module resource score \\(R_j\\in {\\mathbb {R}}_{&gt;0}\\) as<\/p>\n<p>$$\\begin{aligned} R_j=\\frac{C_j}{T_j}, \\end{aligned}$$<\/p>\n<p>\n                    (1)\n                <\/p>\n<p>where \\(C_j\\) denotes available computational capacity for module \\(j\\) (e.g., effective FLOPs\/s) and \\(T_j\\) denotes expected processing time per inference\/training step for module \\(j\\) (s). The AMLU training objective in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ2\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a> is<\/p>\n<p>$$\\begin{aligned} \\min _{{\\textbf{w}}} \\;\\; \\sum _{j=1}^{m} \\frac{\\Vert {\\textbf{X}}_j {\\textbf{w}}_j &#8211; {\\textbf{y}} \\Vert _2^{2}}{R_j} + \\lambda \\Vert {\\textbf{w}}_j \\Vert _{1}, \\end{aligned}$$<\/p>\n<p>\n                    (2)\n                <\/p>\n<p>subject to the resource budget in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ3\" rel=\"nofollow noopener\" target=\"_blank\">3<\/a>,<\/p>\n<p>$$\\begin{aligned} \\sum _{j=1}^{m} R_j \\le R_{\\text {max}}, \\end{aligned}$$<\/p>\n<p>\n                    (3)\n                <\/p>\n<p>where \\({\\textbf{X}}_j\\in {\\mathbb {R}}^{n\\times d}\\) is the module-specific design matrix (e.g., transformed features for \\(M_j\\)), \\({\\textbf{w}}_j\\in {\\mathbb {R}}^{d}\\) is the parameter vector of \\(M_j\\), \\({\\textbf{w}}=\\{{\\textbf{w}}_1,\\dots ,{\\textbf{w}}_m\\}\\), \\(\\Vert \\cdot \\Vert _2\\) is the Euclidean norm, \\(\\Vert \\cdot \\Vert _1\\) is the \\(\\ell _1\\) norm, \\(\\lambda&gt;0\\) is the sparsity regularizer, and \\(R_{\\text {max}}&gt;0\\) is the allowable aggregate resource budget. Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ2\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a> weights the data-fitting term by \\(1\/R_j\\) to prioritize modules with higher resource scores, while Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ3\" rel=\"nofollow noopener\" target=\"_blank\">3<\/a> constrains the sum of resource allocations. Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ4\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a> defines the resource-normalized activation for module \\(j\\):<\/p>\n<p>$$\\begin{aligned} f_j({\\textbf{x}}_i)=\\sigma \\!\\left( \\frac{{\\textbf{x}}_i^{\\top }{\\textbf{w}}_j}{R_j+\\epsilon }\\right) , \\end{aligned}$$<\/p>\n<p>\n                    (4)\n                <\/p>\n<p>where \\(\\sigma :{\\mathbb {R}}\\!\\rightarrow \\!{\\mathbb {R}}\\) is a differentiable activation (e.g., logistic sigmoid), \\({\\textbf{x}}_i^{\\top }{\\textbf{w}}_j\\) is the inner product, and \\(\\epsilon&gt;0\\) is a small constant for numerical stability. Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ5\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a> specifies the fusion of sub-module outputs as a convex combination:<\/p>\n<p>$$\\begin{aligned} {\\textbf{o}}=\\sum _{j=1}^{m}\\alpha _j f_j({\\textbf{x}}_i), \\qquad \\alpha _j=\\frac{R_j}{\\sum _{k=1}^{m} R_k}, \\end{aligned}$$<\/p>\n<p>\n                    (5)\n                <\/p>\n<p>where \\({\\textbf{o}}\\in {\\mathbb {R}}\\) is the fused scalar output (extendable to vector outputs per class), \\(\\alpha _j\\in [0,1]\\) is the resource-proportional weight, and \\(\\sum _{j=1}^{m}\\alpha _j=1\\). Parameter updates follow Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ6\" rel=\"nofollow noopener\" target=\"_blank\">6<\/a>:<\/p>\n<p>$$\\begin{aligned} {\\textbf{w}}_j^{(t+1)}={\\textbf{w}}_j^{(t)}-\\eta \\,\\nabla _{{\\textbf{w}}_j}{\\mathscr {L}}({\\textbf{X}},{\\textbf{y}},{\\textbf{w}}), \\end{aligned}$$<\/p>\n<p>\n                    (6)\n                <\/p>\n<p>where \\(t\\in {\\mathbb {N}}\\) is the iteration index, \\(\\eta&gt;0\\) is the learning rate, and \\({\\mathscr {L}}(\\cdot )\\) is a differentiable local loss (consistent with Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ2\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a>). Gradients are computed on device and subsequently integrated within the federated protocol; the notation \\(\\nabla _{{\\textbf{w}}_j}\\) denotes the partial gradient with respect to \\({\\textbf{w}}_j\\).<\/p>\n<p>Hierarchical Federated Aggregation (HFA)<\/p>\n<p>HFA implements a multi-tier aggregation protocol that coordinates device, regional, and global model updates under heterogeneous connectivity and workload conditions. The objective is to reduce communication overhead, control staleness, and preserve convergence properties while operating at scale. The complete multi-tier aggregation protocol with staleness control and delay-aware weighting is specified in Algorithm\u00a01.<\/p>\n<p>Algorithm 1<a class=\"c-article-section__figure-link\" data-test=\"img-link\" data-track=\"click\" data-track-label=\"image\" data-track-action=\"view figure\" href=\"https:\/\/www.nature.com\/articles\/s41598-025-23398-w\/figures\/a\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" aria-describedby=\"Figa\" src=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/41598_2025_23398_Figa_HTML.png\" alt=\"figure a\" loading=\"lazy\" width=\"685\" height=\"705\"\/><\/a><\/p>\n<p>Hierarchical Federated Aggregation (HFA) Protocol<\/p>\n<p>The on-device update rule in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ7\" rel=\"nofollow noopener\" target=\"_blank\">7<\/a> performs a first-order step for edge device \\(i\\in \\{1,\\dots ,N\\}\\):<\/p>\n<p>$$\\begin{aligned} {\\textbf{W}}_i^{(t+1)} = {\\textbf{W}}_i^{(t)} &#8211; \\eta \\,\\nabla _{{\\textbf{W}}_i} {\\mathscr {L}}_i\\!\\left( {\\textbf{W}}_i^{(t)}\\right) , \\end{aligned}$$<\/p>\n<p>\n                    (7)\n                <\/p>\n<p>where \\({\\textbf{W}}_i^{(t)}\\in {\\mathbb {R}}^{d_w}\\) denotes the parameter vector (or vectorized parameter tensor) at iteration \\(t\\in {\\mathbb {N}}\\), \\(N\\) is the number of edge devices, \\(\\eta&gt;0\\) is the learning rate, \\({\\mathscr {L}}_i:{\\mathbb {R}}^{d_w}\\!\\rightarrow \\!{\\mathbb {R}}\\) is a differentiable local loss for device \\(i\\), and \\(\\nabla _{{\\textbf{W}}_i}\\) is the gradient operator with respect to \\({\\textbf{W}}_i\\). The device-level partial update in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ8\" rel=\"nofollow noopener\" target=\"_blank\">8<\/a> records the parameter increment:<\/p>\n<p>$$\\begin{aligned} \\Delta {\\textbf{W}}_i^{\\text {local}} = {\\textbf{W}}_i^{(t+1)} &#8211; {\\textbf{W}}_i^{(t)}, \\end{aligned}$$<\/p>\n<p>\n                    (8)\n                <\/p>\n<p>where \\(\\Delta {\\textbf{W}}_i^{\\text {local}}\\in {\\mathbb {R}}^{d_w}\\) is the per-iteration update vector computed locally. Local aggregation across the \\(N\\) devices uses data-size weights as in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ9\" rel=\"nofollow noopener\" target=\"_blank\">9<\/a>:<\/p>\n<p>$$\\begin{aligned} {\\textbf{W}}_{\\text {local}}^{(t+1)} = \\frac{\\sum _{i=1}^{N} n_i \\,\\Delta {\\textbf{W}}_i^{\\text {local}}}{\\sum _{i=1}^{N} n_i}, \\end{aligned}$$<\/p>\n<p>\n                    (9)\n                <\/p>\n<p>where \\(n_i\\in {\\mathbb {N}}_{&gt;0}\\) denotes the number of training samples (or an equivalent sample-weight proxy) on device \\(i\\); \\({\\textbf{W}}_{\\text {local}}^{(t+1)}\\in {\\mathbb {R}}^{d_w}\\) is the locally aggregated update. The denominator \\(\\sum _{i=1}^{N} n_i&gt;0\\). Regional aggregation groups devices by region \\(r\\in \\{1,\\dots ,R\\}\\) with index set \\({\\mathscr {N}}_r\\subseteq \\{1,\\dots ,N\\}\\). Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ10\" rel=\"nofollow noopener\" target=\"_blank\">10<\/a> forms the regional aggregate at the fog node:<\/p>\n<p>$$\\begin{aligned} {\\textbf{W}}_r^{(t+1)} = \\frac{\\sum _{i \\in {\\mathscr {N}}_r} n_i \\,{\\textbf{W}}_{\\text {local}, i}^{(t+1)}}{\\sum _{i \\in {\\mathscr {N}}_r} n_i}, \\end{aligned}$$<\/p>\n<p>\n                    (10)\n                <\/p>\n<p>where \\({\\textbf{W}}_{\\text {local}, i}^{(t+1)}\\in {\\mathbb {R}}^{d_w}\\) denotes the device-\\(i\\) contribution to the local aggregate (by construction, \\({\\textbf{W}}_{\\text {local}, i}^{(t+1)} \\equiv \\Delta {\\textbf{W}}_i^{\\text {local}}\\)), \\({\\textbf{W}}_r^{(t+1)}\\in {\\mathbb {R}}^{d_w}\\) is the regional parameter update, and \\(\\sum _{i \\in {\\mathscr {N}}_r} n_i&gt;0\\). Global aggregation at the cloud fuses regional updates using regional data-size weights as in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ11\" rel=\"nofollow noopener\" target=\"_blank\">11<\/a>:<\/p>\n<p>$$\\begin{aligned} {\\textbf{W}}_{\\text {global}}^{(t+1)} = \\frac{\\sum _{r=1}^{R} n_r \\,{\\textbf{W}}_r^{(t+1)}}{\\sum _{r=1}^{R} n_r}, \\end{aligned}$$<\/p>\n<p>\n                    (11)\n                <\/p>\n<p>where \\(R\\in {\\mathbb {N}}_{&gt;0}\\) is the number of regions, \\(n_r=\\sum _{i \\in {\\mathscr {N}}_r} n_i\\) is the regional sample count, and \\({\\textbf{W}}_{\\text {global}}^{(t+1)}\\in {\\mathbb {R}}^{d_w}\\) is the global update; \\(\\sum _{r=1}^{R} n_r&gt;0\\). To discount stale contributions, Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ12\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a> defines a delay-aware coefficient:<\/p>\n<p>$$\\begin{aligned} \\beta _r = \\frac{1}{1 + \\lambda \\tau _r}, \\end{aligned}$$<\/p>\n<p>\n                    (12)\n                <\/p>\n<p>where \\(\\beta _r\\in (0,1]\\) is dimensionless, \\(\\tau _r\\ge 0\\) is the end-to-end communication and processing delay for region \\(r\\) (s), and \\(\\lambda \\ge 0\\) is a tunable scaling parameter controlling the decay rate. The delay-weighted global fusion in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ13\" rel=\"nofollow noopener\" target=\"_blank\">13<\/a> integrates \\(\\beta _r\\) into the aggregation:<\/p>\n<p>$$\\begin{aligned} {\\textbf{W}}_{\\text {global}}^{(t+1)} = \\frac{\\sum _{r=1}^{R} \\beta _r n_r \\,{\\textbf{W}}_r^{(t+1)}}{\\sum _{r=1}^{R} \\beta _r n_r}, \\end{aligned}$$<\/p>\n<p>\n                    (13)\n                <\/p>\n<p>where the denominator \\(\\sum _{r=1}^{R} \\beta _r n_r&gt;0\\) and each term \\(\\beta _r n_r\\) serves as a joint delay\u2013data weight. Regional and global objectives are defined in Equations\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ14\" rel=\"nofollow noopener\" target=\"_blank\">14<\/a> and\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ15\" rel=\"nofollow noopener\" target=\"_blank\">15<\/a>. The regional loss aggregates device losses:<\/p>\n<p>$$\\begin{aligned} {\\mathscr {L}}_r({\\textbf{W}}_r) = \\sum _{i \\in {\\mathscr {N}}_r} \\frac{n_i}{\\sum _{j \\in {\\mathscr {N}}_r} n_j} \\,{\\mathscr {L}}_i({\\textbf{W}}_i), \\end{aligned}$$<\/p>\n<p>\n                    (14)\n                <\/p>\n<p>where \\({\\mathscr {L}}_r:{\\mathbb {R}}^{d_w}\\!\\rightarrow \\!{\\mathbb {R}}\\) is the regional objective. The global loss averages regional objectives:<\/p>\n<p>$$\\begin{aligned} {\\mathscr {L}}_{\\text {global}} = \\sum _{r=1}^{R} \\frac{n_r}{\\sum _{k=1}^{R} n_k} \\,{\\mathscr {L}}_r({\\textbf{W}}_r), \\end{aligned}$$<\/p>\n<p>\n                    (15)\n                <\/p>\n<p>where \\({\\mathscr {L}}_{\\text {global}}\\in {\\mathbb {R}}\\) is the scalar objective minimized by the protocol.<\/p>\n<p>Dynamic Data Encoding (DDE)<\/p>\n<p>DDE constructs a device-agnostic feature representation that supports distributed optimization under heterogeneous sensing, sampling, and feature spaces. The pipeline comprises standardization, device-specific affine mapping into a universal embedding, cross-device alignment, decorrelation, and quality-weighted fusion, followed by a regularized objective that stabilizes training. The complete device-agnostic encoding workflow with alignment, decorrelation, quality-weighted fusion, and regularized optimization is specified in Algorithm\u00a02.<\/p>\n<p>Algorithm 2<a class=\"c-article-section__figure-link\" data-test=\"img-link\" data-track=\"click\" data-track-label=\"image\" data-track-action=\"view figure\" href=\"https:\/\/www.nature.com\/articles\/s41598-025-23398-w\/figures\/b\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" aria-describedby=\"Figb\" src=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/41598_2025_23398_Figb_HTML.png\" alt=\"figure b\" loading=\"lazy\" width=\"685\" height=\"585\"\/><\/a><\/p>\n<p>Dynamic Data Encoding (DDE) Workflow<\/p>\n<p>Let \\(S\\in {\\mathbb {N}}_{&gt;0}\\) denote the number of Internet of Medical Things devices and \\({\\textbf{D}}=\\{{\\textbf{d}}_s\\}_{s=1}^{S}\\) the set of device-specific data matrices with \\({\\textbf{d}}_s\\in {\\mathbb {R}}^{n_s\\times p_s}\\), where \\(n_s\\in {\\mathbb {N}}_{&gt;0}\\) is the sample count and \\(p_s\\in {\\mathbb {N}}_{&gt;0}\\) is the feature dimension for device \\(s\\). Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ16\" rel=\"nofollow noopener\" target=\"_blank\">16<\/a> defines per-device standardization,<\/p>\n<p>$$\\begin{aligned} \\tilde{{\\textbf{d}}}_s = \\frac{{\\textbf{d}}_s &#8211; \\mu _s}{\\sigma _s}, \\end{aligned}$$<\/p>\n<p>\n                    (16)\n                <\/p>\n<p>where \\(\\tilde{{\\textbf{d}}}_s\\in {\\mathbb {R}}^{n_s\\times p_s}\\) is the standardized matrix, \\(\\mu _s\\in {\\mathbb {R}}^{1\\times p_s}\\) is the feature-wise mean row vector, and \\(\\sigma _s\\in {\\mathbb {R}}^{1\\times p_s}\\) is the feature-wise standard-deviation row vector (elementwise division). Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ17\" rel=\"nofollow noopener\" target=\"_blank\">17<\/a> applies a device-specific affine map \\(\\phi _s:{\\mathbb {R}}^{p_s}\\rightarrow {\\mathbb {R}}^{q}\\) to embed the standardized data into a universal \\(q\\)-dimensional space,<\/p>\n<p>$$\\begin{aligned} {\\textbf{e}}_s = \\phi _s(\\tilde{{\\textbf{d}}}_s) = \\tilde{{\\textbf{d}}}_s {\\textbf{W}}_s + {\\textbf{b}}_s, \\end{aligned}$$<\/p>\n<p>\n                    (17)\n                <\/p>\n<p>where \\({\\textbf{e}}_s\\in {\\mathbb {R}}^{n_s\\times q}\\) is the encoded matrix for device \\(s\\), \\({\\textbf{W}}_s\\in {\\mathbb {R}}^{p_s\\times q}\\) is a learnable weight matrix, \\({\\textbf{b}}_s\\in {\\mathbb {R}}^{1\\times q}\\) is a learnable bias row vector broadcast across rows, and \\(q\\in {\\mathbb {N}}_{&gt;0}\\) is the universal embedding dimension. Cross-device consistency is encouraged by the pairwise alignment loss in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ18\" rel=\"nofollow noopener\" target=\"_blank\">18<\/a>,<\/p>\n<p>$$\\begin{aligned} {\\mathscr {L}}_{\\text {align}} = \\sum _{s=1}^{S}\\sum _{t=1}^{S} \\big \\Vert {\\textbf{e}}_s &#8211; {\\textbf{e}}_t \\big \\Vert _{F}^{2}, \\end{aligned}$$<\/p>\n<p>\n                    (18)\n                <\/p>\n<p>where \\(\\Vert \\cdot \\Vert _{F}\\) denotes the Frobenius norm and \\(\\{{\\textbf{e}}_s\\}_{s=1}^{S}\\) are the device encodings. (In practice, row counts are harmonized to a common \\(n^{\\star }\\) by resampling or indexing so that \\({\\textbf{e}}_s,{\\textbf{e}}_t\\in {\\mathbb {R}}^{n^{\\star }\\times q}\\) for valid subtraction.) To reduce redundancy and enforce whitening, Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ19\" rel=\"nofollow noopener\" target=\"_blank\">19<\/a> penalizes deviations of second-order statistics from the identity,<\/p>\n<p>$$\\begin{aligned} {\\mathscr {L}}_{\\text {decor}} = \\sum _{s=1}^{S} \\big \\Vert \\mathbf {\\Sigma }_s &#8211; {\\textbf{I}} \\big \\Vert _{F}^{2}, \\end{aligned}$$<\/p>\n<p>\n                    (19)\n                <\/p>\n<p>where \\(\\mathbf {\\Sigma }_s={\\textbf{e}}_s^{\\top }{\\textbf{e}}_s\\in {\\mathbb {R}}^{q\\times q}\\) is the unnormalized second-moment matrix of \\({\\textbf{e}}_s\\) and \\({\\textbf{I}}\\in {\\mathbb {R}}^{q\\times q}\\) is the identity matrix. The device encodings are combined by the quality-weighted fusion in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ20\" rel=\"nofollow noopener\" target=\"_blank\">20<\/a>,<\/p>\n<p>$$\\begin{aligned} {\\textbf{E}}_{\\text {global}} = \\sum _{s=1}^{S} \\alpha _s {\\textbf{e}}_s, \\end{aligned}$$<\/p>\n<p>\n                    (20)\n                <\/p>\n<p>where \\({\\textbf{E}}_{\\text {global}}\\in {\\mathbb {R}}^{n^{\\star }\\times q}\\) is the fused encoding (after row harmonization) and \\(\\alpha _s\\in [0,1]\\) are device weights that sum to one. Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ21\" rel=\"nofollow noopener\" target=\"_blank\">21<\/a> specifies \\(\\alpha _s\\) via quality scores \\(Q_s\\),<\/p>\n<p>$$\\begin{aligned} \\alpha _s = \\frac{Q_s}{\\sum _{t=1}^{S} Q_t}, \\quad Q_s = \\frac{1}{\\big \\Vert \\mathbf {\\Sigma }_s &#8211; {\\textbf{I}} \\big \\Vert _{F} + \\epsilon }, \\end{aligned}$$<\/p>\n<p>\n                    (21)\n                <\/p>\n<p>where \\(Q_s\\in {\\mathbb {R}}_{&gt;0}\\) is the inverse-whitening-deviation score for device \\(s\\), \\(\\epsilon&gt;0\\) ensures numerical stability, and \\(\\sum _{t=1}^{S}Q_t&gt;0\\) guarantees a valid normalization. The total objective in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ22\" rel=\"nofollow noopener\" target=\"_blank\">22<\/a> couples alignment, decorrelation, and Tikhonov regularization of the fused representation,<\/p>\n<p>$$\\begin{aligned} {\\mathscr {L}}_{\\text {total}} = {\\mathscr {L}}_{\\text {align}} + \\lambda _{1}\\,{\\mathscr {L}}_{\\text {decor}} + \\lambda _{2}\\,\\big \\Vert {\\textbf{E}}_{\\text {global}} \\big \\Vert _{F}^{2}, \\end{aligned}$$<\/p>\n<p>\n                    (22)\n                <\/p>\n<p>where \\(\\lambda _{1}\\ge 0\\) and \\(\\lambda _{2}\\ge 0\\) are hyperparameters that control the trade-off between cross-device alignment, feature decorrelation, and magnitude regularization of \\({\\textbf{E}}_{\\text {global}}\\). The Frobenius term \\(\\Vert {\\textbf{E}}_{\\text {global}}\\Vert _{F}^{2}\\) equals the sum of squared entries of the fused encoding and stabilizes optimization.<\/p>\n<p>Privacy-Preserving Secure Enclaves (PPSE)<\/p>\n<p>PPSE formalizes computation over protected representations inside hardware-backed trusted execution environments. The mechanism uses an affine masking transform for inputs, enclave-confined linear algebra for inference and training, encrypted aggregation of updates, and calibrated differential privacy noise for release.<\/p>\n<p>Algorithm 3<a class=\"c-article-section__figure-link\" data-test=\"img-link\" data-track=\"click\" data-track-label=\"image\" data-track-action=\"view figure\" href=\"https:\/\/www.nature.com\/articles\/s41598-025-23398-w\/figures\/c\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" aria-describedby=\"Figc\" src=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/41598_2025_23398_Figc_HTML.png\" alt=\"figure c\" loading=\"lazy\" width=\"685\" height=\"668\"\/><\/a><\/p>\n<p>Privacy-Preserving Secure Enclaves (PPSE) Training and Aggregation<\/p>\n<p>Let \\({\\textbf{X}}=\\{{\\textbf{x}}_i\\}_{i=1}^{n}\\) with \\({\\textbf{x}}_i\\in {\\mathbb {R}}^{d}\\) denote the input samples (\\(n\\) samples, \\(d\\) features). Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ23\" rel=\"nofollow noopener\" target=\"_blank\">23<\/a> defines the enclave-side affine masking transform<\/p>\n<p>$$\\begin{aligned} {\\mathscr {E}}({\\textbf{x}}_i)={\\textbf{x}}_i^{\\top }{\\textbf{K}}+{\\textbf{r}}_i^{\\top }, \\end{aligned}$$<\/p>\n<p>\n                    (23)\n                <\/p>\n<p>where \\({\\textbf{K}}\\in {\\mathbb {R}}^{d\\times d}\\) is a full-rank secret key matrix known only inside the enclave, and \\({\\textbf{r}}_i\\in {\\mathbb {R}}^{d}\\) is a per-sample random mask (zero-mean, enclave-generated). Stackwise, \\({\\mathscr {E}}({\\textbf{X}})={\\textbf{X}}{\\textbf{K}}+{\\textbf{R}}\\in {\\mathbb {R}}^{n\\times d}\\) with \\({\\textbf{R}}=[{\\textbf{r}}_1,\\dots ,{\\textbf{r}}_n]^{\\top }\\). Given model parameters \\({\\textbf{W}}\\in {\\mathbb {R}}^{d\\times o}\\) (\\(o\\) outputs), Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ24\" rel=\"nofollow noopener\" target=\"_blank\">24<\/a> defines masked-domain inference:<\/p>\n<p>$$\\begin{aligned} {\\mathscr {E}}({\\textbf{y}})={\\mathscr {E}}({\\textbf{X}})\\,{\\textbf{W}}, \\end{aligned}$$<\/p>\n<p>\n                    (24)\n                <\/p>\n<p>where \\({\\mathscr {E}}({\\textbf{y}})\\in {\\mathbb {R}}^{n\\times o}\\) are masked outputs. Expanding Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ24\" rel=\"nofollow noopener\" target=\"_blank\">24<\/a> yields Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ25\" rel=\"nofollow noopener\" target=\"_blank\">25<\/a>:<\/p>\n<p>$$\\begin{aligned} {\\mathscr {E}}({\\textbf{y}})=({\\textbf{X}}{\\textbf{K}}+{\\textbf{R}})\\,{\\textbf{W}}, \\end{aligned}$$<\/p>\n<p>\n                    (25)\n                <\/p>\n<p>where \\({\\textbf{X}}{\\textbf{K}}\\in {\\mathbb {R}}^{n\\times d}\\) and \\({\\textbf{R}}{\\textbf{W}}\\in {\\mathbb {R}}^{n\\times o}\\). Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ26\" rel=\"nofollow noopener\" target=\"_blank\">26<\/a> recovers plaintext predictions using the enclave-held inverse \\({\\textbf{K}}^{-1}\\):<\/p>\n<p>$$\\begin{aligned} {\\mathscr {D}}({\\mathscr {E}}({\\textbf{y}}))=\\big ({\\mathscr {E}}({\\textbf{y}})-{\\textbf{R}}{\\textbf{W}}\\big )\\,{\\textbf{K}}^{-1}, \\end{aligned}$$<\/p>\n<p>\n                    (26)\n                <\/p>\n<p>where \\({\\mathscr {D}}(\\cdot )\\) denotes the de-masking map and \\({\\textbf{K}}^{-1}\\in {\\mathbb {R}}^{d\\times d}\\) exists by full rank. Let \\(N\\in {\\mathbb {N}}_{&gt;0}\\) be the number of collaborating nodes and \\({\\mathscr {E}}({\\textbf{y}}_i^{(t)})\\in {\\mathbb {R}}^{d_w}\\) be the masked update vector from node \\(i\\) at iteration \\(t\\) (\\(d_w\\) parameters). Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ27\" rel=\"nofollow noopener\" target=\"_blank\">27<\/a> defines additive aggregation in the masked domain:<\/p>\n<p>$$\\begin{aligned} {\\mathscr {E}}({\\textbf{y}}_{\\text {agg}}^{(t)})=\\sum _{i=1}^{N}{\\mathscr {E}}({\\textbf{y}}_i^{(t)}), \\end{aligned}$$<\/p>\n<p>\n                    (27)\n                <\/p>\n<p>where the sum is elementwise over parameter coordinates. Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ28\" rel=\"nofollow noopener\" target=\"_blank\">28<\/a> applies enclave de-masking:<\/p>\n<p>$$\\begin{aligned} {\\textbf{y}}_{\\text {agg}}^{(t)}={\\mathscr {D}}\\!\\left( {\\mathscr {E}}({\\textbf{y}}_{\\text {agg}}^{(t)})\\right) , \\end{aligned}$$<\/p>\n<p>\n                    (28)\n                <\/p>\n<p>yielding the plaintext aggregate update \\({\\textbf{y}}_{\\text {agg}}^{(t)}\\in {\\mathbb {R}}^{d_w}\\) only within the enclave boundary. Let \\({\\mathscr {L}}:{\\mathbb {R}}^{n\\times o}\\times {\\mathbb {R}}^{n\\times o}\\rightarrow {\\mathbb {R}}\\) be a differentiable loss, \\({\\textbf{Y}}\\in {\\mathbb {R}}^{n\\times o}\\) be labels (e.g., one-hot or continuous), and \\(\\eta&gt;0\\) be the learning rate. Using masked operands, Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ29\" rel=\"nofollow noopener\" target=\"_blank\">29<\/a> states the gradient in the masked domain:<\/p>\n<p>$$\\begin{aligned} \\nabla {\\mathscr {L}}\\big ({\\mathscr {E}}({\\textbf{X}}),{\\mathscr {E}}({\\textbf{W}})\\big ) ={\\mathscr {E}}\\!\\left( {\\textbf{X}}^{\\top }\\big ({\\mathscr {E}}({\\textbf{X}})\\,{\\textbf{W}}-{\\mathscr {E}}({\\textbf{Y}})\\big )\\right) , \\end{aligned}$$<\/p>\n<p>\n                    (29)\n                <\/p>\n<p>where \\({\\mathscr {E}}({\\textbf{W}})\\) and \\({\\mathscr {E}}({\\textbf{Y}})\\) denote masked parameters and masked labels, respectively; \\({\\textbf{X}}^{\\top }\\big (\\cdot \\big )\\in {\\mathbb {R}}^{d\\times o}\\) matches \\({\\textbf{W}}\\)\u2019s shape. Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ30\" rel=\"nofollow noopener\" target=\"_blank\">30<\/a> applies the masked-domain update:<\/p>\n<p>$$\\begin{aligned} {\\mathscr {E}}\\!\\left( {\\textbf{W}}^{(t+1)}\\right) ={\\mathscr {E}}\\!\\left( {\\textbf{W}}^{(t)}\\right) -\\eta \\,\\nabla {\\mathscr {L}}\\big ({\\mathscr {E}}({\\textbf{X}}),{\\mathscr {E}}({\\textbf{W}})\\big ), \\end{aligned}$$<\/p>\n<p>\n                    (30)\n                <\/p>\n<p>where \\({\\textbf{W}}^{(t)}\\in {\\mathbb {R}}^{d\\times o}\\) is the parameter matrix at iteration \\(t\\). To enforce record-level privacy during aggregation, Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ31\" rel=\"nofollow noopener\" target=\"_blank\">31<\/a> injects calibrated Gaussian noise in the masked domain:<\/p>\n<p>$$\\begin{aligned} {\\mathscr {E}}({\\textbf{y}}_{\\text {agg}}^{(t)}) \\leftarrow {\\mathscr {E}}({\\textbf{y}}_{\\text {agg}}^{(t)}) + \\Delta {\\textbf{N}}, \\qquad \\Delta {\\textbf{N}}\\sim {\\mathscr {N}}\\!\\left( {\\textbf{0}},\\,\\sigma ^{2}{\\textbf{I}}\\right) , \\end{aligned}$$<\/p>\n<p>\n                    (31)\n                <\/p>\n<p>where \\(\\Delta {\\textbf{N}}\\in {\\mathbb {R}}^{d_w}\\), \\(\\sigma ^{2}&gt;0\\) is the noise variance, and \\({\\textbf{I}}\\) is the \\(d_w\\times d_w\\) identity matrix. The enclave-anchored training objective in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ32\" rel=\"nofollow noopener\" target=\"_blank\">32<\/a> minimizes the expected plaintext loss under masking:<\/p>\n<p>$$\\begin{aligned} \\min _{{\\textbf{W}}\\in {\\mathbb {R}}^{d\\times o}} \\;\\; {\\mathbb {E}}_{{\\mathscr {E}}}\\!\\left[ \\,{\\mathscr {L}}\\!\\big ({\\mathscr {D}}({\\mathscr {E}}({\\textbf{X}})\\,{\\textbf{W}}),\\,{\\textbf{Y}}\\big )\\right] , \\end{aligned}$$<\/p>\n<p>\n                    (32)\n                <\/p>\n<p>subject to the masking constraint in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ33\" rel=\"nofollow noopener\" target=\"_blank\">33<\/a>:<\/p>\n<p>$$\\begin{aligned} \\big \\Vert {\\mathscr {E}}({\\textbf{x}}_i)-{\\textbf{x}}_i^{\\top }\\big \\Vert _{2}\\le \\epsilon , \\quad \\forall i\\in \\{1,\\dots ,n\\}, \\end{aligned}$$<\/p>\n<p>\n                    (33)\n                <\/p>\n<p>where \\(\\epsilon&gt;0\\) bounds per-sample deviation between masked and plaintext representations (measured in \\({\\mathbb {R}}^{1\\times d}\\)). Constraint \\(\\epsilon\\) sets a limit on masking distortion to preserve numerical stability of downstream linear algebra while maintaining confidentiality within the enclave. The symbols, variables, and parameters used across the Adaptive Federated Edge Learning framework are summarized in Table\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"table anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Tab3\" rel=\"nofollow noopener\" target=\"_blank\">3<\/a>.<\/p>\n<p>Table 3 Notation summary of symbols and parameters used in the Adaptive Federated Edge Learning (AFEL) framework.Real-Time Anomaly Detection (RTAD)<\/p>\n<p>RTAD provides continuous assessment of streaming clinical signals under strict latency constraints. The pipeline comprises (i) temporal windowing, (ii) feature projection, (iii) covariance-based scoring, (iv) adaptive thresholding, (v) density-aware clustering, (vi) priority assignment, and (vii) stability optimization.<\/p>\n<p>Let the data stream at time \\(t\\in {\\mathbb {R}}_{\\ge 0}\\) be \\({\\textbf{S}}(t)=\\{{\\textbf{s}}_{i}(t)\\}_{i=1}^{n}\\) with \\({\\textbf{s}}_{i}(t)\\in {\\mathbb {R}}^{d}\\) (\\(n\\) samples, \\(d\\) features). Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ34\" rel=\"nofollow noopener\" target=\"_blank\">34<\/a> defines the temporal window<\/p>\n<p>$$\\begin{aligned} {\\mathscr {W}}_{t}=\\{{\\textbf{s}}_{i}(\\tau )\\mid \\tau \\in [t-\\Delta t,\\,t]\\}, \\end{aligned}$$<\/p>\n<p>\n                    (34)\n                <\/p>\n<p>where \\(\\Delta t&gt;0\\) is the window length (s). The windowed matrix in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ35\" rel=\"nofollow noopener\" target=\"_blank\">35<\/a> stacks observations:<\/p>\n<p>$$\\begin{aligned} {\\textbf{M}}_{t}=\\begin{bmatrix} {\\textbf{s}}_{1}(t-\\Delta t) &amp; \\cdots &amp; {\\textbf{s}}_{n}(t-\\Delta t)\\\\ \\vdots &amp; \\ddots &amp; \\vdots \\\\ {\\textbf{s}}_{1}(t) &amp; \\cdots &amp; {\\textbf{s}}_{n}(t) \\end{bmatrix}\\!, \\end{aligned}$$<\/p>\n<p>\n                    (35)\n                <\/p>\n<p>with \\({\\textbf{M}}_{t}\\in {\\mathbb {R}}^{w\\times n d}\\) or, equivalently, reshaped to \\({\\mathbb {R}}^{n\\times d}\\) after temporal aggregation; \\(w\\) is the number of sampled instants in \\([t-\\Delta t,t]\\). Dimensionality reduction uses a linear map \\(\\Phi :{\\mathbb {R}}^{n\\times d}\\rightarrow {\\mathbb {R}}^{n\\times k}\\) with \\(k\\in {\\mathbb {N}}_{&gt;0}\\). Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ36\" rel=\"nofollow noopener\" target=\"_blank\">36<\/a> defines the (unnormalized) covariance proxy,<\/p>\n<p>$$\\begin{aligned} \\mathbf {\\Sigma }_{t}={\\textbf{M}}_{t}^{\\top }{\\textbf{M}}_{t}, \\end{aligned}$$<\/p>\n<p>\n                    (36)\n                <\/p>\n<p>where \\(\\mathbf {\\Sigma }_{t}\\in {\\mathbb {R}}^{d\\times d}\\). The projection in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ37\" rel=\"nofollow noopener\" target=\"_blank\">37<\/a> applies \\({\\textbf{U}}_{t}\\),<\/p>\n<p>$$\\begin{aligned} {\\textbf{F}}_{t}=\\Phi ({\\textbf{M}}_{t})={\\textbf{U}}_{t}{\\textbf{M}}_{t}, \\end{aligned}$$<\/p>\n<p>\n                    (37)\n                <\/p>\n<p>where \\({\\textbf{U}}_{t}\\in {\\mathbb {R}}^{k\\times d}\\) contains the top-\\(k\\) eigenvectors of a covariance estimate compatible with \\(\\mathbf {\\Sigma }_{t}\\), and \\({\\textbf{F}}_{t}=[{\\textbf{f}}_{1}(t),\\dots ,{\\textbf{f}}_{n}(t)]^{\\top }\\in {\\mathbb {R}}^{n\\times k}\\) are projected features. Anomaly scoring uses a quadratic form under the inverse covariance metric. Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ38\" rel=\"nofollow noopener\" target=\"_blank\">38<\/a> defines<\/p>\n<p>$$\\begin{aligned} A_{i}(t)=\\sqrt{({\\textbf{f}}_{i}(t)-\\varvec{\\mu }_{t})^{\\top }{\\textbf{C}}_{t}^{-1}({\\textbf{f}}_{i}(t)-\\varvec{\\mu }_{t})}, \\end{aligned}$$<\/p>\n<p>\n                    (38)\n                <\/p>\n<p>where \\({\\textbf{f}}_{i}(t)\\in {\\mathbb {R}}^{k}\\) is the \\(i\\)-th projected vector, \\(\\varvec{\\mu }_{t}\\in {\\mathbb {R}}^{k}\\) is the sample mean of rows of \\({\\textbf{F}}_{t}\\), and \\({\\textbf{C}}_{t}\\in {\\mathbb {R}}^{k\\times k}\\) is a positive-definite covariance estimate (e.g., shrinkage of \\(\\operatorname {cov}({\\textbf{F}}_{t})\\)). Adaptive thresholding in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ39\" rel=\"nofollow noopener\" target=\"_blank\">39<\/a> sets<\/p>\n<p>$$\\begin{aligned} \\tau (t)=\\mu _{A}(t)+\\alpha \\,\\sigma _{A}(t), \\end{aligned}$$<\/p>\n<p>\n                    (39)\n                <\/p>\n<p>where \\(\\mu _{A}(t)\\in {\\mathbb {R}}\\) and \\(\\sigma _{A}(t)\\in {\\mathbb {R}}_{&gt;0}\\) are the mean and standard deviation of \\(\\{A_{i}(t)\\}_{i=1}^{n}\\), and \\(\\alpha&gt;0\\) controls sensitivity. Context modeling uses clustering. Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ40\" rel=\"nofollow noopener\" target=\"_blank\">40<\/a> defines cluster \\(C_{j}(t)\\),<\/p>\n<p>$$\\begin{aligned} C_{j}(t)=\\{{\\textbf{f}}_{i}(t)\\mid \\Vert {\\textbf{f}}_{i}(t)-{\\textbf{c}}_{j}(t)\\Vert _{2}&lt;\\epsilon _{j}\\}, \\end{aligned}$$<\/p>\n<p>\n                    (40)\n                <\/p>\n<p>where \\({\\textbf{c}}_{j}(t)\\in {\\mathbb {R}}^{k}\\) is the centroid and \\(\\epsilon _{j}&gt;0\\) is the inclusion radius. Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ41\" rel=\"nofollow noopener\" target=\"_blank\">41<\/a> updates \\(\\epsilon _{j}\\) from intra-cluster dispersion,<\/p>\n<p>$$\\begin{aligned} \\epsilon _{j}=\\frac{\\sum _{{\\textbf{f}}_{i}\\in C_{j}(t)} \\Vert {\\textbf{f}}_{i}(t)-{\\textbf{c}}_{j}(t)\\Vert _{2}}{|C_{j}(t)|}, \\end{aligned}$$<\/p>\n<p>\n                    (41)\n                <\/p>\n<p>where \\(|C_{j}(t)|\\in {\\mathbb {N}}_{\\ge 0}\\) is the cluster cardinality. Cluster density in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ42\" rel=\"nofollow noopener\" target=\"_blank\">42<\/a> is<\/p>\n<p>$$\\begin{aligned} D_{j}(t)=\\frac{|C_{j}(t)|}{\\operatorname {Volume}(C_{j}(t))}, \\end{aligned}$$<\/p>\n<p>\n                    (42)\n                <\/p>\n<p>where \\(\\operatorname {Volume}(C_{j}(t))&gt;0\\) denotes a \\(k\\)-dimensional volume proxy (e.g., hypersphere with radius \\(\\epsilon _{j}\\)). Priority assignment uses ordinal levels. Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ43\" rel=\"nofollow noopener\" target=\"_blank\">43<\/a> maps decisions to \\(\\{1,2,3\\}\\),<\/p>\n<p>$$\\begin{aligned} {\\mathscr {R}}(t)={\\left\\{ \\begin{array}{ll} 3, &amp; A_{i}(t)&gt;\\beta \\,\\tau (t),\\\\ 2, &amp; \\tau (t)<\/p>\n<p>\n                    (43)\n                <\/p>\n<p>where \\(\\beta&gt;1\\) scales the high-priority threshold and \\({\\mathscr {R}}(t)\\in \\{1,2,3\\}\\) is the assigned priority for the current assessment. Temporal stability is quantified by entropy in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ44\" rel=\"nofollow noopener\" target=\"_blank\">44<\/a>,<\/p>\n<p>$$\\begin{aligned} H(t)=-\\sum _{k=1}^{K} p_{k}(t)\\,\\log p_{k}(t), \\end{aligned}$$<\/p>\n<p>\n                    (44)\n                <\/p>\n<p>where \\(K\\in {\\mathbb {N}}_{&gt;0}\\) is the number of active clusters and \\(p_{k}(t)\\in [0,1]\\) is the proportion of detected anomalies in \\(C_{k}(t)\\) with \\(\\sum _{k}p_{k}(t)=1\\). The stability objective in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ45\" rel=\"nofollow noopener\" target=\"_blank\">45<\/a> balances entropy and score variation,<\/p>\n<p>$$\\begin{aligned} \\max \\;\\; \\sum _{t=1}^{T} H(t)-\\gamma \\sum _{t=1}^{T}\\big |A(t)-A(t-1)\\big |, \\end{aligned}$$<\/p>\n<p>\n                    (45)\n                <\/p>\n<p>where \\(T\\in {\\mathbb {N}}_{&gt;0}\\) is the horizon, \\(\\gamma&gt;0\\) is a smoothness coefficient, and \\(A(t)=\\frac{1}{n}\\sum _{i=1}^{n}A_{i}(t)\\). The RTAD loss in Equation\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-23398-w#Equ46\" rel=\"nofollow noopener\" target=\"_blank\">46<\/a> integrates pointwise and contextual penalties,<\/p>\n<p>$$\\begin{aligned} \\min _{\\Phi ,\\,\\tau ,\\,C} \\;\\; {\\mathscr {L}}_{\\text {RTAD}}&amp;=\\sum _{t=1}^{T}\\Bigg [\\sum _{i=1}^{n}\\big (A_{i}(t)-\\tau (t)\\big )^{2} +\\lambda \\sum _{j=1}^{K}\\big (D_{j}(t)-\\delta \\big )^{2}\\Bigg ], \\end{aligned}$$<\/p>\n<p>\n                    (46)\n                <\/p>\n<p>where \\(\\lambda \\ge 0\\) controls the contextual penalty, \\(\\delta&gt;0\\) is the density threshold, and the optimization variables are the projection \\(\\Phi\\), threshold function \\(\\tau (\\cdot )\\), and cluster assignment \\(C=\\{C_{j}(t)\\}\\).<\/p>\n","protected":false},"excerpt":{"rendered":"The proposed Adaptive Federated Edge Learning (AFEL) framework is designed to address fundamental challenges in Internet of Medical&hellip;\n","protected":false},"author":2,"featured_media":228143,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[49,48,29327,6811,5432,1099,244,15604,1100,66,61],"class_list":["post-228142","post","type-post","status-publish","format-standard","has-post-thumbnail","category-internet","tag-ca","tag-canada","tag-computational-biology-and-bioinformatics","tag-engineering","tag-health-care","tag-humanities-and-social-sciences","tag-internet","tag-mathematics-and-computing","tag-multidisciplinary","tag-science","tag-technology"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/posts\/228142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/comments?post=228142"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/posts\/228142\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/media\/228143"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/media?parent=228142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/categories?post=228142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/tags?post=228142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}