{"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/rethinking-1d-cnn-for-time-series","title":"Omni-Scale CNNs: a simple and effective kernel size configuration for time series classification","arxiv_id":"2002.10061","date":"2020-02-24","proceeding":"ICLR 2022 4","authors":["Wensi Tang","Guodong Long","Lu Liu","Tianyi Zhou","Michael Blumenstein","Jing Jiang"],"abstract":"The Receptive Field (RF) size has been one of the most important factors for One Dimensional Convolutional Neural Networks (1D-CNNs) on time series classification tasks. Large efforts have been taken to choose the appropriate size because it has a huge influence on the performance and differs significantly for each dataset. In this paper, we propose an Omni-Scale block (OS-block) for 1D-CNNs, where the kernel sizes are decided by a simple and universal rule. Particularly, it is a set of kernel sizes that can efficiently cover the best RF size across different datasets via consisting of multiple prime numbers according to the length of the time series. The experiment result shows that models with the OS-block can achieve a similar performance as models with the searched optimal RF size and due to the strong optimal RF size capture ability, simple 1D-CNN models with OS-block achieves the state-of-the-art performance on four time series benchmarks, including both univariate and multivariate data from multiple domains. Comprehensive analysis and discussions shed light on why the OS-block can capture optimal RF sizes across different datasets. Code available [https://github.com/Wensi-Tang/OS-CNN]","url_abs":"https://arxiv.org/abs/2002.10061v3","url_pdf":"https://arxiv.org/pdf/2002.10061v3.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":"rethinking-1d-cnn-for-time-series","repo_url":"https://github.com/Wensi-Tang/OS-CNN","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"rethinking-1d-cnn-for-time-series","repo_url":"https://github.com/Anonymouslink/OS-CNN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"rethinking-1d-cnn-for-time-series","repo_url":"https://github.com/timeseriesAI/tsai/tree/main/tsai/models","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"time-series-1","task_name":"Time Series"},{"task_slug":"time-series","task_name":"Time Series Analysis"},{"task_slug":"time-series-classification","task_name":"Time Series Classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2002.10061","atlas_url":"https://app.syntology.ai/?focus=2002.10061","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2002.10061"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/Wensi-Tang/OS-CNN","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/timeseriesAI/tsai/tree/main/tsai/models","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Anonymouslink/OS-CNN","reach":null}],"summary":{"ran":3,"ran_honours":2,"ran_fixture":2,"unverified":4},"by_repo_kind":{"official":{"samples":8,"ran":4,"repositories":1},"listed":{"samples":3,"ran":3,"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":3,"samples":[{"code_sha256_prefix":"cd0ce30eebdcec3c","entry":"OS_CNN","repo":"Anonymouslink/OS-CNN","repo_kind":"listed","path":"Classifiers/OS_CNN/OS_CNN.py","file_url":"https://github.com/Anonymouslink/OS-CNN/blob/HEAD/Classifiers/OS_CNN/OS_CNN.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cd0ce30eebdcec3c"}},{"code_sha256_prefix":"0dee4616b6255680","entry":"SampaddingConv1D_BN","repo":"Anonymouslink/OS-CNN","repo_kind":"listed","path":"Classifiers/OS_CNN/OS_CNN.py","file_url":"https://github.com/Anonymouslink/OS-CNN/blob/HEAD/Classifiers/OS_CNN/OS_CNN.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0dee4616b6255680"}},{"code_sha256_prefix":"fdf58bf8189b9e66","entry":"build_layer_with_layer_parameter","repo":"Anonymouslink/OS-CNN","repo_kind":"listed","path":"Classifiers/OS_CNN/OS_CNN.py","file_url":"https://github.com/Anonymouslink/OS-CNN/blob/HEAD/Classifiers/OS_CNN/OS_CNN.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fdf58bf8189b9e66"}},{"code_sha256_prefix":"5017468adad0af6b","entry":"calculate_mask_index","repo":"Wensi-Tang/OS-CNN","repo_kind":"official","path":"Classifiers/OS_CNN/OS_block.py","file_url":"https://github.com/Wensi-Tang/OS-CNN/blob/HEAD/Classifiers/OS_CNN/OS_block.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5017468adad0af6b"}},{"code_sha256_prefix":"5dadd23392f4ca8c","entry":"creak_layer_mask","repo":"wensi-tang/os-cnn","repo_kind":"official","path":"Classifiers/OS_CNN/OS_block.py","file_url":"https://github.com/wensi-tang/os-cnn/blob/HEAD/Classifiers/OS_CNN/OS_block.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5dadd23392f4ca8c"}},{"code_sha256_prefix":"b7f140a01a2fa577","entry":"creak_layer_mask","repo":"Wensi-Tang/OS-CNN","repo_kind":"official","path":"Classifiers/OS_CNN/OS_block.py","file_url":"https://github.com/Wensi-Tang/OS-CNN/blob/HEAD/Classifiers/OS_CNN/OS_block.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b7f140a01a2fa577"}},{"code_sha256_prefix":"2613c4915a16c36d","entry":"creat_mask","repo":"Wensi-Tang/OS-CNN","repo_kind":"official","path":"Classifiers/OS_CNN/OS_block.py","file_url":"https://github.com/Wensi-Tang/OS-CNN/blob/HEAD/Classifiers/OS_CNN/OS_block.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2613c4915a16c36d"}},{"code_sha256_prefix":"c466ea8f0e598415","entry":"OS_block","repo":"Wensi-Tang/OS-CNN","repo_kind":"official","path":"Classifiers/OS_CNN/OS_block.py","file_url":"https://github.com/Wensi-Tang/OS-CNN/blob/HEAD/Classifiers/OS_CNN/OS_block.py","link_basis":"first_harvest_node","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":"c466ea8f0e598415"}},{"code_sha256_prefix":"b6c70c06f06614b0","entry":"build_layer_with_layer_parameter","repo":"Wensi-Tang/OS-CNN","repo_kind":"official","path":"Classifiers/OS_CNN/OS_block.py","file_url":"https://github.com/Wensi-Tang/OS-CNN/blob/HEAD/Classifiers/OS_CNN/OS_block.py","link_basis":"first_harvest_node","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":"b6c70c06f06614b0"}},{"code_sha256_prefix":"3b08b25c6a4703e0","entry":"calculate_mask_index","repo":"wensi-tang/os-cnn","repo_kind":"official","path":"Classifiers/OS_CNN/OS_block.py","file_url":"https://github.com/wensi-tang/os-cnn/blob/HEAD/Classifiers/OS_CNN/OS_block.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3b08b25c6a4703e0"}},{"code_sha256_prefix":"a14cbea422c27566","entry":"creat_mask","repo":"wensi-tang/os-cnn","repo_kind":"official","path":"Classifiers/OS_CNN/OS_block.py","file_url":"https://github.com/wensi-tang/os-cnn/blob/HEAD/Classifiers/OS_CNN/OS_block.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a14cbea422c27566"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}