Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

PyHFO 2.0: An Open-Source Platform for Deep Learning–Based Clinical High-Frequency Oscillations Analysis

View ORCID ProfileYuanyi Ding, Yipeng Zhang, View ORCID ProfileChenda Duan, View ORCID ProfileAtsuro Daida, Yun Zhang, Sotaro Kanai, Minjian Lu, View ORCID ProfileShaun Hussain, Richard J. Staba, View ORCID ProfileHiroki Nariai, Vwani Roychowdhury
doi: https://doi.org/10.1101/2025.05.09.25327327
Yuanyi Ding
1Department of Electrical and Computer Engineering, University of California, Los Angeles, California, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Yuanyi Ding
Yipeng Zhang
1Department of Electrical and Computer Engineering, University of California, Los Angeles, California, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Chenda Duan
1Department of Electrical and Computer Engineering, University of California, Los Angeles, California, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Chenda Duan
Atsuro Daida
2Division of Pediatric Neurology, Department of Pediatrics, UCLA Mattel Children’s Hospital, David Geffen School of Medicine, California, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Atsuro Daida
Yun Zhang
4Department of Civil Engineering, University of California, Los Angeles, California, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Sotaro Kanai
2Division of Pediatric Neurology, Department of Pediatrics, UCLA Mattel Children’s Hospital, David Geffen School of Medicine, California, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Minjian Lu
1Department of Electrical and Computer Engineering, University of California, Los Angeles, California, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Shaun Hussain
2Division of Pediatric Neurology, Department of Pediatrics, UCLA Mattel Children’s Hospital, David Geffen School of Medicine, California, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Shaun Hussain
Richard J. Staba
3Department of Neurology, UCLA Medical Center, David Geffen School of Medicine, California, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Hiroki Nariai
2Division of Pediatric Neurology, Department of Pediatrics, UCLA Mattel Children’s Hospital, David Geffen School of Medicine, California, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Hiroki Nariai
Vwani Roychowdhury
1Department of Electrical and Computer Engineering, University of California, Los Angeles, California, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • For correspondence: vwani{at}ee.ucla.edu
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Data/Code
  • Preview PDF
Loading

Abstract

Accurate detection and classification of high-frequency oscillations (HFOs) in electroencephalography (EEG) recordings have become increasingly important for identifying epileptogenic zones in patients with drug-resistant epilepsy. However, few open-source platforms offer comprehensive and accessible tools that integrate conventional signal processing with modern deep learning approaches for biomarker analysis. We introduce PyHFO 2.0, an enhanced platform designed for automated detection, classification, and expert annotation of neural events. PyHFO 2.0 includes three commonly used detection methods: short-term energy (STE), the Montreal Neurological Institute (MNI) approach, and a Hilbert transform-based detector. For classification, the platform incorporates deep learning models for artifact rejection, spike-associated HFO (spkHFO) detection, and epileptogenic HFO (eHFO) identification. These models are integrated with the Hugging Face ecosystem for seamless loading and can be replaced with custom-trained alternatives. Furthermore, PyHFO 2.0 features an interactive annotation interface that enables clinicians and researchers to inspect, verify, and refine automated results. The platform was validated using clinical EEG datasets from both human and rodent models of epilepsy, confirming its reliability. PyHFO 2.0 aims to simplify the use of computational neuroscience tools in both research and clinical environments by combining methodological rigor with a user-friendly graphical interface. Its scalable architecture and model integration capabilities support a range of applications in biomarker discovery, epilepsy diagnostics, and clinical decision support, bridging advanced computation and practical usability.

Competing Interest Statement

The authors have declared no competing interest.

Funding Statement

This study did not receive any funding

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

The details of the IRB/oversight body that provided approval or exemption for the research described are given below:

The Institutional Review Board of the University of California, Los Angeles (UCLA) waived ethical approval for this work using the UCLA human dataset (IRB#18-001599). The Institutional Animal Care and Use Committee of the University of California, Los Angeles gave ethical approval for the rodent dataset (protocol 2000-153-61A). The Zurich dataset was obtained from a publicly available repository (OpenNeuro: https://openneuro.org/datasets/ds003498/versions/1.1.1) and did not require ethical approval.

I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.

Yes

I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).

Yes

I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.

Yes

Data Availability

