Electrocardiosignal type identification method and device

文档序号:915939 发布日期:2021-03-02 浏览:23次 中文

阅读说明:本技术 一种心电信号类型识别方法及装置 (Electrocardiosignal type identification method and device ) 是由 石用伍 石用德 谢泉 罗姣莲 于 2020-11-30 设计创作,主要内容包括:本发明提供了一种心电信号类型的识别方法及装置,通过预先利用已标注心电信号类型的分类特征样本集对预设机器学习模型进行训练,得到分类模型,基于该分类模型对标准化心电信号的时频域融合特征进行心电信号分类处理,提高了心电信号类型的识别速度,进而提高了心律失常分类速度。同时,由于输入到分类模型中的分类特征融合了标准化心电信号的时域特征和频域特征,使该分类特征不仅能够体现标准化心电信号的时域特征,还能够体现标准化心电信号的频域特征,进而提高分类模型对心电信号分类的准确性,实现对心电信号类型快速、准确的识别,进而实现对心律失常类型快速、准确的识别。(The invention provides an electrocardiosignal type identification method and device, which train a preset machine learning model by utilizing a classification characteristic sample set marked with an electrocardiosignal type in advance to obtain a classification model, and carry out electrocardiosignal classification processing on time-frequency domain fusion characteristics of standardized electrocardiosignals based on the classification model, thereby improving the identification speed of the electrocardiosignal type and further improving the arrhythmia classification speed. Meanwhile, the classification features input into the classification model are fused with the time domain features and the frequency domain features of the standardized electrocardiosignals, so that the classification features can embody the time domain features of the standardized electrocardiosignals and the frequency domain features of the standardized electrocardiosignals, the accuracy of classification of the electrocardiosignals by the classification model is improved, the quick and accurate identification of the type of the electrocardiosignals is realized, and the quick and accurate identification of the type of arrhythmia is realized.)

1. A method for identifying the type of an electrocardiosignal is characterized by comprising the following steps:

acquiring a standardized electrocardiosignal;

respectively extracting time domain characteristics and frequency domain characteristics of the standardized electrocardiosignals;

performing feature fusion on the time domain features and the frequency domain features to obtain time-frequency domain fusion features of the standardized electrocardiosignals;

inputting the time-frequency domain fusion characteristics into a classification model trained in advance for classification processing to obtain the type of the standardized electrocardiosignals, wherein the type of the standardized electrocardiosignals represents the arrhythmia type corresponding to the standardized electrocardiosignals, and the classification model is obtained by utilizing a classification characteristic sample set with the marked electrocardiosignal type to train a preset machine learning model in advance.

2. The method of claim 1, further comprising:

acquiring a history sample set consisting of single-channel electrocardiogram data samples with preset lengths and with electrocardiosignal types marked, and dividing the history sample set into a training set and a testing set according to a preset proportion;

respectively carrying out standardization processing on each sample in the training set and the test set to obtain a standardized parameter and a standard training set and a standard test set;

respectively extracting the time domain characteristics of each sample in the standard training set and the standard testing set by using a long-short term memory network model;

converting each sample in the standard training set and the standard testing set into an image, and respectively extracting the frequency domain characteristics of the corresponding image of each sample in the standard training set and the standard testing set by using a two-dimensional convolutional neural network model;

and respectively carrying out feature fusion on the time domain features and the frequency domain features of each sample in the standard training set and the standard testing set to obtain the classification features of each sample in the standard training set and the standard testing set, thus obtaining a classification feature sample set with the marked electrocardiosignal type.

3. The method of claim 2, wherein said obtaining a normalized cardiac signal comprises:

acquiring original single-channel electrocardiogram data with preset length;

and carrying out standardization processing on the original single-channel electrocardiogram data according to the standardized parameters to obtain the standardized electrocardiogram signals.

4. The method of claim 2, wherein said separately extracting time domain features and frequency domain features of the normalized cardiac electrical signal comprises:

extracting the time domain characteristics of the standardized electrocardiosignals by utilizing a pre-trained time domain characteristic extraction model, wherein the time domain characteristic extraction model is obtained by utilizing the standard training set to train a long-short term memory network model in advance, and the standardized electrocardiosignals and samples in the training set have the same format;

