ECG analysis system and method based on cloud-device collaboration
By combining cloud-device collaboration technology in the ECG analysis system, using 1D-CNN and SE-Res-GRU models, combined with RR interval characteristics, the problem of denoising and classification of ECG signal acquisition devices under noise interference is solved. It improves diagnostic efficiency and accuracy and is suitable for remote diagnosis and treatment of heart diseases.
Patent Information
- Application Number
- CN202111292562.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-03
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-11-03
AI Technical Summary
Existing ECG signal acquisition devices are difficult to effectively denoise when faced with noise interference such as power frequency, electromyography, and baseline drift. Moreover, existing algorithms ignore the time characteristics of ECG signals, resulting in low diagnostic efficiency and insufficient classification accuracy.
An ECG analysis system based on cloud-device collaboration is used, combined with Wi-Fi transmission and artificial intelligence cloud platform, and the 1D-CNN two-classification model of the TensorFlow.js library is used to make preliminary judgments on the device side, and through SE-Res-GRU multi- The classification model performs further classification in the cloud, and combines the RR interval features to improve classification accuracy.
It improves the denoising ability and classification accuracy of ECG signals, saves user analysis time, relieves server pressure, and enhances the ability to detect heart rate abnormalities. It is suitable for remote diagnosis and treatment of heart diseases in high-concurrency environments.
Smart Images