All data produced in the present study are available upon reasonable request to the authors

  • Abbreviations

    EEG
    electroencephalography;
    HFO
    high-frequency oscillation;
    iEEG
    intracranial electroencephalography;
    STE
    short-term energy;
    MNI
    Montreal Neurological Institute;
    FFT
    fast Fourier transform;
    DL
    deep learning;
    eHFO
    epileptogenic high-frequency oscillation;
    spkHFO
    spike-associated highfrequencyoscillation;
    GUI
    graphical user interface.
  • Copyright 
    The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY 4.0 International license.
    Back to top
    PreviousNext
    Posted May 11, 2025.
    Download PDF
    Data/Code
    Email

    Thank you for your interest in spreading the word about medRxiv.

    NOTE: Your email address is requested solely to identify you as the sender of this article.

    Enter multiple addresses on separate lines or separate them with commas.
    PyHFO 2.0: An Open-Source Platform for Deep Learning–Based Clinical High-Frequency Oscillations Analysis
    (Your Name) has forwarded a page to you from medRxiv
    (Your Name) thought you would like to see this page from the medRxiv website.
    CAPTCHA
    This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
    Share
    PyHFO 2.0: An Open-Source Platform for Deep Learning–Based Clinical High-Frequency Oscillations Analysis
    Yuanyi Ding, Yipeng Zhang, Chenda Duan, Atsuro Daida, Yun Zhang, Sotaro Kanai, Minjian Lu, Shaun Hussain, Richard J. Staba, Hiroki Nariai, Vwani Roychowdhury
    medRxiv 2025.05.09.25327327; doi: https://doi.org/10.1101/2025.05.09.25327327
    Twitter logo Facebook logo LinkedIn logo Mendeley logo
    Citation Tools
    PyHFO 2.0: An Open-Source Platform for Deep Learning–Based Clinical High-Frequency Oscillations Analysis
    Yuanyi Ding, Yipeng Zhang, Chenda Duan, Atsuro Daida, Yun Zhang, Sotaro Kanai, Minjian Lu, Shaun Hussain, Richard J. Staba, Hiroki Nariai, Vwani Roychowdhury
    medRxiv 2025.05.09.25327327; doi: https://doi.org/10.1101/2025.05.09.25327327

    Citation Manager Formats

    • BibTeX
    • Bookends
    • EasyBib
    • EndNote (tagged)
    • EndNote 8 (xml)
    • Medlars
    • Mendeley
    • Papers
    • RefWorks Tagged
    • Ref Manager
    • RIS
    • Zotero
    • Tweet Widget
    • Facebook Like
    • Google Plus One

    Subject Area

    • Neurology
    Subject Areas
    All Articles
    • Addiction Medicine (576)
    • Allergy and Immunology (867)
    • Anesthesia (306)
    • Cardiovascular Medicine (4480)
    • Dentistry and Oral Medicine (449)
    • Dermatology (385)
    • Emergency Medicine (614)
    • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1528)
    • Epidemiology (15276)
    • Forensic Medicine (31)
    • Gastroenterology (1133)
    • Genetic and Genomic Medicine (6643)
    • Geriatric Medicine (671)
    • Health Economics (1006)
    • Health Informatics (4602)
    • Health Policy (1378)
    • Health Systems and Quality Improvement (1622)
    • Hematology (544)
    • HIV/AIDS (1275)
    • Infectious Diseases (except HIV/AIDS) (15959)
    • Intensive Care and Critical Care Medicine (1110)
    • Medical Education (626)
    • Medical Ethics (147)
    • Nephrology (674)
    • Neurology (6692)
    • Nursing (346)
    • Nutrition (1006)
    • Obstetrics and Gynecology (1152)
    • Occupational and Environmental Health (961)
    • Oncology (3369)
    • Ophthalmology (988)
    • Orthopedics (370)
    • Otolaryngology (421)
    • Pain Medicine (437)
    • Palliative Medicine (131)
    • Pathology (668)
    • Pediatrics (1703)
    • Pharmacology and Therapeutics (699)
    • Primary Care Research (717)
    • Psychiatry and Clinical Psychology (5494)
    • Public and Global Health (9284)
    • Radiology and Imaging (2223)
    • Rehabilitation Medicine and Physical Therapy (1375)
    • Respiratory Medicine (1201)
    • Rheumatology (598)
    • Sexual and Reproductive Health (720)
    • Sports Medicine (535)
    • Surgery (720)
    • Toxicology (100)
    • Transplantation (290)
    • Urology (266)