Manuscript Offprint
arXiv:2610.07399Fed-BRDECS: Privacy-Preserving and Heterogeneity-Aware Federated Deep Embedded Clustering
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Abstract
Federated deep clustering seeks to learn clustering-friendly representations from decentralized unlabeled data while preserving client privacy. However, Deep Embedded Clustering (DEC)-style objectives depend on global soft-assignment statistics that require clients to reveal their sensitive information. We propose Fed-BRDECS, a privacy-preserving and heterogeneity-aware federated deep embedded clustering framework. Fed-BRDECS replaces the globally normalized clustering objective with a locally computable sample-stability loss, avoiding the transmission of local soft-assignment distributions. To tackle non-IID client distributions, we introduce prediction-balanced sampling, which oversamples locally rare predicted clusters without requiring ground-truth labels, and centroid-level restarting, which periodically refreshes biased or inactive centroids. Experiments on image and text clustering benchmarks show that Fed-BRDECS consistently outperforms representative federated clustering and deep clustering baselines under both IID and non-IID partitions. We further demonstrate its applicability to federated time-series anomaly detection, where it improves reconstruction-based detectors without adding inference-time cost.
1 INTRODUCTION
Clustering is a fundamental unsupervised learning task, but in many applications data are distributed across institutions or devices and cannot be centrally collected due to privacy and ownership constraints (Jain, 2010; Rieke et al., 2020; Nguyen et al., 2021; Pfeifer et al., 2024; Presotto et al., 2022). Federated learning (FL) provides a natural paradigm for this setting by enabling multiple clients to collaboratively train a model while keeping raw data local (McMahan et al., 2017). Extending clustering to the federated setting is therefore important for privacy-preserving unsupervised representation learning, where labels are unavailable and data heterogeneity is often severe (Dennis et al., 2021; Garst and Reinders, 2025). However, directly applying centralized deep clustering methods to FL is nontrivial.
DEC (Xie et al., 2016) and its improved variant IDEC (Guo et al., 2017) are the dominant modern approaches to deep clustering, especially in the centralized regime. After autoencoder pretraining, they jointly refine latent representations and cluster assignments using soft assignments and an auxiliary target distribution. In FL, this target requires dataset-level assignment frequencies, and reproducing it requires either exchanging local cluster statistics, which exposes client composition, or constructing targets from incomplete local views, which can bias optimization under heterogeneity.
Heterogeneity can further lead to biased centroid updates and inactive clusters (Dennis et al., 2021; Pan et al., 2023). For example, cluster-frequency-based objectives may over-emphasize locally dominant clusters and under-train rare clusters. Federated clustering can also suffer from cluster collapse and early saturation. Once the encoder and centroids become aligned with an imperfect early partition, subsequent training may reinforce the same assignments rather than correct them. Recent work identifies this phenomenon as a reclustering barrier (Miklautz et al., 2025). In FL, this early saturation can be further amplified because client updates are computed from partial, heterogeneous views and then averaged at the server.
We propose Fed-BRDECS (Federated Balanced-Sampling and Restarted Deep Embedded Clustering with Sample Stability), a federated deep clustering framework with three components. These enhancements address the privacy issues inherent in directly applying DEC to FL, while simultaneously tackling the core challenges of federated deep clustering.
First, it replaces the globally normalized IDEC clustering objective with a locally computable sample-stability loss inspired by DECS (Cheng et al., 2024). Since this objective is computed using only local samples and current centroids, clients do not need to transmit sensitive soft-assignment distributions. Second, to mitigate local imbalance under heterogeneous FL, it uses a prediction-based balanced sampler that oversamples each client's locally rare predicted clusters using the model's own assignments. This acts as an unsupervised form of class-balanced importance sampling. Third, periodic federated restarting recomputes centroids in the current embedding space to recover collapsed clusters.
DEC has several applications, with outlier detection being one of the most common. We use Fed-BRDECS as the building block for federated outlier detection and validate on time-series data from both public benchmarks and a proprietary sensor dataset. Since many detectors are built on deep embedded clustering structures (Zong et al., 2018; Obied et al., 2023), our framework can be easily applied to DEC-based or AE-based federated time-series anomaly detection algorithms. This demonstrates that the proposed framework is not limited to standard clustering benchmarks, but can also serve as a privacy-preserving representation-learning backbone for downstream unsupervised tasks.
Our contributions are summarized as follows.
-
We propose Fed-BRDECS, a federated deep embedded clustering framework for heterogeneous unsupervised federated learning. Unlike prior federated or distributed clustering methods that exchange local clustering information, Fed-BRDECS enables IDEC-style joint representation and clustering refinement using a locally computable sample-stability loss without transmitting local assignment statistics.
-
We introduce two mechanisms to improve federated deep clustering under heterogeneous client distributions: a prediction-based balanced sampler that mitigates local cluster imbalance using pseudo-labels, and an iterative restarting strategy that refreshes centroids to reduce early commitment and cluster collapse.
-
We demonstrate consistent empirical improvements over representative federated clustering and deep clustering baselines, with ablation studies validating the contribution of stability loss, balanced sampling, and restarting.
-
We evaluate Fed-BRDECS on federated time-series anomaly detection as a practical stress test for unsupervised federated representation learning, showing that the proposed framework can improve reconstruction-based detectors under heterogeneous client time-series distributions without adding inference-time cost.
Table 1: Comparison with representative federated clustering methods. A check mark indicates that the method explicitly supports the corresponding property. “Privacy-preserving” means that clients do not transmit local cluster assignments or soft-assignment matrices.
| Method | Privacy-preserving | Deep clustering | Heterogeneity-aware |
|---|---|---|---|
| k-FED | ✓ | ||
| DWF k-Means | |||
| FKM | |||
| FFCM | |||
| F-DEC | ✓ | ||
| CCFC | ✓ | ✓ | |
| Fed-BRDECS | ✓ | ✓ | ✓ |
Federated clustering. Federated clustering has mostly focused on centroid-style algorithms over fixed features rather than deep representation learning. k-FED (Dennis et al., 2021) is a one-shot method in which each client uploads its local cluster centers only once. FKM (Garst and Reinders, 2025) extends this paradigm to multiple communication rounds. Other methods address specific limitations of federated k-means: DWF k-Means (Holzer et al., 2023) introduces dynamic weighting, Fork (Bravo and Dalleiger, 2026) improves robustness, and FedDP k-Means (Scott et al., 2025) incorporates differential privacy. In contrast to these hard-assignment approaches, FFCM (Stallmann and Wilbik, 2022) adapts fuzzy c-means to federated learning, allowing samples to have soft membership across multiple clusters. However, these methods still perform centroid-based clustering on raw or precomputed features rather than jointly learning deep representations, and they also exchange explicit local cluster statistics. More recently, efforts have emerged to apply deep clustering to FL. F-DEC (Mashhadi et al., 2021) directly applies DEC to FL by optimizing a KL-based clustering loss across clients, and FDEC (Xu et al., 2025) attempts to achieve robustness through hybrid federated averaging. CCFC (Liu et al., 2024) incorporates a cluster-contrastive loss to learn clustering-friendly representations. Still, these deep frameworks do not explicitly resolve core FL challenges such as centroid collapse, data heterogeneity, and privacy leakage tied to transmitting local soft assignment statistics. Table 1 summarizes these differences.
Imbalance in federated and unsupervised learning. Heterogeneity and imbalance are central challenges in FL. Supervised FL methods commonly address them through local data rebalancing, loss reweighting, or aggregation adjustment (Wang et al., 2021; Seol and Kim, 2023; Chung and Lee, 2025; Park et al., 2026). However, these methods rely on labels or label-distribution infor-mation, which are unavailable in unsupervised federated clustering. In unlabeled settings, related works—particularly in centralized environments—utilize inferred groups or pseudo-clusters to mitigate imbalance. For instance, some approaches balance unlabeled datasets using cluster IDs as pseudo-classes, while others partition majority classes into subclusters for imbalanced classification (Suayama and Nakamura, 2025; Lim, 2024). We adapt this concept to federated clustering. However, rather than treating predicted cluster assignments as supervised targets, we use them strictly to define a local sampling distribution paired with an oversampling strategy.
3 METHOD
3.1 Preliminaries: DEC/IDEC
DEC and IDEC combine representation learning with centroid-based clustering to map raw data into a semantically meaningful latent space. Let be a centralized dataset. An encoder maps an input to a latent representation and a decoder reconstructs the input, encouraging the latent representation to preserve local structures. The framework maintains trainable centroids . Standard IDEC operates in three stages:
- Autoencoder Pretraining: The network minimizes reconstruction loss to establish a meaningful initial embedding space:
-
Centroid Initialization: Centroid-based clustering (usually, k-Means++) is applied to the pretrained embeddings to initialize the centroids where are learned through (1).
-
Joint Clustering Refinement: The encoder, decoder, and centroids are jointly optimized. For each sample, a soft assignment is computed using a Student-t kernel:
where denotes the degrees-of-freedom parameter. A large value of indicates that is closer to centroid relative to the other centroids. An auxiliary target distribution is then constructed to sharpen confident assignments after constructing soft cluster frequencies :
The parameters are updated via stochastic gradient descent by minimizing the joint loss:
where balances reconstruction and cluster refinement. DEC only uses clustering loss without reconstruction loss for clustering refinement.
3.2 Problem Formulation: Federated Deep Embedded Clustering
We consider an unsupervised federated learning setting with clients. Client owns an unlabeled private dataset . The global dataset is defined as and the total number of samples is . The goal is to learn a single global clustering model that partitions the distributed dataset into clusters.
Privacy issue in FL. Directly applying IDEC to FL introduces a severe problem. Computing the global target distribution requires aggregating dataset-wide soft frequencies . In FL, this forces each client to compute and upload local soft counts to the server. This mechanism leaks sensitive information regarding local cluster compositions and relies on stale global statistics between periodic server refreshes. These limitations motivate Fed-BRDECS to replace the global KL target with a locally computable sample-stability objective.
Problem formulation. Following the deep embedded clustering framework, the global model is denoted by . It consists of an encoder , a decoder , and centroids in the latent space . Given a trained model, the cluster assignment of a sample is determined by the nearest centroid in the latent space, . Since training is unsupervised, these assignments are model-induced pseudo-cluster labels rather than ground-truth labels. Because these local assignments can still leak privacy-sensitive information, we focus on a federated clustering design that entirely eliminates the transmission of local assignment statistics.
The federated objective can be written as the weighted average of local unsupervised objectives:
where is the local clustering objective evaluated on client 's data, and .
This formulation highlights the central difficulty of federated deep embedded clustering. The model must learn both the representation and the centroids from decentralized, unlabeled, and potentially non-IID data, while avoiding reliance on centralized assignment statistics. Fed-BRDECS addresses this difficulty by replacing the globally normalized IDEC target objective with a local sample-stability loss, correcting local prediction imbalance through a prediction-based balanced sampler, and periodically reinitializing centroids through federated restarting.
3.3 Algorithm: Fed-BRDECS
Fed-BRDECS optimizes a federated deep clustering objective in three stages: federated representation pretraining, federated centroid initialization, and restarted clustering refinement. The first two stages follow the standard deep embedded clustering pipeline, while the refinement stage replaces IDEC's globally normalized target objective with local sample stability, prediction-balanced sampling, and periodic federated restarting. Algorithm 1 summarizes the full procedure.
Federated representation pretraining. Each client minimizes the reconstruction loss in (1) on its local data, and the server aggregates the updates by FedAvg for rounds.
Algorithm 1 Fed-BRDECS
Require: Client datasets , number of clusters , pretraining rounds , restart iterations , refinement rounds , local steps , sampler period , loss weight , stability parameter
Ensure: Global model
(Step 1) Federated representation pretraining.
1: Server initializes the global model .
2: for do
3: Server broadcasts to clients.
4: for do
5: Initialize local model .
6: Perform local SGD steps on .
7: Upload to the server.
8: end for
9: Server aggregates: .
10: end for
(Step 2) Federated centroid initialization.
11: ; update with these centroids.
(Step 3) Restarted clustering refinement.
12: Initialize .
13: for do
14: Initialize .
15: Recompute .
16: Set .
17: for do
18: Server broadcasts to clients.
19: for do
20: Initialize local model .
21: if then
22: Compute sampler weights .
23: end if
24: Perform local SGD steps on using prediction-balanced mini-batches.
25: Upload to the server.
26: end for
27: Server aggregates: .
28: end for
29: end for
30: return
Federated centroid initialization. After pretraining, the server initializes the latent centroids using a federated clustering routine on the client embeddings:
The FL clustering algorithm k-FED (Dennis et al., 2021) plays the role of centralized k-Means initialization in DEC/IDEC, but it is performed without collecting raw data or local assignment information at the server. Each client computes local centroids from its embeddings and sends only these centroids to the server, which constructs the initial global centroids.
Restarted clustering refinement. The refinement stage is organized into R restart iterations. Unlike BRB-style reclustering, Fed-BRDECS does not apply a soft reset to the model parameters. Instead, each restart performs a centroid-level federated reclustering step while keeping the representation network continuous across restarts. This design focuses on correcting centroid degeneration, inactive clusters, and heterogeneity-induced assignment imbalance.
At the beginning of restart , the server simply recomputes the centroids by running k-FED on the current client embeddings, , warm-started from the previous centroids. This federated reclustering step relocates centroids to occupied regions of the current embedding space and can revive centroids that have become inactive under non-IID local updates.
Within each restart iteration, Fed-BRDECS performs T rounds of federated refinement. On client k, soft assignments are computed from the local model using the Student-t kernel with parameter :
where . Unlike IDEC, Fed-BRDECS does not construct a target distribution from globally normalized cluster frequencies. Instead, each client evaluates sample stability, inspired by Cheng et al. (2024), from its local assignment probabilities.
Let be the threshold selected by Otsu's method (Otsu, 1979) on the assignment probabilities observed at client . We define the determinacy score if , and otherwise. For sample , we define the average determinacy as . Then the stability score is
where is a proportionality coefficient. The first term rewards assignment determinacy with respect to all centroids, while the second term regularizes the dispersion of determinacy values across centroids. The local stability loss over a mini-batch is
The local refinement objective is
where controls the contribution of the stability loss. The reconstruction term is also retained during refinement, as in IDEC, to preserve local structure in the embedding space. The encoder, decoder, and centroids are updated jointly by local SGD between restart steps.
Prediction-balanced sampler. To address local prediction imbalance, each client periodically updates a prediction-based sampling distribution. Every rounds, client computes local soft cluster frequencies and hard predicted assignments
. The inverse predicted-cluster frequency is , and each sample receives weight
Mini-batches are then sampled with replacement according to probabilities proportional to . Thus, samples assigned to locally rare predicted clusters are sampled more often, while samples assigned to locally dominant predicted clusters are downsampled. The predicted assignments are used only to define the sampling distribution and are not treated as supervised labels.
At refinement round of restart iteration , the server broadcasts the current global model to the clients. Each client performs local steps using the current balanced sampler and uploads its updated parameters . The server aggregates the returned models.
3.4 Theoretical Analysis
A privacy-aware alternative to the globally normalized DEC target is to let each client reconstruct the target using only its local soft cluster frequencies. Under heterogeneous client cluster proportions, however, this local reconstruction is not equivalent to the centralized DEC target and can even reverse the relative preference between two clusters. Appendix A.2 formalizes this effect and bounds both the target distortion and the resulting clustering-gradient bias. Thus, replacing the global DEC target with a locally computable stability objective avoids this source of heterogeneity-induced target mismatch.
The local stability objective avoids this dependence on global frequencies in (3), but it contains no explicit cluster-frequency balancing term. Consequently, centroids may become inactive, as formalized in Appendix A.3. The following result explains why such centroids are difficult to recover by gradient refinement and how restarting addresses this failure mode.
Proposition 1.3 (Inactive-centroid recovery) Consider an inactive centroid . If throughout local SGD steps with step size , its displacement after FedAvg is at most
where is independent of . In contrast, suppose the restart step relocates each centroid into the convex hull of the current embeddings Z. Then, for every client, sample, and centroid,
Appendix A.4 gives all the details and assumptions.
Thus, the gradient signal of an inactive centroid vanishes with its assignment mass, whereas restarting restores a strictly positive assignment mass by relocating the centroid to the current embedding region.
4 EXPERIMENTS
4.1 Setup for Clustering on Public Datasets
Datasets. We evaluate Fed-BRDECS on four standard deep clustering benchmarks: MNIST (Deng, 2012), Fashion-MNIST (Xiao et al., 2017), KMNIST (Clanuwat et al., 2018), and REUTERS-10K (Lewis et al., 2004). The three image datasets each contain ten ground-truth categories, while

Figure 1: Performance gains relative to the worst-performing method for each dataset and partition. Bars show percentage-point improvements in ACC (left) and NMI (right), and error bars indicate one standard deviation over five runs. Higher is better. Lower performance of DEC-based refinement compared with Fed-AE indicates that the refinement stage can degrade the pretrained representation, especially under non-IID client distributions.
REUTERS-10K is a four-category text clustering benchmark commonly used in DEC/IDEC evaluations. We follow the standard preprocessing protocol used in deep embedded clustering methods (Xie et al., 2016; Guo et al., 2017; Cheng et al., 2024). Ground-truth labels are used only for federated distribution of samples to clients (partitioning) and final evaluation, and are never used during unsupervised training.
Federated partitioning. All experiments are conducted with K = 10 clients. For each dataset, we evaluate two federation settings. In the IID setting, samples are uniformly distributed across clients. In the non-IID setting, client data distributions are generated using a Dirichlet partition with concentration parameter , as described in Hsu et al. (2019). The non-IID setting tests whether each method can learn meaningful global clusters when clients observe different local cluster proportions.
Baselines. We compare Fed-BRDECS with three groups of baselines. The first group consists of federated centroid clustering methods over fixed features: k-FED (Dennis et al., 2021), FKM (Garst and Reinders, 2025), and DWF k-Means (Holzer et al., 2023). These methods do not learn deep representations.
The second group consists of deep federated clustering baselines. Fed-AE first trains an autoencoder in a federated manner and then applies k-FED to the learned embeddings, isolating the effect of representation pretraining without joint clustering refinement. F-DEC (Mashhadi et al., 2021) is a direct federated implementation of IDEC, where clients optimize IDEC reconstruction and the KL clustering objective under FedAvg. This baseline uses the same autoencoder backbone but retains the DEC/IDEC target distribution objective and, therefore, requires exchange of local clustering information to construct the global target distribution. CCFC (Liu et al., 2024) is a recent contrastive federated deep clustering method.
The third group consists of our ablation variants. Fed-DECS uses only the local sample-stability loss, corresponding to the stability component (denoted as S). Fed-BDECS adds prediction-balanced sampling . Fed-BRDECS is the full method with sample stability, prediction-balanced sampling, and centroid-level restarting . We also report Fed-BRIDEC, which applies balanced sampling and restarting to the IDEC-style objective, to separate the effect of our stability objective from the effect of the balancing and restarting mechanisms.
All deep clustering methods use the standard DEC autoencoder architecture (Xie et al., 2016;

Figure 2: t-SNE visualization of learned MNIST embeddings under IID and non-IID federated partitions. The first column shows F-DEC, while the remaining columns show Fed-BRDECS across restart/refinement stages. Under non-IID partition, F-DEC exhibits clustering collapse, with two classes mixed into poorly separated regions. Fed-BRDECS mitigates this collapse through centroid-level restarting, progressively producing more compact and separated cluster structures.
Guo et al., 2017) and the same federated pretraining protocol. Additional hyperparameters and training details are provided in Appendix C.
Evaluation metric. All clustering methods are evaluated by clustering accuracy (ACC) and Normalized Mutual Information (NMI), which are widely used in unsupervised clustering. Unless otherwise stated, we report the average over five independent runs with different random seeds.
4.2 Clustering Results
In Figure 1, results are shown as percentage-point improvements over the worst-performing method for each dataset, partition, and metric. Fed-BRDECS attains the highest ACC in all eight settings. The corresponding absolute ACC and NMI values are reported in Appendix C.3. Overall, Fed-BRDECS achieves the strongest and most consistent clustering performance across datasets and partition settings. Its advantage is particularly evident under non-IID distributions, indicating improved robustness to heterogeneous client data.
Effect of representation learning. The fixed-feature federated k-means methods are consistently weaker than deep clustering methods on most benchmarks (Figure 1). For example, on MNIST-IID, the best fixed-feature baseline obtains 0.4914, whereas Fed-AE reaches 0.8155. This confirms that learning a clustering-friendly representation remains crucial in federated clustering. However, Fed-AE is still weaker than Fed-BRDECS, showing that autoencoder pretraining alone is insufficient without clustering-aware refinement. In several settings, particularly under non-IID partitions, F-DEC also underperforms Fed-AE, indicating that DEC-style refinement can degrade the pretrained representation.
Effectiveness of proposed components. F-DEC is a direct federated implementation of the IDEC objective. Fed-BRDECS improves over F-DEC by 6.47 percentage points in average ACC across the eight settings, with especially large gains under non-IID partitions. Further, the ablation ladder Fed-DECS → Fed-BDECS → Fed-BRDECS shows the contribution of each component. Fed-DECS, which uses only the stability loss, already performs competitively with F-DEC while avoiding the transmission of local cluster-frequency statistics. Adding prediction-balanced sampling and centroid-level restarting further improves ACC, indicating that our B+R components help correct biased or inactive centroids during federated refinement.
Robustness to heterogeneity. Fed-BRDECS is particularly effective under non-IID partitions. Averaged over the four non-IID settings, Fed-BRDECS obtains 0.6889 ACC, outperforming other algorithms. This suggests that the combination of prediction-balanced sampling and centroid restarting improves robustness to heterogeneous local cluster proportions.
Embedding visualization. Figure 2 visualizes the learned MNIST embeddings using t-SNE. Compared with F-DEC, Fed-BRDECS mitigates cluster collapse and cluster mix-up. The improvement is especially visible under the non-IID partition, where the baseline exhibits stronger cluster mixing, whereas Fed-BRDECS progressively separates clusters through prediction-balanced refinement and centroid-level restarting.
Ablation on the clustering-loss weight. Figure 3 in Appendix C.2 examines the effect of on MNIST and Fashion-MNIST. Under non-IID partitions, both datasets perform best at , whereas the IID results remain strong around ; we use these values in the main experiments.
4.3 Application to Federated Time-Series Anomaly Detection
Beyond standard clustering benchmarks, we evaluate Fed-BRDECS in federated time-series anomaly detection (TSAD), which provides a practical stress test for unsupervised federated representation learning. Many TSAD methods are reconstruction based. A model is trained to reconstruct normal time series, and anomalous time series are identified by a large reconstruction error (Malhotra et al., 2016; Audibert et al., 2020; Tuli et al., 2022). In federated TSAD, different clients may correspond to different machines or operating environments, so normal patterns can be highly heterogeneous. As a result, a single reconstruction model trained by FedAvg may underrepresent rare normal regimes and produce false alarms.
Applying Fed-BRDECS to reconstruction-based TSAD. Fed-BRDECS can be applied to reconstruction-based TSAD backbones as a training-time module. If the detector already includes a latent clustering component, we directly replace its clustering objective with our sample-stability loss and add prediction-balanced sampling and centroid restarting. If the detector is purely reconstruction-based, we attach a temporary projection head and centroids to the latent representation, optimize the sample-stability objective jointly with reconstruction, and use the resulting pseudo-clusters for balanced sampling.
We instantiate this mechanism on LSTM-AE (Garg et al., 2022) and TranAD (Tuli et al., 2022) for regularly sampled public benchmarks, attaching the clustering head to the encoder final hidden state and to the latent representation used by the reconstruction module, respectively. The proprietary sensor data are irregularly sampled multivariate time series, so we use CoFormer-AE (Wei et al., 2023), which replaces the LSTM encoder with CoFormer; TranAD and other architecture-specific TSAD variants are not directly compatible with this backbone. At inference time, the clustering head is discarded and outlier scores are computed using the original reconstruction error, so Fed-BRDECS adds no inference-time cost.
Table 2: Federated time-series anomaly detection results. “Baseline” denotes the backbone trained with FedAvg, while “+BRDECS” additionally uses Fed-BRDECS during training.
| Dataset | Backbone | Baseline | +BRDECS | ||
|---|---|---|---|---|---|
| AUC-ROC | F1 | AUC-ROC | F1 | ||
| SMD | LSTM-AE | 0.5915 | 0.1413 | 0.6038 | 0.1422 |
| SMD | TranAD | 0.6335 | 0.1829 | 0.6396 | 0.1848 |
| PSM | LSTM-AE | 0.6063 | 0.4415 | 0.6121 | 0.4433 |
| PSM | TranAD | 0.5792 | 0.4451 | 0.5863 | 0.4425 |
| Sensor | CoFormer-AE | 0.5258 | 0.4503 | 0.5544 | 0.4629 |
Experimental setup. We evaluate on two public multivariate TSAD benchmarks, SMD (Su et al., 2019) and PSM (Abdulaal et al., 2021), following the federated evaluation setting of Fed-TADBench (Liu et al., 2022), and on a proprietary irregularly sampled sensor dataset collected from multiple industrial machines. Each backbone is trained with FedAvg either with or without Fed-BRDECS. We report AUC-ROC and F1. Further dataset and implementation details are provided in Appendix D.2.
Results. Table 2 shows that adding Fed-BRDECS improves AUC-ROC in all five evaluated dataset–backbone settings and improves F1 in four of five settings. These gains are modest but consistent, which is expected because Fed-BRDECS is used only as a training-time representation module, while the clustering components and balanced sampler may help mitigate heterogeneity in FL.
5 CONCLUSION
We presented Fed-BRDECS, a federated deep embedded clustering framework that replaces the globally normalized IDEC target with a locally computable sample-stability loss, so that clients do not transmit soft-assignment or cluster-frequency statistics during refinement, and that counters local imbalance and centroid collapse through prediction-balanced sampling and centroid-level restarting. Fed-BRDECS attains the highest ACC in all eight federated clustering settings, and it also serves as a training-time module for downstream unsupervised monitoring, improving reconstruction-based anomaly detectors without changing their inference procedure. It does not provide formal differential privacy, since model updates and k-FED centroid means are still communicated (Appendix B.2); adding formal privacy mechanisms for these centroids is a natural next step.
AI Use Statement
In this work, we used generative AI tools for editing and sanitizing sentences to improve clarity, grammar, and readability. We have not used generative AI tools for conceptual design, conducting experiments, data analysis, or generating new scientific claims, and automated code or dataset generation are not applicable to this work. We have reviewed all AI-assisted work. Every revised sentence was manually verified by the authors to ensure that the original technical meaning, nuances, and factual accuracy were strictly preserved without introducing hallucinations or alterations to the findings. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
References
Abdulaal, A., Liu, Z., and Lancewicki, T. (2021). Practical approach to asynchronous multivariate time series anomaly detection and localization. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, pages 2485–2494.
Audibert, J., Michiardi, P., Guyard, F., Marti, S., and Zuluaga, M. A. (2020). USAD: Unsupervised anomaly detection on multivariate time series. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pages 3395–3404.
Bravo, M. and Dalleiger, S. (2026). Robust federated clustering under heterogeneity and adversaries. In Proceedings of the 29th International Conference on Artificial Intelligence and Statistics, volume 300 of Proceedings of Machine Learning Research, pages 3718–3726. PMLR.
Cheng, Z., Li, F., Wang, J., and Qian, Y. (2024). Deep embedding clustering driven by sample stability. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence (IJCAI), pages 3854–3862.
Chung, H. and Lee, J. S. (2025). Multi-level analysis of imbalance to resolve non-IID-ness in federated learning. Neurocomputing, 626:129528.
Clanuwat, T., Bober-Irizar, M., Kitamoto, A., Lamb, A., Yamamoto, K., and Ha, D. (2018). Deep learning for classical Japanese literature. arXiv preprint arXiv:1812.01718.
Deng, A. and Hooi, B. (2021). Graph neural network-based anomaly detection in multivariate time series. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 4027–4035.
Deng, L. (2012). The MNIST database of handwritten digit images for machine learning research. IEEE Signal Processing Magazine, 29(6):141–142.
Dennis, D. K., Li, T., and Smith, V. (2021). Heterogeneity for the win: One-shot federated clustering. In International Conference on Machine Learning, pages 2611–2620. PMLR.
Garg, A., Zhang, W., Samaran, J., Savitha, R., and Foo, C.-S. (2022). An evaluation of anomaly detection and diagnosis in multivariate time series. IEEE Transactions on Neural Networks and Learning Systems, 33(6):2508–2517.
Garst, S. and Reinders, M. (2025). Federated K-means clustering. In Pattern Recognition – 27th International Conference, ICPR 2024, Proceedings, volume 15302 of Lecture Notes in Computer Science, pages 107–122. Springer.
Guo, X., Gao, L., Liu, X., and Yin, J. (2017). Improved deep embedded clustering with local structure preservation. In Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI), pages 1753–1759.
Holzer, P., Jacob, T., and Kavane, S. (2023). Dynamically weighted federated k-means. arXiv preprint arXiv:2310.14858.
Hsu, T.-M. H., Qi, H., and Brown, M. (2019). Measuring the effects of non-identical data distribution for federated visual classification. arXiv preprint arXiv:1909.06335.
Jain, A. K. (2010). Data clustering: 50 years beyond K-means. Pattern Recognition Letters, 31(8):651–666.
Lewis, D. D., Yang, Y., Rose, T. G., and Li, F. (2004). RCV1: A new benchmark collection for text categorization research. Journal of Machine Learning Research, 5:361–397.
Lim, G. (2024). Data imbalance solutions using pseudo-cluster and two-step classification methods. In 2024 IEEE International Conference on Big Data (BigData), pages 8751–8753. IEEE.
Liu, F., Zeng, C., Zhang, L., Zhou, Y., Mu, Q., Zhang, Y., Zhang, L., and Zhu, C. (2022). FedTADBench: Federated time-series anomaly detection benchmark. In 2022 IEEE 24th International Conference on High Performance Computing & Communications (HPCC/DSS/SmartCity/DependSys), pages 303–310. IEEE.
Liu, J., Yan, J., and Zhang, Z.-Y. (2024). CCFC: Bridging federated clustering and contrastive learning. arXiv preprint arXiv:2401.06634.
Madiraju, N. S., Sadat, S. M., Fisher, D., and Karimabadi, H. (2018). Deep temporal clustering: Fully unsupervised learning of time-domain features. arXiv preprint arXiv:1802.01059.
Malhotra, P., Ramakrishnan, A., Anand, G., Vig, L., Agarwal, P., and Shroff, G. (2016). LSTM-based encoder-decoder for multi-sensor anomaly detection. In ICML 2016 Anomaly Detection Workshop.
Mashhadi, A., Sterner, J., and Murray, J. (2021). Deep embedded clustering of urban communities using federated learning. In 2021 International Joint Conference on Neural Networks (IJCNN), pages 1–8.
McMahan, B., Moore, E., Ramage, D., Hampson, S., and Agüera y Arcas, B. (2017). Communication-efficient learning of deep networks from decentralized data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, volume 54 of Proceedings of Machine Learning Research, pages 1273–1282. PMLR.
Miklautz, L., Klein, T., Sidak, K., Leiber, C., Lang, T., Shkabrii, A., Tschiatschek, S., and Plant, C. (2025). Breaking the reclustering barrier in centroid-based deep clustering. In The Thirteenth International Conference on Learning Representations.
Nguyen, D. C., Ding, M., Pathirana, P. N., Seneviratne, A., Li, J., and Poor, H. V. (2021). Federated learning for Internet of Things: A comprehensive survey. IEEE Communications Surveys & Tutorials, 23(3):1622–1658.
Obied, M. A., Ghaleb, F. F., Hassanien, A. E., Abdelfattah, A. M., and Zakaria, W. (2023). Deep clustering-based anomaly detection and health monitoring for satellite telemetry. Big Data and Cognitive Computing, 7(1):39.
Otsu, N. (1979). A threshold selection method from gray-level histograms. IEEE Transactions on Systems, Man, and Cybernetics, 9(1):62–66.
Pan, C., Sima, J., Prakash, S., Rana, V., and Milenkovic, O. (2023). Machine unlearning of federated clusters. In The Eleventh International Conference on Learning Representations.
Park, H., Klabjan, D., Braun, M. W., Li, X., and Ananthanarayanan, B. (2026). Class-grouped normalized momentum and faster hyperparameter exploration to tackle class imbalance in federated learning. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 96740–96765. PMLR.
Pfeifer, B., Sirocchi, C., Bloice, M. D., Kreuzthaler, M., and Urschler, M. (2024). Federated unsupervised random forest for privacy-preserving patient stratification. Bioinformatics, 40(Supplement_2):ii198–ii207.
Presotto, R., Civitarese, G., and Bettini, C. (2022). FedCLAR: Federated clustering for personalized sensor-based human activity recognition. In 2022 IEEE International Conference on Pervasive Computing and Communications (PerCom), pages 227–236. IEEE.
Rieke, N., Hancox, J., Li, W., Milletari, F., Roth, H. R., Albarqouni, S., Bakas, S., Galtier, M. N., Landman, B. A., Maier-Hein, K., et al. (2020). The future of digital health with federated learning. NPJ Digital Medicine, 3(1):119.
Ruff, L., Vandermeulen, R. A., Goernitz, N., Deecke, L., Siddiqui, S. A., Binder, A., Müller, E., and Kloft, M. (2018). Deep one-class classification. In Proceedings of the 35th International Conference on Machine Learning, pages 4393–4402. PMLR.
Scott, J., Lampert, C. H., and Saulpic, D. (2025). Differentially private federated k-means clustering with server-side data. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 53757–53790. PMLR.
Seol, M. and Kim, T. (2023). Performance enhancement in federated learning by reducing class imbalance of non-IID data. Sensors, 23(3):1152.
Stallmann, M. and Wilbik, A. (2022). Towards federated clustering: A federated fuzzy c-means algorithm (FFCM). arXiv preprint arXiv:2201.07316.
Su, Y., Zhao, Y., Niu, C., Liu, R., Sun, W., and Pei, D. (2019). Robust anomaly detection for multivariate time series through stochastic recurrent neural network. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pages 2828–2837.
Suayama, K. and Nakamura, K. (2025). Reducing implicit class imbalance in unlabeled datasets using text-specified sensitive attributes. In 2025 Asia Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC), pages 2032–2037. IEEE.
Tuli, S., Casale, G., and Jennings, N. R. (2022). TranAD: Deep transformer networks for anomaly detection in multivariate time series data. Proceedings of the VLDB Endowment, 15(6):1201–1214.
Wang, L., Xu, S., Wang, X., and Zhu, Q. (2021). Addressing class imbalance in federated learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 10165–10173.
Wei, Y., Peng, J., He, T., Xu, C., Zhang, J., Pan, S., and Chen, S. (2023). Compatible transformer for irregularly sampled multivariate time series. In 2023 IEEE International Conference on Data Mining (ICDM), pages 1409–1414. IEEE.
Xiao, H., Rasul, K., and Vollgraf, R. (2017). Fashion-MNIST: A novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747.
Xie, J., Girshick, R., and Farhadi, A. (2016). Unsupervised deep embedding for clustering analysis. In International Conference on Machine Learning, pages 478–487. PMLR.
Xu, X., Liao, H., and Yang, X. (2025). Federated deep embedded clustering under privacy protection. Applied Soft Computing, 185:113963.
Yang, B., Fu, X., Sidiropoulos, N. D., and Hong, M. (2017). Towards k-means-friendly spaces: Simultaneous deep learning and clustering. In International Conference on Machine Learning, pages 3861–3870. PMLR.
Zong, B., Song, Q., Min, M. R., Cheng, W., Lumezanu, C., Cho, D., and Chen, H. (2018). Deep autoencoding Gaussian mixture model for unsupervised anomaly detection. In International Conference on Learning Representations.
A THEORETICAL ANALYSIS: PROOFS AND ADDITIONAL DETAILS
To simplify the Student-t soft assignment equation (2), define the unnormalized Student-t affinity
Then (2) can be written as
We also use
To simplify (3), let be any positive frequency vector and define
Then (3) becomes when is the global soft-frequency vector. For client , we write for its local soft-frequency vector. For probability vectors , we use .
A.1 Auxiliary lemmas
Lemma A.1 (Student-t derivatives). For any sample i and clusters j, , the Student-t kernel satisfies
In addition,
Proof. From the definition of ,
Differentiating with respect to and gives the first two identities. The derivatives of follow from differentiating . Finally, with ,
and is maximized at , where it equals .
Lemma A.2 (Multiplicative reweighting). Let be a probability vector with for all . Let and define
If
then
For C = 2, the bound can be attained.
Proof. Set and . Let have distribution , define , and let . By the definition of , we have
Since ,
It follows that
The last expression is maximized at . Substitution gives
A.2 Local-target distortion under local DEC-target reconstruction
For any positive frequency vector , define the DEC target probability obtained using a by
and define the complete target vector for sample i as
In particular, denotes the global soft-frequency vector, while denotes client 's local soft-frequency vector. Thus, is the centralized DEC target for sample , whereas is the target reconstructed using only client 's local frequencies.
Proposition 1.1 (Local-target distortion) Let , , , and
For every sample i of client k,
and consequently
Moreover,
where . The locally reconstructed target is identical to the global target, , if and only if the normalized local and global soft-frequency vectors are identical, . Equivalently, this holds if and only if . If , the mismatch can change both the target probabilities and the clustering gradient.
Proof. Because and ,
The common factor cancels when the target is normalized, giving
Applying Lemma A.2 with and yields
When differentiating the DEC objective, the auxiliary target is held fixed. By Lemma A.1,
Let and . Then
The centroid-gradient bound follows in the same way. The equality holds exactly when is constant over . Since both and sum to one, this is equivalent to . Also,
Therefore, if , the local target reverses this ordering whenever
Proposition 1.1 shows that replacing the global DEC frequencies with client-specific frequencies does not recover the same target loss function. It produces a different target obtained by reweighting cluster j by
Therefore, a cluster that is rare on client k is upweighted compared with the global DEC target, while a cluster that is common on that client is downweighted. The quantity measures the spread of these reweighting factors.
The preference-reversal condition further shows that this effect is not limited to a change in gradient magnitude. Local reconstruction can change which centroid receives the larger target probability for the same sample. Thus, under heterogeneity, constructing the DEC target independently from local frequencies can make different clients optimize systematically different clustering directions. This motivates Fed-BRDECS to remove the frequency-normalized target from local refinement rather than approximate the global DEC target using local frequencies.
A.3 Balance-agnostic stability objective
The stability score for the i-th sample on client k is given by
where is the variance-regularization coefficient. It controls how strongly dispersion among the centroid-wise determinacy values is penalized.
Unlike the DEC target objective, the stability objective does not explicitly depend on cluster frequencies. It therefore encourages confident sample-level assignments without directly enforcing balanced use of the centroids. As a result, a training can achieve a small stability loss even when most or all samples are assigned to the same centroid. The following proposition formalizes this limitation and shows that the stability objective alone does not rule out inactive centroids.
Proposition 1.2 (Balance-agnostic stability) For fixed ,
Moreover, for any fixed encoder,
can be achieved by centroids in which all samples are assigned to a single centroid while the remaining C - 1 centroids become inactive.
Proof. For , the normalized deviation lies in , whereas for , lies in . Hence for every and . Therefore, , and the variance of is bounded above by . It follows that
which implies
For the second part, fix the encoder and . For each , set , where is a unit vector. Since the dataset is finite, letting gives
uniformly over the samples. Consequently, for all , and therefore and . Thus, the infimum can be approached by configurations in which all samples are assigned to a single centroid while the remaining centroids become inactive.
A.4 Proof and strengthened form of Proposition 1.3
Assumptions for Proposition 1.3. During the analyzed local-update window, each threshold is held fixed and satisfies for some . Local centroid updates use plain SGD with step size . For the restart statement, each refreshed centroid is assumed to lie in the convex hull of the current embeddings. This condition is satisfied by Lloyd updates when empty clusters are reseeded at input embeddings.
Proof. We first bound the gradient with respect to an inactive centroid. Let be continuously differentiable and suppose
for every . By Lemma A.1,
Therefore,
Using gives
We now apply this bound to the stability score. Since and ,
Moreover,
and hence
Thus,
The reconstruction loss does not depend on the centroids. Therefore, for a mini-batch at local step , we have
Under the assumption , for every client, sample, and local iterate in the window, (5) becomes
A plain-SGD step with step size therefore moves the local centroid by at most . Summing over local steps gives
Since FedAvg forms a convex combination of the client centroids, the same bound holds for the aggregated centroid. Hence
so Proposition 1.3 holds with
For the restart statement, suppose each refreshed centroid belongs to , where is the current embedding set. Since and the diameter of a convex hull is equal to the diameter of its generating set,
It follows that
Also, for every , so
Therefore,
This proves the post-restart lower bound.
A stronger cumulative-mass bound. The same argument gives a stronger form that does not require a common upper bound at every local step. Define the average assignment mass received by centroid j on client k at step h as
and let
Applying the same gradient bound at each step and summing over the local trajectory yields
Thus the total movement of centroid is controlled by the cumulative assignment mass it receives during local optimization. The bound in Proposition 1.3 follows immediately when for every , since
B ADDITIONAL METHOD DETAILS
B.1 k-FED Centroid Initialization and Restarting
Fed-BRDECS uses k-FED (Dennis et al., 2021) for both initial centroid construction and periodic centroid restarting. We use k-FED because it constructs global centroids from uploaded local cluster means without requiring clients to transmit local soft assignment statistics or cluster-count statistics, which may reveal sensitive information about client-specific data composition.
After federated autoencoder pretraining, each client embeds its local data using the current encoder and solves a local clustering subproblem in the latent space. Following k-FED, the client sends only the resulting local cluster means to the server without sending cluster assignment statistics. The server then applies the k-FED server-side aggregation procedure to the collection of uploaded local means to obtain the global centroids. This procedure replaces the centralized k-means initialization used in DEC/IDEC with a one-shot federated centroid construction step.
The same procedure is used during restarting. At the beginning of each restart iteration, the server does not reset or perturb the encoder or decoder parameters as in BRB (Miklautz et al., 2025). Instead, clients recompute local cluster means from their current embeddings, and the server reruns the k-FED aggregation step to refresh the global centroids. The model parameters are kept unchanged across restarts, while the centroids are relocated according to the current federated embedding geometry. This design allows Fed-BRDECS to correct biased or inactive centroids induced by heterogeneous client updates without disrupting the learned representation.
Formally, at restart r, clients compute embeddings using the current encoder and the server updates
The model parameters are then set to
and federated refinement proceeds from this centroid-refreshed model.
B.2 Privacy Scope of Fed-BRDECS
Fed-BRDECS is privacy-preserving in the specific sense of reducing local assignment-statistic disclosure. In DEC/IDEC-style federated refinement, local soft-assignment matrices, soft-count vectors, or cluster-frequency statistics directly encode client-specific cluster composition. Such composition information can be sensitive in practical applications, for example when local clusters correspond to defect types, disease subpopulations, or machine operating regimes.
Fed-BRDECS does not provide formal differential privacy. Like other prototype-based federated clustering methods, it still communicates model updates and local centroid means during k-FED initialization and restarting. However, during clustering refinement, Fed-BRDECS avoids repeated transmission of local soft assignments, soft-count vectors, and predicted-cluster histograms. Existing work (Scott et al., 2025) applies differential privacy to mitigate this leakage, but DP-noised cluster counts may still reveal client-level composition. Appendix B.3 further discusses why adding DP noise to cluster counts may fail to hide local composition unless the noise magnitude is large enough to substantially degrade the utility of the statistics.
B.3 Why DP-Noised Cluster Counts Still Reveal Local Composition
A natural alternative to avoiding local assignment statistics is to transmit differentially private noisy cluster counts. We argue that this only partially addresses the privacy issue considered in this work. Differential privacy primarily protects individual-record participation, whereas our concern is client-level cluster-composition disclosure. In federated clustering, a local cluster-count vector directly encodes the client's data composition, which can be sensitive in applications such as industrial defect monitoring, where defect-type proportions may reveal process quality, machine conditions, or yield-related information.
Consider client k with samples and C clusters. Let
denote its local hard cluster-count vector, and let
be the corresponding local cluster-composition vector. For DEC/IDEC-style federated refinement, the analogous soft-count vector is
whose normalized version similarly reveals the client's soft cluster composition.
Suppose a client applies the Laplace mechanism to its count vector:
where is the -sensitivity of the histogram query. The server can estimate the client's local composition by normalizing the noisy counts:
Then
Therefore, for moderate or large local datasets, the normalized noise can be very small unless is chosen extremely small. For example, when , , , and , the expected error in the recovered composition is only
Thus, even after adding standard DP noise to the count vector, the server can still recover a highly accurate approximation of the client's local cluster composition.
This issue can also be understood through group privacy. Differential privacy protects neighboring datasets that differ in one record, but two clients with different cluster compositions may differ in many records. Let and be two possible local composition vectors. Transforming a histogram with composition into one with composition requires
sample replacements. By group privacy, an -DP mechanism provides only -level indistinguishability for this composition-level change. Hence, to hide two compositions separated by , we need
For a fixed composition gap , this requires . Under the Laplace mechanism, the corresponding noise scale becomes
meaning that the noise added to each count is on the same order as the client's dataset size. Such noise would substantially corrupt the count vector and degrade its utility for federated k-means updates or DEC/IDEC target distribution construction.
Therefore, DP-noised cluster counts exhibit a sharp privacy–utility tradeoff for the composition-disclosure threat considered in this work. Moderate noise preserves clustering utility but still reveals an accurate estimate of local cluster composition; noise large enough to obscure that composition makes the statistics unreliable for clustering. Fed-BRDECS avoids this disclosure channel by not transmitting local soft-assignment matrices, local cluster-frequency vectors, or predicted-cluster histograms during refinement.
C EXPERIMENT DETAILS
C.1 Datasets and Models
Image datasets. For MNIST (Deng, 2012), Fashion-MNIST (Xiao et al., 2017), and KMNIST (Clanuwat et al., 2018), we use the official test split of each dataset. Each image is flattened into a vector before being fed into the autoencoder. The encoder follows the standard DEC-style multilayer perceptron architecture
where the final layer gives a 10-dimensional latent representation. The decoder is symmetric. The number of clusters is set to the number of ground-truth classes, i.e., C = 10. Labels are used only for partitioning and evaluation, not during training.
REUTERS-10K. For REUTERS-10K, we follow the preprocessing protocol of DEC (Xie et al., 2016). We use four root categories (corporate/industrial, government/social, markets, and economics) as labels and exclude documents with multiple labels. Following DEC's protocol, we also compute TF-IDF features using the 2,000 most frequent words and use them as input. Due to computational constraints, we randomly sample 10,000 examples. We refer to this sampled dataset as REUTERS-10K. For this dataset, the encoder architecture is
with a symmetric decoder and a 10-dimensional latent representation.
C.2 Implementation Details
For centroid-based baselines, including k-FED, FKM, and DWF k-Means, we apply the algorithms directly to the raw input features, following the evaluation setting of the original federated clustering papers. Thus, for image datasets, these methods operate on flattened raw pixels, while for REUTERS-10K they operate on TF-IDF features. Deep clustering methods instead learn an autoencoder representation before or during clustering refinement. All federated deep clustering methods use FedAvg as the federated optimization framework. For methods incorporating the sample stability loss or the balanced sampler, each client updates the sampling weights or calculates the Otsu threshold once per epoch across its entire local dataset.
Selection of loss weights. We examine the sensitivity of Fed-BRDECS to the clustering-loss weight on MNIST and Fashion-MNIST. As shown in Figure 3, the preferred weight differs between the IID and non-IID settings. We use for IID partitions, which provides near-optimal performance on both datasets, and for non-IID partitions, which achieves the highest ACC on both datasets. These values are used for the corresponding partition settings in all main experiments. We set , following Cheng et al. (2024).

