PyHFO 2.0: an open-source platform for deep learning—based clinical high-frequency oscillations analysis
Bibliographic record
Abstract
Abstract Objective. 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 both state-of-the-art computational methods and user-friendly interfaces to support practical clinical use. Approach. We present PyHFO 2.0, an enhanced open-source, Python-based platform that extends previous work by incorporating a more comprehensive set of detection methods and deep learning (DL) tools for HFO analysis. The platform now supports three commonly used detectors: short-term energy, Montreal Neurological Institute, and a newly integrated Hilbert transform-based detector. For HFO classification, PyHFO 2.0 includes DL models for artifact rejection, spike HFO detection, and identification of epileptogenic HFOs. These models are integrated with the Hugging Face ecosystem for automatic loading and can be replaced with custom-trained alternatives. An interactive annotation module enables clinicians and researchers to inspect, verify, and reclassify events. Main results. All detection and classification modules were evaluated using clinical EEG datasets, supporting the applicability of the platform in both research and translational settings. Validation across multiple datasets demonstrated close alignment with expert-labeled annotations and standard tools such as RIPPLELAB. Significance. 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.
Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.
How this classification was reachedexpand
Full frame distilled prediction
Teacher imitationNot calibrated prevalence, not ground truth. Human validation pending. Learned from the 10,348 direct Codex labels and 10,348 direct Gemma labels. Candidate is the union of thresholded teacher heads; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels or direct frontier model labels.
Codex and Gemma teacher scores by category
| Category | Codex | Gemma |
|---|---|---|
| Metaresearch | 0.001 | 0.001 |
| Meta-epidemiology (narrow) | 0.000 | 0.000 |
| Meta-epidemiology (broad) | 0.000 | 0.000 |
| Bibliometrics | 0.000 | 0.001 |
| Science and technology studies | 0.000 | 0.000 |
| Scholarly communication | 0.000 | 0.001 |
| Open science | 0.001 | 0.000 |
| Research integrity | 0.000 | 0.000 |
| Insufficient payload (model declined to judge) | 0.000 | 0.000 |
Machine scores (provisional)
The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.
Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.
score_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from itClassification
machine, unvalidatedMachine predicted; a candidate call from one teacher head, not a consensus.
How this classification was reached, model by model and score by score, is at the end of the page under "How this classification was reached".