and converting the standardized electrocardiosignals into images, inputting the images into a pre-trained frequency domain feature extraction model, and extracting the frequency domain features of the standardized electrocardiosignals, wherein the frequency domain feature extraction model is obtained by utilizing the standard training set to train a two-dimensional convolution neural network model in advance.

5. The method of claim 2, further comprising:

training the preset machine learning model by using the classification characteristic and the electrocardiosignal type of each sample in the standard training set;

verifying the classification model obtained after training by using the classification characteristic and the electrocardiosignal type of each sample in the standard test set to obtain a preset performance index value of the classification model;

and when the preset performance index value reaches a threshold value, finishing the training of the classification model.

6. An apparatus for identifying a type of an electrocardiographic signal, comprising:

the electrocardiosignal acquisition unit is used for acquiring a standardized electrocardiosignal;

the characteristic extraction unit is used for respectively extracting time domain characteristics and frequency domain characteristics of the standardized electrocardiosignals;

the characteristic fusion unit is used for carrying out characteristic fusion on the time domain characteristic and the frequency domain characteristic to obtain a time-frequency domain fusion characteristic of the standardized electrocardiosignal;

and the classification processing unit is used for inputting the time-frequency domain fusion characteristics into a pre-trained classification model for classification processing to obtain the type of the standardized electrocardiosignals, the type of the standardized electrocardiosignals represents the arrhythmia type corresponding to the standardized electrocardiosignals, and the classification model is obtained by utilizing a classification characteristic sample set with the marked electrocardiosignal type to train a preset machine learning model in advance.

7. The apparatus of claim 6, further comprising a classified feature sample set obtaining unit configured to:

acquiring a history sample set consisting of single-channel electrocardiogram data samples with preset lengths and with electrocardiosignal types marked, and dividing the history sample set into a training set and a testing set according to a preset proportion;

respectively carrying out standardization processing on each sample in the training set and the test set to obtain a standardized parameter and a standard training set and a standard test set;

respectively extracting the time domain characteristics of each sample in the standard training set and the standard testing set by using a long-short term memory network model;

converting each sample in the standard training set and the standard testing set into an image, and respectively extracting the frequency domain characteristics of the corresponding image of each sample in the standard training set and the standard testing set by using a two-dimensional convolutional neural network model;

and respectively carrying out feature fusion on the time domain features and the frequency domain features of each sample in the standard training set and the standard testing set to obtain the classification features of each sample in the standard training set and the standard testing set, thus obtaining a classification feature sample set with the marked electrocardiosignal type.

8. The apparatus according to claim 7, wherein the electrocardiographic signal acquiring unit is specifically configured to:

acquiring original single-channel electrocardiogram data with preset length;

and carrying out standardization processing on the original single-channel electrocardiogram data according to the standardized parameters to obtain the standardized electrocardiogram signals.

9. The apparatus according to claim 7, wherein the feature extraction unit is specifically configured to:

extracting the time domain characteristics of the standardized electrocardiosignals by utilizing a pre-trained time domain characteristic extraction model, wherein the time domain characteristic extraction model is obtained by utilizing the standard training set to train a long-short term memory network model in advance, and the standardized electrocardiosignals and samples in the training set have the same format;

and converting the standardized electrocardiosignals into images, inputting the images into a pre-trained frequency domain feature extraction model, and extracting the frequency domain features of the standardized electrocardiosignals, wherein the frequency domain feature extraction model is obtained by utilizing the standard training set to train a two-dimensional convolution neural network model in advance.

10. The apparatus according to claim 7, further comprising a classification model training unit, specifically configured to:

training the preset machine learning model by using the classification characteristic and the electrocardiosignal type of each sample in the standard training set;

verifying the classification model obtained after training by using the classification characteristic and the electrocardiosignal type of each sample in the standard test set to obtain a preset performance index value of the classification model;

and when the preset performance index value reaches a threshold value, finishing the training of the classification model.

Technical Field

The invention relates to the technical field of computers, in particular to an electrocardiosignal type identification method and device.

Background

Cardiac arrhythmias are the most common heart diseases and are characterized clinically by irregular cardiac function resulting from disturbances in the rate, rhythm or conduction of the electrical signals of the heart.

At present, doctors generally analyze the duration and amplitude of electrocardiosignal waves according to own experience so as to identify arrhythmia types. However, the method for analyzing the electrocardiosignals based on subjective judgment is time-consuming and may cause signal analysis deviation, and accurate analysis of the electrocardiosignals cannot be realized.

