Modeling normality: latent clustering for anomaly detection in CPS

Discover how latent clustering of normal data detects anomalies in multimodal cyber-physical systems, outperforming deep detectors.

miércoles, 8 de julio de 2026 • 3 min read • Q2BSTUDIO Team

Anomaly detection with latent clustering in multimodal CPS

In today's industrial ecosystem, cyber-physical systems (CPS) integrate sensors, actuators, and control logic with digital networks, generating massive data streams that reflect the behavior of plants, turbines, assembly lines, or critical infrastructures. However, failures in these environments are extremely rare and difficult to characterize, making early detection a challenge that cannot be solved with classical supervised models. The most robust approach is to model normality: learning what expected behavior is in order to identify any significant deviation by contrast. But this normality is not homogeneous; in practice, CPS operate in multiple regimes—startups, shutdowns, partial loads, transitions—that form a complex structure of overlapping, curved, and fuzzy-edged modes. Ignoring this multimodality condemns detectors to fail precisely when they are most needed: in the face of correlated or dynamic failures that break the subtle transitions between modes.

To address this reality, recent research proposes an approach based on latent representation learning combined with explicit clustering via Gaussian mixtures, scoring anomalies in that hidden space rather than on global density or reconstruction error. This strategy prevents a flexible decoder from masking deviations by faithfully reconstructing even complex failures. Furthermore, the classic point-based adjustment—which rewards trivial detectors that never trigger alarms—is abandoned, and a fair evaluation protocol is adopted: raw metrics, separation by sample difficulty, and calibration using only normal data. Results on real datasets such as WADI, HAI, and SKAB show that this modeling outperforms deep detectors like USAD, TranAD, or GDN, especially on the subsets of difficult failures, where those detectors collapse while the new method maintains an AUC above 0.8 in two out of three cases. The advantage is greatest when the data exhibits pronounced multimodality, validating the initial hypothesis.

This line of work directly connects with the practical needs of companies managing critical infrastructures or manufacturing processes. Implementing a robust anomaly detection system requires more than a statistical model: it requires integrating AI for businesses that learns the normality of each facility, processes multimodal time series, and adapts to regime changes without continuous false alarms. At Q2BSTUDIO, we develop custom software for CPS environments, combining artificial intelligence, cybersecurity, and real-time analysis capabilities. Our AI agents can monitor thousands of variables simultaneously, discriminating between legitimate operational transitions and incipient failures, while AWS and Azure cloud service solutions ensure scalability and low latency. Additionally, integration with Power BI allows visualizing asset health status and generating contextualized alerts, all within a business intelligence services framework that transforms raw data into strategic decisions.

The described methodology also illuminates a path toward fairer and more reliable detection systems. By separating data by difficulty and not adjusting metrics retrospectively, the illusion of deceptive performance is avoided: many commercial detectors pass easy benchmarks but collapse in the face of real failures involving temporal correlations or multimodal deviations. Adopting a strict evaluation protocol, such as the one proposed here, is a necessary step to mature the reliability of cybersecurity in CPS. At Q2BSTUDIO, we apply these principles in the design of custom applications for sectors such as energy, logistics, or advanced manufacturing, where an undetected failure can translate into million-dollar shutdowns or safety risks. That is why we combine normality modeling with active cybersecurity techniques, continuous pentesting, and anomalous behavior analysis in OT networks. The convergence between artificial intelligence and business vision is the key to protecting complex systems without sacrificing productivity.

Ultimately, the challenge of modeling normality in cyber-physical systems transcends the academic realm: it is a technological enabler that allows companies to anticipate failures, optimize maintenance, and ensure operational continuity. From data science to plant implementation, each layer of the solution must be aligned with the multimodal reality of processes. The commitment to latent representations and explicit clustering, validated with honest metrics, offers a solid roadmap that at Q2BSTUDIO we are capable of taking into production. Whether through AWS and Azure cloud services to process large volumes of telemetry or by integrating AI agents that make decisions at the edge, our approach combines technical excellence with experience in AI for businesses. Because when normality is complex, detecting the anomalous requires more than a threshold: it requires a deep understanding of system behavior.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.