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.