Disclosure of Invention

In view of this, the invention provides a method and a device for identifying the type of an electrocardiographic signal, which classify the electrocardiographic signal based on the time-frequency domain fusion characteristics of the electrocardiographic signal to accurately identify the type of the electrocardiographic signal.

In order to achieve the above purpose, the invention provides the following specific technical scheme:

a method for identifying the type of electrocardiosignals comprises the following steps:

acquiring a standardized electrocardiosignal;

respectively extracting time domain characteristics and frequency domain characteristics of the standardized electrocardiosignals;

performing feature fusion on the time domain features and the frequency domain features to obtain time-frequency domain fusion features of the standardized electrocardiosignals;

inputting the time-frequency domain fusion characteristics into a classification model trained in advance for classification processing to obtain the type of the standardized electrocardiosignals, wherein the type of the standardized electrocardiosignals represents the arrhythmia type corresponding to the standardized electrocardiosignals, and the classification model is obtained by utilizing a classification characteristic sample set with the marked electrocardiosignal type to train a preset machine learning model in advance.

Optionally, the method further includes:

acquiring a history sample set consisting of single-channel electrocardiogram data samples with preset lengths and with electrocardiosignal types marked, and dividing the history sample set into a training set and a testing set according to a preset proportion;

respectively carrying out standardization processing on each sample in the training set and the test set to obtain a standardized parameter and a standard training set and a standard test set;

respectively extracting the time domain characteristics of each sample in the standard training set and the standard testing set by using a long-short term memory network model;

converting each sample in the standard training set and the standard testing set into an image, and respectively extracting the frequency domain characteristics of the corresponding image of each sample in the standard training set and the standard testing set by using a two-dimensional convolutional neural network model;

and respectively carrying out feature fusion on the time domain features and the frequency domain features of each sample in the standard training set and the standard testing set to obtain the classification features of each sample in the standard training set and the standard testing set, thus obtaining a classification feature sample set with the marked electrocardiosignal type.

Optionally, the acquiring the normalized cardiac signal includes:

acquiring original single-channel electrocardiogram data with preset length;

and carrying out standardization processing on the original single-channel electrocardiogram data according to the standardized parameters to obtain the standardized electrocardiogram signals.

Optionally, the respectively extracting the time domain feature and the frequency domain feature of the normalized electrocardiographic signal includes:

extracting the time domain characteristics of the standardized electrocardiosignals by utilizing a pre-trained time domain characteristic extraction model, wherein the time domain characteristic extraction model is obtained by utilizing the standard training set to train a long-short term memory network model in advance, and the standardized electrocardiosignals and samples in the training set have the same format;

and converting the standardized electrocardiosignals into images, inputting the images into a pre-trained frequency domain feature extraction model, and extracting the frequency domain features of the standardized electrocardiosignals, wherein the frequency domain feature extraction model is obtained by utilizing the standard training set to train a two-dimensional convolution neural network model in advance.

Optionally, the method further includes:

training the preset machine learning model by using the classification characteristic and the electrocardiosignal type of each sample in the standard training set;

verifying the classification model obtained after training by using the classification characteristic and the electrocardiosignal type of each sample in the standard test set to obtain a preset performance index value of the classification model;

and when the preset performance index value reaches a threshold value, finishing the training of the classification model.

An apparatus for identifying a type of a cardiac signal, comprising:

the electrocardiosignal acquisition unit is used for acquiring a standardized electrocardiosignal;

the characteristic extraction unit is used for respectively extracting time domain characteristics and frequency domain characteristics of the standardized electrocardiosignals;

the characteristic fusion unit is used for carrying out characteristic fusion on the time domain characteristic and the frequency domain characteristic to obtain a time-frequency domain fusion characteristic of the standardized electrocardiosignal;

and the classification processing unit is used for inputting the time-frequency domain fusion characteristics into a pre-trained classification model for classification processing to obtain the type of the standardized electrocardiosignals, the type of the standardized electrocardiosignals represents the arrhythmia type corresponding to the standardized electrocardiosignals, and the classification model is obtained by utilizing a classification characteristic sample set with the marked electrocardiosignal type to train a preset machine learning model in advance.

Optionally, the apparatus further includes a classification feature sample set obtaining unit, configured to:

