neurokit2

Computes cleaned physiological biosignals and derives metrics for ECG, EEG, EDA, RSP, EMG, EOG, PPG analysis.

46|4|Updated Apr 8, 2023
One-click install
npx skills add https://github.com/CRAG666/dotfiles --skill neurokit2-crag666
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neurokit2
Source: https://github.com/CRAG666/dotfiles/tree/main/skills/neurokit2
Command: npx skills add https://github.com/CRAG666/dotfiles --skill neurokit2-crag666

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

NeuroKit2 streamlines the processing of physiological biosignals into clean signals and interpretable metrics, eliminating the repetitive, error-prone work of writing custom pipelines for ECG, EEG, EDA, RSP, EMG, and EOG analysis.

Core Features & Use Cases

  • Signal processing for multiple modalities: Clean, detect key events/peaks, and compute core features for cardiac (ECG/PPG), autonomic (EDA), respiratory (RSP), muscular (EMG), and ocular (EOG) signals.
  • End-to-end analysis support: Run high-level pipelines like ECG/EDA/RSP/EMG/EOG processing and derive metrics such as HRV (time/frequency/nonlinear), entropy/complexity, and event/interval analyses.
  • Multi-modal and event-related workflows: Perform multi-signal integration (e.g., RSA via ECG+RSP) and create epochs around stimulus events for time-locked comparisons.

Use Case: You record synchronized ECG and respiration during an experiment and need heart rate variability plus cardiorespiratory coupling metrics; you can process both signals and extract RSA and HRV indices in a reproducible workflow.

Quick Start

Use the skill to analyze the uploaded biosignal file(s) by running NeuroKit2 processing to produce cleaned signals, detected peaks/events, and a summary table of computed metrics.

Frequently Asked Questions about neurokit2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute heart rate variability metrics from ECG signals?

Heart rate variability metrics are computed by cleaning ECG signals, detecting R-peaks, and deriving time, frequency, and nonlinear domain indices. This process uses a consistent sampling-rate workflow to generate a reproducible summary table of HRV features.

What's the best way to process multi-modal biosignals for event-related analysis?

Event-related analysis is performed by creating epochs around stimulus events for time-locked comparisons across multi-modal biosignals. You process synchronized signals like ECG and respiration to extract integrated metrics such as respiratory sinus arrhythmia.

Can I extract features from EDA and EMG recordings in the same workflow?

Yes, EDA and EMG signals can both be cleaned and processed for feature extraction in the same workflow. The pipeline supports autonomic and muscular modalities, detecting key events and peaks to compute domain-specific metrics for each signal type.

Does biosignal processing require a specific sampling rate for ECG and EEG analysis?

Biosignal processing for ECG and EEG analysis requires a consistent sampling-rate workflow to accurately clean signals and extract features. Maintaining a uniform sampling rate ensures correct peak detection, event timing, and interval-related physiological analysis.

Why do I need to clean physiological biosignals before extracting metrics?

Cleaning physiological biosignals is necessary to remove noise and artifacts before extracting accurate domain-specific metrics. This step ensures that detected peaks and computed features for ECG, EEG, EDA, and EMG reliably represent the underlying physiological activity.