基于时空对比学习的动态图异常检测

冀俊忠 ,  邵珠琳 ,  雷名龙

北京工业大学学报 ›› 2026, Vol. 52 ›› Issue (9) : 949 -960.

PDF (2724KB)
北京工业大学学报 ›› 2026, Vol. 52 ›› Issue (9) : 949 -960. DOI: 10.11936/bjutxb2024110025
研究论文

基于时空对比学习的动态图异常检测

作者信息 +

Spatio-Temporal Contrastive Learning for Dynamic Graph Anomaly Detection

Author information +
文章历史 +
PDF (2788K)

摘要

为解决现有动态图异常检测方法难以准确建模不同时间尺度下异常模式的缺陷,提出一种基于时空对比学习的动态图异常检测(spatio-temporal contrastive learning for dynamic graph anomaly detection,STCL-DGAD)方法。该方法包括时空特征提取、时空对比学习和动态异常检测 3 个模块。首先,时空特征提取模块通过时间编码和基于 Transformer 的建模方法,提取含有时间动态性和全局结构信息的节点特征;其次,在时空对比学习模块中,设计一个全局-局部双粒度对比机制,其中全局对比通过指数衰减权重聚合历史交互信息,进而构建增强图以建模长期时空依赖,而局部对比则通过相邻时间片特征对齐来捕捉短时异常突变;最后,动态异常检测模块利用正则化策略增强方法的鲁棒性。实验结果表明,STCL-DGAD 在 4 个真实数据集上的异常检测性能优于现有方法。

Abstract

To address the limitation of existing dynamic graph anomaly detection methods in accurately modeling anomaly patterns at different time scales, a method of spatio-temporal contrastive learning for dynamic graph anomaly detection (STCL-DGAD) is proposed. The proposed method consists of three modules: spatio-temporal feature extraction, spatio-temporal contrastive learning, and dynamic anomaly detection. First, the spatio-temporal feature extraction module employed time encoding and a Transformer-based architecture to capture node features incorporating temporal dynamics and global structural information. Second, in the spatial-temporal contrastive learning module, a global-local dual-granularity contrastive mechanism was designed. The global contrastive part aggregated historical interaction information through exponentially decaying weights, and further constructed an augmented graph to model long-term spatial-temporal dependencies. The local contrastive part captured short-term abnormal mutations by aligning features of adjacent time snapshots. Finally, the dynamic anomaly detection module enhanced the model robustness via a regularization strategy. Experimental results on four real-world datasets demonstrate that STCL-DGAD outperforms existing methods in anomaly detection tasks.

关键词

异常检测 / 动态图 / 时空特征学习 / 对比学习 / 鲁棒性 / Transformer

Key words

anomaly detection / dynamic graph / spatio-temporal feature learning / contrastive learning / robustness / Transformer

引用本文

引用格式 ▾
冀俊忠,邵珠琳,雷名龙. 基于时空对比学习的动态图异常检测[J]. 北京工业大学学报, 2026, 52(9): 949-960 DOI:10.11936/bjutxb2024110025

登录浏览全文

4963

注册一个新账户 忘记密码

参考文献

[1]

Manzoor E, Milajerdi S M, Akoglu L . Fast memory-efficient anomaly detection in streaming heterogeneous graphs [C] // Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery Data Mining. New York: ACM, 2016: 1035-1044.

[2]

Eswaran D, Faloutsos C, Guha S, et al. SpotLight: detecting anomalies in streaming graphs [C]// Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. New York: ACM, 2018: 1378-1386.

[3]

李新叶, 余晓晔 . 适用于复杂结构的多路谱聚类算法的改进 [J]. 北京工业大学学报, 2013, 39(3): 425-429.

[4]

Li X Y, Yu X Y . Improvement on muti-way spectral clustering algorithm for complex distributed data [J]. Journal of Beijing University of Technology, 2013, 39(3): 425-429. (in Chinese)

[5]

尹宝才, 王文通, 王立春 . 深度学习研究综述 [J]. 北京工业大学学报, 2015, 41(1): 48-59.

[6]

Yin B C, Wang W T, Wang L C . Review of deep learning [J]. Journal of Beijing University of Technology, 2015, 41(1): 48-59. (in Chinese)

[7]

Zheng P P, Yuan S H, Wu X T, et al. One-class adversarial nets for fraud detection [J]. Proceedings of the AAAI Conference on Artificial Intelligence, 2019, 33(1): 1286-1293.

[8]