acquiring a history sample set consisting of single-channel electrocardiogram data samples with preset lengths and with electrocardiosignal types marked, and dividing the history sample set into a training set and a testing set according to a preset proportion;

respectively carrying out standardization processing on each sample in the training set and the test set to obtain a standardized parameter and a standard training set and a standard test set;

respectively extracting the time domain characteristics of each sample in the standard training set and the standard testing set by using a long-short term memory network model;

converting each sample in the standard training set and the standard testing set into an image, and respectively extracting the frequency domain characteristics of the corresponding image of each sample in the standard training set and the standard testing set by using a two-dimensional convolutional neural network model;

and respectively carrying out feature fusion on the time domain features and the frequency domain features of each sample in the standard training set and the standard testing set to obtain the classification features of each sample in the standard training set and the standard testing set, thus obtaining a classification feature sample set with the marked electrocardiosignal type.

Optionally, the electrocardiograph signal acquiring unit is specifically configured to:

acquiring original single-channel electrocardiogram data with preset length;

and carrying out standardization processing on the original single-channel electrocardiogram data according to the standardized parameters to obtain the standardized electrocardiogram signals.

Optionally, the feature extraction unit is specifically configured to:

extracting the time domain characteristics of the standardized electrocardiosignals by utilizing a pre-trained time domain characteristic extraction model, wherein the time domain characteristic extraction model is obtained by utilizing the standard training set to train a long-short term memory network model in advance, and the standardized electrocardiosignals and samples in the training set have the same format;

and converting the standardized electrocardiosignals into images, inputting the images into a pre-trained frequency domain feature extraction model, and extracting the frequency domain features of the standardized electrocardiosignals, wherein the frequency domain feature extraction model is obtained by utilizing the standard training set to train a two-dimensional convolution neural network model in advance.

Optionally, the apparatus further includes a classification model training unit, specifically configured to:

training the preset machine learning model by using the classification characteristic and the electrocardiosignal type of each sample in the standard training set;

verifying the classification model obtained after training by using the classification characteristic and the electrocardiosignal type of each sample in the standard test set to obtain a preset performance index value of the classification model;

and when the preset performance index value reaches a threshold value, finishing the training of the classification model.

Compared with the prior art, the invention has the following beneficial effects:

the invention discloses an electrocardiosignal type identification method, which is characterized in that a preset machine learning model is trained by utilizing a classification characteristic sample set with marked electrocardiosignal types in advance to obtain a classification model, and electrocardiosignal classification processing is carried out on time-frequency domain fusion characteristics of standardized electrocardiosignals based on the classification model, so that the electrocardiosignal type identification speed is increased, and the arrhythmia classification speed is further increased. Meanwhile, the classification features input into the classification model are fused with the time domain features and the frequency domain features of the standardized electrocardiosignals, so that the classification features can embody the time domain features of the standardized electrocardiosignals and the frequency domain features of the standardized electrocardiosignals, the accuracy of classification of the electrocardiosignals by the classification model is improved, the quick and accurate identification of the type of the electrocardiosignals is realized, and the quick and accurate identification of the type of arrhythmia is realized.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

Fig. 1 is a schematic flow chart of a method for identifying an electrocardiographic signal type according to an embodiment of the present invention;

FIG. 2 is a schematic flow chart of a classification model training method according to an embodiment of the present invention;

fig. 3 is a schematic diagram of model processing corresponding to the method for identifying types of electrocardiographic signals disclosed in the embodiment of the present invention;

FIG. 4 is a diagram illustrating a comparison of test results and actual values of a test set according to an embodiment of the present invention;

FIG. 5 is a schematic diagram of evaluation index values of a classification model according to an embodiment of the present invention;

fig. 6 is a schematic structural diagram of an apparatus for recognizing an electrocardiographic signal type according to an embodiment of the present invention.

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.

The inventor finds out through research that: the electrocardiosignals not only have the characteristics of time domain, wherein the bandwidth of the common whole cardiac cycle signals is 0-58 +/-19 Hz, the P wave band is 0-8 +/-3 Hz, the QRS wave bandwidth is 0-55 +/-19 Hz, and the T wave bandwidth is 0-11 +/-2 Hz, so the electrocardiosignals have rich characteristic information in the frequency domain. The electrocardiosignal can be accurately analyzed based on the time domain characteristics and the frequency domain characteristics of the electrocardiosignal, so that the arrhythmia type can be accurately identified. On the basis, the electrocardiosignal is classified based on the time-frequency domain fusion characteristics of the electrocardiosignal, and the arrhythmia type is accurately identified.

