python处理心电图_使用Python在实时信号上进行ECG数据分析

博主使用Python从Arduino获取的信号中制作心电图(ECG),打算对其进行分析,但尚未确定具体分析方法。目前疑问在于,是否能直接在串行口实时流动的数据上进行分析,还是先保存到文本文件再分析更好。博主希望至少能检测信号峰值(R波)和R-R间隔以计算心率。文中给出了一个简单的Python实时绘图示例,但建议先保存数据进行实验,以确定所需的分析参数和数据量。
摘要由CSDN通过智能技术生成

I am using Python to produce an electrocardiogram (ECG) from signals obtained by an Arduino. I want to perform some analysis on it, what type of analysis I do not know yet that is something I have yet to decide. However my question is, is it possible to do this analysis on a real time flow of data coming through the serial port, or is it easier/better to save the data first to suppose a text file and then perform analysis on it. Right now I can't wrap my head round how to do it. An extra note: I would at the very minimum like to detect the peaks of the signal (R wave) and the R-R interval (so I can measure the beats per minute).

Here is what I have on Python thus far:

from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg

import matplotlib.figure as mfig

import PyQt4.QtGui as gui, PyQt4.QtCore as core

import collections

import time

<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值