Figure 3: Sensitivity of Fed-BRDECS to the clustering-loss weight on Fashion-MNIST and MNIST.
Optimization details. Local client optimization uses SGD with momentum. We use a cosine annealing learning-rate scheduler for both the pretraining and refinement stages. The scheduler decays the learning rate from the selected initial value to times the initial value by the final round. For refinement with multiple restarts, the scheduler is applied over the entire refinement process.
rather than being reset at each restart. We tune weight decay over and batch size over . The initial learning rate is selected by grid search from . For local training, each client performs 20 local optimization steps per communication round. All experiments are implemented in PyTorch 2.1.0 with CUDA 12.6. Jobs are executed on four NVIDIA GeForce RTX 2080 Ti GPUs.
C.3 Full Clustering Results
Table 3 reports the full numerical clustering results corresponding to Figure 1 in the main body. All ACC and NMI values are averaged over five independent runs with different random seeds.
Table 3: Full clustering results on IID and non-IID federated partitions with clients. Each entry reports ACC and NMI in parentheses. The non-IID setting uses a Dirichlet partition with . All values are averaged over five independent runs with different random seeds. Higher is better. Best ACC results are shown in bold, and best NMI results are bolded in parentheses. Lower performance of DEC-based refinement compared with Fed-AE indicates that the refinement stage can degrade the pretrained representation, especially under non-IID client distributions.
| Dataset / Partition | k-FED | FKM | DWF | CCFC | Fed-AE | F-DEC | Fed-DECS | Fed-BDECS | Fed-BRDECS | Fed-BRIDEC |
|---|---|---|---|---|---|---|---|---|---|---|
| MNIST / IID | 0.4530 (0.4990) | 0.4866 (0.4347) | 0.4914 (0.4318) | 0.8576 (0.8345) | 0.8155 (0.7531) | 0.8878 (0.9259) | 0.8394 (0.7853) | 0.8408 (0.7862) | 0.9210 (0.8782) | 0.9010 (0.8979) |
| MNIST / Non-IID | 0.5524 (0.4896) | 0.5130 (0.4563) | 0.4972 (0.4338) | 0.8026 (0.7761) | 0.7973 (0.7296) | 0.7016 (0.8062) | 0.8215 (0.7638) | 0.8215 (0.7703) | 0.9225 (0.8498) | 0.7158 (0.5969) |
| Fashion-MNIST / IID | 0.5297 (0.5228) | 0.4964 (0.5091) | 0.4745 (0.5170) | 0.5448 (0.5798) | 0.5409 (0.5618) | 0.5538 (0.5352) | 0.5438 (0.5748) | 0.5477 (0.5732) | 0.5832 (0.5889) | 0.5576 (0.5865) |
| Fashion-MNIST / Non-IID | 0.4976 (0.4959) | 0.4987 (0.5322) | 0.5446 (0.5068) | 0.5231 (0.5683) | 0.5614 (0.5797) | 0.5024 (0.5670) | 0.5508 (0.5824) | 0.5685 (0.5764) | 0.6129 (0.5925) | 0.5438 (0.5805) |
| KMNIST / IID | 0.3066 (0.2790) | 0.3798 (0.2667) | 0.3421 (0.2521) | 0.4685 (0.4345) | 0.4642 (0.4294) | 0.4722 (0.4503) | 0.4735 (0.4267) | 0.4745 (0.4328) | 0.4798 (0.4381) | 0.4735 (0.4405) |
| KMNIST / Non-IID | 0.3100 (0.2574) | 0.3059 (0.2709) | 0.3352 (0.2656) | 0.3954 (0.3725) | 0.4099 (0.3678) | 0.3854 (0.3932) | 0.3765 (0.3724) | 0.4122 (0.3745) | 0.4338 (0.4065) | 0.3978 (0.3899) |
| REUTERS-10K / IID | 0.6873 (0.3945) | 0.7590 (0.5098) | 0.7600 (0.4400) | 0.7716 (0.5630) | 0.7285 (0.4904) | 0.7606 (0.5580) | 0.7536 (0.5387) | 0.7559 (0.5742) | 0.8039 (0.5749) | 0.7832 (0.5439) |
| REUTERS-10K / Non-IID | 0.5962 (0.3316) | 0.7064 (0.4235) | 0.6553 (0.3564) | 0.7528 (0.5274) | 0.7613 (0.5137) | 0.7622 (0.5248) | 0.7658 (0.4984) | 0.7805 (0.4841) | 0.7865 (0.5316) | 0.7654 (0.4952) |
D ADDITIONAL DETAILS FOR FEDERATED TIME-SERIES ANOMALY DETECTION
D.1 Related Work
Centralized TSAD spans deep one-class methods (Deep SVDD (Ruff et al., 2018)), reconstruction and forecasting methods (LSTM-AE (Malhotra et al., 2016), OmniAnomaly (Su et al., 2019), USAD (Audibert et al., 2020)), graph-based methods (GDN (Deng and Hooi, 2021)), and transformer-based detectors (TranAD (Tuli et al., 2022)). A growing thread also builds detectors on deep embedded clustering itself, including DTC (Madiraju et al., 2018) and DCLOP (Obied et al., 2023). Such DEC-based detectors are common in centralized learning but scarce in federated learning, where FedTADBench (Liu et al., 2022) evaluates representative TSAD algorithms under federated learning. Fed-BRDECS fills this gap as a federated deep clustering backbone for unsupervised outlier detection, whose mechanism can be easily plugged into existing federated TSAD algorithms.
D.2 Implementation Details
General strategy to instantiate Fed-BRDECS. Let denote a time-series window from client , where is the window length and is the dimensionality. Let denote a mini-batch of local windows sampled on client . A reconstruction-based TSAD backbone maps to a latent representation and reconstructs the input as . Its native training objective is the reconstruction loss
where denotes the backbone-specific reconstruction loss. In our experiments, we use the mean squared reconstruction error over the window,
At inference time, the outlier score is computed from the same reconstruction error.
To instantiate Fed-BRDECS, we attach a lightweight projection head to the backbone latent representation
where is the clustering embedding dimension. Fed-BRDECS then maintains centroids in this clustering space. During training, soft assignments are computed from and the centroids using the same Student-t kernel as in the main method. The local objective becomes
Centroids are initialized and refreshed by k-FED on the client clustering embeddings. The prediction-balanced sampler is constructed from the induced pseudo-clusters but with smoothing parameterized by . Thus, windows assigned to locally rare predicted regimes are sampled more often, while the smoothing parameter controls the strength of rebalancing and prevents the sampler from over-concentrating on a small number of windows.
At inference time, the projection head and centroids are discarded, and outlier scores are computed only from the original reconstruction error. Therefore, Fed-BRDECS acts as a training-time representation-learning module and does not add inference-time cost.
LSTM-AE instantiation. For LSTM-AE, the encoder maps each input window to a final recurrent hidden state . We attach the clustering projection head to this final hidden state:
The decoder reconstructs the input window, and the reconstruction loss is the mean squared error between and . Thus, the LSTM-AE backbone is unchanged except for the temporary clustering head used during training. Since is already a single vector representation of the full window, no temporal pooling is required before clustering.
TranAD instantiation. TranAD uses a two-phase transformer reconstruction mechanism. Given an input window, the first decoder produces an initial reconstruction, and the second decoder reconstructs the target using the first-phase reconstruction error as additional context. We attach the clustering head to the latent representation produced by the first-phase transformer encoder. Let
denote the first-phase encoder memory for window . We obtain a window-level representation by mean pooling over time:
The clustering embedding is then
The native TranAD reconstruction loss is kept unchanged. In particular, if and denote the first- and second-phase reconstructions, the local reconstruction loss uses the same epoch-dependent weighting as TranAD:
where e is the local epoch index. At inference time, the outlier score is computed from the second-phase reconstruction error, as in the original TranAD.
Prediction-balanced sampling for TSAD. For each client, Fed-BRDECS periodically constructs a prediction-balanced sampler from the pseudo-clusters induced by the temporary clustering head. The purpose is to increase the exposure of locally rare normal regimes during training, while avoiding overly aggressive oversampling that may overfit a small number of anomalous windows.
Specifically, client k computes soft assignments over its local windows and estimates the local soft cluster mass
Each window is assigned to its most likely pseudo-cluster,
The inverse-frequency cluster weight is then smoothed by an exponent :
and each window receives the sampling weight
Mini-batches are sampled with replacement according to probabilities proportional to . Here, controls the strength of rebalancing: recovers uniform sampling, while corresponds to the standard inverse-frequency sampler. This smoothing is used to prevent the sampler from concentrating too heavily on rare pseudo-clusters, which may otherwise increase the risk of overfitting to anomalous or atypical windows. In our TSAD experiments, we use .
Centroid initialization and restarting. After reconstruction pretraining, each client extracts clustering embeddings from its local windows and runs local k-means. The server aggregates the returned local centroids using k-FED to obtain the initial global centroids. During refinement, Fed-BRDECS periodically refreshes centroids by rerunning the same k-FED procedure on the current clustering embeddings. This centroid-level restarting corrects biased or inactive centroids caused by heterogeneous local time-series regimes. No clustering head is used at inference.
Details for proprietary sensor dataset. The proprietary sensor dataset is collected from industrial manufacturing equipment and consists of irregularly sampled multivariate time-series samples. After preprocessing, the dataset contains 72,808 samples with an anomaly rate of 3.12%. The anomaly labels are used only for evaluation and are not used during unsupervised federated training.

