OSCR

A neuroscientist's guide to neural burst detection.

Code ↔ Paper

11 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 11 matches
  1. [1] § Tutorials ↔ 00_timecourse_localization.py, lines 2–35 · score 0.82 · empty room recordings, noise covariance matrix, dSPM, MRI, space, model
  2. [2] § Tutorials › eBOSC ↔ Tutorials/eBOSC.ipynb, lines 37–72 · score 0.75 · post processing, eBOSC, power threshold, Model parameters, segments, background
  3. [3] § Tutorials › PAPTO ↔ 01a_PAPTO_find_events.py, lines 162–212 · score 0.65 · Morlet wavelet convolution, normalized TFR, offset, exponent, aperiodic, fits
  4. [4] § Overview of Burst Detection Methods › Amplitude-based methods ↔ Tutorials/eBOSC.ipynb, lines 37–72 · score 0.65 · duration threshold, eBOSC, power threshold, background, cycles, detection
  5. [5] § Tutorials › Sliding window matching ↔ Tutorials/Sliding_window_matching.ipynb, lines 18–29 · score 0.65 · Sliding window matching, longer windows, window length, burst duration
  6. [6] § Tutorials › Amplitude thresholding ↔ Utils/papto_functions.py, lines 292–393 · score 0.56 · Python equivalent, peak power, imregionalmax, TFR, band, threshold
  7. [7] § Tutorials › Amplitude thresholding ↔ Utils/spectralevents_functions.py, lines 222–323 · score 0.56 · Python equivalent, peak power, imregionalmax, TFR, band, threshold
  8. [8] § Overview of Burst Detection Methods › Motif-based methods ↔ Utils/bg_SWM.m, lines 4–63 · score 0.54 · Sliding Window Matching, SWM, sparse, iteratively, spacing, algorithms
  9. [9] § Overview of Burst Detection Methods › Multichannel motif-based methods ↔ Utils/utils_csc.py, lines 105–157 · score 0.54 · Convolutional Dictionary Learning, evoked, topographies, CDL, atoms, channel
  10. [10] § Tutorials › Time-delay embedding hidden Markov modeling (TDE-HMM) ↔ Tutorials/HMM.ipynb, lines 73–84 · score 0.53 · sequence length, hyperparameters, batch, epochs, HMM, Model
  11. [11] § Tutorials ↔ Tutorials/Sliding_window_matching.ipynb, lines 18–29 · score 0.52 · sliding window matching, 15–30 Hz, burst rates, bandpass, filtered, 15 Hz

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 · 151 lines · 6.8 KB · no license · 2 matches

  1. # %% [markdown]
  2. # ## eBOSC Tutorial
  3. #
  4. # The code used in this script is modified from https://github.com/jkosciessa/eBOSC_py
  5. #
  6. # This method takes in a 1-dimensional time series of preprocessed electrophysiological data. A dataframe containing the characteristics (timing, frequency, power, etc.) of each detected burst is returned.
  7. # %%
  8. # Imports
  9. import numpy as np
  10. import matplotlib.pyplot as plt
  11. import pandas as pd
  12. import os
  13. from ebosc.helpers import get_project_root
  14. from ebosc.eBOSC_wrapper import eBOSC_wrapper
  15. import scipy.io as io
  16. from papto_functions import *
  17. import time
  18. # %%
  19. # Read in one-dimensional time series (preprocessed)
  20. file_name = 'sub-0002_SomMotA_4_R.mat'
  21. scout_mean_timecourses = io.loadmat(file_name)
  22. raw_data = np.squeeze(scout_mean_timecourses['Value'])
  23. print(raw_data.shape)
  24. # %%
  25. # Configure data to pandas dataframe format expected by eBOSC algorithm
  26. Fs = 250
  27. region = 'SomMotA_4 R'
  28. times = np.arange(0,len(raw_data))/ Fs
  29. data = pd.DataFrame({'time':times, 'condition':[1]*len(times), 'epoch':[0]*len(times),region:raw_data})
  30. data.head(10)
  31. # %% [markdown]
  32. # ### 1. Set Model Parameters
  33. #
  34. # The eBOSC method takes in a dictionary containing information about the parameters and settings of the model.
  35. #
  36. # Important parameters to note include the 'F' parameter which specifies the frequency sample of interest, 'fsample' which must be set to the sampling rate of your data, and the threshold parameters which can be modified to influence the sensitivity of the model.
  37. #
  38. # More information on these parameters can found at https://github.com/jkosciessa/eBOSC_py
  39. # %%
  40. start_time = time.time()
  41. # eBOSC parameters
  42. cfg_eBOSC = dict()
  43. cfg_eBOSC['F'] = np.arange(1,30,1) # frequency sampling (we only want 15-30 Hz but in order to create PSD we need low frequencies)
  44. cfg_eBOSC['wavenumber'] = 6 # wavelet parameter (time-frequency tradeoff)
  45. cfg_eBOSC['fsample'] = Fs # current sampling frequency of MEG data
  46. cfg_eBOSC['pad.tfr_s'] = 1 # padding following wavelet transform to avoid edge artifacts in seconds (bi-lateral)
  47. cfg_eBOSC['pad.detection_s'] = .5 # padding following rhythm detection in seconds (bi-lateral); 'shoulder' for BOSC eBOSC.detected matrix to account for duration threshold
  48. cfg_eBOSC['pad.background_s'] = 1 # padding of segments for BG (only avoiding edge artifacts)
  49. # Threshold settings
  50. cfg_eBOSC['threshold.excludePeak'] = np.array([[8,15]]) # lower and upper bound of frequencies to be excluded during background fit (Hz)
  51. cfg_eBOSC['threshold.duration'] = np.array([2]*len(cfg_eBOSC['F'])).reshape(1,len(cfg_eBOSC['F'])) # vector of duration thresholds at each frequency (number of cycles, shape (1,number of freqs))
  52. cfg_eBOSC['threshold.percentile'] = .95 # percentile of background fit for power threshold
  53. # Rhythmic episode post-processing
  54. cfg_eBOSC['postproc.use'] = 'yes' # Post-processing of rhythmic eBOSC.episodes, i.e., wavelet 'deconvolution' (default = 'no')
  55. cfg_eBOSC['postproc.method'] = 'FWHM' # Deconvolution method (default = 'MaxBias', FWHM: 'FWHM')
  56. cfg_eBOSC['postproc.edgeOnly'] = 'yes' # Deconvolution only at on- and offsets of eBOSC.episodes? (default = 'yes')
  57. cfg_eBOSC['postproc.effSignal'] = 'PT' # Power deconvolution on whole signal or signal above power threshold? (default = 'PT')
  58. # General processing settings
  59. cfg_eBOSC['channel'] = [region] # select channel of interest
  60. cfg_eBOSC['trial'] = [] # select trials (default: all, indicate in natural trial number (not zero-starting))
  61. cfg_eBOSC['trial_background'] = [] # select trials for background (default: all, indicate in natural trial number (not zero-starting))
  62. # %% [markdown]
  63. # ### 2. Run eBOSC Detection
  64. #
  65. # The eBOSC method has a fully-integrated python package and therefore does not require manual processing steps or locally-stored utility functions. Calling the eBOSC_wrapper function as below will perform all necessary processing steps: calculating the TFR, fitting the aperiodic component and applying thresholds to detect bursts in the data.
  66. #
  67. # The function returns an eBOSC object containing information about the various outputs of the model. eBOSC['episodes'] provides information about the specific characteristics of the detected bursts.
  68. #
  69. # For more information on the specific processing steps completed by this function see: https://github.com/jkosciessa/eBOSC_py
  70. # %%
  71. # eBOSC method has some soon to be deprecated functions - keep this in mind but suppress for now to truncate output
  72. import warnings
  73. warnings.simplefilter(action='ignore', category=DeprecationWarning)
  74. # Run eBOSC
  75. [eBOSC, cfg] = eBOSC_wrapper(cfg_eBOSC, data)
  76. # %%
  77. # Find episodes with a beta (15-30 Hz) Frequency
  78. burst_df = pd.DataFrame(eBOSC['episodes'])
  79. peak_freq_list = []
  80. for i in range(0,len(burst_df)):
  81. peak_power_ind = np.argmax(burst_df['Power'].tolist()[i])
  82. peak_freq = (burst_df['Frequency'].tolist()[i])[peak_power_ind]
  83. peak_freq_list.append(peak_freq)
  84. burst_df['Peak Frequency'] = peak_freq_list
  85. burst_df['Event Duration'] = burst_df['DurationS']
  86. burst_df['Peak Time'] = burst_df['Onset']+(burst_df['Event Duration']/2)
  87. burst_df = burst_df[burst_df['Peak Frequency']>=15]
  88. burst_df = burst_df[burst_df['Peak Frequency']<=30]
  89. burst_df.head(5)
  90. # %%
  91. # Record burst rate
  92. burstRate = burst_df.shape[0]/(raw_data.shape[0]/Fs)
  93. print("Burst Rate:")
  94. print(burstRate)
  95. # %%
  96. # Make a TFR for data
  97. # TFR params #
  98. fmin = 15.0 # Hertz (integer)
  99. fmax = 30.0 # Hertz (integer)
  100. fstep = 1.0 # Hertz (integer)
  101. fVec = np.arange(fmin, fmax+1, fstep)
  102. chan_data = np.reshape(raw_data, (raw_data.shape[0],1)) #reshapes because function expects epochs
  103. TFR, tVec = TFR_via_morlet_wavelet(chan_data, fVec, Fs)
  104. # Plot showing where the bursts are identified in the TFR along with a visualization of the corresponding times in the raw signal
  105. fig, axs = plt.subplots(2,1, figsize=(15,4))
  106. scale_val = 20
  107. # Plot TFR with overlaid burst times/frequencies
  108. TFR_crop = np.asarray(TFR)[:,:,66500:68500]
  109. im = axs[0].pcolor(tVec[66500:68500], fVec, np.squeeze(TFR_crop), cmap='jet')
  110. axs[0].scatter(burst_df['Peak Time'], burst_df['Peak Frequency'] ,c='black',s=scale_val,zorder=1)
  111. axs[0].set_xlim(266,274)
  112. axs[0].set_ylim(15,30)
  113. # Plot indication of burst peak times with respect to raw (bandpassed) time series
  114. beta_filt_dat = mne.filter.filter_data(np.squeeze(chan_data), Fs, l_freq=15.0, h_freq=30.0,verbose=False)
  115. times = np.arange(0,chan_data.shape[0])/Fs
  116. axs[1].plot(times,beta_filt_dat,zorder=0,c='black')
  117. axs[1].scatter(burst_df['Peak Time'], [5]*len(burst_df['Peak Time']) ,c='lightseagreen',s=scale_val,zorder=1)
  118. axs[1].set_ylim(-6,6)
  119. axs[1].set_xlim(266,274)
  120. plt.xlabel('Time (s)')
  121. plt.show()
  122. # %%
  123. print("Total run time: %s seconds" % (time.time() - start_time))
  124. # %%
  125. burst_df.to_csv('ebosc_bursts.csv')