Figure CN113965632B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of full-process integration of ECG signal acquisition, transmission, preprocessing, and automatic classification, and in particular relates to an ECG analysis system and method based on cloud-device collaboration. Background Art
[0002] Traditional diagnosis and treatment technology based on ECG analysis basically relies on manpower, that is, experts rely on their own strength to accumulate years of experience and knowledge, and then obtain accurate diagnosis results by observing and analyzing ECG waveforms with the naked eye. However, nowadays, a large number of ECGs are generated every day and need to be diagnosed and analyzed. At the same time, there is a serious shortage of experienced doctors. These problems undoubtedly make the already tight medical resources even more burdensome. The use of portable ECG signal acquisition devices can facilitate patients to collect ECG signals at home by themselves, which greatly facilitates people in remote rural areas with scarce medical resources. In addition, using wireless networks to transmit the collected ECG signals to cloud servers and using computers to assist in the classification of ECG signals can greatly improve the doctor's diagnostic efficiency, save a lot of manpower, material and financial resources, and can timely discover patient condition information, which is of great significance in improving the cure rate of heart disease patients. However, there are still some problems that need to be solved in the existing technology.
[0003] During the ECG signal acquisition process, due to the presence of noise interference factors such as power frequency, electromyography, and baseline drift, the ECG signal is usually damaged to a certain extent [Reference 1]. Compared with noise interference, the ECG signal is very weak. Due to the presence of these noises, it is not easy to extract valuable information from the original signal. Due to the limited computing power of existing portable ECG signal acquisition devices, it is difficult to effectively remove the noise mixed in the ECG signal [Reference 2]. S. Sivanathan et al. [Reference 3] proposed an ECG signal acquisition device using Bluetooth communication, which requires downloading a specific mobile phone APP for short-distance signal transmission. Due to the influence of Bluetooth transmission rate, it can only transmit single-lead ECG signals. Therefore, the present invention uses a portable ECG signal acquisition device based on Wi-Fi transmission proposed by Yuan Zhiyong et al. [Document 4] as acquisition hardware, and designs an ECG analysis system based on cloud-device collaboration. In the Internet environment, users can open the ECG analysis system website deployed on the cloud server in the browser through a variety of devices to receive the 12-lead ECG signal transmitted by the acquisition device in real time, solving the problem of only being able to receive ECG signals by binding to a mobile phone APP, and in the 5G network environment, 12-lead ECG signals can be accurately acquired in real time with low latency. Compared with single-lead ECG signals, 12-lead ECG signals can more accurately determine the user's ECG signal type. In addition, the ECG signal denoising and split-beat algorithm software package is imported into the ECG analysis system website, which can use the powerful computing power of the cloud server combined with the powerful performance of different programming languages to well remove the noise of the ECG signal collected by the device, and can accurately identify the QRS wave to perform split-beat operations. Existing ECG signal remote classification algorithms, such as the one proposed by Walinjkar A et al. [Reference 5], often rely on a single remote server that deploys a deep learning algorithm. When the number of users reaches a certain scale, it is difficult for the server to withstand the load of high concurrent access. In addition, existing algorithms often only consider the waveform characteristics of ECG signals and ignore the time characteristics that are also of great value [Reference 6]. For example, the one-dimensional convolutional neural network classification algorithm for ECG signals proposed by D. Li et al. [Reference 7] only uses the waveform characteristics of ECG signals. In order to solve this problem, the present invention proposes an ECG analysis method based on cloud-device collaboration. The TensorFlow.js library is introduced into the front end of the ECG analysis system web page to call the 1D-CNN binary classification model integrating the RR interval, and the computing power of the device-side browser is used to perform binary classification on each heart beat of the single-lead ECG signal in turn to preliminarily determine whether the ECG signal is normal or not. This not only saves users' time in using cloud services for ECG analysis, but also alleviates the pressure on the artificial intelligence cloud platform where the AI model is deployed. In addition, the introduction of the RR interval features combines the time features with the morphological signals, which can improve the performance of classifying abnormal heart rates such as ventricular premature beats.For single-lead heartbeats classified as abnormal on the device side, the corresponding 12-lead heartbeats are retrieved from the cloud server database and a function is written on the back end of the ECG analysis system website to call an online service Restful API interface of a 12-lead ECG signal multi-classification method based on SE-Res-GRU trained in the artificial intelligence cloud platform to achieve further classification of abnormal heartbeats. This ECG analysis system and method based on cloud-device collaboration saves user analysis time and alleviates server access pressure, while more accurately analyzing the type of ECG signal abnormalities, providing an effective technical means for remote diagnosis and treatment of heart diseases.
[0004] References:
[0005] [Document 1]Mir HY,Singh O.ECG denoising and feature extractiontechniques–a review[Document J].Journal of Medical Engineering&Technology,2021:1-13.
[0006] [Document 2] R.Huamani R.,JRTalavera,EASMendoza,NMDávila andE.Supo,"Implementation of a real-time 60Hz interference cancellation algorithm for ECG signals based on ARM cortex M4 and ADS1298,"2017IEEE XXIVInternational Conference on Electronics,Electrical Engineering and Computing(INTERCON), 2017, pp.1-4, doi:10.1109 / INTERCON.2017.8079725.
[0007] [Document 3] S.Sivanathan and A.Oleon, "Real-Time Bluetooth Low Energy (BLE) Electrocardiogram Monitoring Device," 2021IEEE International Instrumentation and Measurement Technology Conference (I2MTC), 2021, pp.1-5, doi:10.1109 / I2MTC50364.2021.9459902.
[0008] [Document 4] Yuan Zhiyong, Yuan Shuaiying, Du Bo, Zhao Jianhui, He Ziyang. An electrocardiogram signal acquisition device and quality level evaluation and QRS wave detection method. National invention patent application number: 202110184620.5
[0009] [Document 5] Walinjkar A, Woods J.ECG classification and prognostic approach toward personalized healthcare [Document C] / / 2017International Conference OnSocial Media, Wearable And Web Analytics (Social Media). IEEE, 2017.
[0010] [Document 6] Yan G, Liang S, Zhang Y, et al. Fusing Transformer Model with Temporal Features for ECG Heartbeat Classification [Document C]. 2019IEEEInternational Conference on Bioinformatics and Biomedicine (BIBM). IEEE, 2019.
[0011] [Document 7] D.Li, J.Zhang, Q.Zhang and X.Wei, "Classification of ECG signals based on 1D convolution neural network," 2017IEEE 19th International Conference on e-Health Networking, Applications and Services (Healthcom), 2017, pp.1-6, doi:10.1109 / HealthCom.2017.8210784. Summary of the invention
[0012] In order to solve some problems that still need to be solved in the above-mentioned existing technologies, the present invention provides an ECG analysis system and method based on cloud-device collaboration.
[0013] The technical solution adopted by the system of the present invention is: an ECG analysis system based on cloud-device collaboration, including: a cloud server, an artificial intelligence cloud platform, an ECG signal acquisition device and a device;
[0014] The cloud server is used for ECG acquisition data preprocessing and ECG acquisition data analysis, and uses a database to store user information;
[0015] The artificial intelligence cloud platform is used to execute the ECG signal multi-classification artificial intelligence algorithm based on deep learning to classify the signal, and provide a Restful API interface for the cloud server to call the Web Service service;
[0016] The ECG signal acquisition device comprises a disposable ECG electrode, an ECG signal acquisition module, and an ECG signal wireless transmission module, wherein the ECG signal acquisition module is used to acquire a 12-lead ECG signal with a frequency of a preset value, and the ECG signal wireless transmission module is used to communicate with a cloud server via Wi-Fi and transmit ECG signals;
[0017] The device side is used to display the ECG signals collected in real time on the cloud server, pre-process and save, analyze on the device side and analyze on the cloud side.
[0018] The technical solution adopted by the method of the present invention is: an ECG analysis method based on cloud-device collaboration, comprising the following steps:
[0019] Step 1: Obtain a 12-lead ECG signal with a preset length and a sampling frequency of a preset value;
[0020] Step 2: De-noise the entire ECG signal, identify the R peak and segment it into heart beats, and save the de-noised ECG signal, heart beat signal, and the corresponding RR intervals before and after each heart beat signal;
[0021] The heartbeat signal is a heartbeat obtained by taking 100 points forward and 139 points backward from the R peak reference point after the R peak is identified, including a total of 240 points including the R peak; the RR interval between each heartbeat and the preceding and following heartbeats is the number of sampling points between the identified R peak and the preceding and following R peaks;
[0022] Step 3: Take each heartbeat of the second lead of a selected saved ECG signal and use the device end to analyze whether the heartbeat is abnormal by integrating the 1D-CNN binary classification model of the RR interval;
[0023] The 1D-CNN binary classification model integrating RR intervals includes three one-dimensional convolutional layers, three one-dimensional pooling layers, a Flatten layer and a Softmax classifier, wherein the convolutional layers and the pooling layers are cross-arranged, and a one-dimensional feature array is obtained after a convolutional pooling operation is performed on a one-dimensional heartbeat through a Flatten layer, and two feature values of the preceding and following RR intervals corresponding to the heartbeat are integrated at the end of the feature array to obtain a feature array integrating RR interval features, and then the feature array integrating RR interval features is input into a Softmax classifier to obtain a classification result of whether the heartbeat is normal or abnormal;
[0024] Step 4: For the heartbeats classified as abnormal on the device side, the corresponding 12-lead ECG signal heartbeats are extracted and the specific abnormal category of ECG is obtained using the 12-lead ECG signal multi-classification model based on SE-Res-GRU deployed on the artificial intelligence cloud platform;
[0025] The 12-lead ECG signal multi-classification model based on SE-Res-GRU consists of 12 parallel independent branches and a fully connected layer, each branch contains 3 SE-Res modules in series and 1 GRU module and GAP module in parallel, wherein the SE-Res module is mainly composed of ResNet and SENet, and each SE-Res module is preceded by a convolutional layer for feature mapping so that the residual unit can be consistent with the output dimension of the SE-Res module.
[0026] Preferably, the specific implementation of step 3 includes the following sub-steps:
[0027] Step 3.1: Use the public dataset to train a 1D-CNN binary classification model that integrates the RR interval;
[0028] Step 3.2: The device calls the trained 1D-CNN model that integrates the RR intervals;
[0029] Step 3.3: Take each heartbeat of the second lead of a selected saved ECG signal and input it into the trained 1D-CNN model of fusion RR interval in turn. If the analysis result of each heartbeat is normal, it will be displayed normally in the browser on the device side. If there is an abnormal heartbeat output result, it will be displayed abnormally in the browser on the device side.
[0030] Preferably, the specific implementation of step 4 includes the following sub-steps:
[0031] Step 4.1: Train a 12-lead ECG signal multi-classification model based on SE-Res-GRU on the artificial intelligence cloud platform;
[0032] First, each lead of the 12-lead heartbeat signal is sequentially input into the corresponding branches of the 12-lead ECG signal multi-classification model based on SE-Res-GRU. After entering the branch, a convolutional layer containing two convolution kernels is first used for feature extraction. The extracted feature map is input into three series-connected SE-Res modules to extract the morphological features of a single heartbeat. After the morphological features are extracted, the GRU module is used to extract the temporal features within the heartbeat. At the same time, the GAP module is used to obtain the features of each channel of the morphological feature map and the two extracted features are concatenated to obtain the features finally extracted by each branch. Finally, the features extracted from the 12 parallel branches are fused and the Softmax classifier in the fully connected layer is used to obtain the accurate classification results of ECG.
[0033] Step 4.2: For the heartbeat classified as abnormal on the device side in step 3, the ECG analysis system calls the Restful API interface to further classify the abnormal heartbeat and displays the classification result in the browser on the device side.
[0034] Compared with the prior art, the invention has the following innovations and advantages:
[0035] 1. The present invention proposes an ECG analysis method based on cloud-device collaboration, which can collect ECG data and transmit it to the cloud server in combination with a portable ECG signal acquisition device. The ECG acquisition waveform fed back by the cloud server can be accessed and viewed in real time through the edge device. In addition, the present invention deploys a lightweight, single-lead fusion RR interval 1D-CNN two-classification model in the device-side HTML page. The computing power of the edge device can be fully utilized, greatly reducing the pressure on the cloud server. The present invention deploys a 12-lead ECG signal multi-classification model based on SE-Res-GRU on another artificial intelligence cloud platform, which can further analyze the ECG signal predicted abnormal by the device side and feed back the results to the device side. The ECG analysis method based on cloud-device collaboration proposed in the present invention can meet the different analysis requirements of users for ECG signals, and can greatly improve the load capacity of the server in a high-concurrency environment.
[0036] 2. The present invention proposes a cross-programming language and cross-integrated development environment linkage solution. In the ECG signal preprocessing part, the signal preprocessing programming language and the website back-end programming language are perfectly connected by calling the software package. The 12-lead ECG signal multi-classification model based on SE-Res-GRU is deployed as an online service on the artificial intelligence cloud platform. In addition, a function is written on the back-end of the ECG analysis system website to call the Restful API interface through the HTTP protocol to achieve cross-platform linkage, which fully combines the advantages of different programming languages and different integrated development environments.
[0037] 3. The algorithm used in the cloud-device collaboration ECG analysis method proposed in the present invention is a 12-lead ECG signal multi-classification algorithm based on SE-Res-GRU. The algorithm combines the advantages of convolutional neural networks and recurrent neural networks. The 12 parallel branches in the algorithm can extract both the waveform features of the 12-lead ECG signal and the timing features of each signal point in the waveform. After extracting the features, the SENet module is embedded so that the important features can be retained, and high-precision classification of the 12-lead ECG signal can be achieved. The algorithm used on the device side in the method is a one-dimensional convolutional neural network single-lead ECG signal two-classification method based on TensorFlow.js that integrates the RR interval between the heartbeat and the previous and next heartbeats while extracting the ECG signal waveform features, further improving the classification accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of a method flow chart of an embodiment of the present invention;
[0039] Figure 2 This is a schematic diagram of the network structure of a 1D-CNN binary classification model integrating RR intervals in an embodiment of the present invention;
[0040] Figure 3 Schematic diagram of the network structure of a 12-lead ECG signal multi-classification model based on SE-Res-GRU in an embodiment of the present invention;
[0041] Figure 4 The figure is a schematic diagram of the collaborative interaction of various modules in the system of an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0043] The present invention provides an ECG analysis method based on cloud-device collaboration. The overall flow chart of the embodiment of the present invention is as follows: Figure 1 As shown, the signal acquisition module in the ECG signal acquisition device in this embodiment uses the ADS1298 chip, and the signal wireless transmission module uses the ESP32 MCU. First, the ECG signal acquisition device is started to collect 12-lead ECG signals and transmit them to the cloud server via Wi-Fi. By setting the 12-lead ECG signal acquisition frequency to 360Hz and configuring the Wi-Fi transmission address to the cloud server IP address where the ECG analysis system website is deployed, the ECG signal acquisition device in this embodiment can transmit the collected 12-lead ECG signals to the designated cloud server after accessing the wireless network.
[0044] The embodiment of the present invention deploys an ECG analysis system website based on Spring Boot on a cloud server. The user first needs to use a device-side browser to open the ECG analysis system website and register on the website to save personal details. After starting the ECG signal acquisition device and configuring the cloud server IP address to which the signal is to be transmitted, the ECG signal transmitted by the acquisition device can be received in the ECG analysis system website deployed on the server using the MQTT protocol. In this embodiment, the front end of the ECG analysis system website uses JavaScript components such as Highcharts and ECharts to display the received 12-lead ECG signal waveform in real time. When the user chooses to save a certain ECG signal displayed on the front end of the website, the executable JAR package based on the 8-layer wavelet decomposition method and QRS wave recognition method written based on MATLAB is called on the back end of the website to denoise and pre-process the received long ECG signal, and store the denoised entire ECG signal and the corresponding intercepted heartbeats and the RR intervals before and after each heartbeat together with the unique user name of the signal collector, the acquisition time and other information in the MySQL database on the cloud server. The principle of the 8-layer wavelet decomposition method of this embodiment is to perform 8-layer wavelet decomposition on the one-dimensional ECG signal to obtain the corresponding high-frequency detail coefficients and low-frequency approximation coefficients. Since the high-frequency detail coefficients of layers 1 and 2 in the ECG signal contain most of the high-frequency noise such as power frequency interference, and the low-frequency approximation coefficients of the 8th layer contain baseline drift noise. Based on this, the present invention sets the high-frequency coefficients of layers 1 and 2 to 0 and the low-frequency coefficients of the 8th layer to 0. This embodiment is based on the QRS wave recognition method using the Pan-Tompkins algorithm, which first uses a five-point differential function to process the slope of the QRS complex wave, and then squares all sampling points through a nonlinear square function to further amplify the slope, and then obtains the characteristic information such as the slope of the ECG waveform by moving window integration, and finally determines the position of the QRS complex wave by an adaptive threshold method. In this embodiment, the implementation of the 8-layer wavelet decomposition method and the Pan-Tompkins algorithm are both based on the MATLAB platform. After the two algorithms are implemented in the MATLAB platform, the "deploytool" command is used to export the written preprocessing algorithm .m file as a JAR package that can be called and executed by the website backend. The JAR package together with the javabuilder.jar package provided by MATLAB is added to the Library path of the Spring Boot project to realize the call of the MATLAB-based preprocessing algorithm in the ECG analysis system website to perform denoising and beat preprocessing on the ECG signal.
[0045] In this embodiment, a JavaScript library based on TensorFlow.js is introduced in the front-end HTML interface of the ECG analysis system website, and a pre-trained 1D-CNN model based on TensorFlow that integrates RR interval features is deployed. When the user opens the ECG analysis system website on an edge device such as a mobile browser or a computer browser, selects a certain uploaded ECG signal, and clicks the preliminary prediction function, the back-end of the ECG analysis system website selects the corresponding ECG signal that has been denoised and pre-processed in the MySQL database of the cloud server. Since the second lead ECG signal is often used for single-lead ECG signal classification, the heartbeats of the second lead of the uploaded corresponding ECG signal and their RR interval information before and after are sequentially input into the front-end JavaScript function. If the output results of each heartbeat are normal, the front-end of the platform displays normal. If there are abnormal heartbeat output results, the front-end of the platform displays abnormalities. In this embodiment, the computing power of the edge device is used to run the 1D-CNN model to generate a preliminary classification prediction result for the user's ECG data. The addition of the edge computing function can make full use of the computing power of the edge device to reduce the load of the central server. In this embodiment, a 1D-CNN binary classification model based on TensorFlow is integrated with RR interval features. Since the heartbeat obtained by the preprocessing algorithm in this embodiment contains 240 sampling points, the data input to the 1D-CNN model is a one-dimensional array of length 240. In this algorithm, the number of convolution kernels of the corresponding first one-dimensional convolution layer is designed to be 4, the size is 36, the step size is 1, the activation function is ReLU, and the edge filling method is adopted. The filter size of the first one-dimensional pooling layer is 4, and the step size is 4. The number of convolution kernels of the corresponding second one-dimensional convolution layer is designed to be 6, the size is 9, the step size is 1, the activation function is ReLU, and the edge filling method is adopted. The filter size of the second one-dimensional pooling layer is 3, and the step size is 3. The number of convolution kernels of the corresponding third one-dimensional convolution layer is designed to be 8, the size is 6, the step size is 1, the activation function is ReLU, and the edge filling method is adopted. The filter size of the third one-dimensional pooling layer is 2, and the step size is 2. After the above convolution and pooling operations, a one-dimensional feature array with a length of 80 is obtained through the Flatten layer. At the end of the array, the two feature values of the preceding and following RR intervals corresponding to the heartbeat are fused to obtain a feature array with a length of 82. Then, the Softmax classifier is used to obtain the classification result of whether the heartbeat is normal or abnormal. The structure of the 1D-CNN two-classification model integrating the RR interval is as follows: Figure 2 shown.
[0046] In the embodiment of the present invention, a 12-lead ECG signal multi-classification model based on SE-Res-GRU is trained and deployed on the Huawei ModelArts artificial intelligence platform and deployed as an online service. The ECG analysis system website backend uses the HTTP protocol to call the online service Restful API interface to achieve further accurate classification of abnormal ECGs classified on the device side. For the heartbeat signal classified as abnormal on the device side in this embodiment, the ECG analysis system website backend will retrieve the corresponding 12-lead heartbeat signal from the MySQL database and use the interface call function to transmit the 12-lead ECG signal to the Huawei ModelArts artificial intelligence platform, such as Figure 3 As shown in the figure, the SE-Res-GRU-based 12-lead ECG signal multi-classification model deployed on the platform consists of 12 parallel independent branches, each of which contains 3 serial SE-Res modules and 1 parallel GRU module and GAP module. The SE-Res module is mainly composed of ResNet and SENet, and each SE-Res module is preceded by a convolutional layer for feature mapping so that the residual unit can be consistent with the output dimension of the SE-Res module. In this embodiment, each lead of the 12-lead heartbeat signal is first input into the corresponding branches of the 12-lead ECG signal multi-classification model based on SE-Res-GRU in sequence. After entering the branch, a convolution layer containing two convolution kernels is first used to extract features. The extracted feature map is input into three serially connected SE-Res modules to extract the morphological features of a single heartbeat. After the morphological features are extracted, the GRU module is used to extract the timing features in the heartbeat. At the same time, the GAP module is used to obtain the features of each channel of the morphological feature map and the two extracted features are spliced to obtain the final extracted features of each branch. Finally, the features extracted from the 12 parallel branches are fused through the Softmax classifier in the fully connected layer to obtain the accurate classification results of ECG.
[0047] The detailed parameters of each layer of the 12-lead ECG signal multi-classification model based on SE-Res-GRU in this embodiment are shown in Table 1. Since the heartbeat obtained by the preprocessing algorithm in this embodiment contains 240 sampling points, the data input to a single branch in the 12-lead ECG signal multi-classification model based on SE-Res-GRU is a one-dimensional array of length 240×1. The heartbeat signal in each branch is first convolved through two convolution kernels of size 30×1 and stride 1, and then two feature maps of size 240×1 are output. Each SE-Res module in the branch is composed of 3 BN layers, 3 ReLU activation functions and 2 convolution layers. Since the algorithm extracts 2 feature maps of size 240×1 through convolution operation before entering the module, these two feature maps are used as the input of the SE-Res module. After convolution with 2 convolution kernels of size 18×1 and stride 2, 2 feature maps of size 120×1 are output. After convolution with 4 convolution kernels of size 6×1 and stride 1, 4 feature maps of size 120×1 are output. In order to prevent overfitting and improve the performance of the neural network, the SE-Res module also uses a Droupout layer with a probability of 0.3. After the Droupout layer, the SE-Res module uses the SENet layer to perform weighted fusion operations on each feature output by the residual module, so that the algorithm focuses on the morphological features with important value and weakens the unimportant features. Each SE-Res module finally performs a pooling operation on the feature map in the first input SE-Res module using a convolutional layer of size 1×1 and stride 2, and then outputs a residual module feature map of size 120×1 with the same number of channels as the previous SENet layer output (taking the output of the first SE-Res module as an example, 4 channels) and adds it to obtain the output of the SE-Res module and uses it as the input of the next SE-Res module. The three serial SE-Res modules finally output 16 feature maps of size 30×1, which are processed by the BN layer and the ReLU activation function and input into the GRU module and GAP respectively. The GRU module extracts the temporal features from the input feature map and outputs 16 feature maps of size 1×1. At the same time, the GAP module regularizes the spatial features output by the SE-Res module and outputs 16 feature maps of size 1×1. The outputs of the GRU module and the GAP module are concatenated to obtain 32 1×1 feature maps. Finally, the feature fusion layer is used to concatenate the features output by the 12 parallel branches to obtain 384 feature maps of size 1×1, and the final classification result is obtained through the fully connected layer and Softmax classifier.
[0048] Table 1
[0049]
[0050]
[0051] like Figure 4 As shown, the embodiment of the present invention realizes the coordinated linkage of the portable ECG signal acquisition device, the cloud server, the user equipment and the Huawei ModelArts artificial intelligence cloud platform.
[0052] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.
Claims
1. An ECG analysis method based on cloud-device collaboration, characterized in that: The following steps are involved: Step 1: Obtain a 12-lead ECG signal with a preset length and a sampling frequency of a preset value; Step 2: De-noise the entire ECG signal, identify the R peak and segment it into heart beats, and save the de-noised ECG signal, heart beat signal, and the corresponding RR intervals before and after each heart beat signal; The heartbeat signal is a heartbeat obtained by taking 100 points forward and 139 points backward from the R peak reference point after the R peak is identified, including a total of 240 points including the R peak; the RR interval between each heartbeat and the preceding and following heartbeats is the number of sampling points between the identified R peak and the preceding and following R peaks; Step 3: Take each heartbeat of the second lead of a selected saved ECG signal and use the device end to analyze whether the heartbeat is abnormal by integrating the 1D-CNN binary classification model of the RR interval; The 1D-CNN binary classification model integrating RR intervals includes three one-dimensional convolutional layers, three one-dimensional pooling layers, a Flatten layer and a Softmax classifier, wherein the convolutional layers and the pooling layers are cross-arranged, and a one-dimensional feature array is obtained after a convolutional pooling operation is performed on a one-dimensional heartbeat through a Flatten layer, and two feature values of the preceding and following RR intervals corresponding to the heartbeat are integrated at the end of the feature array to obtain a feature array integrating RR interval features, and then the feature array integrating RR interval features is input into a Softmax classifier to obtain a classification result of whether the heartbeat is normal or abnormal; Step 4: For the heartbeats classified as abnormal on the device side, the corresponding 12-lead ECG signal heartbeats are extracted and the specific abnormal category of ECG is obtained using the 12-lead ECG signal multi-classification model based on SE-Res-GRU deployed on the artificial intelligence cloud platform; The 12-lead ECG signal multi-classification model based on SE-Res-GRU consists of 12 parallel independent branches and a fully connected layer, each branch contains 3 SE-Res modules in series and 1 GRU module and GAP module in parallel, wherein the SE-Res module is mainly composed of ResNet and SENet, and each SE-Res module is preceded by a convolutional layer for feature mapping so that the residual unit can be consistent with the output dimension of the SE-Res module.
2. The ECG analysis method based on cloud-device collaboration according to claim 1, characterized in that: The specific implementation of step 3 includes the following sub-steps: Step 3.1: Use the public dataset to train a 1D-CNN binary classification model that integrates the RR interval; Step 3.2: The device calls the trained 1D-CNN model that integrates the RR intervals; Step 3.3: Take each heartbeat of the second lead of a selected saved ECG signal and input it into the trained 1D-CNN model of fusion RR interval in turn. If the analysis result of each heartbeat is normal, it will be displayed normally in the browser on the device side. If there is an abnormal heartbeat output result, it will be displayed abnormally in the browser on the device side.
3. The ECG analysis method based on cloud-device collaboration according to claim 1, characterized in that: The specific implementation of step 4 includes the following sub-steps: Step 4.1: Train a 12-lead ECG signal multi-classification model based on SE-Res-GRU on the artificial intelligence cloud platform; First, each lead of the 12-lead heartbeat signal is sequentially input into the corresponding branches of the 12-lead ECG signal multi-classification model based on SE-Res-GRU. After entering the branch, a convolutional layer containing two convolution kernels is first used for feature extraction. The extracted feature map is input into three series-connected SE-Res modules to extract the morphological features of a single heartbeat. After the morphological features are extracted, the GRU module is used to extract the temporal features within the heartbeat. At the same time, the GAP module is used to obtain the features of each channel of the morphological feature map and the two extracted features are concatenated to obtain the features finally extracted by each branch. Finally, the features extracted from the 12 parallel branches are fused and the Softmax classifier in the fully connected layer is used to obtain the accurate classification results of ECG. Step 4.2: For the heartbeat classified as abnormal on the device side in step 3, the ECG analysis system calls the RestfulAPI interface to further classify the abnormal heartbeat and displays the classification result in the browser on the device side.
4. An ECG analysis system based on cloud-device collaboration, using the method according to any one of claims 1 to 3; characterized in that: Adopt B / S architecture; including: cloud server, artificial intelligence cloud platform, ECG signal acquisition device and device end; The cloud server is used for ECG data preprocessing and ECG data analysis, and uses a database to store user information; The artificial intelligence cloud platform is used to execute the ECG signal multi-classification artificial intelligence algorithm based on deep learning to classify the signal, and provide a Restful API interface for the cloud server to call the Web Service service; The ECG signal acquisition device comprises a disposable ECG electrode, an ECG signal acquisition module, and an ECG signal wireless transmission module, wherein the ECG signal acquisition module is used to acquire a 12-lead ECG signal with a frequency of a preset value, and the ECG signal wireless transmission module is used to communicate with a cloud server via Wi-Fi and transmit ECG signals; The device side is used to display the ECG signals collected in real time on the cloud server, pre-process and save, analyze on the device side and analyze on the cloud side.
Citation Information
Patent Citations
Method, system and mobile terminal for monitoring electrocardiosignal
CN101637383A
Long-term monitoring and diagnosis system for single-lead electrocardio paster data and processing method thereof
CN108577831A
Electrocardiograph-signal identification method and device based on multi-lead multi-structure aggregation network
CN109998532A
Heart sound acquisition and analysis system and method based on cloud framework
CN110353725A
Deep learning palm vein recognition system and method based on cloud side cooperative computing
CN110414373A
