OSCR

A large-scale MEG and EEG dataset for object recognition in naturalistic scenes

Code ↔ Paper

10 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 10 matches
  1. [1] § Methods › Experiment design › MEG experiment ↔ scripts/step3a-head_motion.py, lines 18–33 · score 0.78 · ImageNet03, ImageNet04, ImageNet02, ImageNet01, ses, NOD
  2. [2] § Technical Validation › Temporal dynamics of face representation ↔ src/decoding.py, lines 158–241 · score 0.62 · occipitotemporal sensors, cross validation, SVM, classification, decoding, accuracy
  3. [3] § Data Records › Raw data ↔ scripts/step1c-epoching.py, lines 19–42 · score 0.62 · detailed_events, NOD MEG, NOD EEG, metadata, BIDS, derivatives
  4. [4] § Methods › Data acquisition › Data preprocessing ↔ scripts/step2a-psd_plot.py, lines 89–113 · score 0.58 · Power Spectral Density, PSD, raw MEG
  5. [5] § Data Records › Preprocessed data ↔ scripts/step2b-ica_plot.py, lines 1–66 · score 0.57 · ImageNet_run, clean fif, ses, derivatives, preprocessed, raw
  6. [6] § Technical Validation › M/EEG-fMRI fusion analysis ↔ src/rsa/pre.py, lines 123–205 · score 0.55 · representational dissimilarity matrix, spatiotemporal, sensors, RDM, distance, correlation
  7. [7] § Methods › Data acquisition › Data preprocessing ↔ src/preprocessing/prep_meg.py, lines 106–139 · score 0.55 · bad channel detection, Maxwell, noisy, preprocessing, MEG
  8. [8] § Data Records › Preprocessed data ↔ scripts/step2a-psd_plot.py, lines 62–87 · score 0.55 · ImageNet_run, clean fif, ses, raw, sub, MEG
  9. [9] § Technical Validation › M/EEG-fMRI fusion analysis ↔ src/rsa/corr.py, lines 108–149 · score 0.51 · confidence interval, correlation coefficients, Spearman, RDM
  10. [10] § Data Records ↔ scripts/step1c-epoching.py, lines 19–42 · score 0.51 · OpenNeuro, ds005810, ds005811, BIDS, epoch, derivatives

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 · 239 lines · 7 KB · MIT · 2 matches

  1. # %%
  2. from __future__ import annotations
  3. import os
  4. import os.path as op
  5. import sys
  6. from dataclasses import dataclass
  7. import mne
  8. import pandas as pd
  9. from wasabi import msg
  10. from src.epoching import Epoching
  11. from src.epoching import InfoExtraction
  12. sys.path.append(op.abspath('..'))
  13. # %%
  14. ROOT = '../../NOD-MEEG_upload'
  15. # NOTE: the event roots point to the per-subject ``sub-XX_events.csv`` files.
  16. # On OpenNeuro (MEG: ds005810, EEG: ds005811) these are published under
  17. # ``derivatives/detailed_events``. The BIDS ``*_events.tsv`` files do NOT carry
  18. # the image_id / response / class metadata that epoching relies on, so the
  19. # detailed_events CSVs are required here.
  20. MEG_ROOT, MEG_EVENT_ROOT, MEG_SAVE_ROOT = (
  21. f'{ROOT}/NOD-MEG/{path}' for path in [
  22. 'derivatives/preprocessed/raw',
  23. 'derivatives/detailed_events',
  24. 'derivatives/preprocessed/epochs',
  25. ]
  26. )
  27. EEG_ROOT, EEG_EVENT_ROOT, EEG_SAVE_ROOT = (
  28. f'{ROOT}/NOD-EEG/{path}' for path in [
  29. 'derivatives/preprocessed/raw',
  30. 'derivatives/detailed_events',
  31. 'derivatives/preprocessed/epochs',
  32. ]
  33. )
  34. EVENT_ID = 'stim_on'
  35. TMIN, TMAX = -0.1, 0.8
  36. LFREQ, HFREQ = 0.1, 40
  37. SFREQ = 200
  38. # %%
  39. class MakeEpochs:
  40. def __init__(
  41. self,
  42. roots: dict[str, str],
  43. event_roots: dict[str, str],
  44. event_id: str,
  45. tmin: float,
  46. tmax: float,
  47. lfreq: float,
  48. hfreq: float,
  49. sfreq: float,
  50. data_types: list[str],
  51. save_roots: dict,
  52. ) -> None:
  53. """make epochs based on the NOD-MEG& EEG cleaned data.
  54. Parameters
  55. ----------
  56. roots : dict
  57. Paths to the cleaned data. Keys are data types(meg, eeg), values are the corresponding paths
  58. event_roots : dict
  59. Paths to the event data. Keys are data types(meg, eeg), values are the corresponding paths
  60. event_id : str
  61. The event ID to be used for epoching, shoud be stored in the mne.BaseRaw object
  62. tmin : float
  63. The start time of the epoch
  64. tmax : float
  65. The end time of the epoch
  66. lfreq : float
  67. The low pass filter frequency
  68. hfreq : float
  69. The high pass filter frequency
  70. sfreq : float
  71. The sampling frequency
  72. data_types : list
  73. the data types of the database, default is ['meg', 'eeg']
  74. save_roots : dict
  75. Paths to save the epochs. Keys are data types(meg, eeg), values are the corresponding paths
  76. """
  77. self.roots = roots # {'meg': MEG_ROOT, 'eeg': EEG_ROOT}
  78. # {'meg': MEG_EVENT_ROOT, 'eeg': EEG_EVENT_ROOT}
  79. self.event_roots = event_roots
  80. self.event_id = event_id
  81. self.tmin = tmin
  82. self.tmax = tmax
  83. self.lfreq = lfreq
  84. self.hfreq = hfreq
  85. self.sfreq = sfreq
  86. self.data_types = data_types # ['meg', 'eeg']
  87. self.save_roots = save_root
  88. self.infos = {}
  89. for datatype in self.data_types:
  90. self.infos[datatype] = InfoExtraction(
  91. self.roots[datatype], self.event_roots[datatype],
  92. )
  93. def make_sub(
  94. self,
  95. sub: str,
  96. align_method: str,
  97. ) -> dict:
  98. """Create epochs for all data types for a subject
  99. Parameters
  100. ----------
  101. sub : str
  102. Subject ID
  103. align_method : str
  104. Method to align the data.
  105. Options are 'info_with_data', 'info_only' and 'maxwell
  106. Returns
  107. -------
  108. dict
  109. Keys are data types, values are the corresponding epochs
  110. """
  111. epochs = {}
  112. for datatype in self.data_types:
  113. info = self.infos[datatype]
  114. try:
  115. sub_fps = info.get_sub_fp(sub)
  116. except KeyError:
  117. msg.warn(f"Subject {sub} not found in {datatype} data.")
  118. continue
  119. epochor = Epoching(
  120. event_csv=sub_fps['events'],
  121. raw_paths=sub_fps['rawps'],
  122. tmin=self.tmin,
  123. tmax=self.tmax,
  124. lfreq=self.lfreq,
  125. hfreq=self.hfreq,
  126. sfreq=self.sfreq,
  127. datatype=datatype,
  128. event_id=self.event_id,
  129. )
  130. epoched = epochor.run(align_method=align_method)
  131. epochs[datatype] = epoched
  132. return epochs
  133. def run_all(
  134. self,
  135. align_method: str,
  136. ) -> None:
  137. """Create and save epochs for all data types for all subjects"""
  138. subs = set()
  139. for info in self.infos.values():
  140. subs.update(info.subs)
  141. for sub in sorted(subs):
  142. epochs = self.make_sub(sub, align_method)
  143. for datatype, epoch in epochs.items():
  144. self._save(epoch, sub, self.save_roots[datatype], datatype)
  145. def _save(
  146. self,
  147. epochs: mne.Epochs,
  148. sub: str,
  149. save_root: str,
  150. datatype: str,
  151. ) -> None:
  152. save_dir = os.path.join(save_root)
  153. os.makedirs(save_dir, exist_ok=True)
  154. epochs.save(f'{save_dir}/sub-{sub}_{datatype}_epo.fif', overwrite=True)
  155. def _repr_html_(self):
  156. root = (
  157. '<ul style="list-style-type:none; padding-left:0;">' +
  158. ''.join([f'<li>{k} : {v} </li>' for k, v in self.roots.items()]) +
  159. '</ul>'
  160. )
  161. event_root = (
  162. '<ul style="list-style-type:none; padding-left:0;">' +
  163. ''.join([f'<li>{k} : {v} </li>' for k, v in self.event_roots.items()]) +
  164. '</ul>'
  165. )
  166. nSub = (
  167. '<ul style="list-style-type:none; padding-left:0;">' +
  168. ''.join([f'<li>{k} : {len(v.subs)} </li>' for k, v in self.infos.items()]) +
  169. '</ul>'
  170. )
  171. save_root = (
  172. '<ul style="list-style-type:none; padding-left:0;">' +
  173. ''.join([f'<li>{k} : {v} </li>' for k, v in self.save_roots.items()]) +
  174. '</ul>'
  175. )
  176. to_show = {
  177. 'rawRoot': root,
  178. 'eventRoot': event_root,
  179. 'nSub': nSub,
  180. 'eventId': self.event_id,
  181. 'timeMin': self.tmin,
  182. 'timeMax': self.tmax,
  183. 'lowFreq': self.lfreq,
  184. 'highFreq': self.hfreq,
  185. 'sampleFreq': self.sfreq,
  186. 'dataTypes': self.data_types,
  187. 'saveRoot': save_root,
  188. }
  189. to_show_df = pd.DataFrame(
  190. list(to_show.items()), columns=[
  191. '', 'NOD_MEEG-Epochor',
  192. ],
  193. )
  194. # escape=False to allow HTML in 'rawRoot'
  195. html_output = to_show_df.to_html(index=False, escape=False)
  196. return html_output
  197. # %%
  198. roots = {'meg': MEG_ROOT, 'eeg': EEG_ROOT}
  199. event_roots = {'meg': MEG_EVENT_ROOT, 'eeg': EEG_EVENT_ROOT}
  200. data_types = ['meg', 'eeg']
  201. save_root = {'meg': MEG_SAVE_ROOT, 'eeg': EEG_SAVE_ROOT}
  202. epochor = MakeEpochs(
  203. roots=roots,
  204. event_roots=event_roots,
  205. event_id=EVENT_ID,
  206. tmin=TMIN,
  207. tmax=TMAX,
  208. lfreq=LFREQ,
  209. hfreq=HFREQ,
  210. sfreq=SFREQ,
  211. data_types=data_types,
  212. save_roots=save_root,
  213. )
  214. epochor.run_all(align_method='info_with_data')
  215. # %%

