Frequency-filtered attention for cross-species fMRI time series prediction under small-sample learning.
2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 2 matches · all tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § STAR★Methods › Method details › Input construction and temporal normalization ↔ layers/StandardNorm.py, the whole file · a weak match · score 0.64 · learnable affine parameters, numerical stability, norm · block
oscr:b:QHHQ6H0Y48P6B-A· Report a mismatch - [2] § STAR★Methods › Method details › Input construction and temporal normalization ↔ layers/RevIN.py, the whole file · a weak match · score 0.63 · learnable affine parameters, numerical stability, norm · block
oscr:b:27H6PBAB4GJB0-Q· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 68 lines · 2.1 KB · no license · 1 match
- import torch
- import torch.nn as nn
- class Normalize(nn.Module):
- def __init__(self, num_features: int, eps=1e-5, affine=False, subtract_last=False, non_norm=False):
- """
- :param num_features: the number of features or channels
- :param eps: a value added for numerical stability
- :param affine: if True, RevIN has learnable affine parameters
- """
- super(Normalize, self).__init__()
- self.num_features = num_features
- self.eps = eps
- self.affine = affine
- self.subtract_last = subtract_last
- self.non_norm = non_norm
- if self.affine:
- self._init_params()
- def forward(self, x, mode: str):
- if mode == 'norm':
- self._get_statistics(x)
- x = self._normalize(x)
- elif mode == 'denorm':
- x = self._denormalize(x)
- else:
- raise NotImplementedError
- return x
- def _init_params(self):
- # initialize RevIN params: (C,)
- self.affine_weight = nn.Parameter(torch.ones(self.num_features))
- self.affine_bias = nn.Parameter(torch.zeros(self.num_features))
- def _get_statistics(self, x):
- dim2reduce = tuple(range(1, x.ndim - 1))
- if self.subtract_last:
- self.last = x[:, -1, :].unsqueeze(1)
- else:
- self.mean = torch.mean(x, dim=dim2reduce, keepdim=True).detach()
- self.stdev = torch.sqrt(torch.var(x, dim=dim2reduce, keepdim=True, unbiased=False) + self.eps).detach()
- def _normalize(self, x):
- if self.non_norm:
- return x
- if self.subtract_last:
- x = x - self.last
- else:
- x = x - self.mean
- x = x / self.stdev
- if self.affine:
- x = x * self.affine_weight
- x = x + self.affine_bias
- return x
- def _denormalize(self, x):
- if self.non_norm:
- return x
- if self.affine:
- x = x - self.affine_bias
- x = x / (self.affine_weight + self.eps * self.eps)
- x = x * self.stdev
- if self.subtract_last:
- x = x + self.last
- else:
- x = x + self.mean
- return x
StandardNorm.py at commit f48e5a4, no license · at the source
Overview
- BrainCog Lab, Institute of Automation, Chinese Academy of Sciences, Beijing, China
- School of Future Technology, University of Chinese Academy of Sciences, Beijing, China
- School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing, China
- Center for Long-term AI, Beijing, China
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repositories
Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.
Brain-Cog-Lab/FFAformer
cc7d5e6929267f8d6605f30eb9184d22ebef0705, 26 March 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
27 files
- data_provider/
__init__.py , Python, 1 line - data_provider/
data_factory.py , Python, 58 lines - data_provider/
data_loader.py , Python, 100 lines - experiments/
exp_basic.py , Python, 39 lines - experiments/
exp_forecast.py , Python, 912 lines - hum_normal.py, Python, 632 lines
- hum_task.py, Python, 631 lines
- layers/
Embed.py , Python, 234 lines - layers/
RevIN.py , Python, 94 lines - layers/
SelfAttention_Family.py , Python, 470 lines - layers/
StandardNorm.py , Python, 68 lines - layers/
Transformer_EncDec.py , Python, 633 lines - layers/
__init__.py , Python, 1 line - mac_normal.py, Python, 632 lines
- mac_task.py, Python, 629 lines
- model/
Embed.py , Python, 190 lines - model/
FrePatchTST3_attn_ablati , Python, 200 lineson.py - model/
__init__.py , Python, 1 line - mou_normal.py, Python, 628 lines
- mou_task.py, Python, 627 lines
- utils/
CKA.py , Python, 92 lines - utils/
__init__.py , Python, 1 line - utils/
masking.py , Python, 26 lines - utils/
metrics.py , Python, 178 lines - utils/
timefeatures.py , Python, 148 lines - utils/
tools.py , Python, 502 lines - README.md, Text, 40 lines
Zenodo 21543542
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
27 files
- data_provider/
__init__.py , Python, 1 line - data_provider/
data_factory.py , Python, 58 lines - data_provider/
data_loader.py , Python, 100 lines - experiments/
exp_basic.py , Python, 39 lines - experiments/
exp_forecast.py , Python, 912 lines - hum_normal.py, Python, 632 lines
- hum_task.py, Python, 631 lines
- layers/
Embed.py , Python, 234 lines - layers/
RevIN.py , Python, 94 lines - layers/
SelfAttention_Family.py , Python, 470 lines - layers/
StandardNorm.py , Python, 68 lines - layers/
Transformer_EncDec.py , Python, 633 lines - layers/
__init__.py , Python, 1 line - mac_normal.py, Python, 632 lines
- mac_task.py, Python, 629 lines
- model/
Embed.py , Python, 190 lines - model/
FrePatchTST3_attn_ablati , Python, 200 lineson.py - model/
__init__.py , Python, 1 line - mou_normal.py, Python, 628 lines
- mou_task.py, Python, 627 lines
- utils/
CKA.py , Python, 92 lines - utils/
__init__.py , Python, 1 line - utils/
masking.py , Python, 26 lines - utils/
metrics.py , Python, 178 lines - utils/
timefeatures.py , Python, 148 lines - utils/
tools.py , Python, 502 lines - README.md, Text, 40 lines
annaoliver/ffaformer
f48e5a49c57fd68e54c27478cc08a181ae2bf2ec, 26 March 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
27 files
- data_provider/
__init__.py , Python, 1 line - data_provider/
data_factory.py , Python, 58 lines - data_provider/
data_loader.py , Python, 100 lines - experiments/
exp_basic.py , Python, 39 lines - experiments/
exp_forecast.py , Python, 912 lines - hum_normal.py, Python, 632 lines
- hum_task.py, Python, 631 lines
- layers/
Embed.py , Python, 234 lines - layers/
RevIN.py , Python, 94 lines, 1 match - layers/
SelfAttention_Family.py , Python, 470 lines - layers/
StandardNorm.py , Python, 68 lines, 1 match - layers/
Transformer_EncDec.py , Python, 633 lines - layers/
__init__.py , Python, 1 line - mac_normal.py, Python, 632 lines
- mac_task.py, Python, 629 lines
- model/
Embed.py , Python, 190 lines - model/
FrePatchTST3_attn_ablati , Python, 200 lineson.py - model/
__init__.py , Python, 1 line - mou_normal.py, Python, 628 lines
- mou_task.py, Python, 627 lines
- utils/
CKA.py , Python, 92 lines - utils/
__init__.py , Python, 1 line - utils/
masking.py , Python, 26 lines - utils/
metrics.py , Python, 178 lines - utils/
timefeatures.py , Python, 148 lines - utils/
tools.py , Python, 502 lines - README.md, Text, 40 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 3 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 78 scripts, each with its path and the digest of its content;
- 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- data.mendeley.com/
datasets/ , at Mendeley Data; found in the resources table7y6xr753g4 - data.mendeley.com/
datasets/ , at Mendeley Data; found in the resources tabler2w865c959 - data.mendeley.com/
datasets/ , at Mendeley Data; found in the resources tablethpszcwcgx - doi:10.17632/
7y6xr753g4.2 , at the source; found in the references - doi:10.17632/
r2w865c959.2 , at the source; found in the references - doi:10.17632/
thpszcwcgx.3 , at the source; found in the references
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it says that the data are available on request
Read it in the paper: doi.org/10.1016/j.isci.2026.117173.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 3, 28 September 2026
- Authors: added Chengcheng Du (0009-0009-6127-1123); Qian Zhang (0000-0001-5314-4233); removed Chengcheng Du; Qian Zhang
- Funding: added National Natural Science Foundation of China: 32571284; Chinese Academy of Sciences: XDB1010302; Institute of Automation, Chinese Academy of Sciences: E411230101
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 3 keywords, 33 references.
Cite
This paper
Du, C., Zhao, F., Sun, Y., Yue, Z., Wu, R., Wang, J., Zhang, Q., & Zeng, Y. (2026). Frequency-filtered attention for cross-species fMRI time series prediction under small-sample learning. iScience, 29(9), 117173. https://
BibTeX
@article{du2026frequency
author = {Du, Chengcheng and Zhao, Feifei and Sun, Yinqian and Yue, Zeyang and Wu, Ruoyu and Wang, Jihang and Zhang, Qian and Zeng, Yi},
title = {{Frequency-filtered attention for cross-species fMRI time series prediction under small-sample learning}},
journal = {iScience},
year = {2026},
month = aug,
volume = {29},
number = {9},
pages = {117173},
publisher = {Elsevier},
issn = {2589-0042},
doi = {10.1016/
url = {https://
pmid = {42633179},
pmcid = {PMC13499140}
}
RIS
TY - JOUR
AU - Du, Chengcheng
AU - Zhao, Feifei
AU - Sun, Yinqian
AU - Yue, Zeyang
AU - Wu, Ruoyu
AU - Wang, Jihang
AU - Zhang, Qian
AU - Zeng, Yi
TI - Frequency-filtered attention for cross-species fMRI time series prediction under small-sample learning
T2 - iScience
J2 - iScience
PY - 2026
DA - 2026/
VL - 29
IS - 9
SP - 117173
SN - 2589-0042
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"type": "article-journal",
"title": "Frequency-filtered attention for cross-species fMRI time series prediction under small-sample learning",
"container-title": "iScience",
"author": [
{
"family": "Du",
"given": "Chengcheng"
},
{
"family": "Zhao",
"given": "Feifei"
},
{
"family": "Sun",
"given": "Yinqian"
},
{
"family": "Yue",
"given": "Zeyang"
},
{
"family": "Wu",
"given": "Ruoyu"
},
{
"family": "Wang",
"given": "Jihang"
},
{
"family": "Zhang",
"given": "Qian"
},
{
"family": "Zeng",
"given": "Yi"
}
],
"container-title-short":
"volume": "29",
"issue": "9",
"page": "117173",
"DOI": "10.1016/
"PMID": "42633179",
"PMCID": "PMC13499140",
"ISSN": "2589-0042",
"publisher": "Elsevier",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
13
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s42003-024-05766-w [code]
- Modular subgraphs in large-scale connectomes underpin spontaneous co-fluctuation events in mouse and human brains.Journal: Communications biologyIn common: data.mendeley.com/datasets/7y6xr753g4, data.mendeley.com/datasets/r2w865c959, 1 other dataset, 2 references
- [2] doi:10.1073/pnas.2426883123 [code]
- Primate-informed neural network for visual decision-making.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: PyTorch, seaborn, scikit-learn, 3 other tools, cognitive, 2 references
- [3] doi:10.1038/s41467-024-49823-8 [code]
- Hippocampal connectivity patterns echo macroscale cortical evolution in the primate brain.Journal: Nature communicationsIn common: PyTorch, seaborn, scikit-learn, 3 other tools, cognitive, 2 references
- [4] doi:10.1038/s42003-026-10169-0 [code]
- Shared representations in brains and models reveal a two-route cortical organization during scene perception.Journal: Communications biologyIn common: PyTorch, seaborn, scikit-learn, 3 other tools, cognitive, 2 references
- [5] doi:10.1016/j.neuroimage.2024.120909 [code]
- A simple but tough-to-beat baseline for fMRI time-series classification.Journal: NeuroImageIn common: PyTorch, seaborn, scikit-learn, 3 other tools, fMRI, 1 reference
- [6] doi:10.3389/fnimg.2022.1031991 [code]
- Estimating and mitigating the effects of systemic low frequency oscillations (sLFO) on resting state networks in awake non-human primates using time lag dependent methodology.Journal: Frontiers in neuroimagingIn common: PyTorch, seaborn, scikit-learn, 3 other tools, fMRI, 1 reference
- [7] doi:10.1002/advs.202504956 [code]
- Spatiotemporal Characterization of the Functional MRI Latency Structure with Respect to Neural Signaling and Brain Hierarchy.Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)In common: seaborn, scikit-learn, pandas, 2 other tools, fMRI, 2 references
- [8] doi:10.1162/netn.a.570 [code]
- Higher-order statistics for constructing centered edge functional connectivity.Journal: Network neuroscience (Cambridge, Mass.)In common: seaborn, scikit-learn, pandas, 2 other tools, fMRI, 2 references
- [9] doi:10.1016/j.isci.2025.113755 [code]
- Mapping content and dynamics in the stream of consciousness through latent brain state analysis.Journal: iScienceIn common: PyTorch, seaborn, scikit-learn, 3 other tools, cognitive, 1 reference
- [10] doi:10.1038/s41467-026-75585-6 [code]
- Brain network dynamics reflect psychiatric illness status and transdiagnostic symptom profiles across health and disease.Journal: Nature communicationsIn common: seaborn, scikit-learn, pandas, 2 other tools, 2 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 3 repositories of the authors' code, each at its verified commit and with its license, 78 scripts, and 2 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:009dd6ce9ab1b478…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1016/j.isci.2026.117173)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1016/j.isci.2026.117173.svg
:target: https://openscicode.org/badge/doi/10.1016/j.isci.2026.117173
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.isci.2026.117173"><img src="https://openscicode.org/badge/doi/10.1016/j.isci.2026.117173.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
