{"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/timemil-advancing-multivariate-time-series","title":"TimeMIL: Advancing Multivariate Time Series Classification via a Time-aware Multiple Instance Learning","arxiv_id":"2405.03140","date":"2024-05-06","proceeding":null,"authors":["Xiwen Chen","Peijie Qiu","Wenhui Zhu","Huayu Li","Hao Wang","Aristeidis Sotiras","Yalin Wang","Abolfazl Razi"],"abstract":"Deep neural networks, including transformers and convolutional neural networks, have significantly improved multivariate time series classification (MTSC). However, these methods often rely on supervised learning, which does not fully account for the sparsity and locality of patterns in time series data (e.g., diseases-related anomalous points in ECG). To address this challenge, we formally reformulate MTSC as a weakly supervised problem, introducing a novel multiple-instance learning (MIL) framework for better localization of patterns of interest and modeling time dependencies within time series. Our novel approach, TimeMIL, formulates the temporal correlation and ordering within a time-aware MIL pooling, leveraging a tokenized transformer with a specialized learnable wavelet positional token. The proposed method surpassed 26 recent state-of-the-art methods, underscoring the effectiveness of the weakly supervised TimeMIL in MTSC. The code will be available at https://github.com/xiwenc1/TimeMIL.","url_abs":"https://arxiv.org/abs/2405.03140v2","url_pdf":"https://arxiv.org/pdf/2405.03140v2.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":"timemil-advancing-multivariate-time-series","repo_url":"https://github.com/xiwenc1/TimeMIL","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"timemil-advancing-multivariate-time-series","repo_url":"https://github.com/chongqingnosubway/prompt-ot","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"timemil-advancing-multivariate-time-series","repo_url":"https://github.com/chongqingnosubway/selfreg-unet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"multiple-instance-learning","task_name":"Multiple Instance Learning"},{"task_slug":"time-series-1","task_name":"Time Series"},{"task_slug":"time-series-classification","task_name":"Time Series Classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2405.03140","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.03140"}},"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/chongqingnosubway/selfreg-unet","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/xiwenc1/TimeMIL","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/chongqingnosubway/prompt-ot","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":1,"ran_draft_wrong":4,"ran_honours":1,"unverified":6},"by_repo_kind":{"official":{"samples":1,"ran":0,"repositories":1},"listed":{"samples":11,"ran":6,"repositories":2}},"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":1,"samples":[{"code_sha256_prefix":"144d10b49baeb8a6","entry":"window_partition","repo":"chongqingnosubway/selfreg-unet","repo_kind":"listed","path":"src/train_acdc/network/swin_transformer_unet_skip_expand_decoder_sys.py","file_url":"https://github.com/chongqingnosubway/selfreg-unet/blob/HEAD/src/train_acdc/network/swin_transformer_unet_skip_expand_decoder_sys.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":2,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"144d10b49baeb8a6"}},{"code_sha256_prefix":"98f385d847636a3e","entry":"basic_clean","repo":"chongqingnosubway/prompt-ot","repo_kind":"listed","path":"clip/simple_tokenizer.py","file_url":"https://github.com/chongqingnosubway/prompt-ot/blob/HEAD/clip/simple_tokenizer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"98f385d847636a3e"}},{"code_sha256_prefix":"361a6b24f11fc50a","entry":"cosine_scheduler","repo":"chongqingnosubway/selfreg-unet","repo_kind":"listed","path":"src/train_synase/trainer_unet.py","file_url":"https://github.com/chongqingnosubway/selfreg-unet/blob/HEAD/src/train_synase/trainer_unet.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"361a6b24f11fc50a"}},{"code_sha256_prefix":"d919ae32e5e4e616","entry":"get_pairs","repo":"chongqingnosubway/prompt-ot","repo_kind":"listed","path":"clip/simple_tokenizer.py","file_url":"https://github.com/chongqingnosubway/prompt-ot/blob/HEAD/clip/simple_tokenizer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d919ae32e5e4e616"}},{"code_sha256_prefix":"9542161e9640b858","entry":"whitespace_clean","repo":"chongqingnosubway/prompt-ot","repo_kind":"listed","path":"clip/simple_tokenizer.py","file_url":"https://github.com/chongqingnosubway/prompt-ot/blob/HEAD/clip/simple_tokenizer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9542161e9640b858"}},{"code_sha256_prefix":"61bf152e6a42a184","entry":"window_reverse","repo":"chongqingnosubway/selfreg-unet","repo_kind":"listed","path":"src/train_acdc/network/swin_transformer_unet_skip_expand_decoder_sys.py","file_url":"https://github.com/chongqingnosubway/selfreg-unet/blob/HEAD/src/train_acdc/network/swin_transformer_unet_skip_expand_decoder_sys.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"61bf152e6a42a184"}},{"code_sha256_prefix":"48ac2bd4dcbfb717","entry":"build_model","repo":"chongqingnosubway/prompt-ot","repo_kind":"listed","path":"clip/model.py","file_url":"https://github.com/chongqingnosubway/prompt-ot/blob/HEAD/clip/model.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"48ac2bd4dcbfb717"}},{"code_sha256_prefix":"744f431fa034d187","entry":"extract_log_param","repo":"chongqingnosubway/prompt-ot","repo_kind":"listed","path":"extract_log_3.py","file_url":"https://github.com/chongqingnosubway/prompt-ot/blob/HEAD/extract_log_3.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"744f431fa034d187"}},{"code_sha256_prefix":"c2fcb03e27050404","entry":"find_batch","repo":"chongqingnosubway/prompt-ot","repo_kind":"listed","path":"extract_log_3.py","file_url":"https://github.com/chongqingnosubway/prompt-ot/blob/HEAD/extract_log_3.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c2fcb03e27050404"}},{"code_sha256_prefix":"e3480064efcfd332","entry":"harmonic_mean","repo":"chongqingnosubway/prompt-ot","repo_kind":"listed","path":"extract_log_3.py","file_url":"https://github.com/chongqingnosubway/prompt-ot/blob/HEAD/extract_log_3.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e3480064efcfd332"}},{"code_sha256_prefix":"fbf8c0143d9c48e3","entry":"load","repo":"chongqingnosubway/prompt-ot","repo_kind":"listed","path":"clip/clip.py","file_url":"https://github.com/chongqingnosubway/prompt-ot/blob/HEAD/clip/clip.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fbf8c0143d9c48e3"}},{"code_sha256_prefix":"353fa759f4707efc","entry":"mexican_hat_wavelet","repo":"xiwenc1/TimeMIL","repo_kind":"official","path":"models/timemil.py","file_url":"https://github.com/xiwenc1/TimeMIL/blob/HEAD/models/timemil.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":"353fa759f4707efc"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}