Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính51k · #3504

neurokit2

Skill này làm gì

Công cụ này giúp nhà nghiên cứu sắp xếp và phân tích dữ liệu tín hiệu sinh lý (như nhịp tim) một cách đáng tin cậy và có thể lặp lại, bằng thư viện NeuroKit2. Nó đảm bảo các bước xử lý rõ ràng và kết quả có thể kiểm chứng.

Khi nào nên dùng

  • ✓Khi nhập hoặc dùng thư viện NeuroKit2 để phân tích dữ liệu sinh học.
  • ✓Khi bạn cần đảm bảo phân tích tín hiệu sinh lý có thể tái tạo.
  • ✓Khi xử lý dữ liệu chuỗi thời gian sinh lý cho nghiên cứu.

Liên kết skill

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/neurokit2/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/neurokit2/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm thế nào để dùng NeuroKit2 xử lý và phân tích dữ liệu ECG một cách có thể tái tạo, đồng thời hiệu chỉnh các nhiễu (artifact)?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ theo một quy trình từng bước để kiểm tra, làm sạch và phân tích tín hiệu. Nó kiểm tra các chi tiết như tần số lấy mẫu, đơn vị và các vấn đề tiềm ẩn trong dữ liệu trước khi áp dụng phương pháp phân tích cụ thể.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

NeuroKit2

Scope and evidence cutoff

Use this skill for method-aware, reproducible biosignal research with NeuroKit2. The snapshot was checked on 2026-10-01 against:

  • stable PyPI 0.2.13, released 2026-03-02;
  • Python metadata (>=3.10; classifiers 3.10–3.14) and wheel dependencies;
  • GitHub release notes/tags, NEWS.rst, source at tag v0.2.13;
  • official API pages/examples (the live site identified itself as 0.2.13.dev214); and
  • pinned 0.2.13 runtime signatures and synthetic output schemas.

The current wheel requires pandas<3.0.0. The refreshed core checks use Python 3.13, NumPy 2.5.3, and pandas 2.3.3; forcing pandas 3 conflicts with upstream metadata. API fragments below assume caller-provided arrays and imports. Optional MNE source reconstruction, cvxEDA, EMD, and pyRQA paths are source-reviewed, not runtime-validated by this refresh. Synthetic checks establish software behavior, not empirical validity.

The live documentation can be ahead of the stable wheel. Prefer the pinned runtime for reproducible work and name both versions if consulting development docs.

Boundary

NeuroKit2 is a research and educational toolbox. Do not present its output as:

  • a diagnosis, treatment recommendation, patient-monitoring decision, or alarm;
  • validation, certification, or regulatory evidence for a medical device; or
  • proof that a physiological construct is measured validly in a new sensor, protocol, environment, population, or disease group.

Validate acquisition hardware, electrode/optode placement, units, sampling and clock accuracy, preprocessing, detector/decomposition method, population, task, and outcomes for the intended study. Preserve raw data and an auditable exclusion log. Use deidentified local files only; do not place PHI in prompts, logs, examples, or bundled fixtures.

Reproducible installation

uv pip install "neurokit2==0.2.13"

For optional features, create a uv project, add only the packages actually required at reviewed exact versions, and commit/review the resulting uv.lock before uv sync --locked. NeuroKit2 exposes an upstream full extra, but this skill intentionally does not install that floating transitive set in an automated workflow. Optional capabilities can require MNE, cvxopt, Plotly, PyEMD, pyRQA, Pillow, OpenCV, or file readers. Record the resolved environment with the analysis. Provision any MNE data/template download as an explicit, checksummed study input. Do not install a moving development branch for a reproducible study.

Required data contract

Before processing, record:

  1. signal identity and sensor/channel configuration;
  2. native sampling rate in Hz and physical unit (or explicitly arbitrary_unit);
  3. clock, timestamp origin, drift correction, and synchronization evidence;
  4. polarity/orientation and acquisition-side filters/gain;
  5. missing samples, discontinuities, saturation, flatlines, motion, and annotations;
  6. whether event onsets are zero-based sample indices or seconds;
  7. planned preprocessing order, methods, parameters, exclusions, and outputs; and
  8. participant-level grouping needed to prevent leakage in later statistics.

Never infer units from a column name. Do not silently treat samples as milliseconds, volts, microsiemens, or arbitrary units.

Core workflow

1. Inspect before transforming

python skills/neurokit2/scripts/inspect_signal.py \
  --input recording.csv --root . --deidentified \
  --columns ECG,RSP,EDA --time-column time_s \
  --units ECG=mV,RSP=a.u.,EDA=uS

The inspector is bounded and emits no row values or paths. Resolve non-monotonic time, duplicate samples, gaps, non-finite values, flat runs, and sampling-rate disagreement before filtering.

2. Preserve preprocessing order

Use this default reasoning order, adapting it to the acquisition and cited method:

  1. preserve immutable raw signal and annotations;
  2. verify time base, units, polarity, clipping, gaps, and artifacts;
  3. segment at long gaps; only interpolate short gaps under a declared policy;
  4. apply modality-specific cleaning at the native sampling rate;
  5. detect peaks/onsets or decompose components;
  6. inspect quality outputs and raw overlays;
  7. correct peaks only with logged categories and sensitivity checks;
  8. derive rates/features;
  9. align continuous modalities on a declared common time grid; and
  10. map event indices to that grid, epoch, baseline, and analyze.

…

Câu hỏi thường gặp

“Có thể tái tạo” nghĩa là gì trong ngữ cảnh này?

Nghĩa là người khác (hoặc chính bạn trong tương lai) có thể làm theo đúng các bước và nhận được kết quả giống nhau với cùng dữ liệu.

Tôi có thể dùng công cụ này để chẩn đoán y khoa không?

Không. Công cụ chỉ dành cho nghiên cứu và giáo dục. Không được dùng để chẩn đoán, điều trị hoặc đưa ra quyết định y tế.

Công cụ có thể phân tích những loại tín hiệu sinh lý nào?

Nó được thiết kế cho nhiều loại tín hiệu, như ECG (điện tâm đồ), EDA (hoạt động điện da), RSP (hô hấp) và nhiều loại khác.

Chi tiết

Mô tả gốc của tác giả

Builds and audits reproducible NeuroKit2 research workflows for physiological time-series preprocessing, event/interval analysis, multimodal alignment, variability, and complexity. Use when code imports neurokit2 or needs its current APIs, schemas, and method-aware validation—not for diagnosis or device validation.

repo: K-Dense-AI/scientific-agent-skills

Độ phổ biến

Sao GitHub
51k
Vị trí xếp hạng
#3504
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự