Neural Tracking of Sustained Attention, Attention Switching, and Natural Conversation in Audiovisual Environments Using Wearable EEG.
The 5 matches
- [1] § Methods and Materials › Data Preprocessing ↔ helpers.py, lines 292–343 · score 0.84 · half wave rectified, frequency bands, acoustic onsets, resolution, GT, edge
- [2] § Methods and Materials › Data Preprocessing ↔ preprocessing.ipynb, lines 85–142 · score 0.74 · 1–20 Hz, 0.1–40 Hz, ICA components, cardiac, muscle, removal
- [3] § Methods and Materials › Data Analysis › Correlation Metrics and Optimal Lag Analysis ↔ preprocessing.ipynb, lines 376–395 · score 0.59 · cross validation, lag windows, 600 ms, acoustic envelope, folds, forward model
- [4] § Methods and Materials › Data Analysis › Correlation Metrics and Optimal Lag Analysis ↔ runTRFs.ipynb, lines 122–260 · score 0.58 · sliding window, cross validation, overlap, lags, 600 ms, optimal
- [5] § Results › Neural Data Analysis ↔ plotting.py, lines 596–654 · score 0.56 · confidence interval, Optimal lag, Forward model, cEEGrid, correlation, backward
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
Jupyter notebook · 450 lines · 18 KB · MIT · 2 matches
- # %% [markdown]
- # # Make predictors
- #
- # This section computes the acoustic predictor variables used as regressors in the TRF models. The pipeline runs in two steps:
- #
- # 1. **Gammatone spectrograms** — each stimulus audio file (`.wav` / `.mp3`) is passed through a gammatone filter bank (80–15 000 Hz, 128 channels, 1 ms time step) using `eelbrain.gammatone_bank`. The resulting high-resolution spectrograms are cached as `.pickle` files in `stimuli/`.
- #
- # 2. **Predictor derivatives** — from each spectrogram a set of standard predictor variants is derived and saved to `predictors/`:
- # - `~gammatone-1` — log-compressed temporal envelope (summed across all frequency channels → 1 band)
- # - `~gammatone-on-1` — acoustic onset envelope (edge-detector applied to the log spectrogram, 1 band)
- # - `~gammatone-8` / `~gammatone-on-8` — log envelope / onset binned into 8 frequency bands
- # - `~gammatone-lin-8` / `~gammatone-pow-8` — linear-scale and power-law ($x^{0.6}$) spectrograms at 8 bands
- # - `~gammatone-onDer-1` — half-wave rectified temporal derivative (1 band)
- #
- # Both steps skip files that have already been processed, so the cells are safe to re-run.
- # %%
- from pathlib import Path
- import eelbrain as eel
- import numpy as np
- from pydub import AudioSegment
- from helpers import make_gammatone, make_gt_predictor
- ROOT = Path.cwd()
- STIMULUS_DIR = ROOT / 'stimuli'
- PREDICTOR_DIR = ROOT / 'predictors'
- PREDICTOR_DIR.mkdir(exist_ok=True)
- # %% [markdown]
- # ## Make gammatone files
- #
- # Generates high-resolution gammatone spectrograms from stimulus audio files using `eelbrain.gammatone_bank` (80–15000 Hz, 128 channels, 1 ms time step) and saves them as `.pickle` files. Adapted from [`make_gammatone.py`](https://github.com/Eelbrain/Alice/blob/main/predictors/make_gammatone.py) in the Alice dataset.
- # %%
- filenames = [f.name for f in STIMULUS_DIR.iterdir() if f.is_file()]
- for ii in filenames:
- i = ii[:-4]
- filepath_wav = STIMULUS_DIR / f'{i}.wav'
- filepath_mp3 = STIMULUS_DIR / f'{i}.mp3'
- if filepath_wav.exists() and filepath_wav.stat().st_size > 0:
- print(f"Read {filepath_wav}")
- wav = eel.load.wav(filepath_wav)
- elif filepath_mp3.exists():
- print(f"Read {filepath_mp3}")
- audio = AudioSegment.from_mp3(filepath_mp3)
- samples = np.array(audio.get_array_of_samples())
- samples = samples.astype(np.float32) / (2**15) # normalize 16-bit
- fs = audio.frame_rate
- # convert to eelbrain NDVar
- time = eel.UTS(0, 1/fs, samples.shape[0])
- wav = eel.NDVar(samples, (time,))
- else:
- print(f"File {i} is missing or empty...")
- continue
- make_gammatone(wav,i)
- # %% [markdown]
- # ## Make gammatone predictors
- #
- # Derives predictor variables from the gammatone spectrograms created above. Applies log scaling and an onset filter, then sums across frequency bands to produce 1-band and 8-band envelope predictors saved as `.pickle` files. Adapted from [`make_gammatone_predictors.py`](https://github.com/Eelbrain/Alice/blob/main/predictors/make_gammatone_predictors.py) in the Alice dataset.
- # %%
- filenames = [f.name for f in STIMULUS_DIR.iterdir() if f.is_file() and (f.name.endswith('.pickle'))]
- name = '-gammatone'
- conv_names = ['left', 'right', 'mean']
- nfiles = len(filenames)
- for nn, ii in enumerate(filenames):
- print(f'file: {nn+1}/{nfiles} {filenames[nn]}')
- i = ii[:-7]
- j = i[:-len(name)]
- dst = PREDICTOR_DIR / f'{j}~gammatone-1.pickle'
- if dst.exists():
- continue
- make_gt_predictor(i,j)
- # %% [markdown]
- # # Preprocess EEG
- #
- # This section loads the raw EEG recordings and prepares them for TRF analysis. The pipeline covers five steps that must be run in order:
- #
- # 1. **Convert XDF → FIF** — reads each raw `.xdf` recording (one per subject and sensor array) and saves it as an MNE `.fif` file under `data/sub-<id>/eeg/`. This format is required by the eelbrain TRF pipeline. Run once per subject.
- #
- # 2. **Initiate TRF pipeline** — imports libraries, resolves data paths, patches the MNE-BIDS key validator to allow compound acquisition names (e.g. `scalpSustA`), and discovers all subject folders under `data/`.
- #
- # 3. **Make ICA** — fits an ICA decomposition (20 components for scalp, 10 for cEEGrid) on the 1–40 Hz band-pass filtered data and saves the solution to `data/derivatives/ica/`. Run once per subject.
- #
- # 4. **Select ICA components to exclude** — opens an interactive GUI to manually inspect and mark artifactual ICA components (eye blinks, muscle noise, cardiac, line noise) for removal. Run once per subject after ICA fitting.
- #
- # 5. **Align EEG and predictors** — applies the accepted ICA solution to the 0.1–40 Hz filtered data, re-filters to 1–20 Hz, extracts stimulus-locked epochs, resamples to 50 Hz, z-scores each channel, and time-aligns the corresponding gammatone predictor variables. For the switA condition, epochs and predictors are additionally split at the attention-switch boundaries (t = 35 s and t = 125 s). The final EEG + predictor bundles are saved as `.pickle` files under `data/derivatives/preprocessed/`.
- # %% [markdown]
- # ## Make .xdf to .fif files
- #
- # The cell:
- # 1. Converts the raw `.xdf` recording to MNE `.fif` format (via `save_xdf_as_fif`) if not already done. The correct data structure need a .fif file to initiate eelbrain TRF pipeline.
- # %%
- from eelbrain import *
- from helpers import save_xdf_as_fif
- from pathlib import Path
- import re
- ROOT = Path.cwd()
- DATA_ROOT = Path.cwd() / 'data'
- subjects = [
- p.name.removeprefix("sub-")
- for p in DATA_ROOT.iterdir()
- if p.is_dir() and p.name.startswith("sub-")
- ]
- print(f'Subjects: {subjects}')
- exclude_subs = []
- filt = [1, 20]
- aquisitions = ['scalpSustA', 'ceegridSustA', 'scalpSwitA', 'ceegridSwitA', 'scalpConvA', 'ceegridConvA']
- for subject in subjects:
- print(f'sub-{subject}')
- for acq_combined in aquisitions:
- acq_type = re.match(r'^(scalp|ceegrid)', acq_combined).group(1)
- task_cap = re.sub(r'^(scalp|ceegrid)', '', acq_combined)
- task = task_cap[0].lower() + task_cap[1:]
- dst1 = DATA_ROOT / f'sub-{subject}' / 'eeg' / f'sub-{subject}_task-{task}_eeg.xdf'
- if not dst1.exists():
- print(f' {acq_combined}: xdf file not found, skipping')
- continue
- # No-task file saved by save_xdf_as_fif (e.g. sub-99_acq-scalpSustA_eeg.fif)
- dst2 = DATA_ROOT / f'sub-{subject}' / 'eeg' / f'sub-{subject}_acq-{acq_combined}_eeg.fif'
- if not dst2.exists():
- print(f' {acq_combined}: making fif files...')
- save_xdf_as_fif(task, subject)
- # %% [markdown]
- # ## Initiate TRF pipeline
- #
- # The TRF pipline can only be initiated correctly if:
- #
- # DATA_ROOT / f'sub-{id}' / 'eeg' / 'sub-{id}_acq-{acq}_eeg.fif'
- #
- # files exist (for example: sub-99_acq-scalpSustA_eeg.fif). To make these .fif files from raw .xdf files, run previous cell.
- #
- # NOTE (experiment.py):
- #
- # tasks = tasks = ["sustA"] #, "switA", "convA"]
- #
- # since we only provide data for sustA.
- # %%
- from eelbrain import *
- from experiment import mobEEG_e, PARAMETERS
- from helpers import save_xdf_as_fif, make_gammatone, make_gt_predictor
- import eelbrain as eel
- import numpy as np
- from scipy.signal import resample
- import shutil
- # Allow underscores in BIDS 'acq' field (e.g. 'sustA_scalp') — eelbrain passes
- # the acquisition value through to mne_bids which otherwise rejects underscores.
- import mne_bids.utils as _mbu
- _orig_check = _mbu._check_key_val
- def _patched_check(key, val):
- if key == 'acq':
- return key, val
- return _orig_check(key, val)
- _mbu._check_key_val = _patched_check
- SAVE_DIR = ROOT / 'results'
- SAVE_DIR.mkdir(exist_ok=True)
- # %% [markdown]
- # ## Make ICA
- #
- # Fits an Independent Component Analysis (ICA) decomposition for each subject and sensor array (scalp / cEEGrid) across all three task conditions (sustA, switA, convA). **Only needs to be run once per subject.**
- #
- # The cell:
- # 1. Creates a BIDS-compatible copy of the `.fif` file with the `task-` field in the filename, as required by eelbrain's pipeline.
- # 2. Calls `mobEEG_e.make_ica()` which band-pass filters the data (1–40 Hz) and fits an ICA solution — 20 components for scalp, 10 for cEEGrid — saving the result to `data/derivatives/ica/`.
- #
- # Subjects or acquisitions for which an ICA file already exists are silently skipped.
- # %%
- ica_dir = DATA_ROOT / 'derivatives' / 'ica'
- ica_dir.mkdir(parents=True, exist_ok=True)
- for subject in subjects:
- print(f'sub-{subject}')
- for acq_combined in aquisitions:
- acq_type = re.match(r'^(scalp|ceegrid)', acq_combined).group(1)
- task_cap = re.sub(r'^(scalp|ceegrid)', '', acq_combined)
- task = task_cap[0].lower() + task_cap[1:]
- dst1 = DATA_ROOT / f'sub-{subject}' / 'eeg' / f'sub-{subject}_task-{task}_eeg.xdf'
- if not dst1.exists():
- print(f' {acq_combined}: xdf file not found, skipping')
- continue
- # No-task file saved by save_xdf_as_fif (e.g. sub-99_acq-scalpSustA_eeg.fif)
- dst2 = DATA_ROOT / f'sub-{subject}' / 'eeg' / f'sub-{subject}_acq-{acq_combined}_eeg.fif'
- if not dst2.exists():
- print(f' {dst2} is missing... Run cell "make .xdf to .fif"')
- continue
- # Eelbrain's BIDS path builder requires task- in the filename; create a copy
- dst2_bids = DATA_ROOT / f'sub-{subject}' / 'eeg' / f'sub-{subject}_task-{task}_acq-{acq_combined}_eeg.fif'
- if not dst2_bids.exists():
- shutil.copy2(dst2, dst2_bids)
- ica_file = ica_dir / f'sub-{subject}_acq-{acq_combined}_eeg_raw-ica_ica.fif'
- if ica_file.exists():
- print(f' {acq_combined}: ICA already exists, skipping')
- continue
- try:
- mobEEG_e.set(subject=subject, raw=f'{task}_ica_{acq_type}', acquisition=acq_combined)
- mobEEG_e.make_ica()
- print(f' Saved: {ica_file.name}')
- except FileNotFoundError as err:
- print(f' {acq_combined}: file not found — {err}')
- # %% [markdown]
- # ## Select ICA components to exclude
- #
- # Opens the eelbrain ICA selection GUI for each subject and sensor array so that artifactual components (eye blinks, muscle noise, cardiac, line noise) can be manually identified and marked for removal. **Only needs to be run once per subject**, after ICA has been fitted above.
- #
- # The cell iterates over all subjects and acquisitions and calls `mobEEG_e.make_ica_selection()`, which renders each component as a time-series, scalp topography, and power spectrum. Click components to toggle their exclusion status and close the window to save the selection.
- #
- # > **Note:** The GUI runs inside the notebook kernel's event loop. If the window freezes or does not respond, use `select_ica_gui.py` instead, which launches the GUI in a separate process:
- # > ```python
- # > import subprocess, sys
- # > subprocess.run([sys.executable, 'select_ica_gui.py', subject, condition, acq_type])
- # > ```
- # > The selected components are stored back in the condition-specific ICA file under `data/derivatives/ica/` and applied automatically during the **Align EEG and predictors** step below.
- # %%
- ica_dir = DATA_ROOT / 'derivatives' / 'ica'
- for subject in subjects:
- print(f'sub-{subject}')
- for acq_combined in aquisitions:
- acq_type = re.match(r'^(scalp|ceegrid)', acq_combined).group(1)
- task_cap = re.sub(r'^(scalp|ceegrid)', '', acq_combined)
- task = task_cap[0].lower() + task_cap[1:]
- ica_file = ica_dir / f'sub-{subject}_acq-{acq_combined}_eeg_raw-ica_ica.fif'
- if not ica_file.exists():
- print(f' {acq_combined}: ICA not found, skipping')
- continue
- mobEEG_e.set(subject=subject, raw=f'{task}_ica_{acq_type}', acquisition=acq_combined)
- mobEEG_e.make_ica_selection()
- print(f' {acq_combined}: done')
- # %% [markdown]
- # # Align EEG and predictors
- # %%
- SAVE_DIR = DATA_ROOT / 'derivatives' / 'preprocessed'
- SAVE_DIR.mkdir(exist_ok=True)
- fieldnames = ['eeg','predictors','microphones']
- attentions = ['attended','ignored','null']
- # Combined condition_acquisition names
- typeOfRegressors = ['~gammatone-1','~gammatone-on-1']
- micRegressors = ['gt_log1','gt_on1']
- predictor_names = ['env', 'onset']
- data = {
- 'eeg': [],
- 'info': {},
- 'microphones': {},
- 'predictors': {
- attention: {
- pred: []
- for pred in predictor_names
- }
- for attention in attentions
- }
- }
- info = {
- 'summary': 'Preprocessed data ready for TRF analysis.',
- 'condition': '',
- 'acquisition': '',
- 'attended': 'Attended speech',
- 'ignored': 'Ignored speech',
- 'null': 'Trial-shifted predictors as null model',
- 'normalization': 'eeg, predictors and mics are z-normalized',
- 'filter': filt,
- 'fs': 50,
- 'cut': 'First and last 1s of each block are cut to avoid edge artifacts from filtering and epoching',
- }
- info_switA = {
- 'summary': 'Preprocessed data ready for TRF analysis. Switches are randomized between the intervals',
- 'block1': [0,35],
- 'switch1': [35,55],
- 'block2': [55,125],
- 'switch2': [125,145],
- 'block3': [145,178],
- 'attended': 'Predictors for attended block1 and block3',
- 'ignored': 'Predictors for attended block2',
- 'null': 'Trial-shifted predictors as null model',
- }
- for subject in subjects:
- print('---------------------------')
- print(f'Subject: {subject}')
- out_path = SAVE_DIR / f'sub-{subject}'
- out_path.mkdir(parents=True, exist_ok=True)
- for acq_combined in aquisitions:
- acq_type = re.match(r'^(scalp|ceegrid)', acq_combined).group(1)
- task_cap = re.sub(r'^(scalp|ceegrid)', '', acq_combined)
- task = task_cap[0].lower() + task_cap[1:]
- print(f'Condition: {task}, Acq: {acq_combined}')
- info['condition'] = task
- info['acquisition'] = acq_combined
- if task == 'switA':
- info['switchingInfo'] = info_switA
- else:
- info['switchingInfo'] = 'No switching'
- eeg_fif = DATA_ROOT / f'sub-{subject}' / 'eeg' / f'sub-{subject}_acq-{acq_combined}_eeg.fif'
- if not eeg_fif.exists():
- print(f' {acq_combined}: EEG file not found, skipping')
- continue
- save_path = out_path / f'sub-{subject}_acq-{acq_combined}.pickle'
- if save_path.exists():
- continue
- mobEEG_e.set(subject=subject, task=task, raw=f'1-20_{task}_{acq_type}', acquisition=acq_combined)
- epochs, predictors, predictors_mic, predictors_attended, attended_conv = mobEEG_e.align_epochs_and_predictors(
- typeOfRegressors, micRegressors, filt, condition=task
- )
- eeg_ndvar_all = eel.load.mne.epochs_ndvar(epochs)
- data['eeg'] = eeg_ndvar_all
- data['predictors']['attended']['env'] = predictors['attended_files']['~gammatone-1'][0]
- data['predictors']['attended']['onset'] = predictors['attended_files']['~gammatone-on-1'][0]
- data['predictors']['ignored']['env'] = predictors['ignored_files']['~gammatone-1'][0]
- data['predictors']['ignored']['onset'] = predictors['ignored_files']['~gammatone-on-1'][0]
- data['predictors']['null']['env'] = predictors['shifted_files']['~gammatone-1'][0]
- data['predictors']['null']['onset'] = predictors['shifted_files']['~gammatone-on-1'][0]
- data['info'] = info
- eel.save.pickle(data, save_path)
- # %% [markdown]
- # # Quick TRF-check
- #
- # A lightweight sanity check to verify that the preprocessed data for a single subject looks reasonable before running the full group analysis. Loads one subject's `.pickle` file and fits both backward and forward TRF models using `eelbrain.boosting` with L1 error and 9-fold cross-validation.
- #
- # - **Backward model** (predictor → EEG, lag window −0.6 – 0.2 s) — estimates how well the acoustic envelope predicts the EEG response. Reports the cross-validated correlation *r* for attended, ignored, and null (trial-shifted) predictors. Attended *r* should be clearly higher than null.
- # - **Forward model** (EEG → predictor, lag window −0.2 – 0.6 s) — estimates the temporal response function (TRF) as a scalp topography over time. The attended TRF should show clear auditory components (e.g. N1 at ~100 ms); the null TRF should be flat.
- #
- # Set `acq` at the top of the load cell to switch between sensor arrays and conditions (e.g. `'scalpSustA'`, `'ceegridSwitA'`).
- # %%
- acq = 'scalpSustA'
- tmp = SAVE_DIR / f'sub-{subject}' / f'sub-{subject}_acq-{acq}.pickle'
- data = eel.load.unpickle(tmp)
- eeg = data['eeg']
- attended = data['predictors']['attended']['env']
- ignored = data['predictors']['ignored']['env']
- null = data['predictors']['null']['env']
- # %% [markdown]
- # ## Backward models
- # %%
- TMIN = -0.6
- TMAX = 0.2
- nPartitions = 9
- bw_att = eel.boosting(attended, eeg, TMIN, TMAX, basis=0.05, error='l1', partitions=nPartitions, test=1, partition_results=True)
- print(f'Attended r: {float(bw_att.r)}')
- bw_ign = eel.boosting(ignored, eeg, TMIN, TMAX, basis=0.05, error='l1', partitions=nPartitions, test=1, partition_results=True)
- print(f'Ignored r: {float(bw_ign.r)}')
- bw_null = eel.boosting(null, eeg, TMIN, TMAX, basis=0.05, error='l1', partitions=nPartitions, test=1, partition_results=True)
- print(f'Null r: {float(bw_null.r)}')
- # %% [markdown]
- # ## Forward models
- # %%
- TMIN = -0.2
- TMAX = 0.6
- fw_att = eel.boosting(eeg, attended, TMIN, TMAX, basis=0.05, error='l1', partitions=nPartitions, test=1, partition_results=True)
- fw_ign = eel.boosting(eeg, ignored, TMIN, TMAX, basis=0.05, error='l1', partitions=nPartitions, test=1, partition_results=True)
- fw_null = eel.boosting(eeg, null, TMIN, TMAX, basis=0.05, error='l1', partitions=nPartitions, test=1, partition_results=True)
- vmax = float(max(
- abs(fw_att.h_scaled.x).max(),
- abs(fw_ign.h_scaled.x).max(),
- abs(fw_null.h_scaled.x).max()
- ))
- def clean_spines(p):
- for ax in p.axes:
- ax.spines['top'].set_visible(False)
- ax.spines['right'].set_visible(False)
- ax.axvline(0, color='grey', linestyle='--', alpha=0.6)
- ax.grid(True, alpha=0.2)
- p_att = eel.plot.Butterfly(fw_att.h_scaled, title='Attended TRF', vmax=vmax)
- clean_spines(p_att)
- p_ign = eel.plot.Butterfly(fw_ign.h_scaled, title='Ignored TRF', vmax=vmax)
- clean_spines(p_ign)
- p_null = eel.plot.Butterfly(fw_null.h_scaled, title='Null TRF', vmax=vmax)
- clean_spines(p_null)
preprocessing.ipynb at commit 4cce465, under MIT · at the source
Overview
- Department of Electrical Engineering, Linköping University, Linköping, Sweden
- Centre for Mathematical Sciences, Lund University, Lund, Sweden
- Eriksholm Research Centre, Oticon A/S, Snekkersten, Denmark
Abstract
Everyday communication is dynamic and multisensory, often involving shifting attention, overlapping speech, and visual cues. Yet, most neural attention tracking studies are still limited to highly controlled lab settings, using clean, often audio‐only stimuli and requiring sustained attention to a single talker. This work addresses that gap by introducing a novel dataset from 24 normal‐hearing participants. We used a wearable electroencephalography (EEG) system (44 scalp electrodes and 20 cEEGrid electrodes) in an audiovisual (AV) paradigm with three conditions: sustained attention to a single talker in a two‐talker environment, attention switching between two talkers, and unscripted two‐talker conversations with a competing single talker. Analysis included temporal response functions (TRFs) modeling, optimal lag analysis, selective attention classification with decision windows ranging from 1.1 to 35 s, and comparisons of TRFs for attention to AV conversations versus side audio‐only talkers. Key findings show significant differences in the attention‐related P2 peak between attended and ignored speech across conditions for scalp EEG. Interestingly, our results revealed strong cross‐condition generalization, with models trained in one condition maintaining good performance when evaluated on the other two. No significant change in performance between switching and sustained attention suggests robustness for attention switches. Optimal lag analysis revealed a narrower peak for conversation compared to single‐talker AV stimuli, reflecting the additional complexity of multi‐talker processing. Classification of selective attention was consistently above chance (55%–70% accuracy) for scalp EEG, whereas cEEGrid data yielded lower correlations, highlighting the need for further methodological improvements. These results demonstrate that wearable EEG can reliably track selective attention in dynamic, multisensory listening scenarios and provide guidance for designing future AV paradigms and real‐world attention tracking applications.
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 5 matches between paragraphs and lines of code.
JohannaWil/audiovisual-attention-eeg-trf
4cce46580a14e1feea78da884c77fca8a2c5c6e1, 11 May 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
9 files
- analysis.ipynb — Jupyter, 207 lines
- experiment.py — Python, 871 lines
- helpers.py — Python, 495 lines, 1 match
- plotting.py — Python, 755 lines, 1 match
- preprocessing.ipynb — Jupyter, 450 lines, 2 matches
- runTRFs.ipynb — Jupyter, 261 lines, 1 match
- select_ica_gui.py — Python, 68 lines
- LICENSE — License, 21 lines
- README.md — Text, 177 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;
- 7 scripts, each with its path and the digest of its content;
- 5 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 Availability Statement
The data underlying this study are subject to ethical and legal restrictions. Participant consent did not explicitly include permission for public data sharing, and the dataset falls under the scope of the EU General Data Protection Regulation (GDPR). For these reasons, the data are not publicly available. Data may be made available upon reasonable request, subject to institutional and ethical approval and appropriate data‐sharing agreements. The code is available at github.com/
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 2, 28 September 2026
- Publisher: — → Wiley
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 5 keywords, 14 MeSH terms, 1 funder, 52 references.
Cite
This paper
Wilroth, J., Keding, O., Skoglund, M. A., Sandsten, M., Enqvist, M., & Alickovic, E. (2026). Neural Tracking of Sustained Attention, Attention Switching, and Natural Conversation in Audiovisual Environments Using Wearable EEG. The European journal of neuroscience, 63(9), e70538. https://
BibTeX
@article{wilroth2026neur
author = {Wilroth, Johanna and Keding, Oskar and Skoglund, Martin A and Sandsten, Maria and Enqvist, Martin and Alickovic, Emina},
title = {{Neural Tracking of Sustained Attention, Attention Switching, and Natural Conversation in Audiovisual Environments Using Wearable EEG}},
journal = {The European journal of neuroscience},
year = {2026},
month = may,
volume = {63},
number = {9},
pages = {e70538},
publisher = {Wiley},
issn = {0953-816X},
doi = {10.1111/
url = {https://
pmid = {42104679},
pmcid = {PMC13156524}
}
RIS
TY - JOUR
AU - Wilroth, Johanna
AU - Keding, Oskar
AU - Skoglund, Martin A
AU - Sandsten, Maria
AU - Enqvist, Martin
AU - Alickovic, Emina
TI - Neural Tracking of Sustained Attention, Attention Switching, and Natural Conversation in Audiovisual Environments Using Wearable EEG
T2 - The European journal of neuroscience
J2 - Eur J Neurosci
PY - 2026
DA - 2026/
VL - 63
IS - 9
SP - e70538
SN - 0953-816X
PB - Wiley
DO - 10.1111/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1111/
"type": "article-journal",
"title": "Neural Tracking of Sustained Attention, Attention Switching, and Natural Conversation in Audiovisual Environments Using Wearable EEG",
"container-title": "The European journal of neuroscience",
"author": [
{
"family": "Wilroth",
"given": "Johanna"
},
{
"family": "Keding",
"given": "Oskar"
},
{
"family": "Skoglund",
"given": "Martin A"
},
{
"family": "Sandsten",
"given": "Maria"
},
{
"family": "Enqvist",
"given": "Martin"
},
{
"family": "Alickovic",
"given": "Emina"
}
],
"container-title-short":
"volume": "63",
"issue": "9",
"page": "e70538",
"DOI": "10.1111/
"PMID": "42104679",
"PMCID": "PMC13156524",
"ISSN": "0953-816X",
"publisher": "Wiley",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
1
]
]
}
}
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.7554/elife.100605 [code]
- Age-related changes in ‘cortical’ 1/
f dynamics are linked to cardiac activity Journal: —In common: MNE-BIDS, MNE-Python, seaborn, 4 other tools, other, 2 references - [2] doi:10.1038/s41597-025-06397-4 [code]
- MEG-SCANS - A comprehensive magnetoencephalography speech dataset with Stories, Chirps and Noisy SentencesJournal: —In common: MNE-Python, pandas, SciPy, 2 other tools, 5 references
- [3] doi:10.1371/journal.pbio.3003876 [code]
- Competing speech streams are simultaneously represented in the human cortex during attention switching.Journal: PLoS biologyIn common: EEG, cognitive, 6 references
- [4] doi:10.1038/s42003-026-10394-7 [code]
- Cognitive load weakens neural speech tracking without altering response timing.Journal: Communications biologyIn common: MNE-Python, seaborn, pandas, 3 other tools, EEG, cognitive, 3 references
- [5] doi:10.1038/s41598-026-55371-6 [code]
- Decoding selective auditory attention to musical elements in ecologically valid music listening.Journal: Scientific reportsIn common: MNE-Python, pandas, NumPy, EEG, cognitive, 4 references
- [6] doi:10.1097/j.pain.0000000000004044 [code]
- No effect of rhythmic visual stimulation on experimental pain perception.Journal: PainIn common: MNE-BIDS, MNE-Python, seaborn, 4 other tools, EEG, cognitive, 1 reference
- [7] 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: MNE-BIDS, MNE-Python, seaborn, 4 other tools, EEG, 1 reference
- [8] doi:10.1038/s41597-025-05174-7 [code]
- A large-scale MEG and EEG dataset for object recognition in naturalistic scenesJournal: —In common: MNE-BIDS, MNE-Python, seaborn, 4 other tools, EEG, 1 reference
- [9] doi:10.1093/nc/niag029 [code]
- A data-driven approach to identifying and evaluating connectivity-based neural correlates of conscious visual perception.Journal: Neuroscience of consciousnessIn common: MNE-BIDS, MNE-Python, seaborn, 4 other tools, cognitive, 1 reference
- [10] doi:10.1038/s41467-026-75240-0 [code]
- Dynamic acoustic-to-categorical representations of phonemes and prosody along ventral and dorsal speech streams.Journal: Nature communicationsIn common: MNE-Python, seaborn, pandas, 3 other tools, cognitive, 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: 1 repository of the authors' code, each at its verified commit and with its license, 7 scripts, and 5 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:0ddbec3e618e4b74…
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.
