arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:2607.26682v1 [eess.SP] 29 Jul 2026

An Informativeness-based Clustered Federated Learning Method for Reliable Traffic Prediction in Managed Wi-Fi Networks

Luca Barbieri+, Gianluca Fontanesi+, Lorenzo Galati Giordano+, Alfonso Fernandez Duran and Thorsten Wild+ This work is partially supported by UNITY-6G project, co-funded from European Union’s Horizon Europe Smart Networks and Services Joint Undertaking (SNS JU) research and innovation programme under the Grant Agreement No 101192650 and from the Swiss State Secretariat for Education, Research and Innovation (SERI). This work is also partially supported by CDTI project IDI-20250211 MINERGY.
Abstract

Centrally-managed Wi-Fi solutions are increasingly leveraging Distributed Artificial Intelligence (AI) to predict key operational statistics of Access Points (APs) and proactively optimize network performance. In this context, Clustered Federated Learning (CFL) represents a fitting methodology, enabling the generation of multiple AI models that account for diverse statistical properties of the APs data distribution. However, identifying informative clusters for grouping APs models remains a significant challenge. In this paper, we address this problem by proposing a novel CFL tool integrating a two step clustering procedure. Initially, multiple clustering solutions are generated and filtered based on a minimum set of desired clustering criteria. Subsequently, if no solutions meet sufficient quality metrics, a global model is produced by aggregating all AP models. Otherwise, the final clustering solution is selected as the one that maximizes the informativeness (quantified via differential entropy) for the smallest cluster. Our results, focusing on a Wi-Fi traffic prediction problem, demonstrate that the developed CFL tool achieves the best predictive performance among all evaluated distributed strategies and the lowest communication and energy footprint among the clustered ones, exceeding the cost of single-model FL only in the regimes where it markedly improves accuracy.

I Introduction

Wi-Fi is the key radio technology for delivering indoor connectivity across residential, enterprise, and public environments, favored for its ease of deployment and ubiquity [1, 2]. Beyond traditional applications, Wi-Fi has evolved to support a wide variety of emerging and challenging use cases, including immersive communications [3], digital twins for manufacturing [4] and healthcare [5]. Meeting these demands has driven recent standard amendments (e.g., Wi-Fi 8 [6]) while inevitably raising network complexity and motivating novel orchestration paradigms. A prominent paradigm gaining traction is managed Wi-Fi [7], where operators leverage centralized controllers to optimize Access Points radio parameters and ensure seamless connectivity through the continuous monitoring of key operational statistics collected from the network.

