Time series anomaly detection based on time–frequency domain with masking strategy and contrastive learning

IF 8 2区 计算机科学 Q1 AUTOMATION & CONTROL SYSTEMS
Zhengkai Wang , Hui Liu , Longjing Kuang , Xueliang Zhang , Xiude Chen , Junzhao Du
{"title":"Time series anomaly detection based on time–frequency domain with masking strategy and contrastive learning","authors":"Zhengkai Wang ,&nbsp;Hui Liu ,&nbsp;Longjing Kuang ,&nbsp;Xueliang Zhang ,&nbsp;Xiude Chen ,&nbsp;Junzhao Du","doi":"10.1016/j.engappai.2025.112775","DOIUrl":null,"url":null,"abstract":"<div><div>Anomalies in time series often indicate underlying issues or system failures. Timely detection is critical to avoid severe consequences like system crashes and traffic accidents. Although some high-performing time series anomaly detection models already exist, several challenges remain: (1) Training Bias: Unsupervised anomaly detection models are typically trained on clean normal data. If the training data contains noise or potential anomalies, it can cause the model parameters to deviate from the ideal state during optimization, hindering accurate anomaly detection. (2) Distribution Shift: Time series exhibit periodicity and trends, and the training and testing data may have different distribution patterns. This may cause the model to incorrectly classify normal data as anomalies during testing. Therefore, we propose an anomaly detection network called TFCLNet, which utilizes a time–frequency domain masking strategy combined with contrastive learning. Since the frequency domain reveals potential periodicity and frequency variations, a dual-branch structure is adopted to simultaneously process time-domain and frequency-domain features. Additionally, we employ targeted masking strategies in both domains to reduce the impact of noise and address training bias, thereby learning the core data patterns of time series. Furthermore, unlike traditional contrastive learning strategies based on raw features, we minimize the distribution differences between the reconstructed time–frequency domain features through a contrastive objective function, mitigating the negative impact of distribution shifts in the original data on detection performance. Finally, adversarial training is incorporated to prevent overfitting. Experimental results on five real-world datasets demonstrate that TFCLNet outperforms all baseline models and achieves state-of-the-art performance.</div></div>","PeriodicalId":50523,"journal":{"name":"Engineering Applications of Artificial Intelligence","volume":"162 ","pages":"112775"},"PeriodicalIF":8.0000,"publicationDate":"2025-10-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Engineering Applications of Artificial Intelligence","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0952197625028064","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AUTOMATION & CONTROL SYSTEMS","Score":null,"Total":0}
引用次数: 0

Abstract

Anomalies in time series often indicate underlying issues or system failures. Timely detection is critical to avoid severe consequences like system crashes and traffic accidents. Although some high-performing time series anomaly detection models already exist, several challenges remain: (1) Training Bias: Unsupervised anomaly detection models are typically trained on clean normal data. If the training data contains noise or potential anomalies, it can cause the model parameters to deviate from the ideal state during optimization, hindering accurate anomaly detection. (2) Distribution Shift: Time series exhibit periodicity and trends, and the training and testing data may have different distribution patterns. This may cause the model to incorrectly classify normal data as anomalies during testing. Therefore, we propose an anomaly detection network called TFCLNet, which utilizes a time–frequency domain masking strategy combined with contrastive learning. Since the frequency domain reveals potential periodicity and frequency variations, a dual-branch structure is adopted to simultaneously process time-domain and frequency-domain features. Additionally, we employ targeted masking strategies in both domains to reduce the impact of noise and address training bias, thereby learning the core data patterns of time series. Furthermore, unlike traditional contrastive learning strategies based on raw features, we minimize the distribution differences between the reconstructed time–frequency domain features through a contrastive objective function, mitigating the negative impact of distribution shifts in the original data on detection performance. Finally, adversarial training is incorporated to prevent overfitting. Experimental results on five real-world datasets demonstrate that TFCLNet outperforms all baseline models and achieves state-of-the-art performance.
基于掩蔽策略和对比学习的时频域时间序列异常检测
时间序列中的异常通常表明潜在的问题或系统故障。及时检测对于避免系统崩溃和交通事故等严重后果至关重要。尽管已经存在一些高性能的时间序列异常检测模型,但仍然存在一些挑战:(1)训练偏差:无监督异常检测模型通常是在干净的正常数据上训练的。如果训练数据中含有噪声或潜在异常,则会导致模型参数在优化过程中偏离理想状态,影响异常的准确检测。(2)分布移位:时间序列具有周期性和趋势性,训练数据和测试数据可能具有不同的分布模式。这可能会导致模型在测试期间错误地将正常数据分类为异常。因此,我们提出了一种称为TFCLNet的异常检测网络,该网络利用时频域掩蔽策略结合对比学习。由于频域显示了潜在的周期性和频率变化,因此采用双分支结构同时处理时域和频域特征。此外,我们在这两个领域都采用了有针对性的掩蔽策略来减少噪声的影响和解决训练偏差,从而学习时间序列的核心数据模式。此外,与传统的基于原始特征的对比学习策略不同,我们通过对比目标函数最小化重构时频域特征之间的分布差异,减轻了原始数据分布变化对检测性能的负面影响。最后,对抗训练被纳入防止过拟合。在五个真实数据集上的实验结果表明,TFCLNet优于所有基线模型,达到了最先进的性能。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Engineering Applications of Artificial Intelligence
Engineering Applications of Artificial Intelligence 工程技术-工程:电子与电气
CiteScore
9.60
自引率
10.00%
发文量
505
审稿时长
68 days
期刊介绍: Artificial Intelligence (AI) is pivotal in driving the fourth industrial revolution, witnessing remarkable advancements across various machine learning methodologies. AI techniques have become indispensable tools for practicing engineers, enabling them to tackle previously insurmountable challenges. Engineering Applications of Artificial Intelligence serves as a global platform for the swift dissemination of research elucidating the practical application of AI methods across all engineering disciplines. Submitted papers are expected to present novel aspects of AI utilized in real-world engineering applications, validated using publicly available datasets to ensure the replicability of research outcomes. Join us in exploring the transformative potential of AI in engineering.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信