{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/time-series-anomaly-detection-using-diffusion","title":"Time Series Anomaly Detection using Diffusion-based Models","arxiv_id":"2311.01452","date":"2023-11-02","proceeding":null,"authors":["Ioana Pintilie","Andrei Manolache","Florin Brad"],"abstract":"Diffusion models have been recently used for anomaly detection (AD) in images. In this paper we investigate whether they can also be leveraged for AD on multivariate time series (MTS). We test two diffusion-based models and compare them to several strong neural baselines. We also extend the PA%K protocol, by computing a ROCK-AUC metric, which is agnostic to both the detection threshold and the ratio K of correctly detected points. Our models outperform the baselines on synthetic datasets and are competitive on real-world datasets, illustrating the potential of diffusion-based methods for AD in multivariate time series.","url_abs":"https://arxiv.org/abs/2311.01452v1","url_pdf":"https://arxiv.org/pdf/2311.01452v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"time-series-anomaly-detection-using-diffusion","repo_url":"https://github.com/fbrad/diffusionae","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"anomaly-detection","task_name":"Anomaly Detection"},{"task_slug":"time-series-1","task_name":"Time Series"},{"task_slug":"time-series-anomaly-detection","task_name":"Time Series Anomaly Detection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2311.01452","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.01452"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/fbrad/diffusionae","reach":null}],"summary":{"ran_draft_wrong":2,"unverified":3},"by_repo_kind":{"official":{"samples":5,"ran":2,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":5,"samples":[{"code_sha256_prefix":"100468f1acad24f2","entry":"convert_to_windows","repo":"fbrad/diffusionae","repo_kind":"official","path":"DiffusionAE/train_diffusion_val.py","file_url":"https://github.com/fbrad/diffusionae/blob/HEAD/DiffusionAE/train_diffusion_val.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"100468f1acad24f2"}},{"code_sha256_prefix":"590d30405f26e671","entry":"load_dataset","repo":"fbrad/diffusionae","repo_kind":"official","path":"DiffusionAE/train_diffusion_val.py","file_url":"https://github.com/fbrad/diffusionae/blob/HEAD/DiffusionAE/train_diffusion_val.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"590d30405f26e671"}},{"code_sha256_prefix":"cf8749a54be6e598","entry":"load_dataset","repo":"fbrad/diffusionae","repo_kind":"official","path":"DiffusionAE/train_transformer_val.py","file_url":"https://github.com/fbrad/diffusionae/blob/HEAD/DiffusionAE/train_transformer_val.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cf8749a54be6e598"}},{"code_sha256_prefix":"87a941ac2efbdd60","entry":"load_from_checkpoint","repo":"fbrad/diffusionae","repo_kind":"official","path":"DiffusionAE/train_transformer_val.py","file_url":"https://github.com/fbrad/diffusionae/blob/HEAD/DiffusionAE/train_transformer_val.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"87a941ac2efbdd60"}},{"code_sha256_prefix":"098daffbfa69c989","entry":"load_model","repo":"fbrad/diffusionae","repo_kind":"official","path":"DiffusionAE/train_diffusion_val.py","file_url":"https://github.com/fbrad/diffusionae/blob/HEAD/DiffusionAE/train_diffusion_val.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"098daffbfa69c989"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}