Arrhythmia classification detection method and system based on small convolutional neural network
By using the single-path multi-layer network structure of a small convolutional neural network on the ECG monitoring equipment, the parameters and calculation amount are simplified, the low efficiency and hardware limitations of traditional arrhythmia detection are solved, and high-precision arrhythmia detection is achieved. and real-time improvements.
Patent Information
- Application Number
- CN202211144005.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-20
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-09-20
AI Technical Summary
Traditional ECG signal processing technology has the problems of low clinical detection rate and difficulty in real-time interpretation in arrhythmia detection. Especially due to the hardware configuration limitations of wearable ECG monitoring equipment, it is difficult to apply large-scale deep learning models for intelligent detection.
A single-path multi-layer network structure based on a small convolutional neural network is used to perform real-time classification and detection of heartbeat sequences collected by wearable ECG monitoring equipment. Through the combination of multi-layer convolution calculation, double-layer pooling and fully connected layers, the system simplifies The amount of model parameters and calculations enables high-precision automatic detection of arrhythmia.
It achieves high-precision arrhythmia detection on wearable ECG devices, improves the real-time and accuracy of detection, and reduces hardware requirements, making it suitable for smart medical applications of wearable devices.
Smart Images

Figure CN115500807B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electrocardiogram signal processing, and in particular relates to a method and system for classifying and detecting arrhythmias based on a small convolutional neural network. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] Arrhythmia is a common cardiovascular disease, which is defined as abnormalities in the frequency, rhythm, origin, conduction velocity or activation order of cardiac impulses. ECG signals are an important basis for diagnosing arrhythmias, but monitoring based on traditional short-term ECG signals leads to a low clinical detection rate of arrhythmias, resulting in a low clinical intervention rate. Wearable ECG monitoring devices can collect long-range ECG signals, but their distributed processing structure, stronger noise interference, large amounts of real-time data and limited terminal processing capabilities make real-time interpretation difficult. Therefore, it is very meaningful to study small convolutional neural networks suitable for wearable ECG devices.
[0004] At present, there are two main methods for automatic detection of arrhythmias: methods based on traditional machine learning and methods based on deep learning. Martis et al. used the cumulative amount of high-order spectra obtained by wavelet decomposition as features and classified normal and abnormal heart beats through kernel function support vector machines. Martis et al. used independent component analysis to reduce the dimension of data and used Gaussian mixture classifiers for classification. Prasad et al. extracted the nonlinear features of high-order spectra and compared three classification methods: K nearest neighbor, regression tree and neural network. Li et al. used wavelet entropy and random forest classifiers to classify ECG signals. Raj et al. extracted DOST features from ECG signals and used PSO technology to adjust the parameters of SVM to achieve accurate classification. Shameer et al. extracted the features of RR intervals and used the Evidential K Nearest Neighbor (EKNN) method based on Dempster Shafer theory to classify ECG signals. Huang et al. proposed a classification model based on multi-feature fusion, which fused the manually extracted features with the features extracted by deep learning and used a random forest classifier to classify arrhythmias.
[0005] In recent years, convolutional neural networks have developed rapidly, and some representative structures have emerged, such as VGGNet, ResNet50, InceptonNet, etc., which have achieved good results in practical applications. In medicine, the emergence of CADx system and CBMIR system has promoted the development of smart medical care and the application of convolutional neural networks in medicine. Srinidhi et al. used wavelet transform to denoise ECG signals and used long short-term memory network to classify various types of arrhythmias. Yang Hao et al. used a method combining CNN and LSTM to classify arrhythmias. They used 11-layer convolutional neural network and 3-layer BiLSTM network to extract features and achieved more accurate arrhythmia classification. Ian-Christopher et al. proposed a one-dimensional convolutional neural network, which takes time domain signals and frequency domain signals as network inputs and uses spectrograms and autoregressive models for classification. Wu et al. designed a robust and efficient 12-layer one-dimensional CNN structure for classifying heartbeats of five microscopic categories. Wang et al. proposed an adaptive arrhythmia classification model based on convolutional neural network, which has strong adaptability and can maintain good performance on multiple databases.
[0006] In the above studies, traditional machine learning requires prior knowledge to extract artificial features. Although deep learning can achieve good results, the network is relatively complex and not suitable for wearable devices. Therefore, although wearable ECG monitoring devices have been used in clinical practice, the hardware configuration of wearable ECG monitoring devices limits the application of large deep learning models, which hinders its intelligent development. The study of using small convolutional neural networks to detect ECG signals is of great significance to the development of wearable ECG devices and intelligent medical care. Summary of the invention
[0007] In order to overcome the shortcomings of the above-mentioned prior art, taking the classification of arrhythmias as the application background, the present invention provides an arrhythmia classification detection method and system based on a small convolutional neural network. Based on the study of the application effects of different network structures, a single-path multi-layer network is used to detect the heartbeat sequence collected by a wearable ECG monitoring device, and the model structure is improved to simplify the parameter quantity and calculation amount of the model, so as to meet the hardware requirements of the wearable ECG device and realize high-precision automatic detection of arrhythmias.
[0008] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:
[0009] The first aspect of the present invention provides a method for classifying and detecting arrhythmias based on a small convolutional neural network;
[0010] A method for classifying and detecting arrhythmias based on a small convolutional neural network uses a single-path multi-layer network to perform real-time arrhythmia classification detection on the heartbeat sequence collected by a wearable ECG monitoring device, specifically including:
[0011] Perform multi-layer convolution calculations on the heartbeat sequence to be detected to obtain a set of highly integrated feature sequences;
[0012] Double-layer pooling is used to reduce the dimension of the obtained feature sequence to obtain a set of compressed feature values;
[0013] The feature values are input into the fully connected layer to obtain the prediction results of arrhythmia classification.
[0014] Furthermore, the single-path multi-layer network includes a convolutional layer, a pooling layer and a fully connected layer;
[0015] The output of each convolutional layer is downsampled using pooling, and double-layer pooling is used after the last convolutional layer for feature dimensionality reduction.
[0016] Furthermore, the single-path multi-layer network adopts multiple convolutional layers, and the size of the convolution kernel in each convolutional layer increases layer by layer, and the number of convolution kernels also increases layer by layer.
[0017] Furthermore, preferably, the sizes of the convolution kernels are all set to even numbers.
[0018] Furthermore, preferably, 5 layers of convolution are used.
[0019] Furthermore, the pooling includes average pooling and maximum pooling; the last convolution layer is followed by a double-layer pooling in which an average pooling layer and a maximum pooling layer are connected in series, and each of the other convolution layers is followed by a maximum pooling layer.
[0020] Furthermore, average pooling is used to perform preliminary screening of features to extract comprehensive features; the maximum pooling layer is used to perform secondary screening of features to reduce the network's sensitivity to position and maintain the invariance of features.
[0021] A second aspect of the present invention provides an arrhythmia classification and detection system based on a small convolutional neural network.
[0022] A cardiac arrhythmia classification and detection system based on a small convolutional neural network uses a single-path multi-layer network to perform real-time arrhythmia classification and detection on the heartbeat sequence collected by a wearable ECG monitoring device, including a multi-layer convolution module, a double-layer pooling module, and a fully connected module:
[0023] The multi-layer convolution module is configured to: perform multi-layer convolution calculations on the heartbeat sequence to be detected to obtain a set of highly integrated feature sequences;
[0024] The double-layer pooling module is configured to: perform feature dimension reduction on the obtained feature sequence by using double-layer pooling to obtain a compressed set of feature values;
[0025] The fully connected module is configured to: input the feature value into the fully connected layer to obtain the prediction result of arrhythmia classification.
[0026] The third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in the arrhythmia classification and detection method based on a small convolutional neural network as described in the first aspect of the present invention.
[0027] The fourth aspect of the present invention provides an electronic device, comprising a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of a method for classifying and detecting arrhythmias based on a small convolutional neural network as described in the first aspect of the present invention are implemented.
[0028] One or more of the above technical solutions have the following beneficial effects:
[0029] The present invention is based on the study of the application effects of different network structures, and according to the influence of single-path multi-layer network (depth) and multi-path network (width) on the performance of small convolutional neural network, adopts single-path multi-layer network to perform real-time arrhythmia classification detection on heartbeat sequence collected by wearable electrocardiogram monitoring equipment, and proposes a convolution kernel design scheme suitable for 1D-SCNN, which uses the least amount of parameters and calculation to obtain the most accurate results; and designs a double-layer pooling method, which realizes the rapid dimensionality reduction of information in the process of distributed feature mapping to sample labeling space, ensures the comprehensiveness and translation invariance of information, so that the model becomes more robust, the performance is greatly improved, and the real-time and accuracy of arrhythmia detection on wearable electrocardiogram monitoring equipment are improved.
[0030] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0032] Figure 1 This is a flow chart of the method of the first embodiment.
[0033] Figure 2 This is the structural diagram of 1D-SCNN in the first embodiment.
[0034] Figure 3 It is a system structure diagram of the second embodiment. DETAILED DESCRIPTION
[0035] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0036] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0037] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0038] Embodiment 1
[0039] This embodiment discloses a method for classifying and detecting arrhythmias based on a small convolutional neural network;
[0040] like Figure 1 As shown in the figure, a method for classifying and detecting arrhythmias based on a small convolutional neural network is provided. A single-path multi-layer network is used to perform real-time arrhythmia classification detection on a heartbeat sequence collected by a wearable ECG monitoring device. This embodiment proposes a one-dimensional small convolutional neural network (abbreviated as 1D-SCNN), which adopts a single-path multi-layer network structure and includes 5 convolutional layers, 6 pooling layers and 2 fully connected layers; the structure of 1D-SCNN is as follows Figure 2 As shown in the figure, the output of each convolutional layer is downsampled using pooling, and double-layer pooling is used after the last convolutional layer to reduce the dimension of features and reduce the amount of calculation and parameters.
[0041] The specific steps of using the above 1D-SCNN for detection are:
[0042] Step S1: Perform multi-layer convolution calculation on the heartbeat sequence to be detected to obtain a set of highly integrated feature sequences;
[0043] The purpose of 1D-SCNN is to classify a single heartbeat. In order to obtain a relatively complete heartbeat, a 0.9s ECG segment collected by a wearable ECG monitoring device (0.4s before the R peak and 0.5s after the R peak) is selected as a heartbeat. The input sample is a discrete sequence X = {x1, x2, x3, ... x m}, through 1D-SCNN convolution calculation, we get the feature sequence X′={x′1,x′2,x′3……x′ m}, where the convolution calculation process is shown in formula (1):
[0044] X′=w k *X+β (1)
[0045] Among them, X represents the input sequence, w k represents a 1×k-dimensional weight matrix, k represents the size of the convolution kernel, * represents the convolution operation, β represents the bias, and X′ represents the feature sequence obtained after convolution.
[0046] In the convolution process, the appropriate selection of the convolution kernel size has a stabilizing effect on the extraction of information. In 1D-SCNN, the size of the convolution kernel increases layer by layer according to formula (2). First, a small-sized convolution kernel is used to analyze and extract the detailed information of the ECG signal. Then, the size of the convolution kernel is increased layer by layer to accelerate the fusion of information. Finally, after extraction and fusion of 5 convolution layers, a set of highly integrated feature sequences is obtained.
[0047] k i =i×a(i∈[1,5]) (2)
[0048] Among them, k i Represents the size of the convolution kernel of the i-th layer, and the parameter a is a positive integer.
[0049] At the same time, in order to extract information from different angles and achieve information complementarity, in 1D-SCNN, the number of convolution kernels increases layer by layer according to formula (3); as the number of network layers increases, the extracted information becomes more accurate. Increasing the number of convolution kernels can reduce information loss in the pooling process and obtain more complete information.
[0050] f i =2 b+i-1 (i∈[1,5]) (3)
[0051] Among them, f i Represents the number of convolution kernels in the i-th layer, and b is a positive integer.
[0052] In a two-dimensional convolutional neural network, the size of the convolution kernel is an odd number. The purpose is to highlight the center of the sliding window when convolving the image, better obtain the information of the center position, and reduce the loss of features. However, the convolution kernel of an even size lacks a centrally symmetrical receptive field, which will cause feature offset, thereby reducing the performance of the model. Considering the huge difference between one-dimensional convolution and two-dimensional convolution, this embodiment explores the effect of the parity of the convolution kernel size in a one-dimensional convolutional network on the model performance, and tests 10 sizes of convolution kernels. The calculation amount FLOPS, the number of parameters P, the accuracy Acc, and the F1 score are compared. The experimental results are shown in Table 1:
[0053] Table 1 Convolution kernel parity comparison
[0054]
[0055] The results show that in one-dimensional convolution, the parity of the convolution kernel has no obvious effect on the model. This is because in a one-dimensional sequence, the timing relationship between the sampling points is the most important, and the sampling points at the center position have little effect on the overall interpretation of the signal. In order to improve the generalization ability of the convolution kernel, this embodiment sets the size of the 1D-SCNN convolution kernel to an even number.
[0056] The size and number of convolution kernels are crucial to the performance of the model. In formulas (1) and (2), the size and number of convolution kernels are defined by parameters a and b. In order to find the best parameter combination, this embodiment tests 25 parameter combinations. Table 2 shows the accuracy Acc and F1 score of 1D-SCNN when a and b take different values.
[0057] Table 2 Results of different parameter combinations
[0058]
[0059]
[0060] The results show that when a=2 and b=3, 1D-SCNN has the best performance, with an accuracy of 99.47% and an F1 score of 0.9767; at the same time, when a remains unchanged, the accuracy and F1 score of 1D-SCNN fluctuate with b; when b remains unchanged, the accuracy and F1 score of 1D-SCNN fluctuate with a; this shows that in 1D-SCNN, there is a nonlinear relationship between the performance of the model and the size and number of convolution kernels; within a certain range, when the size and number of convolution kernels increase, the model will become more robust and the performance will be greatly improved, but after the size and number of convolution kernels reach a certain value, the performance of the model will no longer increase, and it may even be difficult to train the model due to too many parameters, resulting in performance degradation.
[0061] Step S2: Using double-layer pooling to reduce the dimension of the obtained feature sequence to obtain a set of compressed feature values;
[0062] In convolutional neural networks, in order to reduce the complexity of calculation and maintain the invariance of information, a pooling layer is added after the convolution layer; among the commonly used pooling methods, the maximum pooling layer can alleviate the problem of estimated value offset caused by the parameter error of the convolution layer, but the maximum pooling layer only selects important information in the pooling domain, which to a certain extent destroys the comprehensiveness of the information and easily causes the loss of small waveforms in the ECG signal; the average pooling layer can alleviate the problem of increased variance of the estimated value caused by the limited neighborhood size, but the average pooling layer retains less important information, which is not conducive to maintaining the invariance of information and it is difficult to extract the features of different ECG waveforms.
[0063] Nilakshi et al. used cascade pooling based on Inceptionv3 to retain the most obvious features and improve the accuracy of image recognition; Yu et al. used hybrid pooling instead of conventional pooling to effectively alleviate the overfitting problem. In the present invention, in order to take into account the comprehensiveness of information and translation invariance, after the last convolutional layer, double-layer pooling is used for feature dimensionality reduction, and each of the other convolutional layers is connected to a maximum pooling. The average pooling layer is used to preliminarily screen the information and extract comprehensive information; the maximum pooling layer is used to perform secondary screening on the obtained information to reduce the network's sensitivity to position and maintain the invariance of the information.
[0064] In order to verify the effectiveness of double-layer pooling, this embodiment verifies the influence of four single-layer poolings, namely Max Pooling (MP), Average Pooling (AvP), Global Average Pooling (GAP), and Global Max Pooling (GMP), and eight different combinations of double-layer pooling on model performance. The experimental results are shown in Table 3.
[0065] Table 3 Results of different pooling combinations
[0066]
[0067] It can be seen from the results that when the average pooling layer and the maximum pooling layer are connected in series, the accuracy and F1 score are the highest, which are 99.47% and 0.9767 respectively. Therefore, the double-layer pooling combination of the present invention uses the average pooling layer and the maximum pooling layer in series.
[0068] Step S3: Input the feature value into the fully connected layer to obtain the prediction result of arrhythmia classification.
[0069] Based on the study of the number and depth of network paths, the 1D-SCNN proposed in this invention finally adopts a single-path multi-layer network structure. The performance of the multi-path network (width) and the single-path multi-layer (depth) are compared below.
[0070] Performance of multipath networks (width)
[0071] In order to test the performance of the multi-path network, this embodiment tests 5 networks with different numbers of paths. The test results are shown in Table 4.
[0072] Table 4 Test results of different number of paths
[0073]
[0074] The results show that increasing the number of network paths helps to improve network performance. When the number of paths N=5, the model's accuracy and F1 score are the highest, which are 99.35% and 0.9706, respectively. In this embodiment, adding a path to the network will increase the sizes of multiple convolution kernels, and the extracted information will increase in multiple scales, which can achieve information complementarity and improve network performance. Therefore, when using a multi-path network model, different paths should use convolution kernels of different sizes. In the same path, different layers should use convolution kernels of different sizes to ensure the diversity of convolution kernel sizes in the entire network.
[0075] Single-path multi-layer (depth) performance
[0076] In order to explore the impact of the network depth (L) on the model performance, this embodiment increases the network depth on the basis of the single-path network. The test results of different depths are shown in Table 5:
[0077] Table 5 Test results at different depths
[0078]
[0079] The results show that when the network depth is 5, the accuracy and F1 score are the highest, which are 99.47% and 0.9767 respectively; as the number of network layers increases, the model degenerates, resulting in a decrease in performance; therefore, in 1D-SCNN, only 5 layers of convolution are used.
[0080] Width and depth of the network
[0081] Through the above comparison, it has been proved that increasing the path and depth of the network are helpful to improve the performance of the model. In this embodiment, the depth of the network is increased to improve the performance of 1D-SCNN. In order to prove the effectiveness of this approach, the network with 3, 4, and 5 paths is compared with the network with 3, 4, and 5 depths. The results are shown in Table 6:
[0082] Table 6 Comparison results of width and depth
[0083]
[0084] From the results, we can see that when the network depth increases from 3 to 5, the amount of calculation increases by 3.47M, the number of parameters increases by 96668, the accuracy increases by 0.54%, and the F1 score increases by 0.03; when the number of network paths increases from 3 to 5, the amount of calculation increases by 3.46M, the number of parameters increases by 514176, the accuracy increases by 0.05%, and the F1 score increases by 0.004. The results show that when the network paths are increased, the number of parameters will increase explosively, and the performance improvement will be small; on the contrary, when the network depth is increased, the number of parameters increases relatively little, and the performance improvement is large. Therefore, in the process of building a small convolutional neural network, it is more reliable to improve the performance of the model by increasing the depth of the network.
[0085] Although for images and long-term one-dimensional signals, multi-path networks can extract information of different scales, realize multi-scale fusion, and ensure the comprehensiveness of information, for short-term signals, multi-path networks will cause information redundancy, which is not conducive to performance improvement; at the same time, the number of parameters and the amount of calculation of multi-path networks increase exponentially compared with single-path networks, which increases the difficulty of applying them to wearable ECG devices; currently, mobile chips have difficulty running on large network structures. Using a single-path network, the number of parameters and the amount of calculation are relatively small, and the hardware requirements are relatively low, which can meet the storage requirements of current mobile chips.
[0086] Experiments and Results
[0087] Experimental environment and data usage
[0088] This experiment uses the Scikit-Learn library and the Keras library, and Python 3.9 as the programming environment. The computer is an AMD Ryzen7 5800H with Radeon Graphics 3.20GHz CPU and an NVIDIA GTX 1650GPU with 32GB of memory.
[0089] The MIT-BIH arrhythmia database contains 48 ECG records from 47 patients, each record contains 30 minutes of dual-lead signals with a sampling frequency of 360 Hz; among them, 4 records (102, 104, 107, 217) are excluded, and the remaining 44 records are used as experimental data sets; in this embodiment, all heart beats are divided into 4 types according to the AAMI standard, namely normal or bundle branch block beats (N), supraventricular abnormal beats (S), ventricular abnormal beats (V), and fusion beats (F); 100,000 samples are extracted, and all samples are randomly divided into training set, validation set and test set in a ratio of 6: 2: 2; in order to avoid the contingency of the experimental results, this embodiment uses 5 cross-validation for training.
[0090] Evaluation indicators
[0091] In order to evaluate the effectiveness of 1D-SCNN, this embodiment selects the overall accuracy (Acc) and F1 score as evaluation indicators. The calculation formulas of the two indicators are as follows:
[0092]
[0093]
[0094]
[0095]
[0096] Among them, TP is true positive, TN is true negative, FN is false negative, and FP is false positive.
[0097] At the same time, in order to evaluate the complexity of the model, this embodiment introduces the number of parameters (P) and the amount of calculation (FLOPS) as indicators:
[0098]
[0099] P i =C o ×(K×C I +1)
[0100] FLOPS = (2C I ×K-1)×L×C o
[0101] Among them, P i represents the number of parameters of the i-th layer, C o Represents the number of output channels, C I represents the number of input channels, K represents the size of the convolution kernel, and L represents the sequence length of the convolution layer output.
[0102] Results comparison
[0103] In this embodiment, cross entropy is used as the loss function, and Adam optimizer is used for parameter optimization. The learning rate is set to 0.001 and the batch size is set to 128. After training, the accuracy of 1D-SCNN on the test set is 99.47%, and the F1 score is 0.9767; the accuracy of multi-path CNN is 99.35%, and the F1 score is 0.9706. In order to prove that the model of the present invention has good performance, this embodiment collects relevant literature using the MIT-BIH arrhythmia database for comparison. The results are shown in Table 7. The results show that the method of the present invention has the best accuracy and F1 score.
[0104] Table 7 Results comparison
[0105]
[0106] Anti-interference experiment
[0107] In order to verify that 1D-SCNN has good anti-interference ability and is insensitive to the noise generated by the ECG equipment, this embodiment sets up a set of anti-interference experiments, and adds Gaussian white noise with a signal-to-noise ratio (SNR) of 25 dB, 15 dB, and 5 dB, as well as baseline drift noise, electromyographic noise, and electrode motion artifacts in the MIT-BIH Noise Stress Test Database to the original signal for anti-interference experiments; the results are shown in Table 8. The experimental results show that 1D-SCNN is not sensitive to noise and has a certain anti-interference ability.
[0108] Table 8 Anti-noise detection
[0109]
[0110]
[0111] In order to automatically classify arrhythmias on wearable ECG monitoring devices, this paper proposes a 1D-SCNN and discusses the effects of network depth and number of paths on the performance of small CNN. It is found that in a one-dimensional convolutional network, convolution kernels of even sizes will not reduce the performance of the model due to feature offset; in a multi-path network, using convolution kernels of various sizes for information extraction will improve the performance of the model; when constructing a small convolutional neural network, increasing the network depth will produce better results than increasing the network paths.
[0112] Embodiment 2
[0113] This embodiment discloses a cardiac arrhythmia classification and detection system based on a small convolutional neural network;
[0114] like Figure 3As shown in the figure, a cardiac arrhythmia classification and detection system based on a small convolutional neural network is used to perform real-time cardiac arrhythmia classification and detection on the heartbeat sequence collected by a wearable ECG monitoring device using a single-path multi-layer network, including a multi-layer convolution module, a double-layer pooling module and a fully connected module:
[0115] The multi-layer convolution module is configured to: perform multi-layer convolution calculations on the heartbeat sequence to be detected to obtain a set of highly integrated feature sequences;
[0116] The double-layer pooling module is configured to: perform feature dimension reduction on the obtained feature sequence by using double-layer pooling to obtain a compressed set of feature values;
[0117] The fully connected module is configured to: input the feature value into the fully connected layer to obtain the prediction result of arrhythmia classification.
[0118] Embodiment 3
[0119] The purpose of this embodiment is to provide a computer-readable storage medium.
[0120] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in a method for classifying and detecting arrhythmias based on a small convolutional neural network as described in Example 1 of the present disclosure.
[0121] Embodiment 4
[0122] The purpose of this embodiment is to provide an electronic device.
[0123] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps of a method for classifying and detecting arrhythmias based on a small convolutional neural network as described in Example 1 of the present disclosure are implemented.
[0124] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for classifying and detecting arrhythmias based on a small convolutional neural network, characterized in that: A single-path multi-layer network is used to perform real-time arrhythmia classification detection on the heartbeat sequence collected by the wearable ECG monitoring device, including: Perform multi-layer convolution calculations on the heartbeat sequence to be detected to obtain a set of highly integrated feature sequences; Double-layer pooling is used to reduce the dimension of the obtained feature sequence to obtain a set of compressed feature values; Input the feature values into the fully connected layer to obtain the prediction results of arrhythmia classification; The single-path multi-layer network includes a convolutional layer, a pooling layer and a fully connected layer; The output of each convolutional layer is downsampled using max pooling, and double-layer pooling is used after the last convolutional layer for feature dimensionality reduction; Five layers of convolution are used; the size of the convolution kernel in each convolution layer increases layer by layer, and the number of convolution kernels also increases layer by layer; the size of the convolution kernel is set to an even number; wherein the size formula of the convolution kernel is: k i =i×a(i∈[1,5]) Among them, k i Represents the size of the convolution kernel of the i-th layer, and the parameter a is a positive integer; The formula for the number of convolution kernels is: f i =2 b+i-1 (i∈[1,5]) Among them, f i Represents the number of convolution kernels in the i-th layer, b is a positive integer; The amount of computation, the number of parameters, the accuracy and the F1 score were introduced as indicators for testing experiments.
2. The arrhythmia classification detection method based on a small convolutional neural network as claimed in claim 1, characterized in that: The double-layer pooling includes average pooling and maximum pooling; The last convolutional layer is followed by a double-layer pooling consisting of an average pooling layer and a maximum pooling layer in series.
3. The arrhythmia classification detection method based on a small convolutional neural network as described in claim 2, characterized in that: Use average pooling to preliminarily screen features and extract comprehensive features; Use the maximum pooling layer to perform secondary screening of features, reduce the network's sensitivity to position, and maintain the invariance of features.
4. A cardiac arrhythmia classification detection system based on a small convolutional neural network, using the cardiac arrhythmia classification detection method based on a small convolutional neural network as claimed in claim 1, characterized in that: A single-path multi-layer network is used to perform real-time arrhythmia classification detection on the heartbeat sequence collected by wearable ECG monitoring equipment, including a multi-layer convolution module, a double-layer pooling module, and a fully connected module: The multi-layer convolution module is configured to: perform multi-layer convolution calculation on the heartbeat sequence to be detected to obtain a set of highly integrated feature sequences; The double-layer pooling module is configured to: perform feature dimension reduction on the obtained feature sequence by using double-layer pooling to obtain a compressed set of feature values; The fully connected module is configured to: input the feature value into the fully connected layer to obtain the prediction result of arrhythmia classification.
5. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps in the arrhythmia classification and detection method based on a small convolutional neural network as described in any one of claims 1 to 3 are implemented.
6. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the arrhythmia classification and detection method based on a small convolutional neural network as described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Electrocardiograph detection method based on multi-scale deep learning neural network
CN107510452A
Method for detecting ships in high-speed SAR image
CN110826428A
Fundus OCT image classification method and computer readable storage medium
CN111862009A
Construction method and application of multilevel convolutional neural network model
CN113112000A
Chinese text emotion classification method based on multi-kernel double-layer convolutional neural network
CN113254590A
