{"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/deep-explicit-duration-switching-models-for","title":"Deep Explicit Duration Switching Models for Time Series","arxiv_id":"2110.13878","date":"2021-10-26","proceeding":"NeurIPS 2021 12","authors":["Abdul Fatir Ansari","Konstantinos Benidis","Richard Kurle","Ali Caner Turkmen","Harold Soh","Alexander J. Smola","Yuyang Wang","Tim Januschowski"],"abstract":"Many complex time series can be effectively subdivided into distinct regimes that exhibit persistent dynamics. Discovering the switching behavior and the statistical patterns in these regimes is important for understanding the underlying dynamical system. We propose the Recurrent Explicit Duration Switching Dynamical System (RED-SDS), a flexible model that is capable of identifying both state- and time-dependent switching dynamics. State-dependent switching is enabled by a recurrent state-to-switch connection and an explicit duration count variable is used to improve the time-dependent switching behavior. We demonstrate how to perform efficient inference using a hybrid algorithm that approximates the posterior of the continuous states via an inference network and performs exact inference for the discrete switches and counts. The model is trained by maximizing a Monte Carlo lower bound of the marginal log-likelihood that can be computed efficiently as a byproduct of the inference routine. Empirical results on multiple datasets demonstrate that RED-SDS achieves considerable improvement in time series segmentation and competitive forecasting performance against the state of the art.","url_abs":"https://arxiv.org/abs/2110.13878v1","url_pdf":"https://arxiv.org/pdf/2110.13878v1.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":"deep-explicit-duration-switching-models-for","repo_url":"https://github.com/abdulfatir/REDSDS","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"time-series-1","task_name":"Time Series"},{"task_slug":"time-series","task_name":"Time Series Analysis"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2110.13878","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.13878"}},"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/abdulfatir/REDSDS","reach":null}],"summary":{"ran":1,"ran_fixture":3,"ran_honours":4,"ran_draft_wrong":1,"unverified":1},"by_repo_kind":{"official":{"samples":10,"ran":9,"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":10,"samples":[{"code_sha256_prefix":"9d59c12ab6002ebf","entry":"Base","repo":"abdulfatir/REDSDS","repo_kind":"official","path":"src/model.py","file_url":"https://github.com/abdulfatir/REDSDS/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9d59c12ab6002ebf"}},{"code_sha256_prefix":"8f95b02948b13932","entry":"backward_pass_hsmm","repo":"abdulfatir/REDSDS","repo_kind":"official","path":"src/model.py","file_url":"https://github.com/abdulfatir/REDSDS/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8f95b02948b13932"}},{"code_sha256_prefix":"f115539fbda2d216","entry":"clamp_probabilities","repo":"abdulfatir/REDSDS","repo_kind":"official","path":"src/model.py","file_url":"https://github.com/abdulfatir/REDSDS/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f115539fbda2d216"}},{"code_sha256_prefix":"71c98d3fe37b9286","entry":"forward_backward_hsmm","repo":"abdulfatir/REDSDS","repo_kind":"official","path":"src/model.py","file_url":"https://github.com/abdulfatir/REDSDS/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"71c98d3fe37b9286"}},{"code_sha256_prefix":"41f77ad745a234c2","entry":"forward_pass_hsmm","repo":"abdulfatir/REDSDS","repo_kind":"official","path":"src/model.py","file_url":"https://github.com/abdulfatir/REDSDS/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"41f77ad745a234c2"}},{"code_sha256_prefix":"c607261026706ea8","entry":"get_precision","repo":"abdulfatir/REDSDS","repo_kind":"official","path":"src/model.py","file_url":"https://github.com/abdulfatir/REDSDS/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c607261026706ea8"}},{"code_sha256_prefix":"17f389117764c8c4","entry":"normalize_logprob","repo":"abdulfatir/REDSDS","repo_kind":"official","path":"src/model.py","file_url":"https://github.com/abdulfatir/REDSDS/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"17f389117764c8c4"}},{"code_sha256_prefix":"78327e7d8435ed60","entry":"torch2numpy","repo":"abdulfatir/REDSDS","repo_kind":"official","path":"src/model.py","file_url":"https://github.com/abdulfatir/REDSDS/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"78327e7d8435ed60"}},{"code_sha256_prefix":"b2d1e5acc2badf50","entry":"unravel_indices","repo":"abdulfatir/REDSDS","repo_kind":"official","path":"src/model.py","file_url":"https://github.com/abdulfatir/REDSDS/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b2d1e5acc2badf50"}},{"code_sha256_prefix":"15da2641c847672b","entry":"REDSDS","repo":"abdulfatir/REDSDS","repo_kind":"official","path":"src/model.py","file_url":"https://github.com/abdulfatir/REDSDS/blob/HEAD/src/model.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":"15da2641c847672b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}