Referring to fig. 1, the method for identifying the type of an electrocardiographic signal disclosed in this embodiment includes the following steps:

s101: acquiring a standardized electrocardiosignal;

s102: respectively extracting time domain characteristics and frequency domain characteristics of the standardized electrocardiosignals;

s103: performing feature fusion on the time domain features and the frequency domain features to obtain time-frequency domain fusion features of the standardized electrocardiosignals;

s104: inputting the time-frequency domain fusion characteristics into a classification model trained in advance for classification processing to obtain the type of the standardized electrocardiosignals, wherein the type of the standardized electrocardiosignals represents the arrhythmia type corresponding to the standardized electrocardiosignals, and the classification model is obtained by utilizing a classification characteristic sample set with the marked electrocardiosignal type to train a preset machine learning model in advance.

Specifically, the classification processing result of the classification model is a classification tag value, and the electrocardiograph signal type corresponding to the classification tag value is determined according to the corresponding relationship between the classification tag value and the electrocardiograph signal type, where the electrocardiograph signal type includes: normal (N), left bundle branch block (L), right bundle branch block (R), and ventricular premature beat (V).

It should be noted that, the premise of classifying the electrocardiographic signals by using the classification model is that a preset machine learning model is trained by using a classification feature sample set labeled with the type of the electrocardiographic signals in advance to obtain the classification model.

Referring to fig. 2, the method for training a classification model disclosed in this embodiment includes the following steps:

s201: acquiring a historical sample set consisting of single-channel electrocardiogram data samples with preset lengths and with electrocardiosignal types marked, and dividing the historical sample set into a training set and a testing set according to a preset proportion;

the preset length may be 20 seconds, and the electrocardiographic data is ECG (electrocardiogram) signal data.

The marked electrocardiosignal types comprise: normal (N), left bundle branch block (L), right bundle branch block (R), and ventricular premature beat (V).

The division ratio of the training set and the testing machine can be preset, for example, 20000 samples are divided into training set and testing set according to the ratio of 8:2, wherein the number of samples in the training set and the testing set is 16000 and 4000.

S202: respectively carrying out standardization processing on each sample in the training set and the testing set to obtain a standardized parameter and a standard training set and a standard testing set;

and carrying out standardization processing on each sample in the training set and the test set, unifying the data of each sample in the same data distribution range, and eliminating errors caused by individual differences.

The standardization processing method comprises the following steps: suppose a sequence of variables is x1,…,xnLet us note that the mean and standard deviation are μ and σ, respectively. The normalized sequence is then:

the sequence value after the standardization treatment follows normal distribution, and the standardization parameters mu and sigma are stored for carrying out standardization treatment on the electrocardiogram data to be classified.

The data format after the normalization processing is 1 × 7200 × 1, that is, the data width, height and channel number are 1, 7200 and 1 respectively.

The training set is used for model fitting, and the optimizers of the models all use an Adam method, so that the verification set can not be used in the model training process.

S203: respectively extracting the time domain characteristics of each sample in the standard training set and the standard testing set by using the long-short term memory network model;

fig. 3 shows a schematic diagram of model processing corresponding to the arrhythmia classification method disclosed in this embodiment, where the time domain feature extraction model is LSTM (Long-Short Term Memory), and the activation functions used in the convolutional layer, the full-link layer, and the LSTM Long-Short Term processing time sequence time domain layer in the embodiment of the present invention are ReLU functions, where the corresponding calculation formula is:

s204: converting each sample in the standard training set and the standard testing set into an image, and respectively extracting the frequency domain characteristics of the corresponding image of each sample in the standard training set and the standard testing set by using a two-dimensional convolutional neural network model;

referring to fig. 3, the frequency domain feature extraction model corresponds to a two-dimensional convolutional neural network model, and after converting a sample into an image through time domain transformation, the sample is processed by a convolutional layer 1, a pooling layer 1, a convolutional layer 2, a pooling layer 2, and a full-link layer 1 to obtain frequency domain features.

S205: respectively carrying out feature fusion on the time domain features and the frequency domain features of each sample in the standard training set and the standard testing set to obtain the classification features of each sample in the standard training set and the standard testing set, and obtaining a classification feature sample set with the electrocardiosignal types marked;

