From surface to depth: Using deep learning to predict striatal fMRI reward signaling from EEG.
The 4 matches
- [1] § Methods › Deep learning model › Model training ↔ code/main_train.py, lines 205–268 · score 0.92 · cosine annealing learning, AdamW, CosineAnnealingLR, T_max, weight decay, scheduler
- [2] § Methods › Deep learning model › Model architecture ↔ code/utils/model_arch/autoencoder_new_ArturNH.py, lines 4–60 · score 0.70 · ReLU, spatial filtering, stride, kernel, Autoencoder, layer
- [3] § Methods › Deep learning model › Model training ↔ code/utils/train_utils.py, lines 163–302 · score 0.65 · training loss, scheduler, optimizer, cosine, PyTorch, epochs
- [4] § Methods › Data preprocessing ↔ code/utils/model_arch/autoencoder_new_ArturNH.py, lines 4–60 · score 0.54 · ReLU, spatial filtering, layer, block, temporal, channel
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 · 244 lines · 6.9 KB · no license · 2 matches
- import torch
- import torch.nn as nn
- class ArturBlock(nn.Module):
- """
- Input is [batch, emb, time]
- Artur block. Interpretable and lightweight.
- """
- FILTERING_SIZE = 51
- ENVELOPE_SIZE = 51
- # HIDDEN_CHANNELS = 5
- def __init__(self, in_channels, hidden_channels=5):
- super(ArturBlock, self).__init__()
- self.HIDDEN_CHANNELS = hidden_channels
- self.unmixing_layer = nn.Conv1d(in_channels, self.HIDDEN_CHANNELS, 1)
- self.unmixed_channels_batchnorm = torch.nn.BatchNorm1d(self.HIDDEN_CHANNELS, affine=True)
- # use it instead stride.
- self.band_pass = nn.Conv1d(
- self.HIDDEN_CHANNELS,
- self.HIDDEN_CHANNELS,
- kernel_size=self.FILTERING_SIZE,
- bias=False,
- groups=self.HIDDEN_CHANNELS,
- padding="same")
- self.norm = nn.BatchNorm1d(self.HIDDEN_CHANNELS, affine=False)
- self.act = nn.ReLU()
- self.low_pass = nn.Conv1d(
- self.HIDDEN_CHANNELS,
- self.HIDDEN_CHANNELS,
- kernel_size=self.ENVELOPE_SIZE,
- groups=self.HIDDEN_CHANNELS,
- padding="same")
- def forward(self, x):
- """
- - Spatial filter
- - Temporal filter
- 1. Learn band pass flter
- 2. Centering signals
- 3. Abs
- 4. low pass to get envelope
- """
- # Spatial filter
- x = self.unmixing_layer(x)
- x = self.unmixed_channels_batchnorm(x)
- # Temporal filter
- x = self.band_pass(x)
- x = self.norm(x)
- x = self.act(x)
- x = self.low_pass(x)
- return x
- class ConvBlock(nn.Module):
- """
- Input is [batch, emb, time]
- simple conv block from wav2vec 2.0
- - conv
- - layer norm by embedding axis
- - activation
- To do:
- add res blocks.
- """
- def __init__(
- self,
- in_channels,
- out_channels,
- kernel_size,
- stride=1,
- dilation=1,
- p_conv_drop=0.3):
- super(ConvBlock, self).__init__()
- # use it instead stride.
- self.conv1d = nn.Conv1d(
- in_channels,
- out_channels,
- kernel_size=kernel_size,
- bias=False,
- padding="same")
- self.norm = nn.LayerNorm(out_channels)
- self.activation = nn.GELU()
- self.drop = nn.Dropout(p=p_conv_drop)
- self.downsample = nn.MaxPool1d(kernel_size=stride, stride=stride)
- def forward(self, x):
- """
- - conv
- - norm
- - activation
- - downsample
- """
- x = self.conv1d(x)
- # norm by last axis.
- x = torch.transpose(x, -2, -1)
- x = self.norm(x)
- x = torch.transpose(x, -2, -1)
- x = self.activation(x)
- x = self.drop(x)
- x = self.downsample(x)
- return x
- class UpConvBlock(nn.Module):
- def __init__(self, scale, **args):
- super(UpConvBlock, self).__init__()
- self.conv_block = ConvBlock(**args)
- self.upsample = nn.Upsample(scale_factor=scale, mode="linear", align_corners=False)
- def forward(self, x):
- x = self.conv_block(x)
- x = self.upsample(x)
- return x
- class AutoEncoder1D_Artur(nn.Module):
- """
- This is implementation of AutoEncoder1D model for time serias regression
- decoder_reduce -size of reducing parameter on decoder stage. We do not want use a lot of features here.
- """
- def __init__(
- self,
- n_electrodes=30,
- n_freqs=16,
- n_channels_out=21,
- channels=[8, 16, 32, 32],
- kernel_sizes=[3, 3, 3],
- strides=[4, 4, 4],
- dilation=[1, 1, 1],
- decoder_reduce=1,
- hidden_channels=5,
- dropout_rate=0.3):
- super(AutoEncoder1D_Artur, self).__init__()
- self.n_electrodes = n_electrodes
- self.n_freqs = n_freqs
- self.n_inp_features = n_freqs*n_electrodes
- self.n_channels_out = n_channels_out
- self.model_depth = len(channels)-1
- self.artur_block = ArturBlock(
- in_channels=self.n_electrodes, hidden_channels=hidden_channels)
- self.spatial_reduce = ConvBlock(
- self.artur_block.HIDDEN_CHANNELS, channels[0], kernel_size=3, p_conv_drop=dropout_rate)
- # create downsample blcoks in Sequentional manner.
- self.downsample_blocks = nn.ModuleList([ConvBlock(channels[i],
- channels[i + 1],
- kernel_sizes[i],
- stride=strides[i],
- dilation=dilation[i],
- p_conv_drop=dropout_rate) for i in range(self.model_depth)])
- # make the same but in another side w/o last conv.
- channels = [ch // decoder_reduce for ch in channels[:-1]] + channels[-1:]
- # channels
- self.upsample_blocks = nn.ModuleList([UpConvBlock(scale=strides[i],
- in_channels=channels[i + 1],
- out_channels=channels[i],
- kernel_size=kernel_sizes[i]) for i in range(self.model_depth - 1, -1, -1)])
- self.conv1x1_one = nn.Conv1d(channels[0], self.n_channels_out, kernel_size=1, padding="same")
- def forward(self, x):
- """
- """
- batch, elec, time = x.shape
- x = self.artur_block(x)
- x = self.spatial_reduce(x)
- # encode information
- for i in range(self.model_depth):
- x = self.downsample_blocks[i](x)
- for i in range(self.model_depth):
- x = self.upsample_blocks[i](x)
- x = self.conv1x1_one(x)
- return x
- class AutoEncoder1D_Artur_MultiHead(nn.Module):
- """
- This is implementation of AutoEncoder1D model for time serias regression
- decoder_reduce -size of reducing parameter on decoder stage. We do not want use a lot of features here.
- """
- def __init__(self, dict_setting):
- super(AutoEncoder1D_Artur_MultiHead, self).__init__()
- dict_setting_new = dict_setting.copy()
- self.n_channels_out = dict_setting_new["n_channels_out"]
- dict_setting_new.pop("n_channels_out")
- dropout_rate = dict_setting_new.pop("dropout_rate", 0.3) # Default to 0.3 if not set
- # print('HOW: ', dict_setting)
- self.models = nn.ModuleList(
- [
- AutoEncoder1D_Artur(n_channels_out=1, dropout_rate=dropout_rate, **dict_setting_new)
- for i in range(self.n_channels_out)
- ])
- # print('HUI', len(self.models))
- def forward(self, x):
- """
- """
- batch, elec, time = x.shape
- preds = [model(x) for model in self.models]
- preds = torch.cat(preds, dim=1)
- return preds
autoencoder_new_ArturNH.py at commit 22671dc, no license · at the source
Overview
- Department of Neurology, Max Planck Institute for Human Cognitive & Brain Sciences, Leipzig, Germany
- Center for Psychiatry, Justus Liebig University, Giessen, Germany
- Department of Medicine, University of Helsinki, Helsinki, Finland
- University of Applied Sciences Jena, Jena, Germany
- IMPRS CoNI, Max Planck Research School on Cognitive NeuroImaging, Leipzig, Germany
- Neural Data Science and Statistical Computing Group, Max Planck Institute for Human Cognitive and Brain Sciences, Leipzig, Germany
- Center for Scalable Data Analytics and Artificial Intelligence (ScaDS.AI), Dresden/Leipzig, Germany
- Translational Psychiatry Unit, Department of Psychiatry and Psychotherapy, University Hospital Schleswig-Holstein, Lübeck, Germany
Abstract
Reward processing is critical for motivation, learning, and decision making. It involves a network centered on the fronto-striatal circuit, with the ventral striatum (VS) playing a pivotal role. While functional magnetic resonance imaging (fMRI) has been instrumental in mapping subcortical VS reward signals, its cost and limited accessibility hinder broader clinical applications. In this study, we adapted a convolutional autoencoder deep learning (DL) model to reconstruct VS blood-oxygen-level-depen
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 4 matches between paragraphs and lines of code.
naherzog/DLEEGfMRI
22671dc7494b23ec546c6bb2ee515ccbd663af66, 12 December 2025Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
7 files
- code/
main_train.py , Python, 314 lines, 1 match - code/
utils/ , Python, 493 linesinference.py - code/
utils/ , Python, 244 lines, 2 matchesmodel_arch/ autoencoder_new_ArturNH. py - code/
utils/ , Python, 184 linespreproc.py - code/
utils/ , Python, 69 linestorch_dataset.py - code/
utils/ , Python, 303 lines, 1 matchtrain_utils.py - README.md, Text, 35 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:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 6 scripts, each with its path and the digest of its content;
- 4 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
No dataset and no data link were found in the paper.
Data and Code Availability
The pre-processed data, the codes used to train and evaluate the model, and the final weights are available here: https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 8 authors, 5 keywords, 6 funders, 67 references.
Cite
This paper
Herzog, N., Vähäsarja, L., Reinfeld, P., Scherf, N., Hofmann, S. M., Andreou, C., Villringer, A., & Mulert, C. (2026). From surface to depth: Using deep learning to predict striatal fMRI reward signaling from EEG. Imaging neuroscience (Cambridge, Mass.), 4, IMAG.a.1160. https://
BibTeX
@article{herzog2026surfa
author = {Herzog, Nadine and Vähäsarja, Luka and Reinfeld, Pia and Scherf, Nico and Hofmann, Simon M. and Andreou, Christina and Villringer, Arno and Mulert, Christoph},
title = {{From surface to depth: Using deep learning to predict striatal fMRI reward signaling from EEG}},
journal = {Imaging neuroscience (Cambridge, Mass.)},
year = {2026},
month = mar,
volume = {4},
pages = {IMAG.a.1160},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/
url = {https://
pmid = {41816006},
pmcid = {PMC12973074}
}
RIS
TY - JOUR
AU - Herzog, Nadine
AU - Vähäsarja, Luka
AU - Reinfeld, Pia
AU - Scherf, Nico
AU - Hofmann, Simon M.
AU - Andreou, Christina
AU - Villringer, Arno
AU - Mulert, Christoph
TI - From surface to depth: Using deep learning to predict striatal fMRI reward signaling from EEG
T2 - Imaging neuroscience (Cambridge, Mass.)
J2 - Imaging Neurosci (Camb)
PY - 2026
DA - 2026/
VL - 4
SP - IMAG.a.1160
SN - 2837-6056
PB - MIT Press
DO - 10.1162/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1162/
"type": "article-journal",
"title": "From surface to depth: Using deep learning to predict striatal fMRI reward signaling from EEG",
"container-title": "Imaging neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Herzog",
"given": "Nadine"
},
{
"family": "Vähäsarja",
"given": "Luka"
},
{
"family": "Reinfeld",
"given": "Pia"
},
{
"family": "Scherf",
"given": "Nico"
},
{
"family": "Hofmann",
"given": "Simon M."
},
{
"family": "Andreou",
"given": "Christina"
},
{
"family": "Villringer",
"given": "Arno"
},
{
"family": "Mulert",
"given": "Christoph"
}
],
"container-title-short":
"volume": "4",
"page": "IMAG.a.1160",
"DOI": "10.1162/
"PMID": "41816006",
"PMCID": "PMC12973074",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
9
]
]
}
}
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.1162/imag.a.105 [code]
- Right posterior theta reflects human parahippocampal phase resetting by salient cues during goal-directed navigationJournal: n/aIn common: MNE-Python, pandas, Matplotlib, 1 other tool, fMRI, EEG, cognitive, 2 references
- [2] doi:10.1002/hbm.70562 [code]
- Distinct Physiological Mechanisms Drive Grey Matter Plasticity in Complex Versus Simple Sequence Learning.Journal: Human brain mappingIn common: pandas, Matplotlib, NumPy, author A. Villringer
- [3] doi:10.1371/journal.pone.0351872 [code]
- Decoding visual object recognition from EEG signals.Journal: PloS oneIn common: MNE-Python, PyTorch, pandas, 2 other tools, EEG, 1 reference
- [4] doi:10.7554/elife.100056 [code]
- Multi-talker speech comprehension at different temporal scales in listeners with normal and impaired hearing.Journal: eLifeIn common: MNE-Python, PyTorch, pandas, 1 other tool, EEG, cognitive, 1 reference
- [5] doi:10.1162/imag.a.1174 [code]
- Retinal nerve fibre layer thickness reflects characteristics of brain grey and white matter.Journal: Imaging neuroscience (Cambridge, Mass.)In common: Matplotlib, NumPy, author A. Villringer
- [6] doi:10.1016/j.neuroimage.2026.122051 [code]
- Determining hemispheric language dominance from MEG beta-power modulations: Concordance with fMRI.Journal: NeuroImageIn common: MNE-Python, pandas, Matplotlib, 1 other tool, fMRI, cognitive, 1 reference
- [7] doi:10.1038/s41597-025-05174-7 [code]
- A large-scale MEG and EEG dataset for object recognition in naturalistic scenesJournal: n/aIn common: MNE-Python, PyTorch, pandas, 2 other tools, fMRI, EEG
- [8] doi:10.1162/imag.a.1169 [code]
- Diazepam alters the shape of alpha oscillations recorded from human cortex using EEG.Journal: Imaging neuroscience (Cambridge, Mass.)In common: MNE-Python, pandas, Matplotlib, 1 other tool, EEG, 1 reference
- [9] doi:10.1162/imag.a.1207 [code]
- Investigating the temporal dynamics and modeling of mid-level feature representations in humans.Journal: Imaging neuroscience (Cambridge, Mass.)In common: MNE-Python, PyTorch, pandas, 2 other tools, EEG, cognitive
- [10] doi:10.1002/hbm.70528 [code]
- Explainable AI Insights Into EEG Classification and Its Alignment to Neural Correlates.Journal: Human brain mappingIn common: MNE-Python, PyTorch, pandas, 2 other tools, EEG, cognitive
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: 1 repository of the authors' code, each at its verified commit and with its license, 6 scripts, and 4 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:455fb398f405a496…
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.
