An Informativeness-based Clustered Federated Learning Method for Reliable Traffic Prediction in Managed Wi-Fi Networks
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 and 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.
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.
II-A Traffic prediction problem
We consider a managed Wi-Fi system comprising a set of APs managed by a cloud controller, as exemplified in Fig. 1. Each AP collects time-series data from its radio interfaces describing the traffic evolution over time , 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 e.g., hourly or on a per-minute basis). This data for the -th AP can be compactly described as , where is a vector at time comprising 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 builds a local dataset via a sliding window of length , where L is the input context length and H the prediction horizon as
| (1) |
where is the number of samples.
For centralized solutions, the controller collects all local datasets, forming with total samples and learns a single shared mapping as
| (2) |
This mapping is parameterized by the weights of a Neural Network (NN) learned by minimizing
| (3) |
where denotes the loss function (e.g., L1 loss) evaluated over each sample in .
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
| (4) |
with and
| (5) |
where is the same loss function as in (3), now evaluated over the local dataset . 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 , each AP updates its local copy of the ML model via stochastic gradient steps as follows
| (6) |
where is the learning rate. APs then evaluate the surrogate gradient
| (7) |
and share it with the cloud controller for aggregation. The global model is then updated as
| (8) |
where denotes the set of APs that shared their updates to the cloud controller, while
| (9) |
is a weighting factor. APs then substitute their local model with the received global one and a new iteration begins, until 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 -means; Stage 2 (Sec. III-C) selects the most informative one, until the optimal cluster count is found—after which re-clustering simply reruns SVD and -means with fixed.
III-A From federated to clustered federated learning
Let denote a partition of the APs set into disjoint clusters, i.e., and for . Differently from the vanilla FL formulation in (5), in CFL a distinct ML model is learned for each cluster by solving
| (10) |
with cluster-wise data weighting
| (11) |
The local update rules of Sec. II-B carry over unchanged at the APs, while the cloud controller now performs separate aggregations, one per cluster, namely
| (12) |
with . Each AP then synchronizes its local copy with before the next round. The central question becomes how to compute a partition 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 (, ), which serves as the effective warm-up until Stage 2 first identifies a valid partition and sets . From that point onwards, periodic re-clustering at every rounds simply refreshes the AP assignments via SVD and -means with fixed.
III-B Stage 1: candidate partitions via SVD and \texorpdfstringk-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 as
| (13) |
with smoothing factor . At a re-clustering round , the cloud controller stacks these accumulated gradient features as
| (14) |
To mitigate the high dimensionality of , the controller computes its thin SVD
| (15) |
where the columns of are the left singular vectors, the right singular vectors, and the diagonal matrix of singular values . The truncation rank is selected as , i.e., the position of the largest spectral gap clipped to to avoid degenerate single-direction embeddings and ranks exceeding the number of APs. The low-dimensional AP embedding matrix is then obtained as
| (16) |
where the -th column is the -th AP low-dimensional embedding.
A pool of candidate partitions is then generated by sweeping the number of clusters from up to , set as since the dominant directions capture the heterogeneity modes in the gradient profiles; partitions with rely on noise-dominated directions and should be discarded. The lower clip at ensures the candidate set always spans at least two distinct partition sizes. This yields the candidate set
| (17) |
where is the partition produced by running -means on the columns of with centroids. Each candidate partition is then assessed against a set of quality criteria , 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 are retained, yielding the filtered set
| (18) |
If , 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 rounds.
III-C Stage 2: informativeness-driven partition selection
Whenever 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.
For a partition , let denote its smallest cluster (ties broken arbitrarily). For each AP , the Gaussian differential entropy of the entries of is used as a hyperparameter-free informativeness score
| (19) |
where is the mean gradient entry and 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 is then defined as the cumulative entropy of its smallest cluster,
| (20) |
The final partition retained for clustered aggregation is the one maximizing this score,
| (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 , with clusters, marks the end of the search phase. Subsequently, the controller enters a maintenance phase: at each re-clustering round, it reapplies SVD and -means with 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 future time steps (corresponding to 10-min and 1-hour ahead, respectively) given the preceding observations (i.e., the preceding 10 hours), at a temporal resolution of minutes. For each evaluated network size , 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 set equal to the 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 neurons, with k parameters. Training is carried out for up to rounds using the Adam optimizer (, 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 and a re-clustering period of communication rounds. For the quality criteria (Sec. III-B), we adopt a single minimum silhouette threshold . The silhouette score [23] measures, for each AP, the ratio of inter-cluster separation to intra-cluster cohesion, with the per-partition score (where 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 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 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
Fig. 2 reports the MAE achieved by each strategy across 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 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 and larger networks, where it reduces the MAE by up to over vanilla FL and 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
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.
Communication overhead. Among the clustered methods, CFL-2S achieves the lowest communication overhead in every configuration (Fig. 4, logarithmic scale), exchanging on average less data than IFCA and less than CFL-GP. The gap is by far the widest against IFCA, which must broadcast all 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.
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 less than IFCA and 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 over vanilla FL and 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.