Skip to content
Back to skills

Neuro Seizure Detection Eval

ASecurity

Evaluate EEG/iEEG seizure detection or prediction algorithms the way clinicians and challenges score them. Use whenever the user builds or reports a seizure detector or forecaster, computes sensitivity or false alarms, uses CHB-MIT, TUH Seizure, Siena or ward recordings, or compares against published seizure results.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 13, 2026
ai-agentspythongobash

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 13, 2026

npx -y skills add Hillock-NeuroTech/neurotech-skills --skill neuro-seizure-detection-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Neuro Seizure Detection Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Neuro Seizure Detection Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hillock-neurotech-neuro-seizure-detection-eval/badge)](https://www.skillsdirectory.com/skills/hillock-neurotech-neuro-seizure-detection-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: neuro-seizure-detection-eval
description: Evaluate EEG/iEEG seizure detection or prediction algorithms the way clinicians and challenges score them. Use whenever the user builds or reports a seizure detector or forecaster, computes sensitivity or false alarms, uses CHB-MIT, TUH Seizure, Siena or ward recordings, or compares against published seizure results.
---

# Seizure detection evaluation

Sample- or window-level accuracy is meaningless for seizures: they are
rare, so a detector that never fires scores above 99%. Clinical usefulness
is about catching each seizure quickly without too many false alarms.

## 1. Split by patient, and by time within patient

- Patient-independent claims: leave-one-patient-out.
- Patient-specific claims: train on earlier seizures, test on later ones
  (never random windows; windows around one seizure are near-duplicates).
- Prediction/forecasting: also hold out the interictal data in time order,
  and keep a gap around each seizure as the dataset protocol defines.

## 2. Score events, not windows

Convert detector output to events (threshold, smoothing, minimum duration,
merge gaps), then compare with reference seizures:

- **Sensitivity**: fraction of reference seizures overlapped by a detection.
- **False alarms per hour (FA/h, or per 24 h)**: detections that overlap no
  seizure, divided by recording hours.
- **Latency**: detection onset minus reference onset, for detected seizures.
- Precision and F1 on events as secondary numbers.

`scripts/event_scoring.py` computes all of these from two CSVs:

```bash
python scripts/event_scoring.py --ref ref.csv --det det.csv --hours 72.5 [--tolerance 0]
```

Each CSV has `onset_s,offset_s` (optionally `record` for multi-file data).

Use any-overlap scoring unless the user's benchmark defines otherwise
(TUH and challenge papers sometimes use time-aligned or epoch-based
variants; report which).

## 3. Choose the operating point honestly

Pick the threshold on training data, then report test sensitivity and
FA/h at that threshold. A full sensitivity vs FA/h curve is useful, but
the headline must be one fixed operating point.

## 4. Report

Patients, recording hours, seizures per patient, split scheme, threshold
choice, event sensitivity, FA/h, median latency, and per-patient results
(averages hide patients where it fails).

Files in this skill

  • SKILL.md2.3 KB
  • scripts/event_scoring.py2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.