neurokit2

Clean raw physiological recordings and compute metrics like HRV and EEG band power.

783|65|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill neurokit2-leonchaox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neurokit2
Source: https://github.com/LeonChaoX/qinyan-academic-skills/tree/main/skills/07-%E4%B8%B4%E5%BA%8A%E5%8C%BB%E5%AD%A6%E4%B8%8E%E7%B2%BE%E5%87%86%E5%8C%BB%E7%96%97/neurokit2
Command: npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill neurokit2-leonchaox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

NeuroKit2 helps you reliably process and analyze physiological biosignals (ECG, EEG, EDA, respiratory, EMG, and EOG) by turning raw time-series into cleaned signals, detected events/peaks, and interpretable metrics like HRV, band power, SCR features, respiratory variability, complexity/entropy, and event-related responses.

Core Features & Use Cases

  • Comprehensive biosignal processing: clean, detect peaks/events, and derive core features for ECG, EEG, EDA, respiratory signals (RSP), EMG, and EOG.
  • Cross-signal and multimodal integration: process multiple modalities together and compute integrated indices (e.g., RSA when ECG + respiration are available).
  • Advanced analytics: heart rate variability (time/frequency/nonlinear), EEG microstates, electrodermal responses, respiratory phase/rate/variability, and nonlinear complexity/entropy measures.
  • Event- and interval-based analysis: automatically supports event-related (epochs) and interval-related (continuous recordings) workflows.

Quick Start

Use the attached biosignal data (ECG/EEG/EDA/RSP/EMG/EOG) to run the appropriate NeuroKit2 processing pipeline and return cleaned signals plus key metrics for your study question (e.g., HRV, SCR features, EEG power or microstates, respiratory rate/variability, blink counts, and complexity indices).

Frequently Asked Questions about neurokit2

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

FAQPage Schema
How do I compute HRV and EDA metrics from raw biosignal recordings?

Computing HRV and EDA metrics from raw biosignal recordings requires a sampling rate–aware workflow that cleans the signals, detects peaks and events, and returns structured physiological indices and analysis tables. This process supports both event-related epochs and continuous interval-related recordings for autonomic feature extraction.

What biosignal processing techniques extract EEG microstates and EOG blink events?

Extracting EEG microstates and EOG blink events involves cleaning the raw time-series data, segmenting EEG signals into stable topographic maps, and detecting ocular artifacts via peak identification. The mechanism returns structured indices and analysis tables for interpreting neural dynamics and blink counts.

Can I process multimodal ECG and respiration recordings together to compute RSA?

Processing multimodal ECG and respiration recordings together enables integrated indices like RSA by combining cardiovascular peak detection with respiratory phase tracking. This cross-signal analysis requires a compatible workflow that synchronizes the modalities based on their sampling rates to derive autonomic metrics.

Does this biosignal processing approach support event-related and interval-related analysis?

This biosignal processing approach supports both event-related and interval-related analysis workflows. It handles event-related epochs by segmenting data around specific triggers and processes continuous interval-related recordings by deriving global metrics like complexity, entropy, and nonlinear HRV features across the entire signal.

What is the best way to clean ECG and EMG signals for physiological feature extraction?

The best way to clean ECG and EMG signals for physiological feature extraction is applying sampling rate–aware computations that filter noise and detect activation events. This prepares the raw time-series for deriving cardiovascular metrics like HRV and muscle activation features in structured analysis tables.

Why do biosignal processing metrics vary when analyzing continuous recordings versus event-related epochs?

Biosignal processing metrics vary between continuous recordings and event-related epochs because interval-related analysis computes global complexity and entropy across the entire signal, while event-related analysis isolates specific physiological responses around triggers. Both require distinct peak detection and epoching workflows to generate accurate structured indices.