Jiao P F, Li T P, Xie Y J, et al. Generative evolutionary anomaly detection in dynamic networks [J]. IEEE Transactions on Knowledge and Data Engineering, 2023, 35(12): 12234-12248.

[9]

孙艳丰, 陈亮, 胡永利 . 基于对比学习的双分类器无监督域适配模型 [J]. 北京工业大学学报, 2023, 49(2): 197-204.

[10]

Sun Y F, Chen L, Hu Y L . Contrastive learning-based bi-classifier unsupervised domain adaptation model [J]. Journal of Beijing University of Technology, 2023, 49(2): 197-204. (in Chinese)

[11]

Liu Y X, Li Z, Pan S R, et al. Anomaly detection on attributed networks via contrastive self-supervised learning [J]. IEEE Transactions on Neural Networks and Learning Systems, 2022, 33(6): 2378-2392.

[12]

Wang L, Chang X F, Li S, et al. TCL: Transformer-based dynamic graph modelling via contrastive learning [PP/OL]. V1. arXiv (2021-05-17) [2024-10-30]. https://doi.org/10.48550/arXiv.2105.07944.

[13]

Yang Y Y, Zhang C L, Zhou T, et al. DCdetector: dual attention contrastive representation learning for time series anomaly detection [C] // Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. New York: ACM, 2023: 3033-3045.

[14]

Guo J H, Tang S L, Li J C, et al. RustGraph: robust anomaly detection in dynamic graphs by jointly learning structural-temporal dependency [J]. IEEE Transactions on Knowledge and Data Engineering, 2024, 36 (7): 3472-3485.

[15]

Liu J, Shang X, Han X, et al. Spatial-temporal memories enhanced graph autoencoder for anomaly detection in dynamic graphs[PP/OL]. V1. arXiv(2024-03-14) [ 2024-10-30]. https://arxiv.org/abs/2403. 09039.

[16]

Vaswani A, Shazeer N, Parmar N, et al. Attention is all you need [C] // Proceedings of the 31st International Conference on Neural Information Processing Systems. Red Hook, NY: Curran Associates, Inc. , 2017: 6000-6010.

[17]

De Choudhury M, Sundaram H, John A, et al. Social synchrony: predicting mimicry of user actions in online social media [C] // 2009 International Conference on Computational Science and Engineering. Piscataway, NJ: IEEE, 2009: 151-158.

[18]

Kumar S, Spezzano F, Subrahmanian V S, et al. Edge weight prediction in weighted signed networks [C]// 2016 IEEE 16th International Conference on Data Mining. Piscataway, NJ: IEEE, 2016: 221-230.

[19]

Kumar S, Hooi B, Makhija D, et al. REV2: fraudulent user prediction in rating platforms [C] // Proceedings of the Eleventh ACM International Conference on Web Search and Data Mining. New York: ACM, 2018: 333-341.

[20]

Zheng L, Li Z P, Li J, et al. AddGraph: anomaly detection in dynamic graph using attention-based temporal GCN[C]// Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence. San Francisco, CA: Morgan Kaufmann, 2019: 4419-4425.

[21]

Yu W C, Cheng W, Aggarwal C C, et al. NetWalk: a flexible deep embedding approach for anomaly detection in dynamic networks [C]// Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. New York: ACM, 2018: 2672-2681.

[22]

Ranshous S, Harenberg S, Sharma K, et al. A scalable approach for outlier detection in edge streams using sketch-based approximations [C] // Proceedings of the 2016 SIAM International Conference on Data Mining. Philadelphia, PA: Society for Industrial and Applied Mathematics, 2016: 189-197.

[23]

Grover A, Leskovec J . node2vec: scalable feature learning for networks [C]// Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. New York: ACM, 2016: 855-864.

[24]

Perozzi B, Al-Rfou R, Skiena S . DeepWalk: online learning of social representations [C] // Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. New York: ACM, 2014: 701-710.

[25]

Liu Y X, Pan S R, Wang Y G, et al. Anomaly detection in dynamic graphs via Transformer [J]. IEEE Transactions on Knowledge and Data Engineering, 2023, 35(12): 12081-12094.

[26]

Yang X, Zhao X J, Shen Z Q . A generalizable anomaly detection method in dynamic graphs [J]. Proceedings of the AAAI Conference on Artificial Intelligence, 2025, 39(20): 22001-22009.

基金资助

国家自然科学基金资助项目(62276010)

北京市教育委员会科学研究计划资助项目(KZ202210005009)

AI Summary AI Mindmap
PDF (2724KB)

0

访问

0

被引

详细

导航
相关文章

AI思维导图

/

〈 〉