{"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/discovering-dynamic-functional-brain-networks","title":"Discovering Dynamic Functional Brain Networks via Spatial and Channel-wise Attention","arxiv_id":"2205.09576","date":"2022-05-19","proceeding":null,"authors":["Yiheng Liu","Enjie Ge","Mengshen He","Zhengliang Liu","Shijie Zhao","Xintao Hu","Dajiang Zhu","Tianming Liu","Bao Ge"],"abstract":"Using deep learning models to recognize functional brain networks (FBNs) in functional magnetic resonance imaging (fMRI) has been attracting increasing interest recently. However, most existing work focuses on detecting static FBNs from entire fMRI signals, such as correlation-based functional connectivity. Sliding-window is a widely used strategy to capture the dynamics of FBNs, but it is still limited in representing intrinsic functional interactive dynamics at each time step. And the number of FBNs usually need to be set manually. More over, due to the complexity of dynamic interactions in brain, traditional linear and shallow models are insufficient in identifying complex and spatially overlapped FBNs across each time step. In this paper, we propose a novel Spatial and Channel-wise Attention Autoencoder (SCAAE) for discovering FBNs dynamically. The core idea of SCAAE is to apply attention mechanism to FBNs construction. Specifically, we designed two attention modules: 1) spatial-wise attention (SA) module to discover FBNs in the spatial domain and 2) a channel-wise attention (CA) module to weigh the channels for selecting the FBNs automatically. We evaluated our approach on ADHD200 dataset and our results indicate that the proposed SCAAE method can effectively recover the dynamic changes of the FBNs at each fMRI time step, without using sliding windows. More importantly, our proposed hybrid attention modules (SA and CA) do not enforce assumptions of linearity and independence as previous methods, and thus provide a novel approach to better understanding dynamic functional brain networks.","url_abs":"https://arxiv.org/abs/2205.09576v2","url_pdf":"https://arxiv.org/pdf/2205.09576v2.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":"discovering-dynamic-functional-brain-networks","repo_url":"https://github.com/WhatAboutMyStar/SCAAE","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":null,"task_name":"Functional Connectivity"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2205.09576","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2205.09576"}},"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/WhatAboutMyStar/SCAAE","reach":null}],"summary":{"ran":5,"unverified":2},"by_repo_kind":{"official":{"samples":7,"ran":5,"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":7,"samples":[{"code_sha256_prefix":"69b1fb5d058d4df7","entry":"ChannelWiseAttention","repo":"WhatAboutMyStar/SCAAE","repo_kind":"official","path":"model.py","file_url":"https://github.com/WhatAboutMyStar/SCAAE/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"69b1fb5d058d4df7"}},{"code_sha256_prefix":"950a2eac894eefa2","entry":"ConvBlock","repo":"WhatAboutMyStar/SCAAE","repo_kind":"official","path":"model.py","file_url":"https://github.com/WhatAboutMyStar/SCAAE/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"950a2eac894eefa2"}},{"code_sha256_prefix":"a569ae366f69c37e","entry":"ConvBlockShortCut","repo":"WhatAboutMyStar/SCAAE","repo_kind":"official","path":"model.py","file_url":"https://github.com/WhatAboutMyStar/SCAAE/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a569ae366f69c37e"}},{"code_sha256_prefix":"b4da80f4ea404f3d","entry":"PatchesReconstruction","repo":"WhatAboutMyStar/SCAAE","repo_kind":"official","path":"model.py","file_url":"https://github.com/WhatAboutMyStar/SCAAE/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b4da80f4ea404f3d"}},{"code_sha256_prefix":"26c4eb97deb29053","entry":"SpatialAttention","repo":"WhatAboutMyStar/SCAAE","repo_kind":"official","path":"model.py","file_url":"https://github.com/WhatAboutMyStar/SCAAE/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"26c4eb97deb29053"}},{"code_sha256_prefix":"f758e2ec77463070","entry":"SAEncoder","repo":"WhatAboutMyStar/SCAAE","repo_kind":"official","path":"model.py","file_url":"https://github.com/WhatAboutMyStar/SCAAE/blob/HEAD/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":"f758e2ec77463070"}},{"code_sha256_prefix":"2d9c1dec8d270c54","entry":"SpatialActivation","repo":"WhatAboutMyStar/SCAAE","repo_kind":"official","path":"model.py","file_url":"https://github.com/WhatAboutMyStar/SCAAE/blob/HEAD/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":"2d9c1dec8d270c54"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}