本发明的最佳实施方式The best mode of the invention
为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and beneficial effects of the present invention clearer, the following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.
为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solution of the present invention, specific embodiments are used for description below.
实施例一:Example one:
请参阅图1,本发明实施例一提供的心律失常事件的监测方法包括以下步骤:需注意的是,若有实质上相同的结果,本发明的心律失常事件的监测方法并不以图1所示的流程顺序为限。Referring to FIG. 1, the method for monitoring arrhythmia events provided in the first embodiment of the present invention includes the following steps: It should be noted that if there are substantially the same results, the method for monitoring arrhythmia events of the present invention is not shown in FIG. The sequence of the processes shown is limited.
S101、获取对象的心脏搏动原始信号。S101. Obtain an original heartbeat signal of the subject.
心脏搏动原始信号是指所有能够反映心脏搏动特性的原始信号,例如心电图(Electrocardiogram,ECG) 信号、心音图(Phonocardiogram,PCG)信号、心震图(Seismocardiogram,SCG)信号、心冲击图
(Ballistocardiography,BCG) 信号、光电容积脉搏波(Photoplethysmograph,PPG) 信号、有创血压(Invasive blood pressure,IBP)信号、雷达波监测的心脏搏动信号等。The original heartbeat signal refers to all the original signals that can reflect the characteristics of the heartbeat, such as electrocardiogram (ECG) signal, phonocardiogram (Phonocardiogram, PCG) signal, seismocardiogram (SCG) signal, and shock cardiogram
(Ballistocardiography, BCG) signal, Photoplethysmograph (PPG) signal, Invasive blood pressure (IBP) signal, heart beat signal monitored by radar wave, etc.
心脏搏动原始信号通过传感器获得。当心脏搏动原始信号为BCG信号、PCG信号或SCG信号时,所述心脏搏动原始信号通过振动传感器获得。当心脏搏动原始信号为ECG信号时,所述心脏搏动原始信号通过心电传感器获得;当心脏搏动原始信号为PPG信号时,所述心脏搏动原始信号通过光电传感器获得;当心脏搏动原始信号为IBP信号时,所述心脏搏动原始信号通过IBP信号传感器获得;当心脏搏动原始信号为雷达波监测的心脏搏动信号时,所述心脏搏动原始信号通过生物雷达获得。The original signal of heart beat is obtained by the sensor. When the original heartbeat signal is a BCG signal, a PCG signal or an SCG signal, the original heartbeat signal is obtained by a vibration sensor. When the original heartbeat signal is an ECG signal, the original heartbeat signal is obtained by an ECG sensor; when the original heartbeat signal is a PPG signal, the original heartbeat signal is obtained by a photoelectric sensor; when the original heartbeat signal is an IBP When the signal is used, the original heartbeat signal is obtained by an IBP signal sensor; when the original heartbeat signal is a heartbeat signal monitored by radar waves, the original heartbeat signal is obtained by a bio-radar.
在本发明实施例一中,振动传感器可以是加速度传感器、速度传感器、位移传感器、压力传感器、光纤传感器、或者是以加速度、速度、压力、或位移为基础将物理量等效性转换的传感器(例如静电荷敏感传感器、充气式微动传感器、雷达传感器等)中的一种或多种。In the first embodiment of the present invention, the vibration sensor may be an acceleration sensor, a speed sensor, a displacement sensor, a pressure sensor, an optical fiber sensor, or a sensor that converts physical quantities equivalently based on acceleration, speed, pressure, or displacement (for example, One or more of electrostatic charge sensitive sensors, inflatable micro-motion sensors, radar sensors, etc.).
在本发明实施例一中,通过振动传感器采集对象的心脏搏动原始信号时,振动传感器可被放置于对象身体下方。例如对象可以呈仰卧、俯卧、侧卧、半卧等姿势,振动传感器可放置于床上,对象仰卧(俯卧或侧卧)于其上。较佳的测量状态是振动传感器被配置为与所述对象的肩部、背部、腰部或髋部接触,例如振动传感器置于平躺仰卧人体背后的接触面、一定倾斜角仰卧人体背后的接触面、轮椅或其它可倚靠物体的倚卧人体背后的接触面等多种方式进行采集和测量。一般地,为保证所采集信号质量,需要在比较安静的状态下进行测量。In the first embodiment of the present invention, when the original heartbeat signal of the subject is collected by the vibration sensor, the vibration sensor can be placed under the subject's body. For example, the subject can be in a posture such as supine, prone, side-lying, semi-lying, etc., the vibration sensor can be placed on the bed, and the subject is supine (prone or side) on it. A better measurement state is that the vibration sensor is configured to contact the shoulder, back, waist or hip of the subject, for example, the vibration sensor is placed on the contact surface behind the supine human body, or the contact surface behind the supine human body at a certain tilt angle. , Wheelchairs or other objects that can lean on the contact surface behind the lying human body, etc. for collection and measurement. Generally, in order to ensure the quality of the collected signal, the measurement needs to be performed in a relatively quiet state.
图2所示为振动传感器采集得到的心脏搏动原始信号波形示意图。振动传感器采集的心脏搏动原始数据包含被测对象呼吸信号成分、心脏搏动信号成分、以及环境微震动、被测对象体动引起的干扰和电路自身的噪声信号。此时的信号大轮廓即为人体呼吸产生的信号包络,而心脏搏动与其它干扰噪声则叠加在呼吸包络曲线上。Figure 2 shows a schematic diagram of the original signal waveform of the heart beat collected by the vibration sensor. The original heart beat data collected by the vibration sensor includes the respiratory signal component of the measured object, the heart beat signal component, as well as the environmental micro-vibration, the interference caused by the measured object's body movement, and the noise signal of the circuit itself. The large outline of the signal at this time is the signal envelope generated by human breathing, and the heartbeat and other interference noises are superimposed on the respiratory envelope curve.
S102、对心脏搏动原始信号进行预处理生成心脏搏动时域信号。S102: Perform preprocessing on the original heartbeat signal to generate a heartbeat time domain signal.
不同的传感器获得的心脏搏动原始信号包含的信息量不同,有的心脏搏动原始信号包含的信息量比较丰富,因此需要对其进行预处理来捕获相关信号。例如,振动传感器获得的心脏搏动原始信号中还包含被测对象的呼吸信号、体动信号、传感器固有的一些噪声等信号。The original heartbeat signals obtained by different sensors contain different amounts of information. Some original heartbeat signals contain more information, so it needs to be preprocessed to capture relevant signals. For example, the original heart beat signal obtained by the vibration sensor also contains signals such as the breathing signal, body motion signal, and some inherent noise of the sensor.
在本发明实施例一中,S102具体可以包括:In the first embodiment of the present invention, S102 may specifically include:
对心脏搏动原始信号进行滤波、去噪、信号缩放中的至少一种,得到心脏搏动时域信号;具体可以为:根据对滤波后信号特征的需求采用IIR滤波器、FIR滤波器、小波滤波器、零相位双向滤波器、多项式拟合平滑滤波器、积分变换、微分变换中的一种或多种组合,对心脏搏动原始信号进行滤波去噪;还可以包括:判断心脏搏动原始信号是否携带工频干扰信号,如果有,则通过工频陷波器滤除工频噪声。Perform at least one of filtering, denoising, and signal scaling on the original heartbeat signal to obtain the heartbeat time-domain signal; specifically, it can be: IIR filter, FIR filter, wavelet filter are used according to the requirements of the filtered signal characteristics , Zero-phase two-way filter, polynomial fitting smoothing filter, integral transform, differential transform one or more combinations, filtering and denoising the original heart beat signal; it can also include: judging whether the original heart beat signal carries labor If there is a high frequency interference signal, the power frequency noise is filtered through a power frequency notch filter.
如图3所示为对图2所示的振动传感器获取的心脏搏动原始信号进行滤波去噪后的时域波形示意图,每个波形特征明显且一致性良好、周期规律、轮廓清晰、基线平稳。Fig. 3 is a schematic diagram of the time-domain waveform after filtering and denoising the original heart beat signal obtained by the vibration sensor shown in Fig. 2. Each waveform has obvious characteristics and good consistency, regular periodicity, clear outline, and stable baseline.
S103、基于心脏搏动时域信号生成心脏搏动谱信号。S103: Generate a heart beat spectrum signal based on the heart beat time domain signal.
在本发明实施例一中,S103具体可以为:基于心脏搏动时域信号生成心脏搏动频域谱信号。In the first embodiment of the present invention, S103 may specifically be: generating a heart beat frequency domain spectrum signal based on a heart beat time domain signal.
例如:基于心脏搏动时域信号通过时频变换方式生成心脏搏动频域谱信号,时频变换方式可采用傅立叶变换、小波变换等,若需要细化频谱分辨率,还可以采用补零法、ZoomFFT法、CZT变换、Yip-ZOOM变换等;其中,用于时频变换的心脏搏动时域信号最好包含至少两个周期波形;For example: Based on the time-domain signal of the heart beat, the frequency-domain spectrum signal of the heart beat is generated by the time-frequency transformation method. The time-frequency transformation method can use Fourier transform, wavelet transform, etc. If you need to refine the spectral resolution, you can also use zero padding, ZoomFFT Method, CZT transformation, Yip-ZOOM transformation, etc.; among them, the heart beat time-domain signal used for time-frequency transformation preferably contains at least two periodic waveforms;
或者,or,
基于心脏搏动时域信号通过计算功率谱获得心脏搏动频域谱信号,可采用自相关法、周期图法、加窗平均周期图法、Welch法、多窗口法、最大熵法等;Based on the time-domain signal of the heartbeat, the frequency-domain spectrum signal of the heartbeat can be obtained by calculating the power spectrum, which can use autocorrelation method, periodogram method, windowed average periodogram method, Welch method, multi-window method, maximum entropy method, etc.;
或者,or,
基于心脏搏动时域信号通过计算AR谱获得心脏搏动频域谱信号。Based on the time domain signal of the heart beat, the frequency domain spectrum signal of the heart beat is obtained by calculating the AR spectrum.
当然,除了傅立叶变换、小波变换、功率谱计算、AR谱计算等方法之外还有更多的心脏搏动频域谱信号生成方式,此处不再赘述。Of course, in addition to Fourier transform, wavelet transform, power spectrum calculation, AR spectrum calculation, there are more ways to generate the frequency domain spectrum signal of the heart beat, which will not be repeated here.
下面以傅立叶变换进行说明:The Fourier transform is described below:
时域信号采样率一般不小于500Hz,而频域计算则对存储资源和运算能力消耗较大,其需要反映一定时长内的频率特征,因此一般需要对时域波形进行降采样重新抽样(即重采样),比如将500Hz抽成100Hz、62.5Hz、50Hz等。确定重采样率之后,根据运算资源和能力确定合适的时频变换点数,一般来说点数越多越精确,但点数越多需要的原始数据长度也越长。合理的设计最好能够保证用于时频变换的心脏搏动时域信号能够包含至少两个周期波形,例如假设心率测量范围的最小值为30bpm,则需要至少包含4秒以上时长的时域数据,再结合重采样率可确定时频变换的点数。如图4所示,是心脏搏动时域信号示意图,图5是基于图4所示的心脏搏动时域信号生成的心脏搏动频域谱信号示意图。可以采用CZT变换进行频谱细化分析,重点关注0~5Hz范围内频域特征,也可以根据实际需要扩大或缩小关注的频带范围。此时呈现的为优质的BCG频域波形,每个有效峰特征明显,轮廓清晰直立,基倍频特性明显。此时1.1Hz为主峰即基频峰,后续的各个明显峰分别为其二倍频、三倍频、四倍频。注意此时基频峰能量不是最高的原因与滤波器特性有关,在由时域信号进行时频变换的同时欲抑制低频干扰可以对低频信号进行滤除或压低,需注意在滤除低频干扰的同时可能压低主峰能量。这里的滤波可以直接在时域上进行,也可以在频域上进行窗函数滤波。由于此时只关心0~5Hz以内频率,因此基频峰1.1Hz的最大有效倍频为四倍频4.4Hz附近。如扩大频率上限,设置合理的滤波器参数,还有可能观察到其五倍频特征峰。The sampling rate of the time domain signal is generally not less than 500Hz, while the frequency domain calculation consumes a lot of storage resources and computing power. It needs to reflect the frequency characteristics within a certain period of time. Therefore, it is generally necessary to downsample and resample the time domain waveform (that is, resample). Sampling), such as extracting 500Hz into 100Hz, 62.5Hz, 50Hz, etc. After determining the resampling rate, determine the appropriate number of time-frequency transformation points according to computing resources and capabilities. Generally speaking, the more points the more accurate, but the more points the longer the original data length. A reasonable design is best to ensure that the time-domain signal of heart beat used for time-frequency conversion can contain at least two periodic waveforms. For example, assuming that the minimum heart rate measurement range is 30 bpm, it needs to contain at least 4 seconds of time-domain data. Combined with the resampling rate, the number of time-frequency transformation points can be determined. As shown in FIG. 4, it is a schematic diagram of a heart beat time domain signal, and FIG. 5 is a schematic diagram of a heart beat frequency domain spectrum signal generated based on the heart beat time domain signal shown in FIG. 4. The CZT transform can be used for spectrum refinement analysis, focusing on the frequency domain characteristics in the range of 0~5Hz, and the frequency range of interest can also be expanded or reduced according to actual needs. At this time, the high-quality BCG frequency domain waveform is presented, each effective peak has obvious characteristics, the outline is clear and upright, and the fundamental frequency multiplication characteristics are obvious. At this time, the main peak of 1.1 Hz is the fundamental frequency peak, and the subsequent obvious peaks are respectively the double frequency, the triple frequency, and the quadruple frequency. Note that the reason why the fundamental frequency peak energy is not the highest at this time is related to the filter characteristics. To suppress low-frequency interference while performing time-frequency conversion from the time-domain signal, you can filter or suppress low-frequency signals. Pay attention to filtering out low-frequency interference. At the same time, the main peak energy may be depressed. The filtering here can be performed directly in the time domain, or window function filtering can be performed in the frequency domain. Since we only care about frequencies within 0~5Hz at this time, the maximum effective multiplication of the fundamental frequency peak of 1.1Hz is around 4.4Hz. If the upper limit of the frequency is enlarged and reasonable filter parameters are set, it is possible to observe its five-fold frequency characteristic peak.
S103具体也可以为:基于心脏搏动时域信号生成心脏搏动时域谱信号。S103 may also be specifically: generating a heart beat time domain spectrum signal based on the heart beat time domain signal.
例如:基于心脏搏动时域信号通过自相关函数生成心脏搏动时域谱信号。如图6所示,是心脏搏动时域信号示意图,图7(a)和(b)是基于图6所示的心脏搏动时域信号生成的心脏搏动时域谱信号示意图。图6所示的BCG时域波形为t1(秒为单位)时间段内的数据波形;图7(a)为双边自相关函数波形,中间线为T=0,左右侧宽度分别为-t1和t1,此时左右两侧关于时间轴T=0对称,根据实际情况可以只看单边波形(T≥0或T≤0);图7(b)是T≥0部分的波形。图5是单边的频域谱,根据实际情况也可以看双边,其关于频率轴w=H(Fs)/2对称,H(Fs)为采样率对应的频率。此时可以看到图7(a)和图7(b)自相关函数波形与图5的频域谱有类似的特征,所以称之为谱信号,但其实未进行时频变换,故称之为时域谱信号。对于心脏搏动时域谱信号也可以适当地通过滤波算法对干扰峰进行抑制、滤除或压低,对主峰能量进行放大、凸显或抬高。For example: based on the heart beat time domain signal through the autocorrelation function to generate the heart beat time domain spectrum signal. As shown in FIG. 6, it is a schematic diagram of a heart beat time domain signal, and FIGS. 7 (a) and (b) are schematic diagrams of a heart beat time domain spectrum signal generated based on the heart beat time domain signal shown in FIG. 6. The BCG time-domain waveform shown in Figure 6 is the data waveform in the time period of t1 (seconds); Figure 7(a) is the waveform of the bilateral autocorrelation function, the middle line is T=0, and the left and right side widths are -t1 and respectively t1, the left and right sides are symmetrical about the time axis T=0 at this time. According to the actual situation, you can only look at the unilateral waveform (T≥0 or T≤0); Figure 7(b) is the waveform of the part of T≥0. Figure 5 is a single-sided frequency domain spectrum. According to the actual situation, you can also look at both sides. It is symmetric about the frequency axis w=H(Fs)/2, and H(Fs) is the frequency corresponding to the sampling rate. At this time, you can see that the autocorrelation function waveforms in Figure 7 (a) and Figure 7 (b) have similar characteristics to the frequency domain spectrum of Figure 5, so they are called spectral signals, but they are actually not time-frequency transformed, so they are called It is the time domain spectrum signal. For the heart beat time-domain spectrum signal, the interference peak can also be suppressed, filtered or suppressed by the filtering algorithm, and the main peak energy can be amplified, highlighted or elevated.
尽管心脏搏动时域谱信号的生成方式与心脏搏动频域谱信号不一致,但两种心脏搏动谱信号之间存在很强的特征相似性,实际上从数学上来说功率谱等于自相关函数的傅立叶变换,自相关函数等于功率谱的傅立叶逆变换,因此两者之间存在强大的内在联系。因此后文阐述以心脏搏动频域谱信号为实施例进行展开,本领域人员可以参照实施例对心脏搏动时域谱信号进行扩展延伸。Although the generation method of the heart beat time domain spectrum signal is inconsistent with the heart beat frequency domain spectrum signal, there is a strong characteristic similarity between the two heart beat spectrum signals. In fact, mathematically speaking, the power spectrum is equal to the Fourier of the autocorrelation function. The autocorrelation function is equal to the inverse Fourier transform of the power spectrum, so there is a strong internal connection between the two. Therefore, the following description takes the heart beat frequency domain spectrum signal as an example for expansion, and those skilled in the art can refer to the embodiment to expand and extend the heart beat time domain spectrum signal.
当然,除了自相关函数之外还可以通过其他方式生成类似特征的心脏搏动时域谱信号,甚至还可以基于心脏搏动时域信号生成心脏搏动频域谱信号和心脏搏动时域谱信号,并结合心脏搏动频域谱信号和心脏搏动时域谱信号生成心脏搏动谱信号。例如,将心脏搏动时域谱信号和心脏搏动频域谱信号进行叠加、拼接、乘积等运算生成心脏搏动谱信号。Of course, in addition to the autocorrelation function, other methods can be used to generate the heart beat time domain spectrum signal with similar characteristics, and even the heart beat frequency domain spectrum signal and the heart beat time domain spectrum signal can be generated based on the heart beat time domain signal, and combined The heart beat frequency domain spectrum signal and the heart beat time domain spectrum signal generate a heart beat spectrum signal. For example, the heart beat spectrum signal is generated by superimposing, splicing, and multiplying the heart beat time domain spectrum signal and the heart beat frequency domain spectrum signal.
S104、基于心脏搏动谱信号生成心脏搏动谱信号簇。S104: Generate a heart beat spectrum signal cluster based on the heart beat spectrum signal.
在本发明实施例一中,S104具体可以为:In the first embodiment of the present invention, S104 may specifically be:
在多个时刻点分别获取预设时间窗的心脏搏动谱信号;Obtain the heart beat spectrum signal of the preset time window at multiple time points;
将多个时刻点获取的心脏搏动谱信号集合成为心脏搏动谱信号簇。The heart beat spectrum signals acquired at multiple time points are assembled into a heart beat spectrum signal cluster.
其中,多个时刻点对应的预设时间窗可以是相同的,也可以是不同的。多个时刻点中相邻时刻点的时间间隔可以是相同的,也可以是不同的。多个时刻点中相邻时刻点的时间间隔可以是大于、小于或等于预设时间窗。预设时间窗对应的心脏搏动时域信号最好包含至少两个周期波形。Wherein, the preset time windows corresponding to multiple time points may be the same or different. The time intervals between adjacent time points in the multiple time points may be the same or different. The time interval between adjacent time points in the multiple time points may be greater than, less than or equal to the preset time window. The heart beat time-domain signal corresponding to the preset time window preferably contains at least two periodic waveforms.
下面以心脏搏动频域谱信号为实施例进行说明。The following description takes the frequency domain spectrum signal of the heart beat as an example.
如图8(a)、(b)和(c)所示,图8(a)为心脏搏动时域信号示意图,将起点设置为T=0s时刻点。设置时间窗为5秒,相邻时刻点的时间间隔为1秒。图8(b)为T=5,6,7,8,9s这5个时刻点所截取的时间窗对应的心脏搏动时域信号。T=5s时刻点为T=0~5s时间窗数据,T=6s时刻点为T=1~6s时间窗数据,依次类推。图8(c)为5个时刻点对应的心脏搏动频域谱信号。As shown in Fig. 8(a), (b) and (c), Fig. 8(a) is a schematic diagram of the time-domain signal of the heart beat, and the starting point is set to the time point T=0s. Set the time window to 5 seconds, and the time interval between adjacent moments to 1 second. Figure 8(b) shows the heart beat time domain signal corresponding to the time window intercepted at the 5 time points of T=5, 6, 7, 8, 9s. T=5s time point is T=0~5s time window data, T=6s time point is T=1~6s time window data, and so on. Figure 8(c) shows the frequency-domain spectrum signal of the heart beat corresponding to the five time points.
当然这里的时间窗可以根据实际情况调整,可以将5秒扩大到更长时间窗,也可以缩小时间窗,但合理的时间窗长度设计最好能够保证用于时频变换的时域波形能够包含两个或者以上的周期波形;相邻时刻点的时间间隔为1秒也可以进行调整,如运算能力足够可以缩减至0.75秒、0.5秒、0.25秒等,当然也可以更长时间如2秒、3秒、5秒甚至更长时间如40秒。Of course, the time window here can be adjusted according to the actual situation, you can expand the 5 seconds to a longer time window, you can also reduce the time window, but a reasonable time window length design is best to ensure that the time domain waveform used for time-frequency transformation can contain Two or more periodic waveforms; the time interval between adjacent moments is 1 second and can be adjusted. If the computing power is enough, it can be reduced to 0.75 seconds, 0.5 seconds, 0.25 seconds, etc., of course, it can also be longer, such as 2 seconds, 3 seconds, 5 seconds or even longer such as 40 seconds.
如图9(a)和9 (b)所示,图9(a)是BCG时域信号波形(这里只呈现时间片段数据,在该时间片段前后均仍有BCG数据),以T=0s时刻点,直至T=9s时刻点,依次计算得到各自的心脏搏动频域谱信号为图9(b)所示,这一系列心脏搏动频域谱信号为心脏搏动频域谱信号簇(如果谱信号为心脏搏动时域谱信号可以称之为心脏搏动时域谱信号簇)。当然,在本发明实施例中均以BCG数据作为说明,其他能够反映心脏搏动特性的如ECG、PCG、SCG、PPG、IBP血压波、雷达波监测心脏搏动信号等各种信号均可以转换成为谱信号。As shown in Figure 9 (a) and 9 (b), Figure 9 (a) is the BCG time domain signal waveform (here only the time segment data is presented, there is still BCG data before and after the time segment), with T=0s time Until T=9s, the respective heartbeat frequency domain spectrum signals are calculated in sequence as shown in Figure 9(b). This series of heartbeat frequency domain spectrum signals is the heartbeat frequency domain spectrum signal cluster (if the spectrum signal The time domain spectrum signal of the heart beat can be called the heart beat time domain spectrum signal cluster). Of course, in the embodiments of the present invention, BCG data is used as an illustration, and other signals that can reflect the characteristics of the heartbeat, such as ECG, PCG, SCG, PPG, IBP blood pressure wave, radar wave monitoring heartbeat signal, etc., can be converted into spectrum signal.
S105、基于心脏搏动谱信号簇进行心律失常事件的识别。S105. Perform arrhythmia event recognition based on the heart beat spectrum signal cluster.
在本发明实施例一中,S105具体可以为:In the first embodiment of the present invention, S105 may specifically be:
将心脏搏动谱信号簇进行像素映射,生成与心脏搏动谱信号簇对应的图像谱,并根据与心脏搏动谱信号簇对应的图像谱进行心律失常事件的识别。The heart beat spectrum signal cluster is pixel mapped to generate an image spectrum corresponding to the heart beat spectrum signal cluster, and the arrhythmia event is identified according to the image spectrum corresponding to the heart beat spectrum signal cluster.
所述将心脏搏动谱信号簇进行像素映射,生成与心脏搏动谱信号簇对应的图像谱具体为:将心脏搏动谱信号簇进行归一化,将归一化之后的心脏搏动谱信号簇转换为像素点绘制与心脏搏动谱信号簇对应的图像谱。The pixel mapping of the heart beat spectrum signal cluster to generate the image spectrum corresponding to the heart beat spectrum signal cluster is specifically: normalizing the heart beat spectrum signal cluster, and converting the normalized heart beat spectrum signal cluster into The pixel points draw the image spectrum corresponding to the heart beat spectrum signal cluster.
从图9(a)和9(b)可以看到,随时间推进,各谱信号主峰之间存在联系,但从图9(a)和9(b)肉眼观察来看没那么直观鲜明,可以通过像素映射及像素矩阵来进行转换呈现。对于某个时刻点T的谱信号,假设最终获得频带范围为w=[w0,wn],频域谱对应各点频率值为Spect=[P0,P1,…,Pn]。对其进行归一化至[0,1]范围,通过公式pi=(Pi-Pmin)/(Pmax-Pmin),(i=0,1,…,n)得到归一化谱信号spect=[p0,p1,…,pn]。对应谱信号频率点wi位置,将其映射为像素点[pi, pi, pi],这里的像素点值表示归一化的[r g
b]值。It can be seen from Figures 9(a) and 9(b) that as time progresses, there is a connection between the main peaks of the spectral signals, but from the naked eye observation of Figures 9(a) and 9(b), it is not so intuitive and clear. Transform and present through pixel mapping and pixel matrix. For the spectrum signal at a certain time point T, suppose that the final frequency band range obtained is w=[w0,wn], and the frequency value of the frequency domain spectrum corresponding to each point is Spect=[P0,P1,...,Pn]. Normalize it to the range of [0,1], through the formula pi=(Pi-Pmin)/(Pmax-Pmin),(i=0,1,...,n) to get the normalized spectrum signal spect=[ p0,p1,...,pn]. Corresponding to the position of the frequency point wi of the spectral signal, map it to a pixel point [pi, pi, pi], where the pixel point value represents the normalized [r g
b] value.
如图10(a)、10(b)和10(c)所示,图10(c)为心脏搏动频域谱信号波形,图10(a)为将其进行归一化且转换为像素点之后绘制的像素条带。这里本质上每个wi位置只是一个点,但为了视觉上能够直观肉眼看到,绘制了像素填充块。将所有像素填充块绘制出来,即呈现出如图10(a)和10(b)所示的像素条带。这里将能量越大的点映射到越接近白色像素,能量越小的点映射到越接近黑色像素,当然也可以取1-[pi,
pi, pi],图10(b)所示的像素条带即为图10(a)的反色。当然为了视觉效果还可以采用彩色映射,或者更复杂的渐变映射,比如频率点wi位置择取[wi-1, wi, wi+1]位置谱能量构建一个函数来映射生成像素,或者在构建完成像素之后进行一些滤波处理,如均值滤波、中值滤波等,最终以使得映射后得到的像素条带在保留谱信号关键特征的同时更加清晰直观,此处不赘述。As shown in Figures 10(a), 10(b) and 10(c), Figure 10(c) shows the signal waveform of the heart beat frequency domain spectrum, and Figure 10(a) shows it normalized and converted into pixels Pixel strips drawn afterwards. Here, each wi position is essentially just a point, but in order to be visually intuitive to see with the naked eye, pixel filling blocks are drawn. Draw all the pixel filling blocks, that is, showing pixel strips as shown in Figure 10(a) and 10(b). Here, the point with the larger energy is mapped to the closer to the white pixel, and the point with the smaller energy is mapped to the closer to the black pixel. Of course, 1-[pi,
pi, pi], the pixel strip shown in Figure 10(b) is the inverse color of Figure 10(a). Of course, color mapping or more complex gradient mapping can be used for visual effects. For example, the frequency point wi position selects [wi-1, wi, wi+1] position spectrum energy to construct a function to map to generate pixels, or after the construction is completed After the pixels are subjected to some filtering processing, such as mean filtering, median filtering, etc., finally, the pixel strips obtained after the mapping are more clear and intuitive while retaining the key features of the spectral signal, which will not be repeated here.
选取一种像素映射方案,本实施例以10(b)像素条带映射方案(1-[pi,
pi, pi])作为说明,将随时间推进过程中,各个时刻点计算得到的谱信号,均通过像素映射得到像素信号;将所有像素信号仍以时间序列排布,得到像素矩阵。该矩阵的两个维度,一个维度为单个时刻点所得到的谱信号数据长度,另一个维度为所择取计算的时刻点数。这里绘制的时刻点数只有10s即10个点,根据实际情况可以绘制如30s、60s、120s等点数。如图11所示,是根据图9(a)中的时域波形和图9(b)中的频域谱信号波形进行像素映射后生在的与心脏搏动谱信号簇对应的图像谱。从图11可以看出各个有效主峰能够从T=0s时刻延续至T=9s时刻,贯穿始末的现象,在图11上显现出四条清晰的、并行的、贯穿始末的黑色条带。Select a pixel mapping scheme, this embodiment uses 10(b) pixel strip mapping scheme (1-[pi,
pi, pi]) As an illustration, the spectral signals calculated at each time point in the process of advancing time are used to obtain pixel signals through pixel mapping; all the pixel signals are still arranged in time series to obtain a pixel matrix. The two dimensions of the matrix, one dimension is the data length of the spectrum signal obtained at a single time point, and the other dimension is the number of time points selected for calculation. The time points drawn here are only 10s, that is, 10 points. According to the actual situation, points such as 30s, 60s, 120s, etc. can be drawn. As shown in FIG. 11, the image spectrum corresponding to the heart beat spectrum signal cluster is generated after pixel mapping based on the time domain waveform in FIG. 9(a) and the frequency domain spectrum signal waveform in FIG. 9(b). It can be seen from Fig. 11 that each effective main peak can continue from time T=0s to time T=9s, running through the beginning and end. In Fig. 11, four clear, parallel black bands running through the beginning and end appear.
当然图像谱只是因为像素矩阵可以通过某种方式转换成一个图像,并不一定要通过图像来呈现,本申请中,将像素矩阵以及通过其衍生的其它数字矩阵或者图像信息称为图像谱。Of course, the image spectrum is only because the pixel matrix can be converted into an image in some way, and it does not necessarily have to be presented through the image. In this application, the pixel matrix and other digital matrices or image information derived from it are called the image spectrum.
图12(a)(b)(c)给出了一组窦性心律受试者的心脏搏动谱信号簇的图像谱示意图,分别来自于三位心率不同的健康人数据,图12(a)、(b)、(c)分别是约为63bpm、88bpm、107bpm,由于这里频谱细化区域为0~5Hz,上限为300bpm,因此条带数目分别为4条、3条、2条,很清晰地肉眼直观可见。Figure 12(a)(b)(c) shows a schematic diagram of the image spectrum of the heart beat spectrum signal clusters of a group of sinus rhythm subjects, from the data of three healthy people with different heart rates, Figure 12(a) , (B), (c) are respectively about 63bpm, 88bpm, 107bpm, because the spectrum refinement area here is 0~5Hz, and the upper limit is 300bpm, so the number of bands are 4, 3, and 2, respectively, which is very clear The ground is visible to the naked eye.
图13(a)(b)(c)给出了一组房颤患者心脏搏动谱信号簇的图像谱示意图,分别来自于三位房颤患者数据,此时可以看到房颤患者的图像谱非常混乱无序、毫无规则,与前面窦性心律图像谱存在非常大的差异。图14(a)(b)(c)给出了一组其他病种患者心脏搏动谱信号簇的图像谱,分别为室性早搏患者、安装心脏起搏器患者和房扑患者。此时可以看得早搏患者仍然还有类似窦性心律的条带,但其呈线出更加飘逸摇曳的姿态;起搏器患者由于起搏心率的强规则性,呈线出笔直延伸的特性,房扑患者当其绝对齐整的时候也具有类似特性。当然其他病种可能还有区别于此的特征,此处不赘述。Figure 13(a)(b)(c) shows a schematic diagram of the image spectrum of a group of heart beat spectrum signal clusters in patients with atrial fibrillation, respectively from the data of three patients with atrial fibrillation. At this time, you can see the image spectrum of patients with atrial fibrillation It is very chaotic, disorderly and without rules, and it is very different from the previous sinus rhythm image spectrum. Figure 14(a)(b)(c) shows a group of image spectra of the heart beat spectrum signal clusters of patients with other diseases, which are patients with ventricular premature beats, patients with pacemakers, and patients with atrial flutter. At this time, it can be seen that patients with premature beats still have a band similar to sinus rhythm, but it is in a more elegant and swaying posture; patients with pacemakers are characterized by straight extensions due to the strong regularity of the pacing heart rate. Patients with atrial flutter have similar characteristics when they are absolutely neat. Of course, other diseases may have different characteristics, so I won't repeat them here.
在本发明实施例一中,根据与心脏搏动谱信号簇对应的图像谱进行心律失常事件的识别具体可以为:In the first embodiment of the present invention, the identification of arrhythmia events based on the image spectrum corresponding to the heart beat spectrum signal cluster may specifically be:
通过人工肉眼读与心脏搏动谱信号簇对应的图像谱,根据基于生理特性和病理特性建立的相应规则来识别心律失常事件。The image spectrum corresponding to the heart beat spectrum signal cluster is read by artificial naked eyes, and arrhythmia events are identified according to the corresponding rules established based on physiological and pathological characteristics.
或者,or,
通过机器学习算法建模,自动根据与心脏搏动谱信号簇对应的图像谱进行心律失常事件的识别。Through machine learning algorithm modeling, automatic identification of arrhythmia events based on the image spectrum corresponding to the heart beat spectrum signal cluster.
如图12、图13和图14所示,是窦性心律、房颤、室性早搏、心脏起搏器、房扑的心脏搏动谱信号簇的图像谱示意图,在采集大量受试者数据形成的数据库基础上,医护人员经过培训了解各种心律失常事件对应的图像谱具有的特征,可以通过人工读图来识别心律失常事件。As shown in Figure 12, Figure 13, and Figure 14, it is a schematic diagram of the image spectrum of the heart beat spectrum signal clusters of sinus rhythm, atrial fibrillation, ventricular premature beats, cardiac pacemakers, and atrial flutter. Based on the database, medical staff are trained to understand the characteristics of the image spectrum corresponding to various arrhythmia events, and can recognize arrhythmia events through manual image reading.
随着计算机技术的发展,人工智能、机器学习、深度学习得到了更多的普及、应用和推广。根据与心脏搏动谱信号簇对应的图像谱进行心律失常事件的识别本质上是一个分类问题,可以通过各种不同的分类算法来进行解决,如k-近邻算法、逻辑回归、支持向量机等建立分类器模型进行分类,而基于图谱是一个二维图像来看还可以通过深度学习框架(如CNN卷积神经网络)来建立模型进行分类。当然也可以直接依赖绘制成图谱之前的像素矩阵来进行分类计算,因为图像最终还是会被转换成数字矩阵。With the development of computer technology, artificial intelligence, machine learning, and deep learning have been more popularized, applied and promoted. The identification of arrhythmia events based on the image spectrum corresponding to the heart beat spectrum signal cluster is essentially a classification problem, which can be solved by various classification algorithms, such as k-nearest neighbor algorithm, logistic regression, support vector machine, etc. The classifier model performs classification, and based on the atlas is a two-dimensional image, it is also possible to build a model for classification through a deep learning framework (such as CNN convolutional neural network). Of course, you can also directly rely on the pixel matrix before drawing into the map for classification calculation, because the image will eventually be converted into a digital matrix.
下面以k-近邻算法分类说明一般流程:The general process is explained below with k-nearest neighbor algorithm classification:
收集数据:收集房颤受试者和非房颤受试者数据,例如对患者每2分钟生成一个谱信号簇图谱,获取大量数据,并对所有图谱进行标注(标定样本),剔除异常样本。Collect data: Collect data from subjects with atrial fibrillation and non-atrial fibrillation, for example, generate a spectrum signal cluster map for patients every 2 minutes, acquire a large amount of data, and label all maps (calibration samples) to eliminate abnormal samples.
准备数据:用于计算距离的数值,比如像素矩阵。Prepare data: the value used to calculate the distance, such as the pixel matrix.
分析数据:可以采用任何方法,例如通过像素矩阵建立一套距离计算方法。Analyze data: Any method can be used, such as establishing a set of distance calculation methods through a pixel matrix.
训练算法:此步骤不适用于k-近邻算法。Training algorithm: This step is not applicable to k-nearest neighbor algorithm.
测试算法:计算错误率。Test algorithm: Calculate the error rate.
使用算法:输入新样本数据和结构化的输出结果,运行k-近邻算法判定输入数据属于哪个分类,然后应用计算出的分类执行后续处理。Use algorithm: Input new sample data and structured output results, run k-nearest neighbor algorithm to determine which category the input data belongs to, and then apply the calculated category to perform subsequent processing.
算法实施过程中:首先计算输入样本与所有标定样本的距离,然后按照距离递增次序排序,然后选取与当前样本距离最小的k个样本,然后确定前k个样本所在类别的出现频率,最后返回前k个样本出现频率最高的类别作为当前样本的预测分类。During the implementation of the algorithm: first calculate the distance between the input sample and all calibration samples, and then sort them in increasing order of distance, then select the k samples with the smallest distance from the current sample, then determine the frequency of occurrence of the category of the first k samples, and finally return to the previous The category with the highest frequency of k samples is used as the predicted category of the current sample.
下面以CNN卷积神经网络说明一般流程:The following describes the general process with a CNN convolutional neural network:
收集数据:收集房颤受试者和非房颤受试者数据,不妨对患者每2分钟生成一个谱信号簇图谱,获取大量数据,并对所有图谱进行标注(标定样本),剔除异常样本。Collect data: Collect data from subjects with atrial fibrillation and non-atrial fibrillation. It is better to generate a spectrum signal cluster map for the patient every 2 minutes to obtain a large amount of data, and label all the maps (calibration samples) to eliminate abnormal samples.
准备数据:用于计算建模的数值,比如二维图谱图片,二维“像素”矩阵。Prepare data: numerical values used for calculation modeling, such as two-dimensional atlas pictures, two-dimensional "pixel" matrix.
分析数据:可以采用任何方法,例如进行图像滤波。Analyze data: Any method can be used, such as image filtering.
训练算法:通过卷积神经网络进行训练。Training algorithm: Training through convolutional neural network.
测试算法:计算错误率。Test algorithm: Calculate the error rate.
使用算法:输入新样本数据和结构化的输出结果,判定输入数据属于哪个分类,然后应用计算出的分类执行后续处理。Use algorithm: Input new sample data and structured output results, determine which category the input data belongs to, and then apply the calculated category to perform subsequent processing.
算法实施过程中:首先在输入层输入样本,然后在卷积层使用卷积核进行特征提取和特征映射,然后在激励层增加非线性映射,再然后在池化层进行下采样,对特征图稀疏处理,减少数据运算量,最后在全连接层通常在CNN的尾部进行重新拟合,减少特征信息的损失。In the algorithm implementation process: first input samples in the input layer, then use the convolution kernel to perform feature extraction and feature mapping in the convolution layer, then add nonlinear mapping in the excitation layer, and then down-sample in the pooling layer to perform feature maps Sparse processing reduces the amount of data calculations. Finally, the fully connected layer is usually refitted at the tail of the CNN to reduce the loss of feature information.
不论采用何种机器学习的方法,均需要大量受试者数据建立相应的数据库,以更完整地包含特征信息。然后基于数据库建立相应的算法模型,通过算法自动进行心律失常事件的识别。No matter what kind of machine learning method is used, a large amount of subject data is required to establish a corresponding database to contain the characteristic information more completely. Then establish the corresponding algorithm model based on the database, and automatically recognize the arrhythmia event through the algorithm.
实施例二:Embodiment two:
本发明实施例二提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如本发明实施例一提供的心律失常事件的监测方法的步骤。The second embodiment of the present invention provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the monitoring of arrhythmia events as provided in the first embodiment of the present invention is realized Method steps.
实施例三:Example three:
图15示出了本发明实施例三提供的心律失常事件的监测设备的具体结构框图,一种心律失常事件的监测设备100包括:一个或多个处理器101、存储器102、以及一个或多个计算机程序,其中所述处理器101和所述存储器102通过总线连接,所述一个或多个计算机程序被存储在所述存储器102中,并且被配置成由所述一个或多个处理器101执行,所述处理器101执行所述计算机程序时实现如本发明实施例一提供的心律失常事件的监测方法的步骤。15 shows a specific structural block diagram of a monitoring device for arrhythmia events provided in the third embodiment of the present invention. A monitoring device 100 for arrhythmia events includes: one or more processors 101, a memory 102, and one or more A computer program, wherein the processor 101 and the memory 102 are connected by a bus, and the one or more computer programs are stored in the memory 102 and configured to be executed by the one or more processors 101 When the processor 101 executes the computer program, the steps of the method for monitoring arrhythmia events as provided in the first embodiment of the present invention are implemented.
实施例四:Embodiment four:
本发明实施例四提供了一种心律失常事件的监测系统,包括:一个或多个振动传感器;和本发明实施例三提供的心律失常事件的监测设备。The fourth embodiment of the present invention provides an arrhythmia event monitoring system, which includes: one or more vibration sensors; and the arrhythmia event monitoring device provided in the third embodiment of the present invention.
由于本发明的心律失常事件的监测方法基于心脏搏动时域信号生成心脏搏动谱信号;基于心脏搏动谱信号生成心脏搏动谱信号簇;基于心脏搏动谱信号簇进行心律失常事件的识别。因此可跨传感技术、弱依赖时域信号质量,适应性更强。Because the method for monitoring arrhythmia events of the present invention generates a heart beat spectrum signal based on the heart beat time-domain signal; generates a heart beat spectrum signal cluster based on the heart beat spectrum signal; recognizes arrhythmia events based on the heart beat spectrum signal cluster. Therefore, it can be cross-sensing technology, weakly dependent on the quality of the time domain signal, and more adaptable.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium. The storage medium can include: Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or CD-ROM, etc.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modification, equivalent replacement and improvement made within the spirit and principle of the present invention shall be included in the protection of the present invention. Within range.