CN111568411B - 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
CN111568411B
CN111568411B CN202010445891.7A CN202010445891A CN111568411B CN 111568411 B CN111568411 B CN 111568411B CN 202010445891 A CN202010445891 A CN 202010445891A CN 111568411 B CN111568411 B CN 111568411B
Authority
CN
China
Prior art keywords
heart beat
classification
continuous
sequence feature
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.)
Active
Application number
CN202010445891.7A
Other languages
Chinese (zh)
Other versions
CN111568411A (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

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 application 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 electrocardiosignals by adopting continuous wavelet change; s2, segmenting the electrocardiosignals processed in the step S1 to obtain complete heartbeats, extracting features from the segmented heartbeats, and establishing the following data sets according to the types of the extracted features: set a= {470 single heart beat morphology feature }, set b= {21 consecutive RR intervals } set c= {491 consecutive heart beat global sequence feature }; s3, inputting any one set of the data sets in the step S2 into an SVM algorithm model for heart beat classification; the application has good heart beat classification accuracy.

Description

Heart beat classification method based on continuous heart beat activity sequence feature-SVM model
Technical Field
The application belongs to the technical field of arrhythmia classification methods, and relates to a heart beat classification method based on a continuous heart beat activity sequence feature-SVM model.
Background
The normal heart has four physiological functions: autonomy, excitability, conductivity and contractility. Arrhythmia refers to the frequency or arrhythmia at which the heart beats due to the pacing position of the heart impulses, errors or disturbances in conduction. 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 when the electrocardiographic diagnosis is carried out, for example, the existing Gaussian NB (Gao Sibei Yes) is adopted at present, linearDi scriminantAnalysis (linear discriminant analysis), logistic regressionRegression (decision tree), GBDT (gradient lifting iteration decision tree), rannomforest and AdaBoost (adaptive enhancement) are applied to the intelligent classification of the heart beat, good effect of improving the heart beat classification efficiency and accuracy is achieved in the intelligent electrocardiographic classification, but along with the application of the classifier in practice, the classifier is found to have limitation in the heart beat classification, even the classification efficiency and accuracy are low, and the requirement of daily input electrocardiographic signal rapid and accurate classification cannot be met.
Disclosure of Invention
The application 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 application is as follows:
a heart beat classification method based on a continuous heart beat activity sequence feature-SVM model, comprising the steps of:
s1, removing noise in electrocardiosignals by adopting continuous wavelet transformation;
s2, segmenting the electrocardiosignals processed in the step S1 to obtain complete heartbeats, extracting features from the segmented heartbeats, and establishing the following data sets according to the types of the extracted features:
set a = {470 single heart beat morphology feature },
set b= {21 consecutive RR intervals },
set c= {491 continuous cardiac global sequence feature };
and S3, inputting any one set of the data sets in the step S2 into an SVM algorithm model for heart beat classification.
Further, the 470 single heart beat morphology feature extraction method is to extract 235 sampling points near the R peak through two leads contained in each record of the MIT-BIH arrhythmia database respectively by using the R peak position determined in the annotation file.
Compared with the prior art, the application has the beneficial effects that:
according to the application, the continuous wavelet transformation is used for removing noise, then the feature extraction is carried out, the extracted features are established into three sets according to the types of the features, one of the three sets is input into the SVM model for heart beat classification, the set A, the set B and the set C are adopted as the input of electrocardio classification, and the SVM model is adopted as the classifier for classifying the electrocardiosignals in the sets, so that the accuracy of electrocardio classification can be effectively improved.
Drawings
FIG. 1 is a schematic view of an optimal separation hyperplane.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
A heart beat classification method based on a continuous heart beat activity sequence feature-SVM model, comprising the steps of:
s1, removing noise in electrocardiosignals by adopting continuous wavelet transformation;
s2, segmenting the electrocardiosignals processed in the step S1 to obtain complete heartbeats, extracting features from the segmented heartbeats, and establishing the following data sets according to the types of the extracted features:
set a = {470 single heart beat morphology feature },
set b= {21 consecutive RR intervals },
set c= {491 continuous cardiac global sequence feature };
and S3, inputting any one set of the data sets in the step S2 into an SVM algorithm model for heart beat classification.
Further, the 470 single heart beat morphology feature extraction method is to extract 235 sampling points near the R peak through two leads contained in each record of the MIT-BIH arrhythmia database respectively by using the R peak position determined in the annotation file.
The SVM model adopted in the application is a new machine learning method based on the statistical learning theory VC dimension theory and the structural risk minimization theory, the algorithm shows a plurality of special advantages in solving the problems of small sample, nonlinearity and high-dimension pattern recognition, and overcomes the problems of dimension disaster, overlearning and the like to a great extent, the basic idea of the SVM is shown in figure 1, the hollow points and the solid points respectively represent different categories, H is a separation hyperplane, and the like 1 And H 2 Is called support vector, H 1 And H 2 Known as classification intervals; the optimal separation hyperplane is the one that requires the maximum separation of the classifications on the premise of correctly separating the different classifications.
Assume the form of a linear classification plane is:
g(x)=w T x+b (1);
wherein w is a classification weight vector, b is a classification threshold, and the discriminant function is normalized to satisfy |g (x) |gtoreq 1 for both types of samples,
y i (w T x i +b)-1≥0,i=1,2,…,l (2);
wherein y is i Is a class mark of the sample, x i Is the corresponding sample.
Maximizing the classification interval margin=2/(|w|) is equivalent to solving forMinimum.
Introduction of Lagrangian multiplier a i According to the Karush-Kuhn-Tucker (KKT) condition, the above problem can be translated into maximizing the floodfunction w (a) under constraint (4), the expression of which is shown in (5).
The quadratic programming can be used for obtaining a i Will a i Substituting (6) to obtain w;
selecting a which is not zero i Substituting (7) to obtain b;
α i (y j (w T x i +b)-1)=0 (7);
by derivation, the decision function becomes the following formula:
substituting the test sample into equation (8), if f (x) =1, it belongs to the category, otherwise it does not.
Experiment and results:
the following experiments were all performed on the MIT-BIH arrhythmia database, with each heart beat being 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 a heart beat classification result, where TP is N Represents N-type true positive heart beat, FP N Represents N-type false positive heart beat, TN N Representing N-type true negative heart beat, FN N Indicating class N false negative heart beats. The classification results for the other heart beat categories 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 true category of heart beat; n, s, v, f, q represent the prediction result.
Table 1: confusion matrix for classification results
TP N =N N (9)
FP N =Ns+Nv+Nf+Nq (10)
TN N =Ss+Sv+Sf+Sq+Vs+Vv+Vf+Vq+Fs+Fv+Ff+Fq+Qs+Qv+Qf+Qq (11)
FN N =Sn+Vn+Fn+Qn (12)
The present implementation uses sensitivity, specificity, positive predictive value and accuracy to evaluate classifier performance. Sensitivity (se) refers to the proportion of samples determined to be positive examples to all positive examples. The higher the sensitivity, the more samples that are correctly predicted. Specificity (sp) refers to the proportion of samples judged as negative to all negative. 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 the analysis of the experimental results using the set A, B, C described above, the analysis procedure was as follows:
experiment I
Experiment I uses gaussian nb (Gao Sibei leaf) linear discriminant analysis (linear discriminant analysis), logistic regression (decision tree), GBDT (gradient-lifting iterative decision tree), random forest, adaBoost (adaptive enhancement) as reference classifier, SVM model as experimental classifier for heart beat classification analysis, and classification results of different model classifiers based on different data sets as shown in table 2 below.
Table 2 classification results for different models based on different data sets
Experiment II
Experiment II heart beat classification was performed based on set a and SVM model. Experimental results show that the average classification accuracy of the heart beat classification is 98.96%, but only using single heart beat morphology features has a certain locality. The disadvantage of this experimental approach is that the morphology of the single heart beat is too monolithic. Table 3 shows the classification performance of the SVM model with 470 single heart beat morphology features only.
TABLE 3 classification results and Performance based on set A and SVM models
Experiment III
Experiment III carries out heart beat classification based on set B and SVM model. Experimental results show that the classification accuracy of N, S, V and Q classes is obviously lower. The average classification accuracy reaches 88.46%. Table 4 shows the classification results of the SVM model with only continuous beat-to-beat interval activity features. The disadvantage of this experimental method is that the continuous cardiac interval activity characteristics are not comprehensive.
TABLE 4 classification results and Performance based on set B and SVM models
Experiment IV
Experiment IV carries out heart 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 the SVM algorithm model with 491 continuous heart beat global sequence features only.
TABLE 5 classification results and Performance based on set C and SVM models
In summary, the heart beat classification method based on the continuous heart beat activity sequence feature-SVM model provided by the application adopts the set A= {470 single heart beat morphological feature }, the set B= {21 continuous RR intervals }, the set C= {491 continuous heart beat global sequence feature } as input, and uses the SVM model as a classifier to classify heart beat, so that the classification accuracy can reach 99.12%, and the classification accuracy is higher than that of the traditional classifier on the input heart beat data set.
Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described, or equivalents may be substituted for elements thereof, and any modifications, equivalents, improvements and changes may be made without departing from the spirit and principles of the present application.

Claims (1)

1. A heart beat classification method based on a continuous heart beat activity sequence feature-SVM model, comprising the steps of:
s1, removing noise in electrocardiosignals by adopting continuous wavelet change;
s2, segmenting the electrocardiosignals processed in the step S1 to obtain complete heartbeats, extracting features from the segmented heartbeats, and establishing the following data sets according to the types of the extracted features:
set a = {470 single heart beat morphology feature },
set b= {21 consecutive RR intervals },
set c= {491 continuous cardiac global sequence feature };
s3, inputting any one set of the data sets in the step S2 into an SVM algorithm model for heart beat classification;
the 470 single heart beat morphological feature extraction method comprises the steps of respectively extracting 235 sampling points nearby an R peak through two leads contained in each record of an MIT-BIH arrhythmia database by utilizing the R peak position determined in an annotation file;
assume the form of a linear classification plane is:
(1);
wherein w is a classification weight vector, b is a classification threshold, and the discriminant function is normalized to satisfy the discriminant function for both types of samplesThat is to say,
(2);
wherein y is i Is a class mark of the sample, x i Is the corresponding sample;
(3);
maximizing the classification interval margin=2/(|w|) is equivalent to solving forMinimum;
introduction of Lagrangian multiplier a i According to the Karush-Kuhn-Tucker (KKT) condition, it can be converted to maximize the floodfunction w (a) under constraint (4), the expression of the floodfunction w (a) is shown as (5):
(4);
(5);
the quadratic programming can be used for obtaining a i Will a i Substituting (6) to obtain w;
(6);
selecting a which is not zero i Substitution (7)B, obtaining a product;
(7);
by derivation, the decision function becomes the following formula:
(8);
substituting the test sample into equation (8), if f (x) =1, it belongs to the category, otherwise it does not.
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 CN111568411A (en) 2020-08-25
CN111568411B true 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)