The resulting data complexity calls for advanced analytics, and distributed Artificial Intelligence (AI)-driven methods are increasingly adopted to support Wi-Fi management [8]. Among these, Federated Learning (FL[9] is a particularly fitting paradigm, as it learns a shared global model collaboratively across the APs without centralizing raw data. A single global model, however, is often suboptimal in managed Wi-Fi, where heterogeneous data distributions across the APs hinder convergence to a solution that performs well for all. Clustered Federated Learning (CFL[10, 11] overcomes this limitation by partitioning the APs into groups of similar clients and learning a dedicated per-cluster model, making it a natural fit for managed Wi-Fi systems. The central challenge then becomes identifying informative AP clusters from the federated updates alone

Clustering has been investigated in managed Wi-Fi, albeit only at the cloud controller and over centrally collected data [12], thereby reintroducing the data centralization that FL is designed to avoid. On the federated side, prior CFL efforts in Wi-Fi have targeted fingerprinting, sensing, and intrusion detection [13, 14, 15], whereas traffic prediction has relied on vanilla FL with a single global model [16, 17] that overlooks per-AP heterogeneity. To the best of our knowledge, this is the first work to integrate clustering within FL for traffic prediction in managed Wi-Fi.

This paper advocates leveraging CFL in managed Wi-Fi to enhance predictive performance. To this end, we propose a novel CFL methodology built on a two-stage clustering algorithm, referred to as Clustered Federated Learning with 2 Stage clustering (CFL-2S), which produces more informative clusters than state-of-the-art approaches. In the first stage, the method identifies a set of candidate partitions that satisfy a minimum set of clustering criteria. In the second, it selects the partition that maximizes the informativeness of its smallest cluster, quantified by the differential entropy of the per-AP gradients. This focus is motivated by the fact that the smallest cluster contains the fewest APs and hence the least training data, making it the most prone to poor generalization. Crucially, the method operates solely on the gradient updates already exchanged during FL, rendering it agnostic to the learning task, model architecture, and data modality. Thus, it applies broadly to heterogeneous federated settings. We validate CFL-2S on a real-world managed Wi-Fi dataset for traffic prediction, where it attains the best predictive performance among all distributed strategies, namely up to 51%51\% and 21%21\% improvement over vanilla FL and state-of-the-art CFL baselines, respectively. Besides, it incurs the lowest communication overhead and energy among the CFL methods.

The rest of the paper is organized as follows. Sec. II details the federated system model for traffic prediction, while Sec. III presents the proposed CFL solution, whose results are analyzed in Sec. IV. Finally, Sec. V draws some conclusions.

II System model

This section introduces the system model underpinning the proposed CFL approach. Sec. II-A formulates the traffic prediction problem both for centralized and federated settings, while Sec. II-B details the FL protocol.

Refer to caption
Figure 1: CFL system: APs train a local copy of a shared ML model which is shipped to the cloud controller for clustering similar models together.

II-A Traffic prediction problem

We consider a managed Wi-Fi system comprising a set 𝒜={1,,NAP}\mathcal{A}=\{1,\ldots,N_{\text{AP}}\} of NAPN_{\text{AP}} APs managed by a cloud controller, as exemplified in Fig. 1. Each AP a𝒜a\in\mathcal{A} collects time-series data from its radio interfaces describing the traffic evolution over time t{0,,T}t\in\{0,\ldots,\text{T}\}, where T denotes the current time. Time is sampled at discrete events, with the interval between successive time instants ruled by the system time granularity Ts\text{T}_{\text{s}} e.g., hourly or on a per-minute basis). This data for the aa-th AP can be compactly described as 𝐗0:T(a)={𝐱0(a),,𝐱T(a)}\mathbf{X}_{0:\text{T}}^{(a)}=\{\mathbf{x}_{0}^{(a)},\ldots,\mathbf{x}_{\text{T}}^{(a)}\}, where 𝐱t(a)\mathbf{x}_{t}^{(a)} is a vector at time tt comprising MM features, which include traffic metrics and additional context information [18] useful for prediction (e.g., number of active connections, current time). For solving the traffic prediction problem, each AP a𝒜a\in\mathcal{A} builds a local dataset via a sliding window of length L+H\text{L}+\text{H}, where L is the input context length and H the prediction horizon as

𝒟(a)={(𝐗n:n+L(a),𝐗n+L+1:n+L+H(a))}n=1NE(a),\mathcal{D}^{(a)}=\left\{\left(\mathbf{X}_{n:n+\text{L}}^{(a)},\,\mathbf{X}_{n+\text{L}+1:n+\text{L}+\text{H}}^{(a)}\right)\right\}_{n=1}^{N_{\text{E}}^{(a)}}\,, (1)

where NEN_{\text{E}} is the number of samples.

For centralized solutions, the controller collects all local datasets, forming 𝒟=a𝒜𝒟(a)\mathcal{D}=\bigcup_{a\in\mathcal{A}}\mathcal{D}^{(a)} with NE=a𝒜NE(a)N_{\text{E}}=\sum_{a\in\mathcal{A}}N_{\text{E}}^{(a)} total samples and learns a single shared mapping fC()f_{\text{C}}(\cdot) as

𝐗^t:t+H(a)=fC(𝐗tL:t1(a))a𝒜,t{0,,T}.\widehat{\mathbf{X}}_{t:t+\text{H}}^{(a)}=f_{\text{C}}\!\left(\mathbf{X}_{t-\text{L}:t-1}^{(a)}\right)\quad\forall\,a\in\mathcal{A},\,\forall\,t\in\{0,\ldots,\text{T}\}\,. (2)

This mapping is parameterized by the weights 𝐖\mathbf{W} of a Neural Network (NN) learned by minimizing

min𝐖(𝐖)=min𝐖1NEa𝒜n=1NE(a)(𝐗n+L+1:n+L+H(a),𝐗^n+L+1:n+L+H(a);𝐖),\min\limits_{\mathbf{W}}\mathscr{L}(\mathbf{W})=\min\limits_{\mathbf{W}}\frac{1}{N_{\text{E}}}\sum_{a\in\mathcal{A}}\sum_{n=1}^{N_{\text{E}}^{(a)}}\\ \ell\!\left(\mathbf{X}_{n+\text{L}+1:n+\text{L}+\text{H}}^{(a)},\widehat{\mathbf{X}}_{n+\text{L}+1:n+\text{L}+\text{H}}^{(a)};\mathbf{W}\right)\,, (3)

where ()\ell(\cdot) denotes the loss function (e.g., L1 loss) evaluated over each sample in 𝒟\mathcal{D}.

Nevertheless, centralizing raw data constrains the attainable temporal granularity, since fine-grained sampling entails frequent, high-volume transfers between the APs and the controller. FL mitigates this by exchanging model parameters rather than raw data, thereby relaxing the granularity constraint while offloading part of the computational burden from the cloud.

II-B Federated-based solution

The FL goal is amenable to the optimization in (3), where now the objective is to minimize the following function

min𝐖(𝐖)=min𝐖a𝒜ρaa(𝐖),\min\limits_{\mathbf{W}}\mathcal{L}(\mathbf{W})=\min\limits_{\mathbf{W}}\sum_{a\in\mathcal{A}}\rho_{a}\mathcal{L}_{a}(\mathbf{W})\,, (4)

with ρa=NE(a)/NE\rho_{a}=N_{\text{E}}^{(a)}/N_{\text{E}} and

a(𝐖)=1NE(a)n=1NE(a)(𝐗n+L+1:n+L+H(a),𝐗^n+L+1:n+L+H(a);𝐖),\mathcal{L}_{a}(\mathbf{W})=\!\dfrac{1}{N_{\text{E}}^{(a)}}\!\sum_{n=1}^{N_{\text{E}}^{(a)}}\!\ell\!\left(\mathbf{X}_{n+\text{L}+1:n+\text{L}+\text{H}}^{(a)},\widehat{\mathbf{X}}_{n+\text{L}+1:n+\text{L}+\text{H}}^{(a)};\mathbf{W}\right), (5)

where ()\ell(\cdot) is the same loss function as in (3), now evaluated over the local dataset 𝒟(a)\mathcal{D}^{(a)}. Solving (5) in a federated manner is done by alternating local optimization steps at the APs with ML model aggregation at the cloud controller so as to learn a resilient global model. More formally, at each iteration ii, each AP a𝒜a\in\mathcal{A} updates its local copy of the ML model 𝐖i(a)\mathbf{W}_{i}^{(a)} via stochastic gradient steps as follows

𝐖i,a=𝐖i,aηa(𝐖i,a),\mathbf{W}_{i,a}^{{}^{\prime}}=\mathbf{W}_{i,a}-\eta\nabla\mathcal{L}_{a}(\mathbf{W}_{i,a})\,, (6)

where η\eta is the learning rate. APs then evaluate the surrogate gradient

𝚫i,a=(𝐖i,a𝐖i,a)/η,\boldsymbol{\Delta}_{i,a}=(\mathbf{W}_{i,a}-\mathbf{W}_{i,a}^{{}^{\prime}})/\eta\,, (7)

and share it with the cloud controller for aggregation. The global model is then updated as

𝐖i+1=𝐖iηa𝒜0σa𝚫i,a,\mathbf{W}_{i+1}=\mathbf{W}_{i}-\eta\sum_{a\in\mathcal{A}_{0}}\sigma_{a}\boldsymbol{\Delta}_{i,a}\,, (8)

where 𝒜0\mathcal{A}_{0} denotes the set of APs that shared their updates to the cloud controller, while

σa=NE(a)a𝒜0NE(a),\sigma_{a}=\dfrac{N_{\text{E}}^{(a)}}{\sum_{a^{\prime}\in\mathcal{A}_{0}}N_{\text{E}}^{(a^{\prime})}}\,, (9)

is a weighting factor. APs then substitute their local model with the received global one and a new iteration begins, until ImaxI_{\max} rounds are reached.

While FL is attractive for managed Wi-Fi, a single global model may underperform in the presence of heterogeneous AP traffic distributions, motivating the CFL strategy detailed next.

III Clustered federated learning method

This section details the novel two-stage CFL method that generalizes the FL optimization of Sec. II-B to a per-cluster objective (Sec. III-A). Stage 1 (Sec. III-B) generates and filters candidate AP partitions via Singular Value Decomposition (SVD) and kk-means; Stage 2 (Sec. III-C) selects the most informative one, until the optimal cluster count KK^{\dagger} is found—after which re-clustering simply reruns SVD and kk-means with KK^{\dagger} fixed.

III-A From federated to clustered federated learning

Let 𝒫={𝒞1,,𝒞K}\mathcal{P}=\{\mathcal{C}_{1},\ldots,\mathcal{C}_{K}\} denote a partition of the APs set 𝒜\mathcal{A} into KK disjoint clusters, i.e., k=1K𝒞k=𝒜\bigcup_{k=1}^{K}\mathcal{C}_{k}=\mathcal{A} and 𝒞k𝒞k=\mathcal{C}_{k}\cap\mathcal{C}_{k^{\prime}}=\emptyset for kkk\neq k^{\prime}. Differently from the vanilla FL formulation in (5), in CFL a distinct ML model 𝐖(k)\mathbf{W}^{(k)} is learned for each cluster 𝒞k\mathcal{C}_{k} by solving

min𝐖(k)(k)(𝐖(k))=min𝐖(k)a𝒞kρa(k)a(𝐖(k)),\min\limits_{\mathbf{W}^{(k)}}\mathcal{L}^{(k)}(\mathbf{W}^{(k)})=\min\limits_{\mathbf{W}^{(k)}}\sum_{a\in\mathcal{C}_{k}}\rho_{a}^{(k)}\mathcal{L}_{a}(\mathbf{W}^{(k)})\,, (10)

with cluster-wise data weighting

ρa(k)=NE(a)a𝒞kNE(a).\rho_{a}^{(k)}=\dfrac{N_{\text{E}}^{(a)}}{\sum_{a^{\prime}\in\mathcal{C}_{k}}N_{\text{E}}^{(a^{\prime})}}\,. (11)

The local update rules of Sec. II-B carry over unchanged at the APs, while the cloud controller now performs KK separate aggregations, one per cluster, namely

𝐖i+1(k)=𝐖i(k)ηa𝒜0𝒞kwa(k)𝚫i,a,\mathbf{W}_{i+1}^{(k)}=\mathbf{W}_{i}^{(k)}-\eta\sum_{a\in\mathcal{A}_{0}\cap\mathcal{C}_{k}}w_{a}^{(k)}\boldsymbol{\Delta}_{i,a}\,, (12)

with wa(k)=NE(a)/a𝒜0𝒞kNE(a)w_{a}^{(k)}=N_{\text{E}}^{(a)}/\sum_{a^{\prime}\in\mathcal{A}_{0}\cap\mathcal{C}_{k}}N_{\text{E}}^{(a^{\prime})}. Each AP a𝒞ka\in\mathcal{C}_{k} then synchronizes its local copy with 𝐖i+1(k)\mathbf{W}_{i+1}^{(k)} before the next round. The central question becomes how to compute a partition 𝒫\mathcal{P} that yields informative and well-separated groups of APs. We address this through a two-stage search procedure that starts from a single global model (𝒫={𝒜}\mathcal{P}=\{\mathcal{A}\}, K=K^{\dagger}=\varnothing), which serves as the effective warm-up until Stage 2 first identifies a valid partition and sets KK^{\dagger}. From that point onwards, periodic re-clustering at every KrcK_{\text{rc}} rounds simply refreshes the AP assignments via SVD and kk-means with KK^{\dagger} fixed.

III-B Stage 1: candidate partitions via SVD and \texorpdfstringkkk-means

To reduce the sensitivity to noise in individual-round gradients, the controller maintains a per-AP gradient feature updated as an Exponential Moving Average (EMA) after every FL round ii as

𝐠i,a=(1β)𝐠i1,a+βΔi,a,𝐠0,a=𝟎,\mathbf{g}_{i,a}=(1-\beta)\,\mathbf{g}_{i-1,a}+\beta\,\Delta_{i,a}\,,\quad\mathbf{g}_{0,a}=\mathbf{0}\,, (13)

with smoothing factor β(0,1]\beta\in(0,1]. At a re-clustering round iri_{r}, the cloud controller stacks these accumulated gradient features as

𝐃ir=[𝐠ir,1𝐠ir,2,,𝐠ir,NAP].\mathbf{D}_{i_{r}}=\big[\,\mathbf{g}_{i_{r},1}\;\;\mathbf{g}_{i_{r},2},\ldots,\mathbf{g}_{i_{r},N_{\text{AP}}}\,\big]\,. (14)

To mitigate the high dimensionality of 𝐃ir\mathbf{D}_{i_{r}}, the controller computes its thin SVD

𝐃ir=𝐔𝚺𝐕,\mathbf{D}_{i_{r}}=\mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^{\top}\,, (15)

where the columns of 𝐔\mathbf{U} are the left singular vectors, 𝐕\mathbf{V} the right singular vectors, and 𝚺\boldsymbol{\Sigma} the diagonal matrix of singular values σ1σR0\sigma_{1}\geq\cdots\geq\sigma_{R}\geq 0. The truncation rank is selected as r=clip(1+argmaxk{1,,R1}(σkσk+1), 3,NAP)r=\mathrm{clip}\!\left(1+\arg\max_{k\in\{1,\ldots,R-1\}}(\sigma_{k}-\sigma_{k+1}),\,3,\,N_{\text{AP}}\right), i.e., the position of the largest spectral gap clipped to [3,NAP][3,N_{\text{AP}}] to avoid degenerate single-direction embeddings and ranks exceeding the number of APs. The low-dimensional AP embedding matrix is then obtained as

𝐃~ir=𝐔r𝐃ir=𝚺r𝐕r,\widetilde{\mathbf{D}}_{i_{r}}=\mathbf{U}_{r}^{\top}\mathbf{D}_{i_{r}}=\boldsymbol{\Sigma}_{r}\mathbf{V}_{r}^{\top}\,, (16)

where the aa-th column is the aa-th AP low-dimensional embedding.

A pool of candidate partitions is then generated by sweeping the number of clusters from 22 up to KmaxK_{\max}, set as Kmax=rK_{\max}=r since the rr dominant directions capture the heterogeneity modes in the gradient profiles; partitions with K>rK>r rely on noise-dominated directions and should be discarded. The lower clip at r=3r=3 ensures the candidate set always spans at least two distinct partition sizes. This yields the candidate set

𝔓={𝒫K:K{2,,Kmax}},\mathfrak{P}=\big\{\mathcal{P}_{K}:K\in\{2,\ldots,K_{\max}\}\big\}\,, (17)

where 𝒫K\mathcal{P}_{K} is the partition produced by running kk-means on the columns of 𝐃~ir\widetilde{\mathbf{D}}_{i_{r}} with KK centroids. Each candidate partition is then assessed against a set of quality criteria 𝒬\mathcal{Q}, which may encode geometric measures (e.g., cluster separation or cohesion) as well as structural constraints (e.g., minimum cluster size); see Sec. IV for the specific instantiation used in this work. Only partitions satisfying all criteria in 𝒬\mathcal{Q} are retained, yielding the filtered set

𝔓={𝒫𝔓:𝒫 satisfies 𝒬}.\mathfrak{P}^{\star}=\big\{\mathcal{P}\in\mathfrak{P}:\mathcal{P}\text{ satisfies }\mathcal{Q}\big\}\,. (18)

If 𝔓=\mathfrak{P}^{\star}=\emptyset, no candidate satisfies the desired clustering quality and the procedure falls back to a single global model produced by the standard FL aggregation of Sec. II-B. The re-clustering attempt is then deferred to the next window of KrcK_{\text{rc}} rounds.

III-C Stage 2: informativeness-driven partition selection

Whenever 𝔓\mathfrak{P}^{\star} is non-empty, Stage 2 selects the partition that yields the most informative smallest cluster. This focus is motivated by the observation that small clusters gather the fewest APs and therefore the least training data, which directly widens their generalization gap. Partitions whose smallest cluster carries highly informative gradient profiles are therefore preferred, as they reduce the risk of producing under-trained clustered models.

Algorithm 1 Proposed two-stage CFL procedure
0:APs set 𝒜\mathcal{A}, period KrcK_{\text{rc}}, quality criteria 𝒬\mathcal{Q}, EMA factor β\beta
1: Initialize 𝒫{𝒜}\mathcal{P}\leftarrow\{\mathcal{A}\}, 𝐖(1)\mathbf{W}^{(1)}, g0,a𝟎g_{0,a}\leftarrow\mathbf{0} a𝒜\forall\,a\in\mathcal{A}, KK^{\dagger}\leftarrow\varnothing
2:for i=1,2,,Imaxi=1,2,\ldots,I_{\max} do
3:  for all a𝒜a\in\mathcal{A} do
4:   Update 𝐖i,a\mathbf{W}_{i,a} as in (6) and send Δi,a\Delta_{i,a}
5:   Set gi,a(1β)gi1,a+βΔi,ag_{i,a}\leftarrow(1-\beta)\,g_{i-1,a}+\beta\,\Delta_{i,a}
6:  end for
7:  Cloud aggregates per cluster as in (12)
8:  if imodKrc=0i\mod K_{\text{rc}}=0 then
9:   Compute SVD embeddings 𝐃~i\widetilde{\mathbf{D}}_{i} as in (14)-(16) and set KmaxrK_{\max}\leftarrow r
10:   if K=K^{\dagger}=\varnothing then
11:    Sweep kk-means over K{2,,Kmax}K\in\{2,\ldots,K_{\max}\} on 𝐃~i\widetilde{\mathbf{D}}_{i}
12:    Filter 𝔓\mathfrak{P}^{\star} via (18)
13:    if 𝔓=\mathfrak{P}^{\star}=\emptyset then
14:     Revert to global model: 𝒫{𝒜}\mathcal{P}\leftarrow\{\mathcal{A}\}
15:    else
16:     For each 𝒫𝔓\mathcal{P}\in\mathfrak{P}^{\star}, compute (𝒫)\mathcal{H}(\mathcal{P}) via (19)–(20)
17:     Set 𝒫𝒫\mathcal{P}\leftarrow\mathcal{P}^{\dagger} as in (21) and K|𝒫|K^{\dagger}\leftarrow|\mathcal{P}^{\dagger}|
18:    end if
19:   else
20:    Run kk-means with K=KK{=}K^{\dagger} on 𝐃~i\widetilde{\mathbf{D}}_{i} to refresh 𝒫\mathcal{P}
21:   end if
22:  end if
23:end for

For a partition 𝒫𝔓\mathcal{P}\in\mathfrak{P}^{\star}, let 𝒞(𝒫)=argmink{1,,K}|𝒞k|\mathcal{C}_{\star}(\mathcal{P})=\arg\min_{k\in\{1,\ldots,K\}}|\mathcal{C}_{k}| denote its smallest cluster (ties broken arbitrarily). For each AP a𝒞(𝒫)a\in\mathcal{C}_{\star}(\mathcal{P}), the Gaussian differential entropy of the entries of 𝐠ir(a)\mathbf{g}_{i_{r}}^{(a)} is used as a hyperparameter-free informativeness score

H(a)=12ln(2πeσ^(a)2),σ^(a)2=1Pp=1P(gir,p(a)g¯ir(a))2,H^{(a)}=\frac{1}{2}\ln\!\left(2\pi e\,\hat{\sigma}^{(a)2}\right),\quad\hat{\sigma}^{(a)2}=\frac{1}{P}\sum_{p=1}^{P}\left(g_{i_{r},p}^{(a)}-\bar{g}_{i_{r}}^{(a)}\right)^{2}\,, (19)

where g¯ir(a)\bar{g}_{i_{r}}^{(a)} is the mean gradient entry and σ^(a)2\hat{\sigma}^{(a)2} its empirical variance. Since the Gaussian is the maximum-entropy distribution over the reals for a fixed variance [19], this score is a conservative informativeness measure requiring no assumption beyond the empirical second moment of the gradient entries. The overall informativeness of partition 𝒫\mathcal{P} is then defined as the cumulative entropy of its smallest cluster,

(𝒫)=a𝒞(𝒫)H(a).\mathcal{H}(\mathcal{P})=\sum_{a\in\mathcal{C}_{\star}(\mathcal{P})}H^{(a)}\,. (20)

The final partition retained for clustered aggregation is the one maximizing this score,

𝒫=argmax𝒫𝔓(𝒫),\mathcal{P}^{\dagger}=\arg\max\limits_{\mathcal{P}\in\mathfrak{P}^{\star}}\mathcal{H}(\mathcal{P})\,, (21)

with ties resolved in favor of the partition exhibiting the largest minimum-size cluster, so as to additionally promote balanced cluster cardinalities. The selected partition 𝒫\mathcal{P}^{\dagger}, with K=|𝒫|K^{\dagger}=|\mathcal{P}^{\dagger}| clusters, marks the end of the search phase. Subsequently, the controller enters a maintenance phase: at each re-clustering round, it reapplies SVD and kk-means with K=KK=K^{\dagger} fixed to refresh the AP assignments, without re-executing Stage 2, thereby avoiding the cost and the cluster-count oscillation that repeatedly re-running the clustering operations search across rounds would otherwise introduce.

IV Numerical results

This section evaluates the performance of the proposed CFL-2S against several baselines. Sec. IV-A introduces the dataset and the main simulation parameters. Sec. IV-B and Sec. IV-C discuss prediction performance and energy and communication overhead, respectively.

IV-A Dataset and simulation parameters

Our experiments build on the open-source association records of [20], which log 7,404 Wi-Fi APs deployed across a 3 km2 campus over 49 days in 2019. Following [16], we post-process these records to derive the per-AP uplink and downlink traffic time series that constitute the target of our prediction task. The goal is to forecast the AP traffic over H{1,6}H\in\{1,6\} future time steps (corresponding to 10-min and 1-hour ahead, respectively) given the preceding L=60\text{L}=60 observations (i.e., the preceding 10 hours), at a temporal resolution of Ts=10\text{T}_{\text{s}}=10 minutes. For each evaluated network size NAP{10,50,100}N_{\text{AP}}\in\{10,50,100\}, APs are drawn uniformly at random from the full dataset, with the same random seeds used across all learning strategies to ensure a fair comparison.

We compare CFL-2S against: (i) vanilla FL (Sec. II); (ii)  Iterative Federated Clustering Algorithm (IFCA[21], which alternates cluster assignment and per-cluster updates with a fixed KK set equal to the KK^{\dagger} identified by CFL-2S for each run (an oracle cluster count not available in practice); and (iii)  Clustered Federated Learning with Gradient Partitioning (CFL-GP[22], a gradient-based CFL state-of-the-art baseline. All strategies employ an Long Short-Term Memory (LSTM) model comprising one hidden layer of 50 units followed by a fully connected output layer of HH neurons, with 11{\sim}11k parameters. Training is carried out for up to Imax=300I_{\max}=300 rounds using the Adam optimizer (η=0.001\eta=0.001, mini-batch size 32), with early stopping applied if performances do not improve over 20 consecutive communication rounds. An 80%/20% train-test split is adopted, applied chronologically per AP: the first 80% of each AP’s time windows form the training set and the remaining 20% the test set, preserving temporal ordering. All results are averaged over 5 independent random seeds to account for variability. Regarding the clustering-specific hyperparameters, both CFL approaches share a smoothing factor β=0.9\beta=0.9 and a re-clustering period of Krc=2K_{\text{rc}}=2 communication rounds. For the quality criteria 𝒬\mathcal{Q} (Sec. III-B), we adopt a single minimum silhouette threshold smin=0.7s_{\min}=0.7. The silhouette score [23] measures, for each AP, the ratio of inter-cluster separation to intra-cluster cohesion, with the per-partition score s(𝒫)[1,+1]s(\mathcal{P})\in[-1,+1] (where +1+1 indicates perfect separation) being the mean over all APs. This criterion is chosen as it reuses the embedding already computed in Stage 1 and captures both cluster compactness and separation with a single, interpretable scalar. The value smin=0.7s_{\min}=0.7 lies in the “strong structure” region of the silhouette scale [23]), ensuring that only partitions with well-separated, cohesive clusters are retained. A systematic study of alternative quality metrics and thresholds is beyond our scope and left to future work.

Four metrics are considered: (i)  Mean Absolute Error (MAE) for prediction quality; (ii) convergence rounds: the round achieving the best MAE before early stopping or ImaxI_{\max} is reached; (iii) communication overhead (MB), accounting for the total data exchanged between APs and the cloud controller up to the convergence round, including gradient uploads and model downloads at each round; and (iv) computational energy consumed up to the convergence round, measured via Eco2ai [24]111Simulations were executed on a PC equipped with an Intel(R) Xeon(R) W3-2435 CPU and 256 GB of RAM. Energy measured on a CPU; a GPU would change absolute consumption but is expected to preserve the relative ranking across strategies, as all run the same model and number of rounds. (this reflects algorithmic cost and does not include wireless transmission energy at the APs).

IV-B Traffic prediction quality assessment

Refer to caption
Figure 2: Prediction performance in terms of MAE for each learning strategy; H=1\text{H}=1 top and H=6\text{H}=6 bottom; error bars represent ±1\pm 1 std over 5 seeds.

Fig. 2 reports the MAE achieved by each strategy across NAP{10,50,100}N_{\text{AP}}\in\{10,50,100\} and both prediction horizons. Analyzing the results, vanilla FL underperforms due to its single global model, while IFCA, despite relying on the same oracle cluster count KK^{\dagger} as CFL-2S, achieves comparably poor MAE. This might suggest that having access only to the optimal cluster count alone is insufficient to improve performances, and a better cluster selection, as the one employed by our proposal, is what brings the most significant gains. CFL-GP provides moderate MAE reductions over FL and IFCA through per-cluster modeling, though its gains are less consistent across network sizes and prediction horizons. On the other hand, the proposed CFL-2S method achieves the best MAE among all distributed strategies across every evaluated configuration, with the largest improvements at the longer horizon H=6\text{H}=6 and larger networks, where it reduces the MAE by up to 51%51\% over vanilla FL and 21%21\% over CFL-GP. At the short horizon the gains shrink and the gap to CFL-GP narrows, falling within one standard deviation at the largest network, Still, our proposal attains the lowest mean MAE throughout.

IV-C Convergence, communication and energy analysis

Refer to caption
Figure 3: Rounds to convergence of the distributed strategies for NAP{10,50,100}N_{\text{AP}}\in\{10,50,100\} (H=1\text{H}=1 top, H=6\text{H}=6 bottom).

Fig. 3, Fig. 4 and Fig. 5 report the convergence rounds, communication overhead, and energy-to-convergence, respectively, of the three CFL strategies and FL for both horizons and all network sizes, averaged over the 5 seeds. We examine each metric in turn, focusing on how CFL-2S compares against the IFCA, CFL-GP and FL baselines.

Rounds to convergence. Convergence speed (Fig. 3) is the only dimension on which CFL-2S is not consistently ahead among the clustered methods. At the short horizon, it reaches its best model in fewer rounds than IFCA at every network size and stays in a comparable range to CFL-GP. At the longer horizon, instead, the ranking becomes mixed, with CFL-2S occasionally needing more rounds, most notably more than CFL-GP at the mid-sized network. Vanilla FL sits at the two extremes: it is among the slowest at the short horizon (on par with IFCA), yet by far the fastest at the longer horizon for the larger networks, where its single global model plateaus early and triggers early stopping after fewer than half the rounds of any clustered method. As the next two metrics make clear, however, a higher round count does not penalises CFL-2S. Indeed, our proposal exchanges and processes far less information per round compared to the other CFL methods, so more rounds do not translate into higher communication or energy.

Refer to caption
Figure 4: Communication overhead (log scale) of the distributed strategies for NAP{10,50,100}N_{\text{AP}}\in\{10,50,100\} (H=1\text{H}=1 top, H=6\text{H}=6 bottom).

Communication overhead. Among the clustered methods, CFL-2S achieves the lowest communication overhead in every configuration (Fig. 4, logarithmic scale), exchanging on average 73%{\sim}73\% less data than IFCA and 20%{\sim}20\% less than CFL-GP. The gap is by far the widest against IFCA, which must broadcast all KK cluster models to every AP at each round so that each can select its own. The margin over CFL-GP is narrower. Indeed, both transmit only the relevant per-cluster model, but CFL-2S adds no clustering-specific signalling, reusing the gradients already exchanged for training. Crucially, these savings grow with the network size, precisely the regime of practical interest for managed Wi-Fi. Finally, vanilla FL matches the per-round footprint of CFL-2S but, converging over more rounds at the short horizon, transmits more in total. The sole exception is the longer horizon at the larger networks, where its early stopping makes it the cheapest of all.

Refer to caption
Figure 5: Computational energy of the distributed strategies for NAP{10,50,100}N_{\text{AP}}\in\{10,50,100\} (H=1\text{H}=1 top, H=6\text{H}=6 bottom).

Computational energy. The same ordering carries over to energy among the clustered methods (Fig. 5): CFL-2S consumes the least energy-to-convergence in every configuration, on average 49%{\sim}49\% less than IFCA and 37%{\sim}37\% less than CFL-GP. The reason is that its lightweight clustering and low per-round cost dominate the total budget, so a few extra rounds do not erode its lead. At the longer horizon and the mid-sized network, for instance, CFL-2S runs more rounds than CFL-GP yet still spends the least energy. Which baseline is costliest is not fixed, however: IFCA dominates the energy budget at the short horizon, whereas CFL-GP tends to be the most expensive at the longer one. Vanilla FL mirrors its communication behaviour, falling between CFL-2S and the other clustered methods at the short horizon but becoming the most energy-effienct option at the longer horizon for the larger networks.

Overall, among the clustered strategies CFL-2S pairs the best MAE with the lowest communication and energy in every setting, making it a strong fit for resource-constrained managed Wi-Fi deployments. Relative to FL, however, this advantage is conditional: CFL-2S dominates at the short horizon and the smallest network, whereas FL’s early-stopping global model is cheapest at the longer horizon for large networks—where CFL-2S roughly doubles communication and energy to roughly halve the MAE. Clustering is therefore best invoked selectively, when AP heterogeneity justifies its overhead.

V Conclusions

This paper addressed traffic load prediction in centrally managed Wi-Fi networks via a novel two-stage CFL methodol ogy: Stage 1 generates and filters candidate AP partitions using SVD-based gradient embeddings and a set of clustering quality criteria; Stage 2 selects the partition maximizing the Gaussian differential entropy of the smallest cluster, promoting well trained models for the data-scarce groups most susceptible to generalization degradation.

On a real-world campus Wi-Fi dataset, CFL-2S achieves the best MAE among all distributed strategies, reducing it by up to 51%51\% over vanilla FL and 21%21\% over CFL-GP, with the largest gains at the longer horizon and larger networks. Still, in some cases, FL is more energy-efficient and consumes less communication resources. This highlights that clustering pays should be invoked selectively, especially when AP data heterogeneity is high.

Future work will study sensitivity to hyperparameters and clustering quality criteria across more diverse tasks, and cost-aware selective clustering that activates dedicated per-cluster models only when their accuracy gain justifies the additional energy and/or communication cost.

References

  • [1] B. Bellalta, L. Bononi, R. Bruno et al., “Next generation ieee 802.11 wireless local area networks: Current status, future directions and open challenges,” Computer Communications, vol. 75, pp. 1–25, 2016.
  • [2] G. Geraci, F. Meneghello, F. Wilhelmi et al., “Wi-Fi: 25 Years and Counting,” Proceedings of the IEEE, vol. 113, no. 11, pp. 1290–1336, 2025.
  • [3] A. Hazarika and M. Rahmati, “Towards an evolved immersive experience: Exploring 5g- and beyond-enabled ultra-low-latency communications for augmented and virtual reality,” Sensors, vol. 23, no. 7, 2023.
  • [4] M. Balogh, A. Földvári, and P. Varga, “Digital twins in industry 5.0: Challenges in modeling and communication,” in NOMS 2023-2023 IEEE/IFIP Network Operations and Management Symposium, 2023, pp. 1–6.
  • [5] Y. Ge, A. Taha, S. A. Shah et al., “Contactless wifi sensing and monitoring for future healthcare - emerging trends, challenges, and opportunities,” IEEE Reviews in Biomedical Engineering, vol. 16, pp. 171–191, 2023.
  • [6] L. Galati-Giordano, G. Geraci, M. Carrascosa et al., “What will wi-fi 8 be? a primer on ieee 802.11bn ultra high reliability,” IEEE Communications Magazine, vol. 62, no. 8, pp. 126–132, 2024.
  • [7] Wireless Broadband Forum, “Operator managed Wi-Fi: Reference architecture and requirements.” [Online]. Available: https://wballiance.com/omwi-phase-2/
  • [8] S. Szott, K. Kosek-Szott, P. Gawłowicz et al., “Wi-fi meets ml: A survey on improving ieee 802.11 performance with machine learning,” IEEE Communications Surveys & Tutorials, vol. 24, no. 3, pp. 1843–1893, 2022.
  • [9] S. Savazzi, M. Nicoli, M. Bennis et al., “Opportunities of federated learning in connected, cooperative, and automated industrial systems,” IEEE Communications Magazine, vol. 59, no. 2, pp. 16–21, 2021.
  • [10] F. Sattler, K.-R. Müller, and W. Samek, “Clustered federated learning: Model-agnostic distributed multitask optimization under privacy constraints,” IEEE Transactions on Neural Networks and Learning Systems, vol. 32, no. 8, pp. 3710–3722, 2021.
  • [11] A. Z. Tan, H. Yu, L. Cui et al., “Towards personalized federated learning,” IEEE Transactions on Neural Networks and Learning Systems, vol. 34, no. 12, pp. 9587–9603, 2023.
  • [12] G. Fontanesi, L. Barbieri, L. Galati Giordano et al., “Cluster-Specific Predictive Modeling: A Scalable Solution for Resource-Constrained Wi-Fi Controllers,” arXiv e-prints, Mar. 2026.
  • [13] A. Hussain and M. Fahad, “Semi-supervised clustered federated learning based indoor localization with non-iid data,” The Journal of Supercomputing, vol. 81, no. 8, p. 962, Jun 2025.
  • [14] Y. Liu, Z. Sun, Y. Xiao et al., “Clustered federated learning for distributed wireless sensing,” in GLOBECOM 2024 - 2024 IEEE Global Communications Conference, 2024, pp. 367–372.
  • [15] B. Xie, X. Dong, and C. Wang, “An improved k-means clustering intrusion detection algorithm for wireless networks based on federated learning,” Wireless Communications and Mobile Computing, vol. 2021, no. 1, p. 9322368, 2021.
  • [16] D. Salami, F. Wilhelmi, L. Galati-Giordano et al., “Distributed learning for wi-fi ap load prediction,” in GLOBECOM 2024 - 2024 IEEE Global Communications Conference, 2024, pp. 968–973.
  • [17] N. Pavlidis, V. Perifanis, S. F. Yilmaz et al., “Federated learning in mobile networks: A comprehensive case study on traffic forecasting,” IEEE Transactions on Sustainable Computing, vol. 10, no. 3, pp. 576–587, 2025.
  • [18] Broadband Forum, “TR-181: Device Data Model (Device:2),” Broadband Forum, Technical Report TR-181 Issue 2 Amendment 21, 2026. [Online]. Available: https://cwmp-data-models.broadband-forum.org/
  • [19] T. M. Cover and J. A. Thomas, Elements of Information Theory, 2nd ed. Wiley-Interscience, 2006.
  • [20] W. Chen, F. Lyu, F. Wu et al., “Flag: Flexible, accurate, and long-time user load prediction in large-scale wifi system using deep RNN,” IEEE Internet of Things Journal, vol. 8, no. 22, pp. 16 510–16 521, 2021.
  • [21] A. Ghosh, J. Chung, D. Yin et al., “An efficient framework for clustered federated learning,” in Advances in Neural Information Processing Systems, vol. 33, 2020, pp. 19 586–19 597.
  • [22] H. Kim, H. Kim, and G. De Veciana, “Clustered federated learning via gradient-based partitioning,” in Proceedings of the 41st International Conference on Machine Learning, vol. 235, Jul 2024, pp. 24 137–24 193.
  • [23] P. J. Rousseeuw, “Silhouettes: A graphical aid to the interpretation and validation of cluster analysis,” Journal of Computational and Applied Mathematics, vol. 20, pp. 53–65, 1987.
  • [24] S. A. Budennyy, V. D. Lazarev, N. N. Zakharenko et al., “eco2AI: Carbon emissions tracking of machine learning models as the first step towards sustainable ai,” Doklady Mathematics, vol. 106, no. 1, pp. S118–S128, Dec 2022.