CN111568411A - Heart beat classification method based on continuous heart beat activity sequence feature-SVM model - Google Patents

Heart beat classification method based on continuous heart beat activity sequence feature-SVM model Download PDF

Info

Publication number
CN111568411A
CN111568411A CN202010445891.7A CN202010445891A CN111568411A CN 111568411 A CN111568411 A CN 111568411A CN 202010445891 A CN202010445891 A CN 202010445891A CN 111568411 A CN111568411 A CN 111568411A
Authority
CN
China
Prior art keywords
heart beat
continuous
heart
classification
sequence feature
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.)
Granted
Application number
CN202010445891.7A
Other languages
Chinese (zh)
Other versions
CN111568411B (en
Inventor
李润川
申圣亚
张宏坡
陈刚
王宗敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou University
Original Assignee
Zhengzhou University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhengzhou University filed Critical Zhengzhou University
Priority to CN202010445891.7A priority Critical patent/CN111568411B/en
Publication of CN111568411A publication Critical patent/CN111568411A/en
Application granted granted Critical
Publication of CN111568411B publication Critical patent/CN111568411B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • A61B5/346Analysis of electrocardiograms
    • A61B5/349Detecting specific parameters of the electrocardiograph cycle
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Cardiology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Molecular Biology (AREA)
  • Pathology (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Physics & Mathematics (AREA)
  • Medical Informatics (AREA)
  • Biophysics (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

The invention relates to a heart beat classification method based on a continuous heart beat activity sequence feature-SVM model, which comprises the following steps: s1, removing noise in the electrocardiosignals by adopting continuous wavelet change; s2, segmenting the electrocardiosignal processed in the step S1 to obtain complete heart beats, extracting features from the heart beats, and establishing the following data sets according to the extracted features: a set A is {470 single heart beat morphological characteristics }, a set B is {21 continuous RR intervals } and a set C is 491 continuous heart beat global sequence characteristics }; s3, inputting any set of the data sets in the step S2 into an SVM algorithm model for heart beat classification; the invention has good heart beat classification accuracy.

Description

Heart beat classification method based on continuous heart beat activity sequence feature-SVM model
Technical Field
The invention belongs to the technical field of arrhythmia classification methods, and discloses a heart beat classification method based on a continuous heart beat activity sequence feature-SVM model.
Background
The normal heart has four physiological functions: autonomic, excitability, conductibility and contractility. Arrhythmia refers to a cardiac arrhythmia or a frequency of heart beats caused by an error or disorder in the pacing position or conduction of the heart impulses. Aiming at the continuous change of the heart beat waveform, the computer can accurately and effectively read the electrocardiogram and gradually give out the diagnosis result. At present, an intelligent classification mode is gradually adopted in the electrocardiographic diagnosis, for example, the current GaussianNB (gaussian bayes), linear discriminant analysis (linear discriminant analysis), logistic regression (logistic regression), decision tree (decision tree), GBDT (gradient boosting iterative decision tree), RandomForest (random forest), AdaBoost (adaptive enhancement) is applied to intelligent cardiac beat classification, which has a good effect of improving the efficiency and accuracy of cardiac beat classification in the intelligent electrocardiographic classification.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a heart beat classification method based on a continuous heart beat activity sequence feature-SVM model.
The technical scheme of the invention is as follows:
a heart beat classification method based on a continuous heart beat activity sequence feature-SVM model comprises the following steps:
s1, removing noise in the electrocardiosignals by adopting continuous wavelet change;
s2, segmenting the electrocardiosignal processed in the step S1 to obtain complete heart beats, extracting features from the heart beats, and establishing the following data sets according to the extracted features:
the set a ═ 470 single-heartbeat morphology features },
set B ═ 21 consecutive RR intervals },
set C ═ 491 continuous heart beat global sequence feature };
s3, inputting any one of the data sets in step S2 into a SVM algorithm model for heart beat classification.
Further, the 470 single-heart-beat morphological characteristics extraction method is that 235 sampling points near the R peak are respectively extracted through two leads contained in each record of the MIT-BIH arrhythmia database by using the R peak position determined in the annotation file.
Compared with the prior art, the invention has the beneficial effects that:
according to the method, the noise is removed through continuous wavelet transformation, then the characteristic extraction is carried out, three sets of the extracted characteristics are established according to the types of the characteristics, one of the three sets is input into an SVM (support vector machine) model for heart beat classification, the set A, the set B and the set C are used as the input of the electrocardio classification, the SVM model is used as a classifier for classifying the electrocardio signals in the sets, and the accuracy of the electrocardio classification can be effectively improved.
Drawings
FIG. 1 is a schematic illustration of an optimal separation hyperplane.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A heart beat classification method based on a continuous heart beat activity sequence feature-SVM model comprises the following steps:
s1, removing noise in the electrocardiosignals by adopting continuous wavelet change;
s2, segmenting the electrocardiosignal processed in the step S1 to obtain complete heart beats, extracting features from the heart beats, and establishing the following data sets according to the extracted features:
the set a ═ 470 single-heartbeat morphology features },
set B ═ 21 consecutive RR intervals },
set C ═ 491 continuous heart beat global sequence feature };
s3, inputting any one of the data sets in step S2 into a SVM algorithm model for heart beat classification.
Further, the 470 single-heart-beat morphological characteristics extraction method is that 235 sampling points near the R peak are respectively extracted through two leads contained in each record of the MIT-BIH arrhythmia database by using the R peak position determined in the annotation file.
The SVM model adopted in the invention is a novel machine learning method established on the basis of a statistic learning theory VC dimension theory and a structure risk minimization principle, the algorithm shows a plurality of specific advantages in solving the problems of small sample, nonlinearity and high dimension pattern recognition, and the problems of dimension disaster, over-learning and the like are overcome to a great extent, the basic idea of the SVM is shown in figure 1, hollow points and solid points respectively represent different categories, H is a separating hyperplane, and H is a separating hyperplane1And H2Is called a support vector, H1And H2Referred to as classification interval; the optimal separation hyperplane is the one requiring the largest classification interval on the premise of correctly separating different classes.
Assume that the linear classification plane is of the form:
g(x)=wTx+b (1);
wherein w is a classification weight vector, b is a classification threshold, the discriminant function is normalized so that the discriminant function satisfies | g (x) | ≧ 1 for both types of samples,
yi(wTxi+b)-1≥0,i=1,2,…,l (2);
(2)
wherein y isiIs a class label of the sample, xiAre the corresponding samples.
Figure BDA0002504015270000031
The maximization of the classification interval Margin 2/(| w |) is equivalent to the calculation of
Figure BDA0002504015270000032
And minimum.
Introducing lagrange multiplier aiAccording to the Karush-Kuhn-Tucker (KKT) condition, the above problem can be converted into the maximization of the generic function w (a) under the constraint condition (4), and the generalizationThe expression of the function w (a) is shown in (5).
l i=1αiyi=0,αi≥0,i=1,2,…,l (4);
w(α)=∑l i=1αi-1/2 ∑l i=1l j=1αiαjyiyj<xT ixj> (5);
Quadratic programming can find aiA is toiSubstituting into (6) to obtain w;
w=∑l i=1αiyjxx(6);
selecting a not zeroiSubstituting the result into the step (7) to obtain b;
αi(yj(wTxi+b)-1)=0 (7):
by derivation, the decision function becomes the following equation:
f(x)=sign(∑svyjαi<xT ixj>+b) (8);
the test sample is substituted into formula (8), and if f (x) is 1, the test sample belongs to the category, otherwise, the test sample does not belong to the category.
Experiments and results are as follows:
the following experiments were all performed on the MIT-BIH arrhythmia database, and each heart beat was classified as N (normal or bundle branch block), S (supraventricular abnormal heart beat), V (ventricular abnormal heart beat), F (fused heart beat), Q (unclassified heart beat) according to ANSI/AAMI EC 57.
In this embodiment, four values of TP, FP, TN and FN are calculated to obtain the heart beat classification result, where TP is used for classifying heart beatsNRepresenting the N-class of true-positive heartbeats, FPNRepresenting false positive heartbeats of type N, TNNN true negative heart beats are shown, and FNN false negative heart beats are shown. The classification results for other heart beat classes are calculated in the same way. Table 1 shows the confusion matrix of the classification results. In the experiment of the embodiment, N, S, V, F and Q represent the real categories of heartbeats; n, s, v, f, q represent the prediction results。
Table 1: confusion matrix of classification results
Figure BDA0002504015270000041
TPN=NN(9)
FPN=Ns+Nv+Nf+Nq (10)
TNN=Ss+Sv+Sf+Sq+Vs+Vv+Vf+Vq+Fs+Fv+Ff+Fq+Qs+Qv+Qf+Qq (11)
FNN=Sn+Vn+Fn+Qn (12)
This implementation uses sensitivity, specificity, positive predictive value, and accuracy to evaluate classifier performance. Sensitivity (se) refers to the proportion of samples judged to be positive examples to all positive examples. The higher the sensitivity, the more samples are correctly predicted. Specificity (sp) refers to the proportion of samples judged to be negative in all negative cases. The positive predictive value (+ p) is also referred to in the literature as accuracy. Accuracy is the ratio of the number of correctly classified samples to the total number of samples, reflecting the consistency between the test results and the actual results. The calculation formulas of the four evaluation indexes are as follows:
Se=TP/(TP+FN)(13)
Sp=TN/(TN+FP) (14)
+p=TP/(TP+FP) (15)
Acc=(TP+TN)/(TP+TN+FP+FN) (16)。
for analysis of experimental results using different combinations of features of one or more of the foregoing components of set A, B, C, D, E, the analysis proceeds as follows:
experiment I
Experiment I is based on the set A, the set B and the set C as input, GaussianNB (Gaussia Bayes), Linear discriminant analysis (linear discriminant analysis), Logistic regression (logistic regression), DecisionTree (decision tree), GBDT (gradient boosting iterative decision tree), RandomForest (random forest), AdaBoost (adaptive boosting) as reference classifiers, SVM models as experiment classifiers are used for heart beat classification analysis, and classification results of different model classifiers based on different data sets are shown in the following table 2.
TABLE 2 Classification results for different models based on different datasets
Figure BDA0002504015270000051
Figure BDA0002504015270000061
Experiment II
Experiment II heart beat classification based on set a and SVM model. The experimental results show that the average classification accuracy of the heart beat classification is 98.96%, but only the morphology features of the single heart beat are used, so that the method has certain locality. The disadvantage of this experimental method is that the morphological characteristics of single heart beat are too unilateral. Table 3 shows the classification performance of the SVM model with only 470 single heart beat morphology features.
TABLE 3 Classification results and Performance based on set A and SVM models
Figure BDA0002504015270000062
Experiment III
Experiment III cardiac beat classification based on set B and SVM models. The experimental results show that the classification precision of N, S, V and Q classes is obviously low. The average classification accuracy reached 88.46%. Table 4 shows the classification results for SVM models featuring only continuous inter-beat activity. . The disadvantage of this experimental approach is that the continuous inter-beat activity profile is also not comprehensive enough.
TABLE 4 Classification results and Performance based on set B and SVM models
Figure BDA0002504015270000063
Experiment IV
Experiment IV cardiac beat classification based on set C and SVM model. The experimental results show that the average accuracy of classification reaches 99.12%. The overall accuracy of experiment IV was improved by 0.16% compared to experiment II. The overall accuracy was improved by 10.66% compared to experiment III. Table 5 shows the classification results and performance of Adaboost + random forest models with QRS area features only.
TABLE 5 Classification results and Performance based on set D and sVM models
Figure BDA0002504015270000071
In summary, according to the heart beat classification method based on the continuous heart beat activity sequence feature-SVM model provided by the application, a set a ═ 470 single heart beat morphology feature }, a set B ═ 21 continuous RR intervals, and a set C ═ 491 continuous heart beat global sequence feature } are used as input, the SVM model is used as a classifier to classify heart beats of an electrocardiosignal, the classification accuracy can reach 99.12%, and the classification accuracy is higher for the input electrocardiosignal data set compared with that of a traditional classifier.
Although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that various changes in the embodiments and/or modifications of the invention can be made, and equivalents and modifications of some of the features described in the embodiments and/or modifications can be made without departing from the spirit and scope of the invention.

Claims (2)

1. A heart beat classification method based on a continuous heart beat activity sequence feature-SVM model is characterized by comprising the following steps:
s1, removing noise in the electrocardiosignals by adopting continuous wavelet change;
s2, segmenting the electrocardiosignal processed in the step S1 to obtain complete heart beats, extracting features from the heart beats, and establishing the following data sets according to the extracted features:
the set a ═ 470 single-heartbeat morphology features },
set B ═ 21 consecutive RR intervals },
set C ═ 491 continuous heart beat global sequence feature };
s3, inputting any one of the data sets in step S2 into a SVM algorithm model for heart beat classification.
2. The heart beat classification method based on continuous heart beat activity sequence feature-SVM model according to claim 1, characterized in that: the 470 single-heart-beat morphological characteristics extraction method is that 235 sampling points near the R peak are respectively extracted through two leads contained in each record of the MIT-BIH arrhythmia database by utilizing the R peak position determined in the annotation file.
CN202010445891.7A 2020-05-22 2020-05-22 Heart beat classification method based on continuous heart beat activity sequence feature-SVM model Active CN111568411B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010445891.7A CN111568411B (en) 2020-05-22 2020-05-22 Heart beat classification method based on continuous heart beat activity sequence feature-SVM model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010445891.7A CN111568411B (en) 2020-05-22 2020-05-22 Heart beat classification method based on continuous heart beat activity sequence feature-SVM model

Publications (2)

Publication Number Publication Date
CN111568411A true CN111568411A (en) 2020-08-25
CN111568411B CN111568411B (en) 2023-08-22

Family

ID=72116024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010445891.7A Active CN111568411B (en) 2020-05-22 2020-05-22 Heart beat classification method based on continuous heart beat activity sequence feature-SVM model

Country Status (1)

Country Link
CN (1) CN111568411B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112651927A (en) * 2020-12-03 2021-04-13 北京信息科技大学 Raman spectrum intelligent identification method based on convolutional neural network and support vector machine

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010077997A2 (en) * 2008-12-16 2010-07-08 Bodymedia, Inc. Method and apparatus for determining heart rate variability using wavelet transformation
CN108985365A (en) * 2018-07-05 2018-12-11 重庆大学 Multi-source heterogeneous data fusion method based on depth subspace switching integrated study
CN110537907A (en) * 2019-08-26 2019-12-06 华南理工大学 Electrocardiosignal compression and identification method based on singular value decomposition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010077997A2 (en) * 2008-12-16 2010-07-08 Bodymedia, Inc. Method and apparatus for determining heart rate variability using wavelet transformation
CN108985365A (en) * 2018-07-05 2018-12-11 重庆大学 Multi-source heterogeneous data fusion method based on depth subspace switching integrated study
CN110537907A (en) * 2019-08-26 2019-12-06 华南理工大学 Electrocardiosignal compression and identification method based on singular value decomposition

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李四海 等: "《基于小波变换和SVM 的心电早搏信号识别》", 《计算机应用与软件》 *
李润川 等: "《基于单心搏活动特征与BiLSTM-Attention 模型的心律失常检测》", 《计算机应用与软件》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112651927A (en) * 2020-12-03 2021-04-13 北京信息科技大学 Raman spectrum intelligent identification method based on convolutional neural network and support vector machine

Also Published As

Publication number Publication date
CN111568411B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
Essa et al. An ensemble of deep learning-based multi-model for ECG heartbeats arrhythmia classification
Xia et al. A novel wearable electrocardiogram classification system using convolutional neural networks and active learning
Mehta et al. SVM-based algorithm for recognition of QRS complexes in electrocardiogram
Zhang et al. A cascaded convolutional neural network for assessing signal quality of dynamic ECG
Mathews et al. Leveraging a discriminative dictionary learning algorithm for single-lead ECG classification
Smíšek et al. SVM based ECG classification using rhythm and morphology features, cluster analysis and multilevel noise estimation
Yao et al. Interpretation of electrocardiogram heartbeat by CNN and GRU
Essa et al. Multi-model deep learning ensemble for ECG heartbeat arrhythmia classification
Mehta et al. Development of entropy based algorithm for cardiac beat detection in 12-lead electrocardiogram
Hoang et al. Multi-leads ECG premature ventricular contraction detection using tensor decomposition and convolutional neural network
Mehta et al. Support Vector Machine for Cardiac Beat Detection in Single Lead Electrocardiogram.
Peimankar et al. Automatic detection of cardiac arrhythmias using ensemble learning
CN111568411A (en) Heart beat classification method based on continuous heart beat activity sequence feature-SVM model
Lee et al. Classification of ventricular arrhythmia using a support vector machine based on morphological features
Hai et al. Wavelet-based kernel construction for heart disease classification
Zhang et al. A deep Bayesian neural network for cardiac arrhythmia classification with rejection from ECG recordings
Ye et al. Explainable prediction of cardiac arrhythmia using machine learning
Ni et al. Multi-class cardiovascular disease detection and classification from 12-lead ECG signals using an inception residual network
Trardi et al. A novel method to identify relevant features for automatic detection of atrial fibrillation
KR20230096392A (en) Method and apparatus for classifying heartbeat, and method for learning heartbeat classification model
Sraitih et al. An overview on machine learning methods for ECG Heartbeat Arrhythmia Classification
Sangeetha et al. A CNN based similarity learning for cardiac arrhythmia prediction
Qiao et al. ECG signal classification based on adaptive multi-channel weighted neural network
Zhu et al. ECG heartbeat classification based on combined features extracted by PCA, KPCA, AKPCA and DWT
Wen et al. ECG beat classification using GreyART network

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