CN112704503B - Electrocardiosignal noise processing method - Google Patents
Electrocardiosignal noise processing method Download PDFInfo
- Publication number
- CN112704503B CN112704503B CN202110056325.1A CN202110056325A CN112704503B CN 112704503 B CN112704503 B CN 112704503B CN 202110056325 A CN202110056325 A CN 202110056325A CN 112704503 B CN112704503 B CN 112704503B
- Authority
- CN
- China
- Prior art keywords
- layer
- noise
- signal
- stage
- convolution
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 4
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 33
- 238000000605 extraction Methods 0.000 claims abstract description 21
- 238000013135 deep learning Methods 0.000 claims abstract description 20
- 238000012360 testing method Methods 0.000 claims abstract description 8
- 238000000034 method Methods 0.000 claims description 30
- 230000006870 function Effects 0.000 claims description 25
- 230000004913 activation Effects 0.000 claims description 17
- 238000004364 calculation method Methods 0.000 claims description 16
- 230000004927 fusion Effects 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 13
- 238000010606 normalization Methods 0.000 claims description 12
- 239000013598 vector Substances 0.000 claims description 11
- 238000011176 pooling Methods 0.000 claims description 10
- 238000005070 sampling Methods 0.000 claims description 7
- 230000011218 segmentation Effects 0.000 claims description 7
- 238000012549 training Methods 0.000 claims description 4
- 235000019580 granularity Nutrition 0.000 claims 1
- 230000033001 locomotion Effects 0.000 abstract description 9
- 238000002567 electromyography Methods 0.000 abstract description 8
- 238000003745 diagnosis Methods 0.000 abstract description 5
- 238000002565 electrocardiography Methods 0.000 description 41
- 238000001514 detection method Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 238000002372 labelling Methods 0.000 description 4
- 238000011160 research Methods 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000013527 convolutional neural network Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 208000019622 heart disease Diseases 0.000 description 2
- 230000004807 localization Effects 0.000 description 2
- 210000002569 neuron Anatomy 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 206010003658 Atrial Fibrillation Diseases 0.000 description 1
- 206010046542 Urinary hesitation Diseases 0.000 description 1
- HCHKCACWOHOZIP-UHFFFAOYSA-N Zinc Chemical compound [Zn] HCHKCACWOHOZIP-UHFFFAOYSA-N 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 206010003119 arrhythmia Diseases 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007635 classification algorithm Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 230000001314 paroxysmal effect Effects 0.000 description 1
- 238000013441 quality evaluation Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012706 support-vector machine Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7203—Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7235—Details of waveform analysis
- A61B5/7264—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
- A61B5/7267—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems involving training the classification device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2218/00—Aspects of pattern recognition specially adapted for signal processing
- G06F2218/08—Feature extraction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2218/00—Aspects of pattern recognition specially adapted for signal processing
- G06F2218/12—Classification; Matching
Landscapes
- Health & Medical Sciences (AREA)
- Engineering & Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Heart & Thoracic Surgery (AREA)
- Surgery (AREA)
- Physiology (AREA)
- Biophysics (AREA)
- Pathology (AREA)
- Biomedical Technology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Medical Informatics (AREA)
- Molecular Biology (AREA)
- Psychiatry (AREA)
- Animal Behavior & Ethology (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Evolutionary Computation (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
本发明公开了一种心电信号噪声处理方法,包括以下步骤:使用人工合成的数据集训练轻量深度学习网络得到训练完成的轻量深度学习网络,测试后端应用算法得到对应的预设熵阈值;将采集到的心电信号数据分段并输入训练完成的训练轻量深度学习网络,分类得到含噪声部分的信号段数据;计算含噪声部分的信号段数据的样本熵,与预设熵阈值比较并将大于预设熵阈值的信号段数据去除,得到去噪后的心电信号数据。本发明通过轻量深度学习网络直接对段信号进行分类,避免了人工提取特征的弊端;通过样本熵对分段信号去噪,有效降低肌电干扰、电极运动干扰噪声对诊断系统造成的误警,提高后端应用算法在心电信号中含有噪声时的准确性。
The invention discloses an electrocardiographic signal noise processing method, comprising the following steps: using artificially synthesized data sets to train a lightweight deep learning network to obtain a trained lightweight deep learning network, and testing a back-end application algorithm to obtain corresponding preset entropy Threshold; segment the collected ECG signal data and input it into the trained lightweight deep learning network, and classify the signal segment data containing noise; calculate the sample entropy of the signal segment data containing noise, and the preset entropy The threshold value is compared and the signal segment data larger than the preset entropy threshold value is removed to obtain the denoised ECG signal data. The invention directly classifies the segment signals through a lightweight deep learning network, avoiding the drawbacks of manual feature extraction; denoising the segment signals through sample entropy, effectively reducing the false alarm caused by the electromyography interference and electrode motion interference noise to the diagnosis system , to improve the accuracy of the back-end application algorithm when the ECG signal contains noise.
Description
技术领域technical field
本发明涉及心电信号处理技术领域,具体涉及一种心电信号噪声处理方法。The invention relates to the technical field of electrocardiographic signal processing, in particular to a method for processing electrocardiographic signal noise.
背景技术Background technique
心律失常通常具有短暂性、阵发性、有时无症状等特点,给诊断带来挑战,心电信号分析则是判断心脏疾病的有效手段之一。现有的心电信号采集设备只能间歇性采集,一些偶发性特征的心脏疾病往往不能够被及时注意到,因此病人通常需要配备一个可穿戴心电监测装置来动态监测心电信号。但是,动态监测设备在实时监测心电信号的同时也引入了更多的噪声。目前,研究临床心电信号诊断的方法层出不穷,但是因噪声造成的严重信号干扰依然会引起很多误报,使监护人员对系统的报警变得麻木,出现“警报疲劳”现象,最终忽略报警。动态心电信号中主要包含基线漂移、工频干扰、肌电干扰、电极运动干扰等多种干扰,其中基线漂移和工频干扰已经具有较为成熟的消除算法,而电极运动干扰和肌电干扰仍难以滤除。去除电极运动干扰和肌电干扰较大的部分,提升后端应用算法在噪声环境下的性能指标,可以降低误警率。Cardiac arrhythmias are usually transient, paroxysmal, and sometimes asymptomatic, which brings challenges to diagnosis. ECG signal analysis is one of the effective methods for diagnosing cardiac diseases. Existing ECG signal acquisition equipment can only collect intermittently, and some sporadic cardiac diseases are often not noticed in time. Therefore, patients usually need to be equipped with a wearable ECG monitoring device to dynamically monitor ECG signals. However, the dynamic monitoring equipment also introduces more noise while monitoring the ECG signal in real time. At present, there are endless methods to study the diagnosis of clinical ECG signals, but severe signal interference caused by noise will still cause many false alarms, which makes the monitoring personnel become numb to the alarm of the system, resulting in the phenomenon of "alarm fatigue", and finally ignore the alarm. The ambulatory ECG signals mainly include baseline drift, power frequency interference, EMG interference, electrode motion interference and other interferences. Among them, baseline drift and power frequency interference already have relatively mature elimination algorithms, while electrode motion interference and EMG interference still remain. Difficult to filter out. Remove the parts with large electrode motion interference and EMG interference, improve the performance index of the back-end application algorithm in a noisy environment, and reduce the false alarm rate.
近年来,许多研究在评估心电质量信号的工作上做出了巨大贡献。在2011年CinC挑战赛中[1],有使用若干SQI指标(Signal Quality Index,语音质量指标)对片段进行评估,并将一段心电信号划分为各种质量等级,此后类似研究逐渐增多。典型的信号质量指标包括bSQI、tSQI、iSQI、aSQI、pSQI、sSQI、kSQI、basSQI等,以上统称为SQIs[2,3]。在不同的研究中出现了不同的SQIs组合,NeginYaghmaie等人[4]提出了一个新的信号质量指标dSQI,并与四种SQIs组合,使用支持向量机对干净的正常心电信号和异常心电信号分别与含噪声的心电信号进行分类,准确率分别为96.9%和96.3%。Zhao,Z等人[5]通过将qSQI、kSIQ、pSQI、basSQI组合,然后结合柯西分布、矩形分布和梯形分布,对SQIs的隶属函数进行量化,建立模糊向量,再选择有界算子进行模糊综合,利用加权隶属函数进行评价和分类,在高质量和低质量二分类任务中获得94.67%的准确率。Zhang,Y等人[6]提出将Lempel-Ziv复杂度作为ECG信号质量评价指标。随后,Liu,C.Y.等人[7]将典型SQIs与样本熵、模糊测度熵、Lempel-Ziv复杂度进行组合,使用SVM分类器将信号质量分为5个等级,获得了不错的效果。除了使用SQIs将信号质量进行分类外,Satija,U.等人[8]将心电信号通过CEEMD进行分解,在固有模态分解函数IMFs中提取不同噪声的特征,实现了噪声的定位和分类。Moeyersons,J.等人[9]将心电信号分割成5秒的信号段并提取其ACF,再从ACF中提取特征,通过RUSBoost分类器,将信号质量分为5个等级。此外,Zhang,Q.等人[10]将时频谱信号转换成分辨率为257×63的图片,使用多个级联CNN作为分类器,将心电信号分为5个等级,在公开数据库中的准确率达到92.7%。最后,Satija,U.等人[11]对2017年之前的相关研究做了非常好的总结,对心电信号质量评估工作的意义重大。In recent years, many studies have made great contributions to the work of evaluating ECG quality signals. In the 2011 CinC Challenge [1], several SQI indicators (Signal Quality Index, speech quality index) were used to evaluate the segment, and a segment of ECG signal was divided into various quality levels. Since then, similar studies have gradually increased. Typical signal quality indicators include bSQI, tSQI, iSQI, aSQI, pSQI, sSQI, kSQI, basSQI, etc., which are collectively referred to as SQIs [2, 3]. Different combinations of SQIs have appeared in different studies, NeginYaghmaie et al. [4] proposed a new signal quality indicator dSQI, and combined with four SQIs, using support vector machine to clean the normal ECG signal and abnormal ECG The signals were classified separately from noisy ECG signals with 96.9% and 96.3% accuracy, respectively. Zhao, Z et al. [5] quantified the membership function of SQIs by combining qSQI, kSIQ, pSQI, and basSQI, and then combined Cauchy distribution, rectangular distribution and trapezoidal distribution to establish a fuzzy vector, and then select a bounded operator to carry out Fuzzy synthesis, which utilizes weighted membership functions for evaluation and classification, achieves 94.67% accuracy in both high-quality and low-quality binary classification tasks. Zhang, Y et al. [6] proposed the Lempel-Ziv complexity as an ECG signal quality evaluation index. Subsequently, Liu, C.Y. et al. [7] combined typical SQIs with sample entropy, fuzzy measure entropy, and Lempel-Ziv complexity, and used the SVM classifier to classify the signal quality into 5 levels, and achieved good results. In addition to using SQIs to classify the signal quality, Satija, U. et al. [8] decomposed the ECG signal through CEEMD, and extracted the features of different noises in the intrinsic mode decomposition function IMFs to realize the localization and classification of noise. Moeyersons, J. et al. [9] segmented the ECG signal into 5-second signal segments and extracted its ACF, then extracted features from the ACF, and classified the signal quality into 5 levels through the RUSBoost classifier. In addition, Zhang, Q. et al. [10] converted the time-spectral signal into a picture with a resolution of 257 × 63, used multiple cascaded CNNs as classifiers, and divided the ECG signal into 5 grades, in the public database. The accuracy rate reached 92.7%. Finally, Satija, U. et al. [11] made a very good summary of related research before 2017, which is of great significance to the evaluation of ECG signal quality.
与此同时,有部分研究成果能够识别并剔除心电信号质量较差的部分,并取得了很好的效果。Mico,P.等人[12]基于样本熵,利用其对噪声不规律性敏感的特性,使用滑动窗口计算的方法,经过MIT-BIH数据库验证,在滤除MA信号的任务中获得了97%的灵敏度和16%的误检率。Satija,U.等人[13]首先使用小波对心电信号进行分解,然后对分解后的不同频段系数进行特征提取,最后使用多个经验阈值实现了对噪声的定位和分类,获得不错的效果。Bashar,S.K.等人[14]分别在心电信号的时域和频域寻找噪声特征,利用经验阈值实现了对心电信号质量较差的部分更细致的识别,并在房颤检测方面减少了94%的假阳。At the same time, some research results can identify and eliminate the parts with poor ECG signal quality, and have achieved good results. Based on the sample entropy, Mico, P. et al. [12] used the method of sliding window calculation based on the sample entropy and its sensitivity to noise irregularity, and verified by the MIT-BIH database, and obtained 97% in the task of filtering out the MA signal. sensitivity and 16% false detection rate. Satija, U. et al. [13] first used wavelet to decompose the ECG signal, then extracted features from the decomposed coefficients of different frequency bands, and finally used multiple empirical thresholds to locate and classify noise, and achieved good results. . Bashar, S.K. et al. [14] searched for noise features in the time domain and frequency domain of the ECG signal respectively, and realized a more detailed identification of the poor quality part of the ECG signal by using the empirical threshold, and reduced 94% in the detection of atrial fibrillation. % false positives.
但是,现有信号质量指标(SQIs)是人工特征选择的特征,它们无论如何组合都可能会存在特征冗余或特征不充分的问题;而且有些信号质量指标的提取准确性与该指标的提取算法有关,如pSQI准确性依赖R波定位算法,这就导致了心电信号质量分类的准确性依赖信号质量指标的提取算法。并且,现有研究中划分信号质量等级的依据来自标注者主观判断,而不是来自后端应用算法,因此信号等级不一定适用于多种后端应用算法。同时,在真实心电信号中,常见几种噪声的含量会出现渐变现象,包括电极运动干扰和肌电干扰,这就导致同一位标注者在信号等级标注的过程中产生了犹豫心理。虽然有些研究为信号等级标注工作制定了关于犹豫状态下的标注规则,但在实际中犹豫现象是无法避免的,来自同一标注者的歧义标签问题难以消除。However, the existing signal quality indicators (SQIs) are the features of artificial feature selection, and no matter how they are combined, there may be redundant or insufficient features; and the extraction accuracy of some signal quality indicators is different from the extraction algorithm of the indicator. For example, the accuracy of pSQI depends on the R-wave localization algorithm, which leads to the accuracy of the ECG signal quality classification depending on the extraction algorithm of the signal quality index. Moreover, the basis for dividing the signal quality level in the existing research comes from the subjective judgment of the annotator, not from the back-end application algorithm, so the signal level is not necessarily suitable for a variety of back-end application algorithms. At the same time, in the real ECG signal, the content of several common noises will appear gradual change, including electrode motion interference and EMG interference, which causes the same annotator to be hesitant in the process of signal level labeling. Although some studies have formulated labeling rules for signal level labeling in hesitant state, in practice the phenomenon of hesitation is unavoidable, and the problem of ambiguous labels from the same labeler is difficult to eliminate.
本发明参考文献如下:References of the present invention are as follows:
[1]Silva,I.,G.B.Moody,and L.Celi,Improving the Quality of ECGsCollected Using Mobile Phones:The PhysioNet/Computing in Cardiology Challenge2011.2011Computing in Cardiology,2011.38:p.273-276.[1] Silva, I., G.B. Moody, and L.Celi, Improving the Quality of ECGs Collected Using Mobile Phones: The PhysioNet/Computing in Cardiology Challenge 2011.2011Computing in Cardiology, 2011.38:p.273-276.
[2]Behar,J.,et al.,A single channel ECG quality metric,in Computingin Cardiology.2012.p.381-384.[2] Behar, J., et al., A single channel ECG quality metric, in Computing in Cardiology. 2012.p.381-384.
[3]Clifford,G.D.,et al.,Signal quality indices and data fusion fordetermining clinical acceptability ofelectrocardiograms.PhysiolMeas,2012.33(9):p.1419-33.[3] Clifford, G.D., et al., Signal quality indices and data fusion for determining clinical acceptability of electrocardiograms. Physiol Meas, 2012.33(9):p.1419-33.
[4]Yaghmaie,N.,et al.,Dynamic signal quality index forelectrocardiograms.PhysiolMeas,2018.39(10):p.105008.[4] Yaghmaie, N., et al., Dynamic signal quality index for electrocardiograms. Physiol Meas, 2018.39(10): p.105008.
[5]Zhao,Z.and Y.Zhang,SQI Quality Evaluation Mechanism of Single-LeadECG Signal Based on Simple Heuristic Fusion and Fuzzy ComprehensiveEvaluation.Front Physiol,2018.9:p.727.[5] Zhao, Z. and Y. Zhang, SQI Quality Evaluation Mechanism of Single-LeadECG Signal Based on Simple Heuristic Fusion and Fuzzy Comprehensive Evaluation. Front Physiol, 2018.9:p.727.
[6]Zhang,Y.,et al.,Using Lempel-Ziv Complexity to Assess ECG SignalQuality.J Med Biol Eng,2016.36(5):p.625-634.[6] Zhang, Y., et al., Using Lempel-Ziv Complexity to Assess ECG SignalQuality. J Med Biol Eng, 2016.36(5):p.625-634.
[7]Liu,C.Y.,et al.,Signal Quality Assessment and Lightweight QRSDetection for Wearable ECG SmartVest System.Ieee Internet ofThings Journal,2019.6(2):p.1363-1374.[7] Liu, C.Y., et al., Signal Quality Assessment and Lightweight QRSDetection for Wearable ECG SmartVest System. Ieee Internet of Things Journal, 2019.6(2): p.1363-1374.
[8]Satija,U.,B.Ramkumar,and M.Manikandan,Automated ECG NoiseDetection and Classification System for Unsupervised HealthcareMonitoring.IEEE Journal ofBiomedical and Health Informatics,2017.PP.[8] Satija, U., B. Ramkumar, and M. Manikandan, Automated ECG NoiseDetection and Classification System for Unsupervised Healthcare Monitoring. IEEE Journal of Biomedical and Health Informatics, 2017. PP.
[9]Moeyersons,J.,et al.,Artefact detection and quality assessment ofambulatory ECG signals.Comput Methods Programs Biomed,2019.182:p.105050.[9] Moeyersons, J., et al., Artefact detection and quality assessment of ambulatory ECG signals. Comput Methods Programs Biomed, 2019.182:p.105050.
[10]Zhang,Q.,L.Fu,and L.Gu,A Cascaded Convolutional Neural Networkfor Assessing Signal Quality of Dynamic ECG.Comput Math Methods Med,2019.2019:p.7095137.[10] Zhang, Q., L. Fu, and L. Gu, A Cascaded Convolutional Neural Network for Assessing Signal Quality of Dynamic ECG. Comput Math Methods Med, 2019.2019: p.7095137.
[11]Satija,U.,B.Ramkumar,and M.S.Manikandan,A Review of SignalProcessing Techniques for Electrocardiogram Signal Quality Assessment.IEEERev Biomed Eng,2018.11:p.36-52.[11] Satija, U., B. Ramkumar, and M.S. Manikandan, A Review of SignalProcessing Techniques for Electrocardiogram Signal Quality Assessment. IEEE Rev Biomed Eng, 2018.11:p.36-52.
[12]Mico,P.,et al.,Automatic segmentation of long-term ECG signalscorrupted with broadband noise based on sample entropy.Comput MethodsPrograms Biomed,2010.98(2):p.118-29.[12] Mico, P., et al., Automatic segmentation of long-term ECG signals corrupted with broadband noise based on sample entropy. Comput Methods Programs Biomed, 2010.98(2):p.118-29.
[13]Satija,U.,B.Ramkumar,and M.S.Manikandan,An automated ECG signalquality assessment method for unsupervised diagnostic systems.Biocyberneticsand Biomedical Engineering,2018.38(1):p.54-70.[13] Satija, U., B. Ramkumar, and M.S. Manikandan, An automated ECG signalquality assessment method for unsupervised diagnostic systems. Biocybernetics and Biomedical Engineering, 2018.38(1):p.54-70.
[14]Bashar,S.K.,et al.,Noise Detection in Electrocardiogram Signalsfor Intensive Care Unit Patients.IEEE Access,2019.7:p.88357-88368.[14] Bashar, S.K., et al., Noise Detection in Electrocardiogram Signals for Intensive Care Unit Patients. IEEE Access, 2019.7: p.88357-88368.
发明内容SUMMARY OF THE INVENTION
本发明要解决的技术问题是提供一种可以有效降低肌电干扰、电极运动干扰噪声对诊断系统造成的误警,提高噪声环境下的准确性的心电信号噪声处理方法。The technical problem to be solved by the present invention is to provide an electrocardiographic signal noise processing method that can effectively reduce the false alarm caused by the electromyographic interference and electrode motion interference noise to the diagnosis system, and improve the accuracy in the noise environment.
为解决上述技术问题,本发明提供了一种心电信号噪声处理方法,包括以下步骤:In order to solve the above-mentioned technical problems, the present invention provides a method for processing ECG signal noise, comprising the following steps:
使用人工合成的数据集训练轻量深度学习网络得到训练完成的轻量深度学习网络,使用人工合成的数据集测试后端应用算法得到后端应用算法对应的预设熵阈值;Use the artificially synthesized data set to train the lightweight deep learning network to obtain the trained lightweight deep learning network, and use the artificially synthesized data set to test the back-end application algorithm to obtain the preset entropy threshold corresponding to the back-end application algorithm;
将采集到的心电信号数据分段并输入训练完成的训练轻量深度学习网络,分类得到含噪声部分的信号段数据;Segment the collected ECG signal data and input it into the trained lightweight deep learning network, and classify the signal segment data containing the noise part;
计算含噪声部分的信号段数据的样本熵,与后端应用算法对应的预设熵阈值比较并将大于预设熵阈值的信号段数据去除,得到去噪后的心电信号数据。Calculate the sample entropy of the signal segment data containing noise, compare with the preset entropy threshold corresponding to the back-end application algorithm, and remove the signal segment data larger than the preset entropy threshold to obtain denoised ECG signal data.
进一步地,所述轻量深度学习网络为双支路分割网络,所述双支路分割网络包括学习降采样阶段、全局特征提取阶段、特征融合阶段和分类器阶段,Further, the lightweight deep learning network is a dual-branch segmentation network, and the dual-branch segmentation network includes a learning downsampling stage, a global feature extraction stage, a feature fusion stage, and a classifier stage,
所述学习降采样阶段用于提取浅层特征,所述全局特征提取阶段用于提取信号全局语义,所述特征融合阶段用于对心电信号中不同细粒度、不同层次的特征进行融合,所述分类器阶段用于输出信号中每个采样点的类别。The learning downsampling stage is used to extract shallow features, the global feature extraction stage is used to extract the global semantics of the signal, and the feature fusion stage is used to fuse features of different fine-grained and different levels in the ECG signal, so the The classifier stage described above is used to output the class of each sample point in the signal.
进一步地,所述学习降采样阶段包括二维卷积层和两个通道数不同的深度可分离卷积结构层。Further, the learning downsampling stage includes a two-dimensional convolutional layer and two depthwise separable convolutional structure layers with different numbers of channels.
进一步地,所述学习降采样阶段中的二维卷积层和两个通道数不同的深度可分离卷积结构层后端均设有批标准化层,所述二维卷积层和两个通道数不同的深度可分离卷积结构层中采用的激活函数均为Leaky ReLU,所述深度可分离卷积结构层中同时使用Depthwise卷积与Pointwise卷积,用于与深度可分离卷积相区别。Further, the two-dimensional convolutional layer in the learning downsampling stage and the two depthwise separable convolutional structure layers with different numbers of channels are provided with a batch normalization layer at the back end, and the two-dimensional convolutional layer and the two channels The activation functions used in different depthwise separable convolutional structure layers are all Leaky ReLU. In the depthwise separable convolutional structure layer, both Depthwise convolution and Pointwise convolution are used to distinguish it from depthwise separable convolution. .
进一步地,所述全局特征提取阶段包括瓶颈层和金字塔池化层,所述瓶颈层用于在降低网络参数的同时保持网络准确性,所述金字塔池化层用于提取多个尺度信号中的特征。Further, the global feature extraction stage includes a bottleneck layer and a pyramid pooling layer, the bottleneck layer is used to reduce network parameters while maintaining network accuracy, and the pyramid pooling layer is used to extract multiple scale signals. feature.
进一步地,所述特征融合阶段包括第一层、第二层和相加层,所述第一层包括上采样层、深度可分离卷积结构层和二维卷积层,所述第二层为二维卷积层,所述相加层用于将所述第一层和所述第二层的输出结果相加,所述相加层为批标准化层。Further, the feature fusion stage includes a first layer, a second layer and an addition layer, the first layer includes an upsampling layer, a depthwise separable convolutional structure layer and a two-dimensional convolutional layer, the second layer is a two-dimensional convolutional layer, the addition layer is used to add the output results of the first layer and the second layer, and the addition layer is a batch normalization layer.
进一步地,所述第一层中的深度可分离卷积结构层、所述第一层中的二维卷积层和所述第二层中的二维卷积层后端均设有批标准化层,所述第一层中的深度可分离卷积结构层和所述相加层中采用的激活函数均为Leaky ReLU。Further, the depthwise separable convolutional structure layer in the first layer, the two-dimensional convolutional layer in the first layer, and the backend of the two-dimensional convolutional layer in the second layer are all provided with batch normalization. layer, the depthwise separable convolution structure layer in the first layer and the activation function used in the addition layer are both Leaky ReLU.
进一步地,所述分类器阶段包括多个不同尺度的深度可分离卷积结构层、二维卷积层和上采样层。Further, the classifier stage includes a plurality of depthwise separable convolutional structure layers, two-dimensional convolutional layers and upsampling layers of different scales.
进一步地,所述分类器阶段中多个不同尺度的深度可分离卷积结构层和二维卷积层后端均设有批标准化层,所述分类器阶段中多个不同尺度的深度可分离卷积结构层、二维卷积层和上采样层中采用的激活函数均为Leaky ReLU。Further, a batch normalization layer is provided at the back end of a plurality of depth-separable convolutional layers of different scales and a two-dimensional convolutional layer in the classifier stage, and a depth of a plurality of different scales in the classifier stage is separable. The activation functions used in the convolutional structure layer, the two-dimensional convolutional layer and the upsampling layer are all Leaky ReLU.
进一步地,所述计算含噪声部分的信号段数据的样本熵,具体方法为:Further, the specific method for calculating the sample entropy of the signal segment data of the noise-containing part is:
将长度为N的离散时间序列组成长度为m,维度为N-m+1的向量序列Xm(i),其中m,r是样本熵的超参数,决定了搜索相同元素的大小和相似度阈值;A discrete time series of length N is composed of a vector sequence X m (i) of length m and dimension N-m+1, where m, r are hyperparameters of sample entropy, which determine the size and similarity of the search for the same element threshold;
向量Xm(i)与Xm(j)之间的距离d[Xm(i),Xm(j)](1≤j≤N-m,j≠i)为两者对应元素中最大差值的绝对值,计算公式为d[Xm(i),Xm(j)]=maxk=0,...,m-1(|X(i+k)-x(j+k)|);The distance d[X m (i), X m (j)] (1≤j≤Nm, j≠i) between the vectors X m (i) and X m (j) is the maximum difference between the two corresponding elements The absolute value of , the calculation formula is d[X m (i), X m (j)]=max k=0, ..., m-1 (|X(i+k)-x(j+k)| );
对于Xm(i),计算d[Xm(i),Xm(j)]≤r,(1≤j≤N-m,j≠i)中Xm(j)的个数Bi,Bi的计算公式为计算两个序列在相似容限r下匹配m个点的概率Bm(r),计算公式为 For X m (i), calculate the number B i , B i of X m (j) in d[X m (i), X m (j)]≤r, (1≤j≤Nm, j≠i) The calculation formula is Calculate the probability B m (r) that the two sequences match m points under the similarity tolerance r, the calculation formula is
将向量序列Xm(i)的长度增加到m+1得到Xm+1(i),计算d[Xm+1(i),Xm+1(j)]≤r,(1≤j≤N-m,j≠i)中Xm+1(j)的个数Ai,Am(r)的计算公式为计算两个序列匹配m+1个点的概率Am(r),计算公式为 Increase the length of the vector sequence X m (i) to m+1 to get X m+1 (i), calculate d[X m+1 (i), X m+1 (j)]≤r, (1≤j ≤Nm, j≠i) the number A i of X m+1 (j), the calculation formula of A m (r) is: Calculate the probability A m (r) that the two sequences match m+1 points, the calculation formula is
样本熵的计算公式为N为有限值时样本熵为 The formula for calculating sample entropy is When N is a finite value, the sample entropy is
本发明的有益效果:Beneficial effects of the present invention:
(1)现有信号质量指标(SQIs)是人工特征选择的特征,人工选择存在特征冗余或特征不充分的问题;同时,存在信号质量指标的提取准确性与指标的提取算法有关的情况。对于给定的一段心电信号,传统方法是先对这段信号求峰度、求偏度、求R波间期吻合度等,然后根据峰度、偏度、R波吻合结果对该段信号进行分类。在此过程中,求偏度、求峰度以及R波间期吻合度都是属于人工提取特征,其中R波间期吻合度依赖两种或多种R波提取算法的准确性,如果R波提取准确性差,将导致这种特征失效,间接导致最终对这段信号的分类结果出现偏差。本发明中使用轻量深度学习网络直接对段信号进行分类,避免了人工提取特征的弊端;同时,轻量深度学习网络属于一种网络轻量(计算量小)的卷积神经网络,适合实时处理心电信号。(1) The existing signal quality indicators (SQIs) are the features of manual feature selection, and there are problems of redundant or insufficient features in manual selection; at the same time, there are situations in which the extraction accuracy of signal quality indicators is related to the extraction algorithm of the indicators. For a given piece of ECG signal, the traditional method is to first find the kurtosis, skewness, and R-wave interval fit of the signal, and then use the kurtosis, skewness, and R-wave fit results for this segment of the signal. sort. In this process, seeking skewness, kurtosis and R wave interval fit are all features of artificial extraction, in which R wave interval fit depends on the accuracy of two or more R wave extraction algorithms. Poor extraction accuracy will lead to the failure of this feature, which indirectly leads to a deviation in the final classification result of this signal. In the present invention, a lightweight deep learning network is used to directly classify segment signals, avoiding the disadvantages of manually extracting features; at the same time, the lightweight deep learning network belongs to a kind of convolutional neural network with lightweight network (small amount of calculation), which is suitable for real-time Process the ECG signal.
(2)现有研究中划分信号质量等级的依据来自标注者主观判断,而不是来自后端应用算法,信号等级不一定适用于多种后端应用算法。本发明中通过样本熵得出分段信号的量化值,如果分段信号超过预设的阈值,就将这段信号去除。预设的阈值是通过不断测试获得的,通过人工合成的信号测试后端应用算法的准确率,不断调整阈值直到得到合适的预设阈值;同时,针对不同的测试后端应用算法,调整得到不同的对应预设阈值。预设阈值既能够有效滤除噪声过多的信号,又能保证R波检测算法、心拍分类算法等后端应用算法的性能,提高噪声环境下的准确性,适应多种后端应用算法,非常灵活。(2) The basis for dividing the signal quality level in the existing research comes from the subjective judgment of the annotator, not from the back-end application algorithm, and the signal level is not necessarily suitable for a variety of back-end application algorithms. In the present invention, the quantized value of the segmented signal is obtained through the sample entropy, and if the segmented signal exceeds a preset threshold, the segmented signal is removed. The preset threshold is obtained through continuous testing. The accuracy of the back-end application algorithm is tested by artificially synthesized signals, and the threshold is continuously adjusted until a suitable preset threshold is obtained. the corresponding preset threshold. The preset threshold can not only effectively filter out the signal with too much noise, but also ensure the performance of the R-wave detection algorithm, heartbeat classification algorithm and other back-end application algorithms, improve the accuracy in noisy environments, and adapt to a variety of back-end application algorithms. flexible.
(3)针对标注犹豫心理会导致歧义标签的问题,本发明中网络训练所使用的数据是人工合成的,不需要人工干预,因此不存在歧义标签或者由于现象的问题。同时,阈值与等级相比起来,阈值更加细腻,避免了按照等级抛弃信号出现的丢弃过多信号的情况,可以有效降低肌电干扰、电极运动干扰噪声对诊断系统造成的误警。(3) In view of the problem that labeling hesitancy will lead to ambiguous labels, the data used for network training in the present invention is artificially synthesized and does not require manual intervention, so there are no ambiguous labels or problems due to phenomena. At the same time, the threshold value is more delicate than the level, which avoids the situation of discarding too many signals according to the level, and can effectively reduce the false alarm caused by the electromyography interference and electrode motion interference noise to the diagnosis system.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,并可依照说明书的内容予以实施,以下以本发明的较佳实施例并配合附图详细说明如后。The above description is only an overview of the technical solution of the present invention. In order to understand the technical means of the present invention more clearly, and implement it according to the content of the description, the preferred embodiments of the present invention are described in detail below with the accompanying drawings.
附图说明Description of drawings
图1是本发明实施例中对噪声信号处理流程的示意图。FIG. 1 is a schematic diagram of a noise signal processing flow in an embodiment of the present invention.
图2是本发明中双支路分割网络的结构示意图。FIG. 2 is a schematic structural diagram of a dual-branch splitting network in the present invention.
具体实施方式Detailed ways
下面结合附图和具体实施例对本发明作进一步说明,以使本领域的技术人员可以更好地理解本发明并能予以实施,但所举实施例不作为对本发明的限定。The present invention will be further described below with reference to the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
在本发明的描述中,术语“包括”意图在于覆盖不排他的包含,例如包含了一系列步骤或单元的过程、方法、系统、产品或设备,没有限定于已列出的步骤或单元而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。In the description of the present invention, the term "comprising" is intended to cover non-exclusive inclusion, such as a process, method, system, product or device comprising a series of steps or elements, not limited to the listed steps or elements but rather Steps or units not listed are optionally included, or other steps or units inherent to these processes, methods, products, or devices are optionally included.
后端应用以R-peak波检测算法为例,本实施例中对含有噪声的心电信号的处理流程如图1所示,包括以下步骤:The back-end application takes the R-peak wave detection algorithm as an example. The processing flow of the ECG signal containing noise in this embodiment is shown in Figure 1, including the following steps:
步骤1:使用人工合成的数据集训练轻量深度学习网络得到训练完成的轻量深度学习网络,使用人工合成的数据集测试后端应用算法得到后端应用算法对应的预设熵阈值。人工合成的数据集由干净的心电信号和噪声叠加产生,干净的心电信号和噪声部分可控,使用人工合成的数据集训练轻量深度学习网络和测试后端应用算法,可以得到性能良好的训练完成的轻量深度学习网络和合适的预设熵阈值。本实施例中测试得到的R-peak波检测算法的预设熵阈值为2.0。Step 1: Use the artificially synthesized data set to train the lightweight deep learning network to obtain the trained lightweight deep learning network, and use the artificially synthesized data set to test the back-end application algorithm to obtain the preset entropy threshold corresponding to the back-end application algorithm. The artificially synthesized data set is generated by the superposition of clean ECG signal and noise. The clean ECG signal and noise are partially controllable. Using the artificially synthesized data set to train a lightweight deep learning network and test the back-end application algorithm can obtain good performance. The training of the completed lightweight deep learning network and a suitable preset entropy threshold. The preset entropy threshold of the R-peak wave detection algorithm obtained by testing in this embodiment is 2.0.
步骤2:将采集到的心电信号数据(被电极运动干扰或者肌电干扰破坏的心电信号)分段并输入训练完成的训练轻量深度学习网络,分类得到含噪声部分的信号段数据。本实施例中将采集到的心电信号数据分为每10s一段的信号,经过轻量网络分类,信号段数据中含有噪声的部分被标记为1,没有噪声的部分被标记为0。Step 2: Segment the collected ECG signal data (the ECG signal disrupted by electrode motion or EMG interference) and input it into the trained lightweight deep learning network, and classify the signal segment data containing noise. In this embodiment, the collected ECG signal data is divided into a signal segment of every 10s. After light network classification, the part of the signal segment data that contains noise is marked as 1, and the part without noise is marked as 0.
所述轻量深度学习网络为双支路分割网络,如图2所示的双支路分割网络包括学习降采样阶段、全局特征提取阶段、特征融合阶段和分类器阶段四个部分。The lightweight deep learning network is a dual-branch segmentation network. The dual-branch segmentation network shown in Figure 2 includes four parts: a learning downsampling stage, a global feature extraction stage, a feature fusion stage, and a classifier stage.
所述学习降采样阶段用于提取浅层特征,包括16通道的二维卷积层(Conv2D)、24通道的深度可分离卷积结构层(Depthwise Separable Convolution,DSConv)和32通道的深度可分离卷积结构层三层,每层后端均使用批标准化层(Batch Normalization,BN,与普通的数据标准化类似,是将分散的数据统一的一种做法,也是优化神经网络的一种方法)提升网络的优化速度。所述16通道的二维卷积层(Conv2D)、24通道的深度可分离卷积结构层(Depthwise Separable Convolution,DSConv)和32通道的深度可分离卷积结构层中,采用的激活函数为LeakyReLU(带泄露修正线性单元函数是ReLu激活函数的变体,该函数输出对负值输入有很小的坡度;由于导数总是不为零,能减少静默神经元的出现,允许基于梯度的学习,从而解决了Relu函数进入负区间后导致神经元不学习的问题);采用LeakyReLU代替ReLU是由于心电信号中存在负值,ReLU(Rectified Linear Unit,线性整流函数,又称修正线性单元,是一种人工神经网络中常用的激活函数,通常指代以斜坡函数及其变种为代表的非线性函数)会直接丢失负值部分的信号特征。所述24通道的深度可分离卷积结构层(DSConv)和32通道的深度可分离卷积结构层(DSConv)中,同时使用Depthwise卷积与Pointwise卷积,用于与深度可分离卷积相区别,Depthwise卷积与Pointwise卷积间有激活函数。The learning downsampling stage is used to extract shallow features, including a 16-channel two-dimensional convolutional layer (Conv2D), a 24-channel depthwise separable convolutional structure layer (Depthwise Separable Convolution, DSConv) and a 32-channel depthwise separable layer. The convolutional structure has three layers, and the back end of each layer uses a batch normalization layer (Batch Normalization, BN, similar to ordinary data standardization, is a method of unifying scattered data, and also a method of optimizing neural networks) to improve Optimized speed of the network. In the 16-channel two-dimensional convolutional layer (Conv2D), the 24-channel depthwise separable convolutional structure layer (Depthwise Separable Convolution, DSConv), and the 32-channel depthwise separable convolutional structure layer, the activation function used is LeakyReLU (The linear unit function with leak correction is a variant of the ReLu activation function, whose output has a small slope to negative inputs; since the derivative is always non-zero, it reduces the occurrence of silent neurons, allowing gradient-based learning, This solves the problem that the neurons do not learn after the Relu function enters the negative interval); the use of LeakyReLU instead of ReLU is due to the existence of negative values in the ECG signal, ReLU (Rectified Linear Unit, linear rectification function, also known as modified linear unit, is a The activation function commonly used in artificial neural networks, usually referring to the nonlinear function represented by the ramp function and its variants, will directly lose the signal features of the negative part. In the 24-channel depthwise separable convolutional structure layer (DSConv) and the 32-channel depthwise separable convolutional structure layer (DSConv), Depthwise convolution and Pointwise convolution are used at the same time, which are used to compare with the depthwise separable convolution. The difference, there is an activation function between Depthwise convolution and Pointwise convolution.
学习降采样阶段的具体结构如表1所示,其中BN表示批标准化层,f表示激活函数,所有的激活函数f均Leaky ReLU。“/BN”表示输出的结果通过BN层;“/f”表示输出的结果通过激活函数f;“/BN/f”表示输出的结果通过BN层,得到的结果再通过激活函数f。The specific structure of the learning downsampling stage is shown in Table 1, where BN represents the batch normalization layer, f represents the activation function, and all the activation functions f are Leaky ReLU. "/BN" means that the output result passes through the BN layer; "/f" means that the output result passes through the activation function f; "/BN/f" means that the output result passes through the BN layer, and the obtained result passes through the activation function f.
表1学习降采样阶段的结构表Table 1 Structure table of learning downsampling stage
所述全局特征提取阶段用于提取信号全局语义,包括32通道的瓶颈层(Bottleneck,Bo,一般在深度较高的网络中使用。包括两个1X1滤波器分别用于降低和升高特征维度,可以减少参数的数量从而减少计算量,且在降维之后可以更加有效、直观地进行数据的训练和特征提取)和64通道的金字塔池化层(是一个传统的网络架构模型,其中的卷积层和全连接层之间加一层金字塔池化层(Pyramid pooling,Py),可以解决输入图片大小不一的情况),所述瓶颈层用于在降低网络参数的同时保持网络准确性,是实现网络轻量化的关键之一;有研究认为心电信号也存在多个尺度的现象,因此所述金字塔池化层用于提取多个尺度信号中的特征,有利于提取全局语义信息。The global feature extraction stage is used to extract the global semantics of the signal, including a 32-channel bottleneck layer (Bottleneck, Bo, generally used in a network with higher depth. Two 1X1 filters are included to reduce and increase the feature dimension, respectively, The number of parameters can be reduced to reduce the amount of calculation, and data training and feature extraction can be performed more effectively and intuitively after dimensionality reduction) and a 64-channel pyramid pooling layer (a traditional network architecture model, in which the convolution A layer of pyramid pooling (Pyramid pooling, Py) is added between the layer and the fully connected layer, which can solve the situation of different input image sizes), and the bottleneck layer is used to reduce network parameters while maintaining network accuracy. One of the keys to achieve network lightweight; some studies believe that ECG signals also have multiple scales, so the pyramid pooling layer is used to extract features from multiple scale signals, which is conducive to extracting global semantic information.
经过反复试验,增加多个瓶颈层对结果没有任何提升,因此认为瓶颈层和金字塔池化层的组合已经充分提取了信号特征,全局特征提取阶段的具体结构如表2所示:After repeated tests, adding multiple bottleneck layers did not improve the results, so it is believed that the combination of the bottleneck layer and the pyramid pooling layer has fully extracted the signal features. The specific structure of the global feature extraction stage is shown in Table 2:
表2全局特征提取阶段的结构表Table 2 Structure table of global feature extraction stage
所述特征融合阶段用于对心电信号中不同细粒度、不同层次的特征进行融合,所述特征融合阶段包括第一层、第二层和相加层,所述第一层包括上采样层(Upsample,Up)、64通道的深度可分离卷积结构层(DSConv)和64通道的二维卷积层(Conv2D),所述第二层包括64通道的二维卷积层,所述相加层用于将所述第一层和所述第二层的输出结果相加,所述相加层为批标准化层(BN)。所述第一层中64通道的深度可分离卷积结构层、所述第一层中64通道的二维卷积层和所述第二层中64通道的二维卷积层后端均设有批标准化层,所述第一层中64通道的深度可分离卷积结构层和所述相加层中采用的激活函数均为LeakyReLU。The feature fusion stage is used to fuse features of different fine-grained and different levels in the ECG signal, the feature fusion stage includes a first layer, a second layer and an addition layer, and the first layer includes an upsampling layer (Upsample, Up), a 64-channel depthwise separable convolutional structure layer (DSConv), and a 64-channel two-dimensional convolutional layer (Conv2D), the second layer includes a 64-channel two-dimensional convolutional layer, the phase The addition layer is used to add the output results of the first layer and the second layer, and the addition layer is a batch normalization layer (BN). The 64-channel depthwise separable convolutional structure layer in the first layer, the 64-channel two-dimensional convolutional layer in the first layer, and the 64-channel two-dimensional convolutional layer in the second layer are all set at the back end. There is a batch normalization layer, the 64-channel depthwise separable convolution structure layer in the first layer and the activation function used in the summation layer are both LeakyReLU.
特征融合阶段的具体结构如表3所示:The specific structure of the feature fusion stage is shown in Table 3:
表3特征融合阶段的结构表Table 3 Structure table of feature fusion stage
输入信号段数据经过表1中学习降采样阶段中的结构后的输出分为两部分,一部分经过表2中全局特征提取阶段的瓶颈层和金字塔池化层后作为特征融合阶段的输入,先后经过表3第一层中的上采样层、二维卷积层和深度可分离卷积结构层;另一部分直接从学习降采样阶段输入到特征融合阶段,经过表3第二层的深度可分离卷积结构层;两部分的输出在表3的批标准化层相加,相加结构经过激活函数f作为分类器阶段的输入。The output of the input signal segment data after passing through the structure in the learning downsampling stage in Table 1 is divided into two parts, one part passes through the bottleneck layer and the pyramid pooling layer in the global feature extraction stage in Table 2 as the input of the feature fusion stage, and passes through successively. The upsampling layer, the two-dimensional convolutional layer and the depthwise separable convolutional structure layer in the first layer of Table 3; the other part is directly input from the learning downsampling stage to the feature fusion stage, and passes through the depthwise separable volume of the second layer of Table 3. The output of the two parts is added in the batch normalization layer of Table 3, and the added structure passes through the activation function f as the input of the classifier stage.
所述分类器阶段用于输出信号中每个采样点的类别,所述分类器阶段包括多个不同尺度的深度可分离卷积结构层(DSConv)、1通道的二维卷积层(Conv2D)以及上采样层(Upsample)。通过多次实验发现,多层不同尺度的DSConv相比多层固定尺度DSConv分割准确率更高,本发明中称之为多尺度串行深度可分离卷积模块(Multiscale serial depthseparable convolution module(Multiscale Serial DSConv Module,Mu)。本实施例中,多尺度串行深度可分离卷积模块包括64通道的DSConv、32通道的DSConv、16通道的DSConv和8通道的DSConv四个不同尺度的深度可分离卷积结构层。所述分类器阶段中多个不同尺度的深度可分离卷积结构层和1通道的二维卷积层后端均设有批标准化层,所述分类器阶段中多个不同尺度的深度可分离卷积结构层、1通道的二维卷积层和上采样层中采用的激活函数均为Leaky ReLU。分类器阶段的具体结构如表4所示:The classifier stage is used to output the category of each sampling point in the signal, and the classifier stage includes a plurality of depthwise separable convolutional structure layers with different scales (DSConv) and a 1-channel two-dimensional convolutional layer (Conv2D) And the upsampling layer (Upsample). It has been found through many experiments that the segmentation accuracy of multi-layer DSConv with different scales is higher than that of multi-layer fixed-scale DSConv, which is called a multi-scale serial depthseparable convolution module (Multiscale Serial Depth Separable Convolution Module (Multiscale Serial Depth Separable Convolution Module) DSConv Module, Mu). In this embodiment, the multi-scale serial depthwise separable convolution module includes four depth separable volumes of different scales: DSConv with 64 channels, DSConv with 32 channels, DSConv with 16 channels, and DSConv with 8 channels. In the classifier stage, multiple depth-separable convolutional structure layers of different scales and one-channel two-dimensional convolutional layers are provided with batch normalization layers at the back end. The activation functions used in the depthwise separable convolutional structure layer, 1-channel 2D convolutional layer and upsampling layer are all Leaky ReLU. The specific structure of the classifier stage is shown in Table 4:
表4分类器阶段的结构表Table 4 Structure table of classifier stages
步骤3:计算含噪声部分的信号段数据的样本熵,与后端应用算法对应的预设熵阈值比较并将大于预设熵阈值的信号段数据去除,得到去噪后的心电信号数据。本实施例中计算得到计算含噪声部分的信号段数据的样本熵为2.5,大于预设的样本熵阈值2.0,故将此部分信号段数据去除,将剩余信号段数据作为R-peak波检测算法的输入。Step 3: Calculate the sample entropy of the signal segment data containing noise, compare with the preset entropy threshold corresponding to the back-end application algorithm, and remove the signal segment data larger than the preset entropy threshold to obtain denoised ECG signal data. In this embodiment, the sample entropy of the signal segment data of the noise-containing part is calculated to be 2.5, which is greater than the preset sample entropy threshold of 2.0. Therefore, this part of the signal segment data is removed, and the remaining signal segment data is used as the R-peak wave detection algorithm input of.
本方法使用样本熵对噪声破坏的部分进行量化,可以得到干净的信号;同时,样本熵是一个估计时间序列规律性的非线性度量,可以在时间序列中寻找具有相同长度的相似模式,这些模式出现的频率和可能性越小,序列的熵值越大,随着信噪比的减小,熵值增大,样本熵与噪声功率之间是密切联系的;并且,由于样本熵值几乎不会受到干净信号能量的影响,因此未受到电极运动干扰、肌电干扰的信号部分与受到干扰部分的熵数值有明显差异。因此使用样本熵对噪声破坏的部分量化后去噪,可以得到干净的信号,可以保证后端应用算法的输入信号是干净的,从而提升后端应用算法的性能。This method uses the sample entropy to quantify the noise-corrupted part, and can get a clean signal; at the same time, the sample entropy is a nonlinear measure to estimate the regularity of the time series, which can find similar patterns with the same length in the time series. The smaller the frequency and possibility of occurrence, the greater the entropy value of the sequence. With the decrease of the signal-to-noise ratio, the entropy value increases, and the sample entropy and noise power are closely related; It will be affected by the clean signal energy, so the entropy value of the signal part that is not disturbed by electrode movement and EMG is significantly different from that of the disturbed part. Therefore, using the sample entropy to quantize and denoise the noise-corrupted part can obtain a clean signal, which can ensure that the input signal of the back-end application algorithm is clean, thereby improving the performance of the back-end application algorithm.
本实施例中去除大于预设熵阈值的信号段数据为删除大于预设熵阈值的信号段数据或者将大于预设熵阈值的信号段数据归零。计算含噪声部分的信号段数据的样本熵的具体方法为:In this embodiment, removing the signal segment data greater than the preset entropy threshold is deleting the signal segment data greater than the preset entropy threshold or zeroing the signal segment data greater than the preset entropy threshold. The specific method for calculating the sample entropy of the signal segment data containing the noise part is:
步骤3-1:将长度为N的离散时间序列X(n)={x(1),x(2),...,x(N)}的分段信号数据组成长度为m,维度为N-m+1的向量序列Xm(i),Xm(i)=[x(1),x(i+1),...,x(i-m+1)],1≤i≤N-m+1,其中m,r是样本熵的超参数,决定了搜索相同元素的大小和相似度阈值;本实施例中m取值为2,r取值为0.25。Step 3-1: The segmented signal data of the discrete time series X(n)={x(1), x(2), . . . , x(N)} of length N is composed of length m and dimension N-m+1 vector sequence X m (i), X m (i) = [x(1), x(i+1), ..., x(i-m+1)], 1≤i ≤N-m+1, where m and r are hyperparameters of sample entropy, which determine the size and similarity threshold of searching for the same element; in this embodiment, m is 2, and r is 0.25.
步骤3-2:定义向量Xm(i)与Xm(j)之间的距离d[Xm(i),Xm(j)](1≤j≤N-m,j≠i)为两者对应元素中最大差值的绝对值,计算公式:d[Xm(i),Xm(j)]=maxk=0,...,m-1(|x(i+k)-x(j+k)|);其中Xm(i)是样本集、i表示第i个样本集、N表示样本集中向量的个数,k是序数的偏移量Step 3-2: Define the distance d[X m (i), X m (j)] (1≤j≤Nm, j≠i) between the vectors X m (i) and X m (j) as both The absolute value of the maximum difference in the corresponding element, the calculation formula: d[X m (i), X m (j)]=max k=0,...,m-1 (|x(i+k)-x (j+k)|); where X m (i) is the sample set, i represents the ith sample set, N represents the number of vectors in the sample set, and k is the offset of the ordinal number
步骤3-3:对于Xm(i),计算d[Xm(i),Xm(j)]≤r,(1≤j≤N-m,j≠i)中Xm(j)的个数Bi,Bi的计算公式:定义Bm(r)为两个序列在相似容限r下匹配m个点的概率,计算公式: Step 3-3: For X m (i), calculate the number of X m (j) in d[X m (i), X m (j)]≤r, (1≤j≤Nm, j≠i) B i , the calculation formula of B i : Define B m (r) as the probability that two sequences match m points under the similarity tolerance r, and the calculation formula is:
步骤3-4:将向量序列Xm(i)的长度增加到m+1得到Xm+1(i),计算d[Xm+1(i),Xm+1(j)]≤r,(1≤j≤N-m,j≠i)中Xm+1(j)的个数Ai,Am(r)的计算公式: 定义Am(r)为两个序列匹配m+1个点的概率,计算公式: Step 3-4: Increase the length of the vector sequence X m (i) to m+1 to obtain X m+1 (i), calculate d[X m+1 (i), X m+1 (j)]≤r , (1≤j≤Nm, j≠i) the number A i of X m+1 (j), the calculation formula of A m (r): Define A m (r) as the probability that two sequences match m+1 points, and the calculation formula is:
步骤3-5:样本熵的计算公式:当N为有限值时,样本熵为: Step 3-5: Calculation formula of sample entropy: When N is a finite value, the sample entropy is:
将步骤3中得到的去噪后的心电信号数据输入后端应用的R-peak波检测算法,与传统的方法相比,经过本发明去噪后的心电信号数据的准确率由40%提升到98%,进一步说明了本发明的有益效果。The denoised ECG signal data obtained in step 3 is input into the R-peak wave detection algorithm applied at the back end. Compared with the traditional method, the accuracy rate of the denoised ECG signal data of the present invention is increased by 40%. It is increased to 98%, which further illustrates the beneficial effect of the present invention.
以上所述实施例仅是为充分说明本发明而所举的较佳的实施例,本发明的保护范围不限于此。本技术领域的技术人员在本发明基础上所作的等同替代或变换,均在本发明的保护范围之内。本发明的保护范围以权利要求书为准。The above-mentioned embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or transformations made by those skilled in the art on the basis of the present invention are all within the protection scope of the present invention. The protection scope of the present invention is subject to the claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110056325.1A CN112704503B (en) | 2021-01-15 | 2021-01-15 | Electrocardiosignal noise processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110056325.1A CN112704503B (en) | 2021-01-15 | 2021-01-15 | Electrocardiosignal noise processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112704503A CN112704503A (en) | 2021-04-27 |
CN112704503B true CN112704503B (en) | 2022-08-30 |
Family
ID=75549142
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110056325.1A Active CN112704503B (en) | 2021-01-15 | 2021-01-15 | Electrocardiosignal noise processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112704503B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113598810B (en) * | 2021-07-22 | 2023-08-15 | 暨南大学 | An Automatic Calculation Method of Fetal Heart Rate Baseline Based on Segmentation Network |
CN113576432B (en) * | 2021-09-02 | 2024-05-24 | 成都云卫康医疗科技有限公司 | Physiological signal scoring and evaluating method based on convolutional neural network |
CN113907765B (en) * | 2021-10-10 | 2024-02-23 | 北京工业大学 | Noninvasive fetal electrocardiosignal quality assessment method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103690152A (en) * | 2014-01-06 | 2014-04-02 | 山东大学 | Arterial elasticity evaluating device based on pulse analysis |
CN109846474A (en) * | 2019-03-26 | 2019-06-07 | 深圳市理邦精密仪器股份有限公司 | The processing method and processing device of electrocardiogram, the long-range processing method of electrocardiogram and system |
CN110251120A (en) * | 2019-06-06 | 2019-09-20 | 山东省计算中心(国家超级计算济南中心) | ECG Classification Method Based on Deep Residual Neural Network Based on Attention Mechanism |
CN111007569A (en) * | 2019-12-11 | 2020-04-14 | 中国人民解放军96901部队23分队 | Sample entropy threshold microseism signal noise reduction method integrated with empirical mode decomposition |
CN111053549A (en) * | 2019-12-23 | 2020-04-24 | 威海北洋电气集团股份有限公司 | Intelligent biological signal abnormality detection method and system |
CN111259921A (en) * | 2019-12-19 | 2020-06-09 | 杭州安脉盛智能技术有限公司 | Transformer sound anomaly detection method based on improved wavelet packet and deep learning |
CN111368627A (en) * | 2019-11-20 | 2020-07-03 | 山东大学 | Heart sound classification method and system based on CNN combined with improved frequency wavelet slice transformation |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012051320A2 (en) * | 2010-10-12 | 2012-04-19 | Worcester Polytechnic Institute | Motion and noise artifact detection for ecg data |
JP7106455B2 (en) * | 2015-11-23 | 2022-07-26 | メイヨ・ファウンデーション・フォー・メディカル・エデュケーション・アンド・リサーチ | Processing of physiological electrical data for analyte evaluation |
US10600185B2 (en) * | 2017-03-08 | 2020-03-24 | Siemens Healthcare Gmbh | Automatic liver segmentation using adversarial image-to-image network |
-
2021
- 2021-01-15 CN CN202110056325.1A patent/CN112704503B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103690152A (en) * | 2014-01-06 | 2014-04-02 | 山东大学 | Arterial elasticity evaluating device based on pulse analysis |
CN109846474A (en) * | 2019-03-26 | 2019-06-07 | 深圳市理邦精密仪器股份有限公司 | The processing method and processing device of electrocardiogram, the long-range processing method of electrocardiogram and system |
CN110251120A (en) * | 2019-06-06 | 2019-09-20 | 山东省计算中心(国家超级计算济南中心) | ECG Classification Method Based on Deep Residual Neural Network Based on Attention Mechanism |
CN111368627A (en) * | 2019-11-20 | 2020-07-03 | 山东大学 | Heart sound classification method and system based on CNN combined with improved frequency wavelet slice transformation |
CN111007569A (en) * | 2019-12-11 | 2020-04-14 | 中国人民解放军96901部队23分队 | Sample entropy threshold microseism signal noise reduction method integrated with empirical mode decomposition |
CN111259921A (en) * | 2019-12-19 | 2020-06-09 | 杭州安脉盛智能技术有限公司 | Transformer sound anomaly detection method based on improved wavelet packet and deep learning |
CN111053549A (en) * | 2019-12-23 | 2020-04-24 | 威海北洋电气集团股份有限公司 | Intelligent biological signal abnormality detection method and system |
Non-Patent Citations (2)
Title |
---|
Automatic segmentation of long-term ECG signals corrupted with broadband noise based on sample entropy;Pau Mico et al;《Computer Methods and Programs in Biomedicine》;20100531;全文 * |
Characterization of sample entropy in the context of biomedical signal analysis;Mateo Aboy et al;《Proceedings of the 29th Annual International Conference of the IEEE EMBS Cité Internationale》;20070826;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112704503A (en) | 2021-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110840402B (en) | Atrial fibrillation signal identification method and system based on machine learning | |
CN111449645B (en) | Intelligent classification and recognition method of electrocardiogram heartbeat | |
Kulkarni et al. | Extracting salient features for EEG-based diagnosis of Alzheimer's disease using support vector machine classifier | |
CN110584649B (en) | A method and system for identifying abnormal ECG signals in a dynamic single-lead ECG | |
Abibullaev et al. | A new QRS detection method using wavelets and artificial neural networks | |
CN112704503B (en) | Electrocardiosignal noise processing method | |
Zhang et al. | EEG analysis of Parkinson's disease using time–frequency analysis and deep learning | |
Hao et al. | Multi-lead model-based ECG signal denoising by guided filter | |
CN109948396B (en) | Heart beat classification method, heart beat classification device and electronic equipment | |
CN112370015A (en) | Physiological signal quality evaluation method based on gram angular field | |
Chashmi et al. | An efficient and automatic ECG arrhythmia diagnosis system using DWT and HOS features and entropy-based feature selection procedure | |
CN112932498A (en) | T wave morphology classification system with strong generalization capability based on deep learning | |
CN110693488A (en) | ECG signal processing system, method, electronic device and readable storage medium | |
CN110123304A (en) | Dynamic electrocardiogram noise filtering method based on multi-template matching and correlation matrix | |
Bairagi et al. | Epileptic seizure identification in EEG signals using DWT, ANN and sequential window algorithm | |
CN113796873A (en) | Wearable dynamic electrocardiosignal classification method and system | |
CN117204860A (en) | A method for locating characteristic waves of ECG signals | |
Sabor et al. | Detection of the interictal epileptic discharges based on wavelet bispectrum interaction and recurrent neural network | |
Tripathi et al. | Automatic seizure detection and classification using super-resolution superlet transform and deep neural network-A preprocessing-less method | |
Jiang et al. | A deep neural network based on multi-model and multi-scale for arrhythmia classification | |
CN115736944A (en) | Atrial fibrillation detection model MCNN-BLSTM based on short-time single lead electrocardiosignal | |
CN114027847B (en) | Electrocardiosignal analysis method based on time-frequency analysis | |
CN113069124A (en) | An ECG Monitoring Method Based on CNN-ET Model | |
CN117582235A (en) | ECG signal classification method based on CNN-LSTM model | |
Kovalchuk et al. | A novel feature vector for ECG classification using deep learning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |