Related Experiment Video
Updated: Jan 15, 2026

Brain State-dependent Brain Stimulation with Real-time Electroencephalography-Triggered Transcranial Magnetic Stimulation
Published on: August 20, 2019
Optimizing real-time phase detection in diverse rhythmic biological signals for phase-specific neurostimulation
Mengzhan Liufu1, Zachary M Leveroni2,3, Sameera Shridhar2,3
1Department of Computer Science, University of Chicago, Chicago, IL 60637, United States of America.
None:
Objective.Closed-loop, phase-specific neurostimulation is a powerful method to modulate ongoing brain activity for clinical and research applications. Phase-specific stimulation relies on estimating the phase of an ongoing oscillation in real time and issuing a control command at a target phase. Phase detection algorithms based on the fast Fourier transform (FFT) are widely used due to their computational efficiency and robustness. However, it is unclear how algorithm performance depends on the spectral properties of the input signal and how algorithm parameters can be optimized.Approach.We evaluated thein silicoperformance of three phase detection algorithms [Endpoint-corrected Hilbert transform (ecHT), Hilbert transform (HT), and phase mapping (PM)] on three real-world biological signals with distinct spectral properties (theta oscillations from rodent hippocampal local field potential, alpha oscillations from human electroencephalogram (EEG), and hand movement kinematics from essential tremor patients) to identify the optimal model and parameters. We then validated the performance of an algorithm for estimating theta phase in real-time using rats implanted with electrodes in the hippocampus.Results. First, we found that signal amplitude and frequency variations strongly influence algorithm performance. Frequency-specific signal-to-noise ratio was positively correlated with performance (meanR2= 0.42 across metrics), while amplitude and frequency variability were negatively correlated (meanR2= 0.50 across metrics). Second, we showed that the length of the data window used for phase estimation is the key parameter for optimal performance of FFT-based algorithms, where the optimal data window length corresponds to the period of the oscillation (∼150 ms for hippocampal theta oscillations, ∼100 ms for human EEG alpha, and ∼125 ms for essential tremor kinematics). We validated this findingin vivoby estimating the phase of theta oscillations from the hippocampus of freely behaving rats, where a data window length corresponding to one theta cycle yielded the best performance across all metrics compared with shorter or longer window lengths.Significance. Our findings clarify the relationship between signal properties and algorithm performance and provide a convenient method for optimizing FFT-based phase detection algorithms. We show that a data window length corresponding to one cycle of an oscillation can lead to improved performance.
More Related Videos
05:19Author Spotlight: Therapeutic Benefit of Closed-Loop Deep Brain Stimulation in Depression Treatment
Published on: July 7, 2023
10:50Behavioral Determination of Stimulus Pair Discrimination of Auditory Acoustic and Electrical Stimuli Using a Classical Conditioning and Heart-rate Approach
Published on: June 6, 2012