Frequency-filtered attention for cross-species fMRI time series prediction under small-sample learning.
The 2 matches · all tie a paragraph to a whole file, not to 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
- [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
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: 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-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
- [2] doi:10.1038/s41593-026-02205-3 [code]
- Competitive interactions shape mammalian brain network dynamics and computation.Journal: Nature neuroscienceIn common: PyTorch, seaborn, scikit-learn, 3 other tools, 2 references
- [3] 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
- [4] doi:10.1038/s41467-026-73153-6 [code]
- Latent neural architecture organising shared aesthetic evaluations of visual artworks.Journal: Nature communicationsIn common: PyTorch, seaborn, scikit-learn, 3 other tools, fMRI, cognitive, 1 reference
- [5] doi:10.7554/elife.107933 [code]
- Modality-agnostic decoding of vision and language from fMRI.Journal: eLifeIn common: PyTorch, seaborn, scikit-learn, 3 other tools, fMRI, cognitive, 1 reference
- [6] 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
- [7] doi:10.1523/jneurosci.0038-26.2026 [code]
- Multidimensional Feature Tuning in Category Selective Areas of Human Visual Cortex.Journal: The Journal of neuroscience : the official journal of the Society for NeuroscienceIn common: PyTorch, seaborn, scikit-learn, 3 other tools, fMRI, 1 reference
- [8] doi:10.1162/nol.a.271 [code]
- Compositional Complexity in Text and Images.Journal: Neurobiology of language (Cambridge, Mass.)In common: PyTorch, seaborn, scikit-learn, 3 other tools, fMRI, 1 reference
- [9] doi:10.1162/imag.a.1286 [code]
- Behavioral imitation with artificial neural networks leads to personalized models of brain dynamics during videogame play.Journal: Imaging neuroscience (Cambridge, Mass.)In common: PyTorch, seaborn, scikit-learn, 3 other tools, fMRI, 1 reference
- [10] doi:10.3390/e28070738 [code]
- Probabilistic Forecasting and Information-Theoretic Analysis of Multivariate fMRI Dynamics.Journal: Entropy (Basel, Switzerland)In common: PyTorch, seaborn, scikit-learn, 3 other tools, fMRI, 1 reference
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:6700fb30104d428c…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
