A neuroscientist's guide to neural burst detection.
The 11 matches
- [1] § Tutorials ↔ 00_timecourse_localization.py, lines 2–35 · score 0.82 · empty room recordings, noise covariance matrix, dSPM, MRI, space, model
- [2] § Tutorials › eBOSC ↔ Tutorials/eBOSC.ipynb, lines 37–72 · score 0.75 · post processing, eBOSC, power threshold, Model parameters, segments, background
- [3] § Tutorials › PAPTO ↔ 01a_PAPTO_find_events.py, lines 162–212 · score 0.65 · Morlet wavelet convolution, normalized TFR, offset, exponent, aperiodic, fits
- [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] § 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] § Tutorials › Amplitude thresholding ↔ Utils/papto_functions.py, lines 292–393 · score 0.56 · Python equivalent, peak power, imregionalmax, TFR, band, threshold
- [7] § Tutorials › Amplitude thresholding ↔ Utils/spectralevents_functions.py, lines 222–323 · score 0.56 · Python equivalent, peak power, imregionalmax, TFR, band, threshold
- [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] § 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] § 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] § 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
- # %% [markdown]
- # ## eBOSC Tutorial
- #
- # The code used in this script is modified from https://github.com/jkosciessa/eBOSC_py
- #
- # 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.
- # %%
- # Imports
- import numpy as np
- import matplotlib.pyplot as plt
- import pandas as pd
- import os
- from ebosc.helpers import get_project_root
- from ebosc.eBOSC_wrapper import eBOSC_wrapper
- import scipy.io as io
- from papto_functions import *
- import time
- # %%
- # Read in one-dimensional time series (preprocessed)
- file_name = 'sub-0002_SomMotA_4_R.mat'
- scout_mean_timecourses = io.loadmat(file_name)
- raw_data = np.squeeze(scout_mean_timecourses['Value'])
- print(raw_data.shape)
- # %%
- # Configure data to pandas dataframe format expected by eBOSC algorithm
- Fs = 250
- region = 'SomMotA_4 R'
- times = np.arange(0,len(raw_data))/ Fs
- data = pd.DataFrame({'time':times, 'condition':[1]*len(times), 'epoch':[0]*len(times),region:raw_data})
- data.head(10)
- # %% [markdown]
- # ### 1. Set Model Parameters
- #
- # The eBOSC method takes in a dictionary containing information about the parameters and settings of the model.
- #
- # 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.
- #
- # More information on these parameters can found at https://github.com/jkosciessa/eBOSC_py
- # %%
- start_time = time.time()
- # eBOSC parameters
- cfg_eBOSC = dict()
- 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)
- cfg_eBOSC['wavenumber'] = 6 # wavelet parameter (time-frequency tradeoff)
- cfg_eBOSC['fsample'] = Fs # current sampling frequency of MEG data
- cfg_eBOSC['pad.tfr_s'] = 1 # padding following wavelet transform to avoid edge artifacts in seconds (bi-lateral)
- 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
- cfg_eBOSC['pad.background_s'] = 1 # padding of segments for BG (only avoiding edge artifacts)
- # Threshold settings
- cfg_eBOSC['threshold.excludePeak'] = np.array([[8,15]]) # lower and upper bound of frequencies to be excluded during background fit (Hz)
- 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))
- cfg_eBOSC['threshold.percentile'] = .95 # percentile of background fit for power threshold
- # Rhythmic episode post-processing
- cfg_eBOSC['postproc.use'] = 'yes' # Post-processing of rhythmic eBOSC.episodes, i.e., wavelet 'deconvolution' (default = 'no')
- cfg_eBOSC['postproc.method'] = 'FWHM' # Deconvolution method (default = 'MaxBias', FWHM: 'FWHM')
- cfg_eBOSC['postproc.edgeOnly'] = 'yes' # Deconvolution only at on- and offsets of eBOSC.episodes? (default = 'yes')
- cfg_eBOSC['postproc.effSignal'] = 'PT' # Power deconvolution on whole signal or signal above power threshold? (default = 'PT')
- # General processing settings
- cfg_eBOSC['channel'] = [region] # select channel of interest
- cfg_eBOSC['trial'] = [] # select trials (default: all, indicate in natural trial number (not zero-starting))
- cfg_eBOSC['trial_background'] = [] # select trials for background (default: all, indicate in natural trial number (not zero-starting))
- # %% [markdown]
- # ### 2. Run eBOSC Detection
- #
- # 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.
- #
- # 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.
- #
- # For more information on the specific processing steps completed by this function see: https://github.com/jkosciessa/eBOSC_py
- # %%
- # eBOSC method has some soon to be deprecated functions - keep this in mind but suppress for now to truncate output
- import warnings
- warnings.simplefilter(action='ignore', category=DeprecationWarning)
- # Run eBOSC
- [eBOSC, cfg] = eBOSC_wrapper(cfg_eBOSC, data)
- # %%
- # Find episodes with a beta (15-30 Hz) Frequency
- burst_df = pd.DataFrame(eBOSC['episodes'])
- peak_freq_list = []
- for i in range(0,len(burst_df)):
- peak_power_ind = np.argmax(burst_df['Power'].tolist()[i])
- peak_freq = (burst_df['Frequency'].tolist()[i])[peak_power_ind]
- peak_freq_list.append(peak_freq)
- burst_df['Peak Frequency'] = peak_freq_list
- burst_df['Event Duration'] = burst_df['DurationS']
- burst_df['Peak Time'] = burst_df['Onset']+(burst_df['Event Duration']/2)
- burst_df = burst_df[burst_df['Peak Frequency']>=15]
- burst_df = burst_df[burst_df['Peak Frequency']<=30]
- burst_df.head(5)
- # %%
- # Record burst rate
- burstRate = burst_df.shape[0]/(raw_data.shape[0]/Fs)
- print("Burst Rate:")
- print(burstRate)
- # %%
- # Make a TFR for data
- # TFR params #
- fmin = 15.0 # Hertz (integer)
- fmax = 30.0 # Hertz (integer)
- fstep = 1.0 # Hertz (integer)
- fVec = np.arange(fmin, fmax+1, fstep)
- chan_data = np.reshape(raw_data, (raw_data.shape[0],1)) #reshapes because function expects epochs
- TFR, tVec = TFR_via_morlet_wavelet(chan_data, fVec, Fs)
- # Plot showing where the bursts are identified in the TFR along with a visualization of the corresponding times in the raw signal
- fig, axs = plt.subplots(2,1, figsize=(15,4))
- scale_val = 20
- # Plot TFR with overlaid burst times/frequencies
- TFR_crop = np.asarray(TFR)[:,:,66500:68500]
- im = axs[0].pcolor(tVec[66500:68500], fVec, np.squeeze(TFR_crop), cmap='jet')
- axs[0].scatter(burst_df['Peak Time'], burst_df['Peak Frequency'] ,c='black',s=scale_val,zorder=1)
- axs[0].set_xlim(266,274)
- axs[0].set_ylim(15,30)
- # Plot indication of burst peak times with respect to raw (bandpassed) time series
- beta_filt_dat = mne.filter.filter_data(np.squeeze(chan_data), Fs, l_freq=15.0, h_freq=30.0,verbose=False)
- times = np.arange(0,chan_data.shape[0])/Fs
- axs[1].plot(times,beta_filt_dat,zorder=0,c='black')
- axs[1].scatter(burst_df['Peak Time'], [5]*len(burst_df['Peak Time']) ,c='lightseagreen',s=scale_val,zorder=1)
- axs[1].set_ylim(-6,6)
- axs[1].set_xlim(266,274)
- plt.xlabel('Time (s)')
- plt.show()
- # %%
- print("Total run time: %s seconds" % (time.time() - start_time))
- # %%
- burst_df.to_csv('ebosc_bursts.csv')
eBOSC.ipynb at commit 54961dc, no license · at the source
Overview
- McConnell Brain Imaging Centre, Montreal Neurological Institute, McGill University, Montreal, Quebec, Canada
- Department of Physics & Atmospheric Science, Dalhousie University, Halifax, Nova Scotia, Canada
- Centre de recherche du Centre Hospitalier de l’Université de Montréal (CRCHUM), Montreal, Quebec, Canada
- Department of Neuroscience, Université de Montréal, Montreal, Quebec, Canada
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
97314d619b21ec43d1586697ae2746b04104271f, 11 February 2022Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
8 files
- 00_timecourse_localizati
on.py , Python, 151 lines, 1 match - 01a_PAPTO_find_events.py
, Python, 272 lines, 1 match - 01b_med-norm_find_events
.py , Python, 154 lines - 02_burst_classification.
py , Python, 115 lines - 03_generate_waveforms.py
, Python, 244 lines - 04_ageing_stats_in_burst
_characteristics.py , Python, 404 lines - spectralevents_functions
.py , Python, 528 lines - README.md, Text, 7 lines
voytekresearch/Cole_2018_cyclebycycle
9da87d0e8daecf087dd755115997be39b9788f8b, 25 May 2020Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
8 files
- Figure1_Cycle segmentation and characterization.ipynb, Jupyter, 225 lines
- Figure2_Simulated feature distributions.ipynb, Jupyter, 205 lines
- Figure3_Cycle feature accuracy.ipynb, Jupyter, 195 lines
- Figure4_Instantaneous vs cycle by cycle amplitude.ipynb, Jupyter, 340 lines
- Figure5_Instantaneous vs cycle by cycle frequency.ipynb, Jupyter, 346 lines
- Figure6_Motor cortical beta.ipynb, Jupyter, 192 lines
- config.py, Python, 27 lines
- README.md, Text, 14 lines
lindseypower/BurstDetection_Tutorials
54961dc1421ace0fd0032dd310aa61744f36d8e0, 21 April 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
15 files
- Tutorials/
Amplitude_thresholding.i , Jupyter, 169 linespynb - Tutorials/
CDL.ipynb , Jupyter, 255 lines - Tutorials/
Cyclebycycle.ipynb , Jupyter, 155 lines - Tutorials/
HMM.ipynb , Jupyter, 156 lines, 1 match - Tutorials/
PAPTO.ipynb , Jupyter, 213 lines - Tutorials/
Sliding_window_matching. , Jupyter, 67 lines, 2 matchesipynb - Tutorials/
eBOSC.ipynb , Jupyter, 151 lines, 2 matches - Utils/
bg_SWM.m , MATLAB, 1,505 lines, 1 match - Utils/
bg_swm_extract.m , MATLAB, 297 lines - Utils/
isfieldi.m , MATLAB, 10 lines - Utils/
papto_functions.py , Python, 393 lines, 1 match - Utils/
spectralevents_functions , Python, 472 lines, 1 match.py - Utils/
utils_csc.py , Python, 900 lines, 1 match - Utils/
utils_plot.py , Python, 338 lines - README.md, Text, 36 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;
- 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
- openneuro:ds000247, at OpenNeuro; found in “Data and Code Availability”
Data and Code Availability
Data used in this work are freely available at: 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, 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://
BibTeX
@article{power2026neuros
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/
url = {https://
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/
VL - 4
SP - IMAG.a.1226
SN - 2837-6056
PB - MIT Press
DO - 10.1162/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1162/
"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":
"volume": "4",
"page": "IMAG.a.1226",
"DOI": "10.1162/
"PMID": "42100763",
"PMCID": "PMC13146973",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://
"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 adaptationJournal: 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: iScienceIn 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-MEGJournal: n/aIn 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: PsychophysiologyIn common: 12 references
- [7] doi:10.1038/s41467-026-73553-8 [code]
- Universal rhythmic architecture uncovers two modes of neural dynamics.Journal: Nature communicationsIn 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/aIn 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 InvestigationsJournal: n/aIn 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.
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, 28 scripts, and 11 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:259ce8dd1b07efe1…
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.
