Optimizing real-time phase detection in diverse rhythmic biological signals for phase-specific neurostimulation

<i>Objective.</i>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.<i>Approach.</i>We evaluated the<i>in silico</i>performance 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.<i>Results</i>. First, we found that signal amplitude and frequency variations strongly influence algorithm performance. Frequency-specific signal-to-noise ratio was positively correlated with performance (mean<i>R</i><sup>2</sup>= 0.42 across metrics), while amplitude and frequency variability were negatively correlated (mean<i>R</i><sup>2</sup>= 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 finding<i>in vivo</i>by 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.<i>Significance</i>. 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.

Authors

Institutions

Publication Details

Journal
Journal of Neural Engineering
Published
2025-10-01
DOI
https://doi.org/10.1088/1741-2552/ae10e1
Primary Topic
Neurological disorders and treatments
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimizing real-time phase detection in diverse rhythmic biological signals for phase-specific neurostimulation

Sameera Shridhar, Jai Y. Yu, Mengzhan Liufu, Zachary M. Leveroni et al.
Journal of Neural Engineering
Neurological disorders and treatments
article

Optimizing real-time phase detection in diverse rhythmic biological signals for phase-specific neurostimulation

Sameera Shridhar, Jai Y. Yu, Mengzhan Liufu, Zachary M. Leveroni, Nan Zhou
article en

Abstract

<i>Objective.</i>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.<i>Approach.</i>We evaluated the<i>in silico</i>performance 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.<i>Results</i>. First, we found that signal amplitude and frequency variations strongly influence algorithm performance. Frequency-specific signal-to-noise ratio was positively correlated with performance (mean<i>R</i><sup>2</sup>= 0.42 across metrics), while amplitude and frequency variability were negatively correlated (mean<i>R</i><sup>2</sup>= 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 finding<i>in vivo</i>by 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.<i>Significance</i>. 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.

Journal of Neural EngineeringVol. 22(5)
Neurosciences Institute (US), University of Chicago (US)
Openalex Percentile: Top 60%
Neurological disorders and treatments
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.