Papers › Self-Supervised Spatial-Temporal Normality Learning for Time Series Anomaly Detection

Self-Supervised Spatial-Temporal Normality Learning for Time Series Anomaly Detection

28 Jun 2024arXiv:2406.19770archive 2025-07-28

Yutong Chen, Hongzuo Xu, Guansong Pang, Hezhe Qiao, Yuan Zhou, Mingsheng Shang

Time Series Anomaly Detection (TSAD) finds widespread applications across various domains such as financial markets, industrial production, and healthcare. Its primary objective is to learn the normal patterns of time series data, thereby identifying deviations in test samples. Most existing TSAD methods focus on modeling data from the temporal dimension, while ignoring the semantic information in the spatial dimension. To address this issue, we introduce a novel approach, called Spatial-Temporal Normality learning (STEN). STEN is composed of a sequence Order prediction-based Temporal Normality learning (OTN) module that captures the temporal correlations within sequences, and a Distance prediction-based Spatial Normality learning (DSN) module that learns the relative spatial relations between sequences in a feature space. By synthesizing these two modules, STEN learns expressive spatial-temporal representations for the normal patterns hidden in the time series data. Extensive experiments on five popular TSAD benchmarks show that STEN substantially outperforms state-of-the-art competing methods. Our code is available at https://github.com/mala-lab/STEN.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.19770")

Code

Syntology Ran 18 of 22 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 18 ran with no contract checked.

By repository: official repository: 22 samples from 1 repository, 18 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mala-lab/sten officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

22 samples harvested; 18 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

18ran
4unverified

Licence: 22 of the 22 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mala-lab/sten. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

E_gt_func mala-lab/sten/metrics/affiliation/_affiliation_zone.py official repository ran no licence file found · pointer only · d404bee58fedcd26 · report
auc_pr mala-lab/sten/metrics/_anomaly_detection.py official repository ran fingerprinted no licence file found · pointer only · 5b15105ac4a406f6 · report
auc_roc mala-lab/sten/metrics/_anomaly_detection.py official repository ran fingerprinted no licence file found · pointer only · 69f0cb37c656f2ed · report
convert_vector_to_events mala-lab/sten/metrics/affiliation/generics.py official repository ran no licence file found · pointer only · 8f8697a132293736 · report
generate_data mala-lab/sten/utils/data.py official repository ran no licence file found · pointer only · 8a3cb24dcc21da58 · report
get_adjust_F1PA mala-lab/sten/metrics/metrics.py official repository ran no licence file found · pointer only · fbe988b1d8858b93 · report
get_sub_seqs mala-lab/sten/utils/utility.py official repository ran no licence file found · pointer only · 2ad5606541f726c4 · report
get_sub_seqs_label mala-lab/sten/utils/utility.py official repository ran fingerprinted no licence file found · pointer only · 6609607d0b6bb345 · report
has_point_anomalies mala-lab/sten/metrics/affiliation/generics.py official repository ran no licence file found · pointer only · 356c56fa1f7667a1 · report
import_ts_data_unsupervised mala-lab/sten/utils/dataloading.py official repository ran no licence file found · pointer only · fb1b5ffef7b2069f · report
infer_Trange mala-lab/sten/metrics/affiliation/generics.py official repository ran no licence file found · pointer only · d2e653db871e18d5 · report
interval_intersection mala-lab/sten/metrics/affiliation/_integral_interval.py official repository ran fingerprinted no licence file found · pointer only · 19f48f4d2af20ece · report
interval_length mala-lab/sten/metrics/affiliation/_integral_interval.py official repository ran fingerprinted no licence file found · pointer only · 224f0e59f24ef978 · report
point_adjustment mala-lab/sten/metrics/_tsad_adjustment.py official repository ran no licence file found · pointer only · f64cec27bc739f6b · report
sum_interval_lengths mala-lab/sten/metrics/affiliation/_integral_interval.py official repository ran no licence file found · pointer only · 64b9b03651a884fd · report
t_start mala-lab/sten/metrics/affiliation/_affiliation_zone.py official repository ran no licence file found · pointer only · 69f0580795e596bb · report
t_stop mala-lab/sten/metrics/affiliation/_affiliation_zone.py official repository ran no licence file found · pointer only · d67287c6f0371922 · report
tabular_metrics mala-lab/sten/metrics/_anomaly_detection.py official repository ran fingerprinted no licence file found · pointer only · f97620592d90b232 · report
affiliation_precision_distance mala-lab/sten/metrics/affiliation/_single_ground_truth_event.py official repository unverified no licence file found · pointer only · 5217682972bdb339 · report
affiliation_precision_proba mala-lab/sten/metrics/affiliation/_single_ground_truth_event.py official repository unverified no licence file found · pointer only · 8609c6f18260493f · report
affiliation_recall_distance mala-lab/sten/metrics/affiliation/_single_ground_truth_event.py official repository unverified no licence file found · pointer only · 4967c38c3a40570a · report
pr_from_events mala-lab/sten/metrics/affiliation/metrics.py official repository unverified no licence file found · pointer only · 055f6e8b0a798866 · report

Tasks

Anomaly DetectionTime SeriesTime Series Anomaly Detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections