{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"institution":[{"name":"bioRxiv"}],"indexed":{"date-parts":[[2026,1,15]],"date-time":"2026-01-15T22:23:53Z","timestamp":1768515833620,"version":"3.49.0"},"posted":{"date-parts":[[2024,8,26]]},"group-title":"Neuroscience","reference-count":51,"publisher":"openRxiv","license":[{"start":{"date-parts":[[2024,8,26]],"date-time":"2024-08-26T00:00:00Z","timestamp":1724630400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.biorxiv.org\/about\/FAQ#license"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"accepted":{"date-parts":[[2024,8,26]]},"abstract":"<jats:title>\n                  <jats:bold>Abstract<\/jats:bold>\n                <\/jats:title>\n                <jats:p>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 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. We used offline simulation to evaluate the performance of three algorithms (endpoint-corrected Hilbert Transform, Hilbert Transform and phase mapping) on three rhythmic biological signals with distinct spectral properties (rodent hippocampal theta potential, human EEG alpha and human essential tremor). First, we found that algorithm performance was more strongly influenced by signal amplitude and frequency variation compared with signal to noise ratio. Second, our simulations showed that the size of the data window for phase estimation was critical for the performance of FFT-based algorithms, where the optimal data window corresponds to the period of the oscillation. We validated this prediction with real time phase detection of hippocampal theta oscillations in freely behaving rats performing spatial navigation. Our findings define the relationship between signal properties and algorithm performance and provide a convenient method for optimizing FFT-based phase detection algorithms.<\/jats:p>","DOI":"10.1101\/2024.08.24.609522","type":"posted-content","created":{"date-parts":[[2024,8,29]],"date-time":"2024-08-29T00:00:19Z","timestamp":1724889619000},"source":"Crossref","is-referenced-by-count":0,"title":["Optimizing real-time phase detection in diverse rhythmic biological signals for phase-specific neuromodulation"],"prefix":"10.64898","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-7062-4423","authenticated-orcid":false,"given":"Mengzhan","family":"Liufu","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0008-4773-4702","authenticated-orcid":false,"given":"Zachary M.","family":"Leveroni","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0009-8636-5265","authenticated-orcid":false,"given":"Sameera","family":"Shridhar","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0004-5891-366X","authenticated-orcid":false,"given":"Nan","family":"Zhou","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0628-2531","authenticated-orcid":false,"given":"Jai Y.","family":"Yu","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"54368","reference":[{"key":"2024082821001171000_2024.08.24.609522v1.1","first-page":"4736","article-title":"Continuous Phase Estimation for Phase-Locked Neural Stimulation Using an Autoregressive Model for Signal Prediction","volume":"2018","year":"2018","journal-title":"Annu Int Conf IEEE Eng Med Biol Soc"},{"key":"2024082821001171000_2024.08.24.609522v1.2","doi-asserted-by":"crossref","first-page":"13039","DOI":"10.1038\/s41598-024-63385-1","article-title":"A randomized controlled trial of alpha phase-locked auditory stimulation to treat symptoms of sleep onset insomnia","volume":"14","year":"2024","journal-title":"Sci Rep"},{"key":"2024082821001171000_2024.08.24.609522v1.3","doi-asserted-by":"crossref","unstructured":"Bressler, S. , Neely, R. , Yost, R. M. , Wang, D. & Read, H. L . 2023. A wearable EEG system for closed-loop neuromodulation of sleep-related oscillations. J Neural Eng, 20.","DOI":"10.1088\/1741-2552\/acfb3b"},{"key":"2024082821001171000_2024.08.24.609522v1.4","doi-asserted-by":"publisher","DOI":"10.1016\/j.cub.2013.01.068"},{"key":"2024082821001171000_2024.08.24.609522v1.5","doi-asserted-by":"crossref","first-page":"113869","DOI":"10.1016\/j.expneurol.2021.113869","article-title":"Real-time phase and amplitude estimation of neurophysiological signals exploiting a non-resonant oscillator","volume":"347","year":"2022","journal-title":"Exp Neurol"},{"key":"2024082821001171000_2024.08.24.609522v1.6","doi-asserted-by":"publisher","DOI":"10.1016\/S0896-6273(02)00586-X"},{"key":"2024082821001171000_2024.08.24.609522v1.7","doi-asserted-by":"publisher","DOI":"10.1038\/nn.3304"},{"key":"2024082821001171000_2024.08.24.609522v1.8","doi-asserted-by":"publisher","DOI":"10.1093\/brain\/awt239"},{"key":"2024082821001171000_2024.08.24.609522v1.9","doi-asserted-by":"publisher","DOI":"10.1093\/brain\/aww286"},{"key":"2024082821001171000_2024.08.24.609522v1.10","doi-asserted-by":"crossref","first-page":"952","DOI":"10.1038\/s41593-024-01598-3","article-title":"The dynamic state of a prefrontal-hypothalamic-midbrain circuit commands behavioral transitions","volume":"27","year":"2024","journal-title":"Nat Neurosci"},{"key":"2024082821001171000_2024.08.24.609522v1.11","doi-asserted-by":"publisher","DOI":"10.1109\/TBME.2011.2109715"},{"key":"2024082821001171000_2024.08.24.609522v1.12","doi-asserted-by":"crossref","first-page":"8956","DOI":"10.1093\/cercor\/bhad174","article-title":"Transcranial ultrasound stimulation modulates neural activities during NREM and REM depending on the stimulation phase of slow oscillations and theta waves in the hippocampus","volume":"33","year":"2023","journal-title":"Cereb Cortex"},{"key":"2024082821001171000_2024.08.24.609522v1.13","doi-asserted-by":"publisher","DOI":"10.1073\/pnas.1913092116"},{"key":"2024082821001171000_2024.08.24.609522v1.14","doi-asserted-by":"crossref","first-page":"036014","DOI":"10.1088\/1741-2552\/aaaed7","article-title":"Developing a hippocampal neural prosthetic to facilitate human memory encoding and recall","volume":"15","year":"2018","journal-title":"J Neural Eng"},{"key":"2024082821001171000_2024.08.24.609522v1.15","doi-asserted-by":"publisher","DOI":"10.1523\/JNEUROSCI.23-37-11725.2003"},{"key":"2024082821001171000_2024.08.24.609522v1.16","doi-asserted-by":"publisher","DOI":"10.1038\/s41467-019-11938-8"},{"key":"2024082821001171000_2024.08.24.609522v1.17","doi-asserted-by":"crossref","unstructured":"Kim, B. , Erickson, B. A. , Fernandez-Nunez, G. , Rich, R. , Mentzelopoulos, G. , Vitale, F. & Medaglia, J. D . 2023. EEG Phase Can Be Predicted with Similar Accuracy across Cognitive States after Accounting for Power and Signal-to-Noise Ratio. eNeuro, 10.","DOI":"10.1523\/ENEURO.0050-23.2023"},{"key":"2024082821001171000_2024.08.24.609522v1.18","doi-asserted-by":"publisher","DOI":"10.1046\/j.1460-9568.2003.02517.x"},{"key":"2024082821001171000_2024.08.24.609522v1.19","doi-asserted-by":"publisher","DOI":"10.1016\/j.neuron.2020.02.003"},{"key":"2024082821001171000_2024.08.24.609522v1.20","doi-asserted-by":"crossref","first-page":"69","DOI":"10.1038\/s41582-019-0302-1","article-title":"Essential tremor pathology: neurodegeneration and reorganization of neuronal connections","volume":"16","year":"2020","journal-title":"Nat Rev Neurol"},{"key":"2024082821001171000_2024.08.24.609522v1.21","doi-asserted-by":"crossref","unstructured":"Lurie, S. M. , Kragel, J. E. , Schuele, S. U. & Voss, J. L . 2022. Human hippocampal responses to network intracranial stimulation vary with theta phase. Elife, 11.","DOI":"10.7554\/eLife.78395"},{"key":"2024082821001171000_2024.08.24.609522v1.22","doi-asserted-by":"publisher","DOI":"10.1016\/j.neuron.2020.02.024"},{"key":"2024082821001171000_2024.08.24.609522v1.23","doi-asserted-by":"crossref","first-page":"401","DOI":"10.3389\/fnins.2017.00401","article-title":"A Fast EEG Forecasting Algorithm for Phase-Locked Transcranial Electrical Stimulation of the Human Brain","volume":"11","year":"2017","journal-title":"Front Neurosci"},{"key":"2024082821001171000_2024.08.24.609522v1.24","doi-asserted-by":"crossref","first-page":"034002","DOI":"10.1088\/1741-2552\/ab8683","article-title":"Estimation of phase in EEG rhythms for real-time applications","volume":"17","year":"2020","journal-title":"J Neural Eng"},{"key":"2024082821001171000_2024.08.24.609522v1.25","doi-asserted-by":"publisher","DOI":"10.1016\/j.neuron.2013.03.006"},{"key":"2024082821001171000_2024.08.24.609522v1.26","doi-asserted-by":"crossref","unstructured":"Onojima, T. & Kitajo, K . 2021. A state-informed stimulation approach with real-time estimation of the instantaneous phase of neural oscillations by a Kalman filter. J Neural Eng, 18.","DOI":"10.1101\/2021.04.25.441309"},{"key":"2024082821001171000_2024.08.24.609522v1.27","doi-asserted-by":"crossref","first-page":"830","DOI":"10.1016\/j.brs.2023.05.007","article-title":"The timing of transcranial magnetic stimulation relative to the phase of prefrontal alpha EEG modulates downstream target engagement","volume":"16","year":"2023","journal-title":"Brain Stimul"},{"key":"2024082821001171000_2024.08.24.609522v1.28","doi-asserted-by":"publisher","DOI":"10.1016\/j.tins.2021.05.004"},{"key":"2024082821001171000_2024.08.24.609522v1.29","doi-asserted-by":"crossref","first-page":"108965","DOI":"10.1016\/j.jneumeth.2020.108965","article-title":"A user-friendly algorithm for adaptive closed-loop phase-locked stimulation","volume":"347","year":"2021","journal-title":"J Neurosci Methods"},{"key":"2024082821001171000_2024.08.24.609522v1.30","doi-asserted-by":"crossref","first-page":"1263311","DOI":"10.3389\/fncom.2024.1263311","article-title":"Developing a hippocampal neural prosthetic to facilitate human memory encoding and recall of stimulus features and categories","volume":"18","year":"2024","journal-title":"Front Comput Neurosci"},{"key":"2024082821001171000_2024.08.24.609522v1.31","doi-asserted-by":"crossref","first-page":"18037","DOI":"10.1038\/s41598-021-97560-5","article-title":"Real-time estimation of phase and amplitude with application to neural data","volume":"11","year":"2021","journal-title":"Sci Rep"},{"key":"2024082821001171000_2024.08.24.609522v1.32","doi-asserted-by":"crossref","first-page":"109409","DOI":"10.1016\/j.jneumeth.2021.109409","article-title":"Toolkit for Oscillatory Real-time Tracking and Estimation (TORTE)","volume":"366","year":"2022","journal-title":"J Neurosci Methods"},{"key":"2024082821001171000_2024.08.24.609522v1.33","doi-asserted-by":"crossref","first-page":"363","DOI":"10.1038\/s41467-020-20581-7","article-title":"Non-invasive suppression of essential tremor via phase-locked disruption of its temporal coherence","volume":"12","year":"2021","journal-title":"Nat Commun"},{"key":"2024082821001171000_2024.08.24.609522v1.34","doi-asserted-by":"crossref","first-page":"046002","DOI":"10.1088\/1741-2552\/ab9dba","article-title":"Experimental evaluation of methods for real-time EEG phase-specific transcranial magnetic stimulation","volume":"17","year":"2020","journal-title":"J Neural Eng"},{"key":"2024082821001171000_2024.08.24.609522v1.35","doi-asserted-by":"publisher","DOI":"10.7554\/eLife.03061"},{"key":"2024082821001171000_2024.08.24.609522v1.36","doi-asserted-by":"crossref","first-page":"100276","DOI":"10.1016\/j.bjao.2024.100276","article-title":"Daytime dexmedetomidine sedation with closed-loop acoustic stimulation alters slow wave sleep homeostasis in healthy adults","volume":"10","year":"2024","journal-title":"BJA Open"},{"key":"2024082821001171000_2024.08.24.609522v1.37","doi-asserted-by":"publisher","DOI":"10.1093\/brain\/awaa450"},{"key":"2024082821001171000_2024.08.24.609522v1.38","doi-asserted-by":"crossref","unstructured":"Tseng, C. H. , Chen, J. H. & Hsu, S. M . 2023. The Enect of the Peristimulus \u03b1 Phase on Visual Perception through Real-Time Phase-Locked Stimulus Presentation. eNeuro, 10.","DOI":"10.1523\/ENEURO.0128-23.2023"},{"key":"2024082821001171000_2024.08.24.609522v1.39","doi-asserted-by":"publisher","DOI":"10.1016\/j.cogpsych.2014.01.003"},{"key":"2024082821001171000_2024.08.24.609522v1.40","doi-asserted-by":"publisher","DOI":"10.1016\/j.jneumeth.2009.10.018"},{"key":"2024082821001171000_2024.08.24.609522v1.41","doi-asserted-by":"crossref","first-page":"83","DOI":"10.1038\/s41572-021-00314-w","article-title":"Essential tremor","volume":"7","year":"2021","journal-title":"Nat Rev Dis Primers"},{"key":"2024082821001171000_2024.08.24.609522v1.42","doi-asserted-by":"crossref","first-page":"120121","DOI":"10.1016\/j.jns.2021.120121","article-title":"Physiologically informed neuromodulation","volume":"434","year":"2022","journal-title":"J Neurol Sci"},{"key":"2024082821001171000_2024.08.24.609522v1.43","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pcbi.1009887"},{"key":"2024082821001171000_2024.08.24.609522v1.44","doi-asserted-by":"crossref","first-page":"138","DOI":"10.1038\/s41386-023-01643-y","article-title":"Closing the loop in psychiatric deep brain stimulation: physiology, psychometrics, and plasticity","volume":"49","year":"2024","journal-title":"Neuropsychopharmacology"},{"key":"2024082821001171000_2024.08.24.609522v1.45","doi-asserted-by":"crossref","first-page":"671","DOI":"10.1001\/jamapsychiatry.2019.0740","article-title":"Targeting Cognition and Networks Through Neural Oscillations: Next-Generation Clinical Brain Stimulation","volume":"76","year":"2019","journal-title":"JAMA Psychiatry"},{"key":"2024082821001171000_2024.08.24.609522v1.46","doi-asserted-by":"crossref","first-page":"1093","DOI":"10.1016\/j.brs.2022.08.005","article-title":"The phase of sensorimotor mu and beta oscillations has the opposite enect on corticospinal excitability","volume":"15","year":"2022","journal-title":"Brain Stimul"},{"key":"2024082821001171000_2024.08.24.609522v1.47","doi-asserted-by":"crossref","unstructured":"Wodeyar, A. , Schatza, M. , Widge, A. S. , Eden, U. T. & Kramer, M. A . 2021. A state space modeling approach to real-time phase estimation. Elife, 10.","DOI":"10.7554\/eLife.68803"},{"key":"2024082821001171000_2024.08.24.609522v1.48","doi-asserted-by":"publisher","DOI":"10.1016\/j.neuroimage.2023.120423"},{"key":"2024082821001171000_2024.08.24.609522v1.49","doi-asserted-by":"publisher","DOI":"10.1016\/j.cub.2018.07.009"},{"key":"2024082821001171000_2024.08.24.609522v1.50","doi-asserted-by":"crossref","first-page":"116761","DOI":"10.1016\/j.neuroimage.2020.116761","article-title":"The shaky ground truth of real-time phase estimation","volume":"214","year":"2020","journal-title":"Neuroimage"},{"key":"2024082821001171000_2024.08.24.609522v1.51","doi-asserted-by":"crossref","first-page":"119805","DOI":"10.1016\/j.neuroimage.2022.119805","article-title":"Corticospinal excitability is highest at the early rising phase of sensorimotor \u00b5-rhythm","volume":"266","year":"2023","journal-title":"Neuroimage"}],"container-title":[],"original-title":[],"link":[{"URL":"https:\/\/syndication.highwire.org\/content\/doi\/10.1101\/2024.08.24.609522","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,1,15]],"date-time":"2026-01-15T06:56:21Z","timestamp":1768460181000},"score":1,"resource":{"primary":{"URL":"http:\/\/biorxiv.org\/lookup\/doi\/10.1101\/2024.08.24.609522"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,8,26]]},"references-count":51,"URL":"https:\/\/doi.org\/10.1101\/2024.08.24.609522","relation":{},"subject":[],"published":{"date-parts":[[2024,8,26]]},"subtype":"preprint"}}