eBOSC.ipynb at commit 54961dc, no license · at the source

Overview

Authors: Lindsey Power1, Idil Aydin1, Timothy Bardouille2, Sylvain Baillet1,3,4
  1. McConnell Brain Imaging Centre, Montreal Neurological Institute, McGill University, Montreal, Quebec, Canada
  2. Department of Physics & Atmospheric Science, Dalhousie University, Halifax, Nova Scotia, Canada
  3. Centre de recherche du Centre Hospitalier de l’Université de Montréal (CRCHUM), Montreal, Quebec, Canada
  4. Department of Neuroscience, Université de Montréal, Montreal, Quebec, Canada
Journal: Imaging neuroscience (Cambridge, Mass.), volume 4, article IMAG.a.1226
Dates: received 31 October 2025; accepted 8 April 2026; published online 30 April 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1162/imag.a.1226 · PMID 42100763 · PMCID PMC13146973 · OpenAlex W7154471852
Open access: diamond, a free copy (OpenAlex)
Status: code verified
Methods: Spectral & time-frequency, Smoothing, state filtering, decompositions, Machine learning, fMRI & imaging, Connectivity, Statistics
Keywords: neural bursts, electrophysiology, transient events, methods, tutorial
Topic: Neural dynamics and brain function (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: National Institutes of Health (R01‐EB026299); Canadian Institutes of Health Research (Postdoctoral Fellowship:193925); Natural Sciences and Engineering Research Council of Canada (436355-13, 2024-03788)
Citations: not cited yet (Europe PMC); 85 references in the paper

Abstract

Neural bursts—brief episodes of heightened oscillatory activity—are increasingly studied as fundamental building blocks of brain function, with relevance to perception, cognition, and disease. As such, detecting and characterizing these bursts in electrophysiological recordings have driven rapid methodological innovation in neuroscience research. However, the growing number of analysis techniques can be overwhelming, making it difficult for researchers to select the most appropriate method for their specific goals. In this review, we provide a structured and practical guide for neuroscientists to measure and interpret neural burst data. We offer an overview of current detection methods, accompanied by a suite of tutorials, including code notebooks and data, to enable concrete implementation and critical evaluation. We then conclude with actionable recommendations to help researchers select the best burst detection strategy in diverse research contexts. This guide is intended for newcomers to the field as well as more experienced neuroscientists seeking to expand their methodological toolkit.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repositories

Its files are read in the Code ↔ Paper reader above, with 11 matches between paragraphs and lines of code.

tbardouille/papto_camcan

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 97314d619b21ec43d1586697ae2746b04104271f, 11 February 2022
Languages: Python (7)
Size: 9 files, 7 scripts
Software Heritage: archived
Found in: the resources table
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Matplotlib (7 files), MNE-Python (7 files), NumPy (7 files), pandas (6 files), SciPy (6 files), seaborn (6 files), specparam (formerly FOOOF) (5 files), statsmodels (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
8 files

voytekresearch/Cole_2018_cyclebycycle

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 9da87d0e8daecf087dd755115997be39b9788f8b, 25 May 2020
Languages: Jupyter (6), Python (1)
Size: 12 files, 7 scripts
Software Heritage: not archived
Found in: the resources table
Holds: README, environment (environment.yml), 6 notebooks
Not found: license file, CITATION.cff, tests, continuous integration, documentation
Tools: bycycle (6 files), Matplotlib (6 files), NeuroDSP (6 files), NumPy (6 files), pandas (6 files), seaborn (6 files), SciPy (5 files)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
8 files

lindseypower/BurstDetection_Tutorials

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 54961dc1421ace0fd0032dd310aa61744f36d8e0, 21 April 2026
Languages: Jupyter (7), Python (4), MATLAB (3)
Size: 17 files, 14 scripts
Software Heritage: not archived
Found in: the text, “Tutorials”
Holds: README, 7 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (10 files), SciPy (9 files), Matplotlib (8 files), MNE-Python (8 files), pandas (8 files), seaborn (5 files), FieldTrip (2 files), Statistics and Machine Learning Toolbox (2 files), MNE-BIDS (2 files), scikit-learn (2 files), bycycle (1 file), specparam (formerly FOOOF) (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
15 files

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;
  • 28 scripts, each with its path and the digest of its content;
  • 11 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 and Code Availability

Data used in this work are freely available at: https://openneuro.org/datasets/ds000247/versions/00001. Tutorial code is available at: https://github.com/lindseypower/BurstDetection_Tutorials.

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, 4 authors, 5 keywords, 3 funders, 83 references.

Cite

This paper

Power, L., Aydin, I., Bardouille, T., & Baillet, S. (2026). A neuroscientist's guide to neural burst detection. Imaging neuroscience (Cambridge, Mass.), 4, IMAG.a.1226. https://doi.org/10.1162/imag.a.1226

BibTeX

@article{power2026neuroscientist,
author = {Power, Lindsey and Aydin, Idil and Bardouille, Timothy and Baillet, Sylvain},
title = {{A neuroscientist's guide to neural burst detection}},
journal = {Imaging neuroscience (Cambridge, Mass.)},
year = {2026},
month = apr,
volume = {4},
pages = {IMAG.a.1226},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/imag.a.1226},
url = {https://doi.org/10.1162/imag.a.1226},
pmid = {42100763},
pmcid = {PMC13146973}
}

RIS

TY - JOUR
AU - Power, Lindsey
AU - Aydin, Idil
AU - Bardouille, Timothy
AU - Baillet, Sylvain
TI - A neuroscientist's guide to neural burst detection
T2 - Imaging neuroscience (Cambridge, Mass.)
J2 - Imaging Neurosci (Camb)
PY - 2026
DA - 2026/04/30
VL - 4
SP - IMAG.a.1226
SN - 2837-6056
PB - MIT Press
DO - 10.1162/imag.a.1226
UR - https://doi.org/10.1162/imag.a.1226
LA - en
ER -

CSL-JSON

{
"id": "10.1162/imag.a.1226",
"type": "article-journal",
"title": "A neuroscientist's guide to neural burst detection",
"container-title": "Imaging neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Power",
"given": "Lindsey"
},
{
"family": "Aydin",
"given": "Idil"
},
{
"family": "Bardouille",
"given": "Timothy"
},
{
"family": "Baillet",
"given": "Sylvain"
}
],
"container-title-short": "Imaging Neurosci (Camb)",
"volume": "4",
"page": "IMAG.a.1226",
"DOI": "10.1162/imag.a.1226",
"PMID": "42100763",
"PMCID": "PMC13146973",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://doi.org/10.1162/imag.a.1226",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
30
]
]
}
}

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.64898/2026.03.06.710026 [code]
Distinct beta burst motifs exhibit opposing error relationships during motor adaptation
Journal: bioRxiv (preprint)
In common: specparam (formerly FOOOF), FieldTrip, MNE-Python, 8 other tools, 8 references
[2] doi:10.1016/j.isci.2026.115375 [code]
Bursts of regional cortical inhibition during smartphone use.
Journal: iScience
In common: Statistics and Machine Learning Toolbox, scikit-learn, pandas, 2 other tools, 13 references
[3] doi:10.1162/imag.a.1040 [code]
Novel 4 He-OPMs support waveform-specific beta burst analysis comparable to SQUID-MEG
Journal: n/a
In common: specparam (formerly FOOOF), FieldTrip, MNE-Python, 6 other tools, 8 references
[4] doi:10.1162/imag.a.1255
Beta bursts spatiotemporal profiles and their links to hemodynamic responses during movement and rest.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: 14 references
[5] 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: specparam (formerly FOOOF), MNE-Python, seaborn, 4 other tools, 8 references
[6] doi:10.1111/psyp.70345 [code]
sBOSC: A Method for Source-Level Identification of Neural Oscillations in Electromagnetic Brain Signals.
Journal: Psychophysiology
In common: 12 references
[7] doi:10.1038/s41467-026-73553-8 [code]
Universal rhythmic architecture uncovers two modes of neural dynamics.
Journal: Nature communications
In common: FieldTrip, MNE-Python, Statistics and Machine Learning Toolbox, 4 other tools, 8 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: NeuroDSP, MNE-BIDS, specparam (formerly FOOOF), 7 other tools, 2 references
[9] doi:10.7554/elife.100605 [code]
Age-related changes in ‘cortical’ 1/f dynamics are linked to cardiac activity
Journal: n/a
In common: NeuroDSP, MNE-BIDS, specparam (formerly FOOOF), 8 other tools, 1 reference
[10] doi:10.1111/ejn.70255 [code]
A Systematic Review of Aperiodic Neural Activity in Clinical Investigations
Journal: n/a
In common: NeuroDSP, specparam (formerly FOOOF), seaborn, 3 other tools, 5 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.

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.