Contextual Semantic Understanding Framework for Anomaly Detection in Cyber–Physical Systems
Abstract
Anomaly detection is crucial for ensuring the security and reliability of cyber-physical systems (CPSs). Distinguishing anomalies comprehensively in such complex systems is challenging because of the sparsity and ambiguity these anomalies. Therefore, understanding both the scene and content becomes critical for identifying anomalies in diverse contexts. As a key form of semantic expression, textual information can effectively describe the scenes in which abnormal events occur. However, most existing methods primarily focus on capturing content through the visual modality while paying less attention to scenes and their integration with the textual modality. In this article, a contextual semantic understanding framework (CSUF) is proposed for weakly supervised anomaly detection, utilizing textual and visual modalities to represent scenes and content, respectively. It mainly integrates three modules: perception, understanding and classification. First, a bimodal contextual perception (BCP) module is designed to learn textual logic and enhance visual embeddings, facilitating the perception of diverse scenes and salient content. Next, a dynamic semantic understanding (DSU) module is developed to clarify the affiliation of content in a scene and the descriptive capacity of scene semantics for the content, thereby enhancing the understanding of anomalous content and its corresponding scene. Finally, a cycle-oriented classification (COC) module explores different feature spaces through heterogeneous dual classifiers, with a cycle-oriented mechanism aligning features with predicted scores and a dynamic adjustable loss addressing data imbalance and difficult-to-classify samples in CPSs. Extensive experiments demonstrate that CSUF achieves competitive performance compared with recent state-of-the-art methods, showing potential for perceiving and understanding real-world cyber-physical systems.