Figure 4: Factory-product production-volume metadata for the proprietary sensor dataset. The heatmap shows strong non-IID structure across factories.
The dataset is naturally federated by factory, where each factory is treated as one client. Figure 4 summarizes the factory-product metadata. The metadata covers five factories and ten products, but the support is sparse, indicating the strong client heterogeneity.
Figure 5 shows representative multivariate trajectories from three product types. The trajectories exhibit irregular temporal structure, product-dependent sequence lengths, sharp transitions, and different sensor-channel dynamics. These observations support the use of a model designed for irregularly sampled time series.
CoFormer-AE for irregularly sampled sensor data. The proprietary sensor dataset consists of irregularly sampled multivariate time series. Therefore, we use CoFormer-AE instead of LSTM-AE or TranAD for this dataset. CoFormer provides the window-level representation used by the reconstruction model, and Fed-BRDECS is attached in the same way,
The remaining procedure, including k-FED centroid initialization, sample-stability loss, prediction-balanced sampling, and inference by reconstruction error, is unchanged. We do not evaluate TranAD on this dataset because TranAD is architecture-specific to regularly sampled fixed-window inputs and is not directly compatible with the CoFormer backbone.

Figure 5: Representative multivariate sensor trajectories from Products 1, 2, and 4 in the proprietary dataset. Each panel visualizes multiple examples over three sensor channels. The examples show product-dependent temporal structure, variable sequence length, sharp transitions, plateau regions, and heterogeneous channel dynamics, motivating the use of CoFormer-AE for irregularly sampled sensor data.