step1c-epoching.py at commit 0fdcd9d, under MIT · at the source

Overview

Authors: Guohao Zhang1, Ming Zhou2, Shuyi Zhen2, Shaohua Tang3, Zheng Li4, Zonglei Zhen1,2
  1. Beijing Key Laboratory of Applied Experimental Psychology, Faculty of Psychology, Beijing Normal University,Beijing, 100875 China
  2. State Key Laboratory of Cognitive Neuroscience and Learning & IDG/McGovern Institute for Brain Research, Beijing Normal University,Beijing, 100875 China
  3. Department of Systems Science, Faculty of Arts and Sciences, Beijing Normal University,Zhuhai, 519087 China
  4. Department of Psychology, Faculty of Arts and Sciences, Beijing Normal University,Zhuhai, 519087 China
Institutions: Beijing Normal University (China)
Journal: n/a, volume 12, issue 1, article 857
Dates: received 21 February 2025; accepted 9 May 2025; published online 23 May 2025
Type: Data paper · Language: English
License: none stated
Identifiers: DOI 10.1038/s41597-025-05174-7 · PMCID PMC12102372 · OpenAlex W4410631980
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), fMRI (modality), MEG (modality), human (organism), methods / tools (subfield)
Methods: Connectivity, Smoothing, state filtering, decompositions, Preprocessing
Keywords: Perception, Object vision
MeSH: Brain*, Electroencephalography*, Magnetoencephalography*, Humans, Magnetic Resonance Imaging (* major topic)
Journal subjects: Data Descriptor
Topic: Face Recognition and Perception (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: National Natural Science Foundation of China (National Science Foundation of China) (62433015, 31771251); Funder: STI 2030-Major Projects of the Ministry of Science and Technology of China Grant Reference Number: 2021ZD0200407
Citations: cited by 1 paper (Europe PMC); 58 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (none stated) 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 10 matches between paragraphs and lines of code.

BNUCNL/NaturalVisionProject

License: none: the authors keep all their rights
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Commit: caea6fcb03df89c8e3839bb62f33f0f5e87f3dfa, 31 December 2021
Languages: MATLAB (26), Python (13), Jupyter (2)
Size: 65 files, 41 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, 2 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Psychtoolbox (18 files), NumPy (14 files), pandas (11 files), Matplotlib (10 files), SciPy (10 files), Image Processing Toolbox (7 files), scikit-learn (7 files), PyTorch (5 files), NiBabel (2 files), h5py (1 file), OpenCV (1 file)
Availability: 1 check, the latest on 26 September 2026: the link answers
  • 26 September 2026: the link answers
42 files

colehank/NOD-MEEG

License: MIT
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Commit: 0fdcd9d58c491bb3d36a53b24c1afe8f5607ab71, 15 July 2026
Languages: Python (32)
Size: 54 files, 32 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, license file, environment (requirements.txt)
Not found: CITATION.cff, tests, continuous integration, documentation
Tools: MNE-Python (17 files), NumPy (17 files), Matplotlib (16 files), pandas (11 files), SciPy (8 files), MNE-BIDS (6 files), Pillow (3 files), seaborn (3 files), MEEGkit (2 files), Plotly (2 files), ICLabel (1 file), Keras (1 file), PyPREP (1 file), scikit-learn (1 file), TensorFlow (1 file)
Availability: 1 check, the latest on 26 September 2026: the link answers
  • 26 September 2026: the link answers
34 files

Code availability statement

The paper has a code availability statement. Its license (none stated) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41597-025-05174-7.

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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 73 scripts, each with its path and the digest of its content;
  • 10 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

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, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 2 keywords, 5 MeSH terms, 2 funders, 57 references.

Cite

This paper

Zhang, G., Zhou, M., Zhen, S., Tang, S., Li, Z., & Zhen, Z. (2025). A large-scale MEG and EEG dataset for object recognition in naturalistic scenes. Scientific Data, 12(1), 857. https://doi.org/10.1038/s41597-025-05174-7

BibTeX

@article{zhang2025large,
author = {Zhang, Guohao and Zhou, Ming and Zhen, Shuyi and Tang, Shaohua and Li, Zheng and Zhen, Zonglei},
title = {{A large-scale MEG and EEG dataset for object recognition in naturalistic scenes}},
journal = {Scientific Data},
year = {2025},
volume = {12},
number = {1},
pages = {857},
publisher = {Nature Publishing Group},
issn = {2052-4463},
doi = {10.1038/s41597-025-05174-7},
url = {https://doi.org/10.1038/s41597-025-05174-7},
pmcid = {PMC12102372}
}

RIS

TY - JOUR
AU - Zhang, Guohao
AU - Zhou, Ming
AU - Zhen, Shuyi
AU - Tang, Shaohua
AU - Li, Zheng
AU - Zhen, Zonglei
TI - A large-scale MEG and EEG dataset for object recognition in naturalistic scenes
T2 - Scientific Data
J2 - Sci Data
PY - 2025
DA - 2025
VL - 12
IS - 1
SP - 857
SN - 2052-4463
PB - Nature Publishing Group
DO - 10.1038/s41597-025-05174-7
UR - https://doi.org/10.1038/s41597-025-05174-7
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41597-025-05174-7",
"type": "article-journal",
"title": "A large-scale MEG and EEG dataset for object recognition in naturalistic scenes",
"container-title": "Scientific Data",
"author": [
{
"family": "Zhang",
"given": "Guohao"
},
{
"family": "Zhou",
"given": "Ming"
},
{
"family": "Zhen",
"given": "Shuyi"
},
{
"family": "Tang",
"given": "Shaohua"
},
{
"family": "Li",
"given": "Zheng"
},
{
"family": "Zhen",
"given": "Zonglei"
}
],
"container-title-short": "Sci Data",
"volume": "12",
"issue": "1",
"page": "857",
"DOI": "10.1038/s41597-025-05174-7",
"PMCID": "PMC12102372",
"ISSN": "2052-4463",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41597-025-05174-7",
"language": "en",
"issued": {
"date-parts": [
[
2025
]
]
}
}

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/s41597-026-07350-9 [code]
An open multi-center MEG-EEG dataset for studying conscious visual perception.
Journal: Scientific data
In common: PyPREP, MNE-BIDS, MNE-Python, 7 other tools, MEG, EEG, 3 references
[2] doi:10.1038/s41597-026-07248-6 [code]
A large-scale fMRI dataset for vision-language semantic association.
Journal: Scientific data
In common: OpenCV, h5py, Pillow, 7 other tools, fMRI, methods / tools, 5 references
[3] doi:10.1097/j.pain.0000000000004044 [code]
No effect of rhythmic visual stimulation on experimental pain perception.
Journal: Pain
In common: PyPREP, MNE-BIDS, ICLabel, 6 other tools, EEG, 3 references
[4] doi:10.3758/s13428-026-02997-z [code]
PyLossless: A non-destructive EEG processing pipeline.
Journal: Behavior research methods
In common: MNE-BIDS, ICLabel, MNE-Python, 4 other tools, methods / tools, EEG, 4 references
[5] 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, OpenCV, Pillow, 7 other tools, EEG, 4 references
[6] 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 biology
In common: Plotly, h5py, Pillow, 8 other tools, 4 references
[7] doi:10.1162/imag.a.1309 [code]
Probing the content of semantic representations in body-selective regions.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: OpenCV, h5py, Pillow, 8 other tools, 4 references
[8] doi:10.1093/cercor/bhag113 [code]
Long-term reliability and stability of parameterized resting state EEG: evidence from a five-year follow-up.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: PyPREP, MNE-BIDS, ICLabel, 7 other tools, methods / tools, EEG, 1 reference
[9] doi:10.1038/s41593-026-02285-1 [code]
Fixation duration on natural scenes is explained by memory encoding not processing demand.
Journal: Nature neuroscience
In common: MNE-Python, h5py, Pillow, 7 other tools, MEG, 4 references
[10] doi:10.1007/s12021-026-09803-3 [code]
NeuroFusion: A Unified Framework for Generalized Visual Stimulus Decoding from fMRI Across Datasets and Subjects.
Journal: Neuroinformatics
In common: MNE-BIDS, MNE-Python, h5py, 8 other tools, fMRI, methods / tools, 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.

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.