NeuroKit
NeuroKit copied to clipboard
NeuroKit2 Analysis on Animal ECG Data
my subjects are mice, and their resting heart rates significantly differ from humans, typically ranging between 500–700 beats per minute (bpm) – a stark contrast to the human resting heart rate of 60–70 bpm. To accommodate this difference,
Firstly, nk.ecg_simulate
cannot generate data for heart rates exceeding 200 bpm, which is applicable for humans. However, this does not work for my animal experiments.
import neurokit2 as nk
ecg = nk.ecg_simulate(duration=15, sampling_rate=1000, heart_rate=750)
signals, info = nk.ecg_process(ecg, sampling_rate=1000)
nk.ecg_plot(signals, info)
Subsequently, I used my own data, and I was able to visualize it in the charts.
Screenshots
System Specifications
import neurokit2 as nk
nk.version()
-
OS: Darwin ( 64bit)
-
Python: 3.9.9
-
NeuroKit2: 0.2.7
-
NumPy: 1.21.5
-
Pandas: 1.4.0
-
SciPy: 1.8.1
-
sklearn: 1.1.1
-
matplotlib: 3.5.2