referring to fig. 3, the merging layer performs feature fusion on the time domain features and the frequency domain features to obtain classification features.

S206: training a preset machine learning model by using the classification characteristic and the electrocardiosignal type of each sample in the standard training set;

referring to fig. 3, the fully-connected layer 2 is used to map the fused classification features output by the merging layer, the output number of the fully-connected layer is equal to the classification category number of the classification model, and the loss function used for classification is the cross entropy.

S207: verifying the classification model obtained after training by using the classification characteristics and the electrocardiosignal types of each sample in the standard test set to obtain the preset performance index value of the classification model;

optionally, in this embodiment, the control is performed by initializing a set maximum round number (MaxEpochs), and when the number of training iterations reaches the preset maximum round number, the training is ended.

S208: and when the preset performance index value reaches the threshold value, finishing the training of the classification model.

The performance indexes adopted by the embodiment include: accuracy (ACC), sensitivity (Sn), specificity (Sp) and mattescorrelation coefficient (MCC).

The calculation formula of the accuracy (ACC for short) is as follows:

the calculation formula of the sensitivity (Sn for short) is as follows:

wherein the calculation formula of specificity (abbreviated as Sp) is as follows:

wherein the formula for calculating the Martha Correlation Coefficient (MCC) is:

where TP, TN, FP and FN represent examples of true positive, true negative, false positive and false negative, respectively. Values for the madrepore coefficient MCC range from-1 to 1, with an MCC of-1 indicating the worst possible prediction and a value of 1 indicating the best possible prediction scheme. An MCC of 0 indicates random prediction.

The result of comparing the test result of the CNN-LSTM model to the test set and the actual value in this embodiment is obtained by setting the training parameters, as shown in fig. 4. Fig. 4 is a confusion matrix, from which it can be seen that the overall classification accuracy reaches 98.9%, and the classification accuracy of a single class is at least 97.5%.

The evaluation index values shown in fig. 5, including accuracy, sensitivity, specificity and Martha correlation coefficient, can be seen to have good performance for classification of cardiac electrical signals by the CNN-LSTM model.

On the basis, in the practical application of classifying the electrocardiographic signals, in the above embodiment, S101: acquiring a standardized electrocardiosignal, comprising the following steps:

acquiring original single-channel electrocardiogram data with preset length;

according to the standardized parameters obtained by carrying out standardization processing on each sample of the training set test set, the original single-channel electrocardiogram data is subjected to standardization processing to obtain standardized electrocardiosignals, so that the data beyond the range of the training set can be well recovered, and the generalization capability of the model is improved.

S102 in the above embodiment: respectively extracting the time domain characteristics and the frequency domain characteristics of the standardized electrocardiosignals, and the method comprises the following steps:

extracting the time domain characteristics of the standardized electrocardiosignals by utilizing a pre-trained time domain characteristic extraction model, wherein the time domain characteristic extraction model is obtained by utilizing the standard training set to train a long-short term memory network model in advance, and the standardized electrocardiosignals and samples in the training set have the same format;

and converting the standardized electrocardiosignals into images, inputting the images into a pre-trained frequency domain feature extraction model, and extracting the frequency domain features of the standardized electrocardiosignals, wherein the frequency domain feature extraction model is obtained by utilizing the standard training set to train a two-dimensional convolution neural network model in advance.

Therefore, according to the method for identifying the type of the electrocardiosignal disclosed by the embodiment, the preset machine learning model is trained by utilizing the classification feature sample set with the marked electrocardiosignal type in advance to obtain the classification model, and the electrocardiosignal classification processing is performed on the time-frequency domain fusion feature of the standardized electrocardiosignal based on the classification model, so that the identification speed of the type of the electrocardiosignal is increased, and the arrhythmia classification speed is further increased. Meanwhile, the classification features input into the classification model are fused with the time domain features and the frequency domain features of the standardized electrocardiosignals, so that the classification features can embody the time domain features of the standardized electrocardiosignals and the frequency domain features of the standardized electrocardiosignals, the accuracy of classification of the electrocardiosignals by the classification model is improved, the quick and accurate identification of the type of the electrocardiosignals is realized, and the quick and accurate identification of the type of arrhythmia is realized.