Families Citing this family (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 (1)

* Cited by examiner, † Cited by third party
Title
《基于小波变换和SVM 的心电早搏信号识别》;李四海 等;《计算机应用与软件》;20180831;第31卷(第8期);第182-185页 *

Also Published As

Publication number Publication date
CN111568411A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
Marinho et al. A novel electrocardiogram feature extraction approach for cardiac arrhythmia classification
Xia et al. A novel wearable electrocardiogram classification system using convolutional neural networks and active learning
CN108511055B (en) Ventricular premature beat recognition system and method based on classifier fusion and diagnosis rules
CN111557659B (en) Arrhythmia classification method based on multi-feature fusion and Stacking-DWKNN algorithm
Yang et al. A novel method for identifying electrocardiograms using an independent component analysis and principal component analysis network
Yao et al. Interpretation of electrocardiogram heartbeat by CNN and GRU
Ka ECG beats classification using waveform similarity and RR interval
Zidelmal et al. Heartbeat classification using support vector machines (SVMs) with an embedded reject option
Mehta et al. Development of entropy based algorithm for cardiac beat detection in 12-lead electrocardiogram
CN113288157A (en) Arrhythmia classification method based on depth separable convolution and improved loss function
CN111568411B (en) Heart beat classification method based on continuous heart beat activity sequence feature-SVM model
Mehta et al. Support Vector Machine for Cardiac Beat Detection in Single Lead Electrocardiogram.
Essa et al. Multi-model deep learning ensemble for ECG heartbeat arrhythmia classification
Hoang et al. Multi-leads ECG premature ventricular contraction detection using tensor decomposition and convolutional neural network
Mehta et al. Comparative study of QRS detection in single lead and 12-lead ECG based on entropy and combined entropy criteria using support vector machine.
CN109033990B (en) CNN model heartbeat classification method based on intra-class and inter-class distances
CN107909048A (en) A kind of more sorting techniques of arrhythmia cordis based on S-transformation
Chudacek et al. Comparison of seven approaches for holter ECG clustering and classification
Wu et al. Using semi-supervised cluster method to correct the mislabeled training samples of ECG signals
Sraitih et al. An overview on machine learning methods for ECG Heartbeat Arrhythmia Classification
CN111513702A (en) Method for detecting electrocardiographic data and storage medium
CN113435477A (en) Method for improving prediction performance of computer-aided stress fracture prediction system
Wen et al. ECG beat classification using GreyART network
Zhu et al. ECG heartbeat classification based on combined features extracted by PCA, KPCA, AKPCA and DWT
De Chazal Heartbeat classification system using adaptive learning from selected beats

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