Papers › Monte Carlo EM for Deep Time Series Anomaly Detection

Monte Carlo EM for Deep Time Series Anomaly Detection

29 Dec 2021arXiv:2112.14436archive 2025-07-28

François-Xavier Aubet, Daniel Zügner, Jan Gasthaus

Time series data are often corrupted by outliers or other kinds of anomalies. Identifying the anomalous points can be a goal on its own (anomaly detection), or a means to improving performance of other time series tasks (e.g. forecasting). Recent deep-learning-based approaches to anomaly detection and forecasting commonly assume that the proportion of anomalies in the training data is small enough to ignore, and treat the unlabeled data as coming from the nominal data distribution. We present a simple yet effective technique for augmenting existing time series models so that they explicitly account for anomalies in the training data. By augmenting the training data with a latent anomaly indicator variable whose distribution is inferred while training the underlying model using Monte Carlo EM, our method simultaneously infers anomalous points while improving model performance on nominal data. We demonstrate the effectiveness of the approach by combining it with a simple feed-forward forecasting model. We investigate how anomalies in the train set affect the training of forecasting models, which are commonly used for time series anomaly detection, and show that our method improves the training of the model.

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="2112.14436")

Code

Syntology Ran 0 of 13 code samples harvested from 1 repository linked to this paper; 13 have no recorded run.

By repository: community (archive-listed): 13 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

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

13 samples harvested; 0 ran; 0 honoured the contract we drafted; 13 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.

13unverified

Licence: 0 of the 13 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 Francois-Aubet/gluon-ts. “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.

batcher Francois-Aubet/gluon-ts/src/gluonts/itertools.py community (archive-listed) unverified Apache-2.0 (permissive) · 668d3b50df5c6b08 · report
equals Francois-Aubet/gluon-ts/src/gluonts/core/component.py community (archive-listed) unverified Apache-2.0 (permissive) · ae316cd671208d8e · report
equals_default_impl Francois-Aubet/gluon-ts/src/gluonts/core/component.py community (archive-listed) unverified Apache-2.0 (permissive) · f537ced69a466e08 · report
fqname_for Francois-Aubet/gluon-ts/src/gluonts/core/_base.py community (archive-listed) unverified Apache-2.0 (permissive) · f5f4848418aecf04 · report
get_git_archive_version Francois-Aubet/gluon-ts/src/gluonts/_version.py community (archive-listed) unverified Apache-2.0 (permissive) · e612a4185e637661 · report
get_git_version Francois-Aubet/gluon-ts/src/gluonts/_version.py community (archive-listed) unverified Apache-2.0 (permissive) · caf1d6df99f2e3d9 · report
inject Francois-Aubet/gluon-ts/src/gluonts/core/settings.py community (archive-listed) unverified Apache-2.0 (permissive) · 8cb7cc0f64c46e08 · report
let Francois-Aubet/gluon-ts/src/gluonts/core/settings.py community (archive-listed) unverified Apache-2.0 (permissive) · 09ee4e3cd00b0599 · report
maybe_len Francois-Aubet/gluon-ts/src/gluonts/itertools.py community (archive-listed) unverified Apache-2.0 (permissive) · 7835f8524ede6d0c · report
prod Francois-Aubet/gluon-ts/src/gluonts/itertools.py community (archive-listed) unverified Apache-2.0 (permissive) · b5c0811c003f958f · report
search_for Francois-Aubet/gluon-ts/src/gluonts/_version.py community (archive-listed) unverified Apache-2.0 (permissive) · 98e7e3ca03b44856 · report
to_markdown Francois-Aubet/gluon-ts/evaluations/show_results.py community (archive-listed) unverified Apache-2.0 (permissive) · d6d507841deaf78b · report
tqdm Francois-Aubet/gluon-ts/src/gluonts/gluonts_tqdm.py community (archive-listed) unverified Apache-2.0 (permissive) · 03c6c7d9c6ace85c · report

Tasks

Anomaly DetectionTime SeriesTime Series AnalysisTime Series Anomaly Detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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