Based on the method for identifying the type of the electrocardiographic signal disclosed in the above embodiment, the present embodiment correspondingly discloses an apparatus for identifying the type of the electrocardiographic signal, please refer to fig. 6, and the apparatus for identifying the type of the electrocardiographic signal includes:

an electrocardiographic signal acquisition unit 100 for acquiring a standardized electrocardiographic signal;

a feature extraction unit 200, configured to extract a time domain feature and a frequency domain feature of the normalized electrocardiographic signal, respectively;

a feature fusion unit 300, configured to perform feature fusion on the time domain features and the frequency domain features to obtain time-frequency domain fusion features of the normalized electrocardiographic signal;

the classification processing unit 400 is configured to input the time-frequency domain fusion features into a classification model trained in advance for classification processing, so as to obtain a type of the standardized electrocardiographic signal, where the type of the standardized electrocardiographic signal represents a type of arrhythmia corresponding to the standardized electrocardiographic signal, and the classification model is obtained by training a preset machine learning model in advance by using a classification feature sample set labeled with the type of the electrocardiographic signal.

Optionally, the apparatus further includes a classification feature sample set obtaining unit, configured to:

acquiring a history sample set consisting of single-channel electrocardiogram data samples with preset lengths and with electrocardiosignal types marked, and dividing the history sample set into a training set and a testing set according to a preset proportion;

respectively carrying out standardization processing on each sample in the training set and the test set to obtain a standardized parameter and a standard training set and a standard test set;

respectively extracting the time domain characteristics of each sample in the standard training set and the standard testing set by using a long-short term memory network model;

converting each sample in the standard training set and the standard testing set into an image, and respectively extracting the frequency domain characteristics of the corresponding image of each sample in the standard training set and the standard testing set by using a two-dimensional convolutional neural network model;

and respectively carrying out feature fusion on the time domain features and the frequency domain features of each sample in the standard training set and the standard testing set to obtain the classification features of each sample in the standard training set and the standard testing set, thus obtaining a classification feature sample set with the marked electrocardiosignal type.

Optionally, the electrocardiograph signal acquiring unit 100 is specifically configured to:

acquiring original single-channel electrocardiogram data with preset length;

and carrying out standardization processing on the original single-channel electrocardiogram data according to the standardized parameters to obtain the standardized electrocardiogram signals.

Optionally, the feature extraction unit 200 is specifically configured to:

extracting the time domain characteristics of the standardized electrocardiosignals by utilizing a pre-trained time domain characteristic extraction model, wherein the time domain characteristic extraction model is obtained by utilizing the standard training set to train a long-short term memory network model in advance, and the standardized electrocardiosignals and samples in the training set have the same format;

and converting the standardized electrocardiosignals into images, inputting the images into a pre-trained frequency domain feature extraction model, and extracting the frequency domain features of the standardized electrocardiosignals, wherein the frequency domain feature extraction model is obtained by utilizing the standard training set to train a two-dimensional convolution neural network model in advance.

Optionally, the apparatus further includes a classification model training unit, specifically configured to:

training the preset machine learning model by using the classification characteristic and the electrocardiosignal type of each sample in the standard training set;

verifying the classification model obtained after training by using the classification characteristic and the electrocardiosignal type of each sample in the standard test set to obtain a preset performance index value of the classification model;

and when the preset performance index value reaches a threshold value, finishing the training of the classification model.

According to the device for identifying the type of the electrocardiosignal, the preset machine learning model is trained by utilizing the classification characteristic sample set with the marked electrocardiosignal type in advance to obtain the classification model, and the electrocardiosignal classification processing is carried out on the time-frequency domain fusion characteristic of the standardized electrocardiosignal based on the classification model, so that the identification speed of the type of the electrocardiosignal is increased, and the arrhythmia classification speed is further increased. Meanwhile, the classification features input into the classification model are fused with the time domain features and the frequency domain features of the standardized electrocardiosignals, so that the classification features can embody the time domain features of the standardized electrocardiosignals and the frequency domain features of the standardized electrocardiosignals, the accuracy of classification of the electrocardiosignals by the classification model is improved, the quick and accurate identification of the type of the electrocardiosignals is realized, and the quick and accurate identification of the type of arrhythmia is realized.

The above embodiments can be combined arbitrarily, and the features described in the embodiments in the present specification can be replaced or combined with each other in the above description of the disclosed embodiments, so that those skilled in the art can implement or use the present application.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于领域自适应的时变脑电特征提取方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!