计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 260100122-813.doi: 10.11896/jsjkx.260100122

• 大数据&数据科学 • 上一篇    下一篇

TCVAE:面向工业时序流数据的鲁棒半监督异常检测方法——以工业水泵房水位异常检测为例

王中磊1, 孙迪1, 许陆瑜2, 王天宇2, 黄帅博3, 董新新2   

  1. 1 国能徐州发电有限公司 江苏 徐州 221100
    2 南京师范大学能源与机械工程学院 南京 210023
    3 东南大学集成电路学院 南京 211189
  • 出版日期:2026-11-16 发布日期:2026-11-16
  • 通讯作者: 董新新(dongxx@njnu.edu.cn)
  • 作者简介:(16245086@ceic.com.cn)
  • 基金资助:
    江苏省青年科技人才托举工程项目(JSTJ-2025-208);南京师范大学引进人才科研启动基金(184080H201B74)

TCVAE:Robust Semi-supervised Anomaly Detection Method for Industrial Time Series Stream Data——Case Study on Water Level Anomaly Detection in Industrial Pump Rooms

WANG Zhonglei1, SUN Di1, XU Luyu2, WANG Tianyu2, HUANG Shuaibo3, DONG Xinxin2   

  1. 1 Guoneng Xuzhou Power Generation Co.,Ltd.,Xuzhou,Jiangsu 221100,China
    2 School of Energy and Mechanical Engineering,Nanjing Normal University,Nanjing 210023,China
    3 School of Integrated Circuits,Southeast University,Nanjing 211189,China
  • Published:2026-11-16 Online:2026-11-16
  • About author:WANG Zhonglei,born in 1984,engineer.His main research interests include electrical engineering and automatic control.
    DONG Xinxin,born in 1991,Ph.D,associate professor.His main research interest is engineering thermophysics and its process simulation.
  • Supported by:
    This work was supported by the Youth Talents Support Program in Jiangsu(TSTJ-2025-208) and Scientific Research Foundation for Recruited Talents,Nanjing Normal University(184080H201B74).

摘要: 工业水泵房的水位受到多种因素影响,包括地下水位、管道状态、水泵功率等,其变化通常呈现规律的周期特征。一旦发生异常波动,往往预示着设备故障或资源状况的突变。及时、准确的异常检测是基础设施运维的关键任务,对防范灾难性后果至关重要。但是,水位控制设施的管理不仅复杂耗时,且异常状态的稀缺性进一步加剧了检测难度,亟需一种自动化、高精准的检测方法。为此,提出基于时序对比变分自编码器的半监督异常检测方法。该方法构建了一个以双向长短期记忆网络为核心的编码器-译码器模型,用于捕捉水位时间序列的双向依赖关系,其核心创新在于设计了一种包含重构损失、对比损失和KL散度损失的混合损失函数。其中,对比损失通过引入一个动态更新的正常原型向量,在模型的隐空间中约束正常样本的特征向原型聚类,同时推远异常样本的特征,从而形成清晰且自适应的决策边界。实验结果表明,该方法能够有效利用少量标记异常样本,并对正常数据分布的领域偏移表现出强大的鲁棒性,在UCR时序数据集上仅利用5%的异常标签数据时,F1-score相较于传统深度自编码器模型提升6.2%,为水位异常检测设施的智能化运维提供了一种高效、可靠的技术方案。

关键词: 异常检测, 深度学习, 变分自编码器, 对比学习, 时间序列, 领域偏移

Abstract: The water level in industrial pump stations is influenced by various factors,including groundwater levels,pipeline conditions,and pump power,typically exhibiting a regular and periodic fluctuation curve.Abnormal variations in this curve generally indicate sudden anomalies in equipment or resources.Timely and accurate anomaly detection is a critical task in daily infrastructure maintenance and operation,essential for preventing catastrophic consequences.However,facility management for water level control is challenging and time-consuming.The rarity of anomalous states further exacerbates this issue,creating an urgent need for automated,efficient,and precise detection methods.To address this,this paper proposes a semi-supervised anomaly detection method based on a time-series contrastive variational autoencoder.the proposed method utilizes a bidirectional long short-term memory(Bi-LSTM) network-based encoder-decoder architecture to capture the bidirectional dependencies of water level time series.A key innovation lies in the design of a hybrid loss function composed of reconstruction loss,contrastive loss,and encoding loss.Specifically,the contrastive loss introduces a dynamically updated normal prototype vector.This mechanism constrains the features of normal samples to cluster toward the prototype in the model’s latent space while repelling abnormal sample features,thereby forming a clear and adaptive decision boundary.Experimental results demonstrate that the proposed method effectively utilizes a small amount of labeled anomaly samples and exhibits strong robustness against domain shifts in normal data distributions.On the UCR time-series dataset,with only 5% labeled anomaly data,the method achieves a 6.2% improvement in F1-score compared to traditional deep autoencoder models.This approach provides an efficient and reliable technical solution for the intelligent operation and maintenance of water level monitoring facilities.

Key words: Anomaly detection, Deep learning, Variational autoencoder, Contrastive learning, Time series, Domain shift

中图分类号: 

  • TP183
[1] KANYAMA M N,BHUNU SHAVA F,GAMUNDANI A M,et al.Machine learning applications for anomaly detection in Smart Water Metering Networks:A systematic review[J].Physics and Chemistry of the Earth,Parts A/B/C,2024,134:103558.
[2] HU C,ZHOU L,GONG Y,et al.Research on Water Level Anomaly Data Alarm Based on CNN-BiLSTM-DA Model[J].Water,2023,15(9):1659.
[3] XIE X,WANG B,WAN T,et al.Multivariate Abnormal Detection for Industrial Control Systems Using 1D CNN and GRU[J].IEEE Access,2020,8:88348-88359.
[4] NICHOLAUS I T,LEE J S,KANG D K.One-Class Convolutional Neural Networks for Water-Level Anomaly Detection[J].Sensors,2022,22(22):8764.
[5] ZHOU K,LIU Z,QIAO Y,et al.Domain Generalization:A Survey[J].IEEE Transactions on Pattern Analysis and Machine Intelligence,2023,45(4):4396-4415.
[6] GREGOR K,PAPAMAKARIOS G,BESSE F,et al.Temporal Difference Variational Auto-Encoder[PP/OL].arXiv:org/abs/1806.03107,2018.
[7] LI P,PEI Y,LI J.A comprehensive survey on design and application of autoencoder in deep learning[J].Applied Soft Computing,2023,138:110176.
[8] NICHOLAUS I T,PARK J R,JUNG K,et al.Anomaly Detection of Water Level Using Deep Autoencoder[J].Sensors,2021,21(19):6679.
[9] ASPERTI A,EVANGELISTA D,LOLI PICCOLOMINI E.A Survey on Variational Autoencoders from a Green AI Perspective[J].SN Computer Science,2021,2(4):301.
[10] HU H,WANG X,ZHANG Y,et al.A comprehensive survey on contrastive learning[J].Neurocomputing,2024,610:128645.
[11] DAU H A,BAGNALL A,KAMGAR K,et al.The UCR Time Series Archive[PP/OL] arXiv(2019-09-09)[2025-09-12].http://arxiv.org/abs/1810.07758.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!