WO2020228420A1 - Procédé d'apprentissage d'auto-codeur de débruitage, procédé de débruitage de signal d'électrocardiographie et appareils - Google Patents

Procédé d'apprentissage d'auto-codeur de débruitage, procédé de débruitage de signal d'électrocardiographie et appareils Download PDF

Info

Publication number
WO2020228420A1
WO2020228420A1 PCT/CN2020/080880 CN2020080880W WO2020228420A1 WO 2020228420 A1 WO2020228420 A1 WO 2020228420A1 CN 2020080880 W CN2020080880 W CN 2020080880W WO 2020228420 A1 WO2020228420 A1 WO 2020228420A1
Authority
WO
WIPO (PCT)
Prior art keywords
ecg signal
noise
beat
signal
ecg
Prior art date
Application number
PCT/CN2020/080880
Other languages
English (en)
Chinese (zh)
Inventor
王贵锦
黄勇锋
丁子建
张宇
Original Assignee
清华大学
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 清华大学, 华为技术有限公司 filed Critical 清华大学
Publication of WO2020228420A1 publication Critical patent/WO2020228420A1/fr

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • A61B5/346Analysis of electrocardiograms
    • A61B5/349Detecting specific parameters of the electrocardiograph cycle
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6801Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
    • A61B5/6802Sensor mounted on worn items
    • A61B5/681Wristwatch-type devices
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7203Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/7253Details of waveform analysis characterised by using transforms
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/7264Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
    • A61B5/7267Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems involving training the classification device

Definitions

  • the present invention relates to the technical field of artificial intelligence, and in particular to a method for training a noise reduction autoencoder, a method for noise reduction of an electrocardiogram signal and a device thereof.
  • ECG signals directly affects the accuracy of ECG signal diagnosis.
  • the collection of ECG signals is usually obtained through electrodes attached to the surface of the skin. Since the ECG signal on the skin is relatively weak and easily interfered by noise, the collected ECG signal contains a lot of noise, which reduces the accuracy and reliability of the ECG diagnosis.
  • the ECG collected by the wearable ECG device when the user is in a non-stationary state contains a large amount of myoelectric noise. At this time, the noise reduction processing of the ECG signal is particularly important.
  • the denoising of the ECG signal can be achieved by training a convolutional autoencoder (CAE).
  • CAE convolutional autoencoder
  • the specific training method is: a convolutional autoencoder that inputs noisy ECG signals, The convolution autoencoder processes the input noisy information signal and then outputs the predicted ECG signal, and adjusts the deconvolution auto-encoder according to the error between the predicted ECG signal and the noise-reduced ECG signal corresponding to the noisy ECG signal.
  • the parameters of the encoder cause the error to converge, and a target autoencoder capable of reducing the noise of the ECG signal is obtained, and further, the target autoencoder is used to reduce the noise of the ECG signal to be noise-reduced.
  • an embodiment of the present application provides a method for training a noise-reducing autoencoder, including: a training device superimposes a noise-free ECG signal and an EMG noise signal to obtain a synthetic ECG signal, the noise-free ECG signal including H beat ECG signal, each beat ECG signal contains a QRS complex, H is a positive integer greater than 1, and the signal-to-noise ratio of the noise-free ECG signal is not less than the first threshold; using average beat subtraction Decompose the synthesized ECG signal into a reference ECG signal and a noise-containing residual ECG signal; remove the reference ECG signal from the noise-free ECG signal to obtain a noise-free residual ECG signal; further, according to the noise The residual ECG signal and the noise-free residual ECG signal corresponding to the noisy residual ECG signal training noise-reducing autoencoder, where the noise-containing residual ECG signal is the training input, and the noise-free residual ECG signal corresponds to the noise-free The remaining ECG signal is the
  • the R peak position of the reference ECG signal obtained by decomposing the synthetic ECG signal using the average beat subtraction method is the same as the R peak position of the synthetic ECG signal.
  • the obtained noisy residual ECG signal and the noisy residual ECG signal corresponding to the noisy residual ECG signal form a training sample, and the specific realization of generating the training sample can also be completed by other equipment or devices before the training device.
  • the training device may receive training samples sent by the device or device that generates the training samples, which is not limited here.
  • the training equipment uses the noisy residual ECG signal as the input of the noise reduction autoencoder, and uses the noise-free residual ECG signal as the label to train the noise reduction autoencoder.
  • the training input noisy residual ECG signal is removed
  • the noise reduction autoencoder only needs to extract the encoding representation of the detailed information of the synthesized ECG signal, and does not need to obtain the entire synthesized ECG signal.
  • Encoding representation reduces the difficulty of training, so that the trained target denoising autoencoder can better extract the detailed features in the noisy residual ECG signal, thereby improving the noise reduction performance of the obtained target denoising autoencoder .
  • the training device uses average beat subtraction to decompose the synthesized ECG signal into the reference ECG signal and the noisy residual ECG signal:
  • the training device averages the W beat ECG signal in the target ECG signal to obtain the second average ECG signal.
  • the signal averaging method can remove noise. Therefore, the reference ECG signal formed above retains the obvious characteristics of the R peak position and R-R distance in the synthesized ECG signal, and does not contain noise.
  • the specific implementation of the above-mentioned second average ECG signal may be:
  • Second average ECG signal It is obtained by averaging the W beat ECG signal in the target ECG signal. which is:
  • Ak represents the ECG signal in the interval of ⁇ t taken from the left and right sides of the W-beat ECG signal with R k as the center
  • R k is the apex of the QRS complex in the W-beat ECG signal
  • k 1,2 whilW.
  • the second average ECG signal and the ECG signal in the ⁇ t interval may include V sampling points, where V is a positive integer greater than 1, and the signal average can be determined by the formula To calculate, Is the second average ECG signal
  • the value of the v-th sampling point in the W beat ECG signal segment, A k (v) is the value of the v-th sampling point in the ECG signal in the ⁇ t interval in the W beat ECG signal segment with R k as the center, 1 ⁇ v ⁇ V, 1 ⁇ k ⁇ W, v and k are positive integers.
  • the second average ECG signal It is obtained by averaging the W beat ECG signal in the synthetic ECG signal, for different synthetic ECG signals, the obtained second average ECG signal is different, and then obtained by the second average ECG signal
  • the reference ECG signal is also different.
  • the reference ECG signal is adaptively selected for different synthetic ECG signals, and the obtained reference ECG signal can extract the obvious characteristics of the synthetic ECG signal, so that the target noise reduction autoencoder obtained by training It can adapt to different ECG signals, thereby improving the noise reduction performance of the target noise reduction autoencoder.
  • signal averaging can reduce the noise of the ECG signal.
  • the second average ECG signal is a one-beat ECG signal after noise reduction processing.
  • the reference ECG signal obtained from the second average ECG signal can be considered to contain no EMG noise, and the average amplitude of the R peak of the target ECG signal is retained, and the reference ECG signal obtained above is for a specific
  • the synthetic ECG signal is generated, which can more accurately represent the obvious characteristics of the synthetic ECG signal.
  • Average ECG signal in the second It is obtained by averaging the W beat ECG signal in the noiseless ECG signal. Since the synthetic ECG signal is synthesized by the noise-free ECG signal and the noise signal, the noise-free ECG signal has the same characteristics as the R peak position and RR distance of the synthesized ECG signal, so it is combined with the synthesized ECG signal. Compared with the second average ECG signal obtained by averaging, the second average ECG signal obtained by averaging the noiseless ECG signal has less noise and EMG noise, and then more EMG noise is retained to contain noise In the remaining ECG signal, the trained target noise reduction autoencoder can learn the noise reduction function for this part of the EMG noise.
  • Average ECG signal in the second It is obtained by averaging the W-beat ECG signals from the historically collected ECG signals of the first user. For the ECG signal of the same user, the same second average ECG signal is used.
  • the reference ECG signal generated by the second average ECG signal obtained in this way takes into account individual differences, so that the reference ECG signal can more accurately represent the obvious characteristics of the synthesized ECG signal. For the reference ECG signal obtained by the same user, only A calculation is required to improve calculation efficiency.
  • the training equipment can detect the R peak of each beat of the ECG signal in the target ECG signal (that is, the apex of the R wave) in the W beat ECG signal, and the R peak is the sampling point with the largest energy value in the one beat ECG signal ; Perform average processing on the W-beat ECG signal in the target ECG signal to obtain the second average ECG signal, W ⁇ H, W is a positive integer; Replace the H-beat ECG signal in the synthesized ECG signal with the second average ECG signal A j corresponding to the signal, the reference ECG signal is obtained, A j represents the ECG signal in the interval obtained by taking R j as the reference in the H-beat ECG signal, taking ⁇ t1 on the left and taking ⁇ t2 on the right, and R j is the W-beat ECG
  • the apex of the QRS complex in the signal, j 1, 2...H, and then remove the reference ECG signal to be noise-reduced from the synthesized ECG signal to obtain the noisy residual ECG
  • the R peak of the second average ECG signal obtained includes the ECG signal of ⁇ t1 on the left and the ECG signal of ⁇ t2 on the right.
  • the target ECG signal can be a synthetic ECG signal, a noiseless ECG signal, Or the historically collected ECG signals from the first user (that is, the user whose noise-free ECG signals are collected).
  • a specific implementation of the second average ECG signal may be to select the ECG signal in the interval obtained by taking the left ⁇ t1 and the right taking ⁇ t2 based on the R peak for each beat of the W beat ECG signal, and obtain W ECG signal segments. Furthermore, the W ECG signal segments are averaged to obtain a second average ECG signal.
  • each ECG signal segment includes a QRS complex, and the R peak position of all ECG signal segments has the same distance from the starting position of the ECG signal segment where it is located, that is, W ECG signal segments have the same R peak The number of sampling points on both sides are the same to ensure that the W ECG signal segments are aligned.
  • the selected W ECG signal segments all include V sampling points, where the R peaks are all located at the Z-th sampling point, V and Z are integers greater than 1, and Z is less than V.
  • C k represents the ECG signal in the interval obtained by taking R k as the reference ⁇ t1 and ⁇ t2 in the W-beat ECG signal
  • R k is the apex of the QRS complex in the W-beat ECG signal
  • k 1, 2 ...W.
  • Ak represents the ECG signal in the interval of ⁇ t taken from the left and right sides of the W-beat ECG signal with R k as the center
  • R k is the apex of the QRS complex in the W-beat ECG signal
  • k 1,2 whilW.
  • the second average ECG signal and the ECG signal in the ⁇ t interval may include V sampling points, where V is a positive integer greater than 1, and the signal average may be obtained by the formula:
  • C k (v) is the value of the v-th sampling point in the ECG signal in the interval obtained by taking R k as the reference ⁇ t1 in the W beat ECG signal, 1 ⁇ v ⁇ V, 1 ⁇ k ⁇ W, v and k are positive integers.
  • the training device can divide the W-beat ECG signal from the target ECG signal, and then detect the R peak of each beat of the ECG signal in the W-beat ECG signal,
  • the R peak is the sampling point with the largest amplitude in the one-beat ECG signal; furthermore, the W-beat ECG signal is aligned based on the R peak.
  • the number of sampling points at each position is not Is greater than W, and then the aligned W beat ECG signals are averaged to obtain a second average ECG signal.
  • the position of the R peak in the divided N-beat ECG signal may be different, and the length of the N-beat ECG signal may be the same or different.
  • Average ECG signal The value of the v-th sampling point in can be expressed as: among them, Average ECG signal
  • D k (v) is the value of the sampling point at position v in the W-beat ECG signal with R k as the location, 1 ⁇ v ⁇ V, 1 ⁇ k ⁇ W, v and k are positive integers. If there is no sampling point distribution at position v in the ECG signal D k , then D k (v) is zero.
  • the embodiment of the present application also provides an ECG signal noise reduction method, including: the training device superimposes the noiseless ECG signal and the EMG noise signal to obtain a synthetic ECG signal, wherein the noiseless ECG signal
  • the signal-to-noise ratio (SNR) of the medium myoelectric noise is not less than the first threshold.
  • the noise-free ECG signal may include multi-beat ECG signals, H-beat ECG signals, and each ECG signal includes a QRS Wave group, H is an integer greater than 1; use average beat subtraction to decompose the noiseless ECG signal into the reference ECG signal and the noiseless residual ECG signal; remove the reference ECG signal from the synthesized ECG signal to obtain the noise The residual ECG signal; further, the noise-reducing autoencoder is trained according to the noisy residual ECG signal and the noise-free residual ECG signal corresponding to the noisy residual ECG signal, wherein the noisy residual ECG signal is the training input, the The noise-free residual ECG signal corresponding to the noisy residual ECG signal is the training label.
  • the R peak position of the reference ECG signal obtained by decomposing the synthetic ECG signal using the average beat subtraction method is the same as the R peak position of the synthetic ECG signal.
  • the obtained noisy residual ECG signal and the noisy residual ECG signal corresponding to the noisy residual ECG signal form a training sample, and the specific realization of generating the training sample can also be completed by other equipment or devices before the training device.
  • the training device may receive training samples sent by the device or device that generates the training samples, which is not limited here.
  • the training equipment uses the noisy residual ECG signal as the input of the noise reduction autoencoder, and uses the noise-free residual ECG signal as the label to train the noise reduction autoencoder.
  • the training input noisy residual ECG signal is removed
  • the noise reduction autoencoder only needs to extract the encoding representation of the detailed information of the synthesized ECG signal, and does not need to obtain the entire synthesized ECG signal.
  • Encoding representation reduces the difficulty of training, so that the trained target denoising autoencoder can better extract the detailed features in the noisy residual ECG signal, thereby improving the noise reduction performance of the obtained target denoising autoencoder .
  • the specific implementation method of decomposing the noise-free ECG signal into the reference ECG signal and the noise-free residual ECG signal using the average beat subtraction method can be referred to in the first aspect above, using the average beat subtraction method to decompose the noise-free ECG signal into the reference ECG signal.
  • the related description in the signal and the noise-free residual ECG signal will not be repeated here.
  • an embodiment of the present application also provides an ECG signal denoising method, including: executing a device to obtain an ECG signal to be denoised.
  • the ECG signal to be denoised includes M beats of the ECG signal.
  • the signal contains a QRS complex, and M is a positive integer greater than 1.
  • Use average beat subtraction to decompose the ECG signal to be denoised into the reference ECG signal to be denoised and the remaining ECG signal to be denoised;
  • the remaining ECG signal to be denoised is input into the target noise reduction autoencoder to obtain the denoised residual ECG signal; the denoised reference ECG signal and the denoised residual ECG signal are superimposed to obtain the denoised heart electric signal.
  • calculation method of the reference ECG signal to be denoised is the same as the calculation method of the reference ECG signal involved in the target denoising autoencoder obtained by training.
  • execution device may specifically be a wearable device such as a smart bracelet or a smart watch, a terminal such as a mobile phone, a tablet computer, and a personal computer, or a server, a cloud, and the like.
  • the reference ECG signal and the residual ECG signal after noise reduction are superimposed to obtain the noise-reduced ECG signal, which can better retain the obvious characteristics of the R peak position and RR interval in the ECG signal to be noise-reduced, and reduce the noise after noise reduction. Distortion of the ECG signal.
  • the above-mentioned target noise reduction autoencoder may be obtained through the training method of the noise reduction autoencoder in the first aspect or the second aspect.
  • the specific training method refer to the related description in the above-mentioned first aspect, which is not repeated in the embodiment of the present application.
  • the target noise reduction autoencoder used for noise reduction uses the noisy residual ECG signal obtained after removing the reference ECG signal from the synthetic ECG signal as the input of the noise reduction autoencoder, and the noiseless ECG signal The noise-free residual ECG signal obtained after the reference ECG signal is removed is used as the label, and the noise reduction autoencoder is trained.
  • the noisy residual ECG signal input for training removes the obvious features in the synthetic ECG signal ( For example, R peak position, RR interval)
  • the noise reduction autoencoder only needs to extract the coding representation of the detailed information of the synthesized ECG signal, and does not need to obtain the coding representation of the entire synthesized ECG signal, thereby reducing the difficulty of training, making
  • the trained target denoising autoencoder can better extract the detailed features in the noisy residual ECG signal, thereby improving the noise reduction performance of the obtained target denoising autoencoder.
  • the execution device may be a wearable device or terminal equipped with an ECG sensor, such as a smart bracelet, smart watch, etc. At this time, the execution device obtains a specific realization of the ECG signal to be noise-reduced It may be: the execution device collects the analog ECG signal on the surface of the user's skin through the ECG sensor; further, the analog ECG signal is processed through the digital-to-analog conversion module to obtain the digital ECG signal to be denoised.
  • the execution device may be a server or a terminal, etc.
  • a specific implementation for the execution device to obtain the ECG signal to be noise-reduced may be: the execution device receives the noise-reduction sent by the ECG acquisition device ECG signal.
  • the ECG acquisition device may be a wearable device or a terminal equipped with an ECG sensor.
  • the execution device uses average beat subtraction to decompose the ECG signal to be denoised into the reference ECG signal to be denoised and the first realization of the remaining ECG signal to be denoised.
  • the signal averaging method can remove noise. Therefore, the above-mentioned reference ECG signal to be denoised retains the R peak position and R-R distance in the ECG signal to be denoised and does not contain noise.
  • First average ECG signal It is obtained by averaging the N-beat ECG signal in the ECG signal to be noise-reduced, namely:
  • the obtained first average ECG signals are different, and the reference ECG signals obtained from the first average ECG signals are also different.
  • the reference ECG signal is adaptively selected for different ECG signals to be denoised, and the obtained reference ECG signal can more accurately extract the obvious features of the ECG signal to be denoised, thereby reducing
  • the noisy ECG signal can better retain the obvious features of the ECG signal to be denoised, reduce the distortion of the ECG signal after noise reduction, and improve the quality of the ECG signal after noise reduction.
  • First average ECG signal It is obtained by averaging the N-beat ECG signals from the historically collected ECG signals of the second user (the user whose ECG signals to be denoised is collected).
  • the specific calculation method is the same as that of the above-mentioned first average electrocardiogram signal implementation manner 1, please refer to the related description in the above-mentioned implementation manner 1, which will not be repeated here.
  • the same first average ECG signal is used.
  • the implementation manner 5 obtains the reference ECG signal to be denoised generated by the first average ECG signal, taking into account individual differences, so that the reference ECG signal to be denoised can more accurately represent the obvious characteristics of the ECG signal to be denoised, relatively
  • the reference ECG signal to be noise-reduced obtained by the same user only one calculation is required, which improves the calculation efficiency.
  • the execution device uses average beat subtraction to decompose the ECG signal to be noise-reduced into the reference ECG signal to be noise-reduced and the second implementation of the remaining ECG signal to be noise-reduced Can be:
  • the above-mentioned method uses the average beat subtraction method to decompose the ECG signal to be denoised into the reference ECG signal to be denoised and the remaining ECG signal to be denoised.
  • B i represents the M beat ECG signal with R j as the reference ⁇ t1 Take the ECG signal in the interval obtained by ⁇ t2 on the right
  • Ak represents the ECG signal in the interval obtained by taking R k as the reference in the W beat ECG signal, ⁇ t1 and take the ECG signal in the interval obtained by taking ⁇ t2 on the right
  • R k is the QRS wave in the W beat ECG signal
  • k 1, 2...W.
  • the specific calculation method of the second average electrocardiogram signal is the same as the calculation method of the second average electrocardiogram signal described in the first implementation. You can refer to the related description in the first implementation above, and will not be repeated here.
  • an embodiment of the present application also provides a training device for noise reduction and self-encoding, and the device includes a module for executing the method in the first aspect.
  • a training device for noise reduction and self-encoding includes: a memory for storing a program; a processor for executing a program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute The method in the first aspect.
  • an embodiment of the present application also provides a training device for noise reduction and self-encoding, which includes a module for executing the method in the second aspect.
  • a training device for noise reduction and self-encoding includes: a memory for storing programs; a processor for executing programs stored in the memory, and when the programs stored in the memory are executed, the processor is configured to execute The method in the second aspect.
  • an embodiment of the present application also provides an electrocardiographic signal noise reduction device, which includes a module for executing the method in the third aspect.
  • an electrocardiographic signal noise reduction device in a ninth aspect, includes: a memory for storing a program; a processor for executing a program stored in the memory. When the program stored in the memory is executed, the processor is configured to execute the first The method in three aspects.
  • a computer-readable medium stores program code for device execution, and the program code includes the method for executing the method in the first aspect.
  • a computer program product containing instructions is provided, when the computer program product runs on a computer, the computer executes the method in the first aspect.
  • a computer-readable medium stores program code for device execution, and the program code includes a method for executing the method in the second aspect.
  • a computer program product containing instructions which when the computer program product runs on a computer, causes the computer to execute the method in the above second aspect.
  • a computer-readable medium stores program code for device execution, and the program code includes the method for executing the method in the third aspect.
  • a computer program product containing instructions which when the computer program product runs on a computer, causes the computer to execute the method in the third aspect.
  • a chip in a sixteenth aspect, includes a processor and a data interface.
  • the processor reads instructions stored in a memory through the data interface, and executes the method in the first aspect.
  • the chip may further include a memory in which instructions are stored, and the processor is configured to execute instructions stored on the memory.
  • the processor is used to execute the method in the first aspect.
  • a chip in a seventeenth aspect, includes a processor and a data interface.
  • the processor reads instructions stored in a memory through the data interface and executes the method in the second aspect.
  • the chip may further include a memory in which instructions are stored, and the processor is configured to execute instructions stored on the memory.
  • the processor is used to execute the method in the second aspect.
  • a chip in an eighteenth aspect, includes a processor and a data interface, and the processor reads instructions stored in a memory through the data interface, and executes the method in the third aspect.
  • the chip may further include a memory in which instructions are stored, and the processor is configured to execute instructions stored on the memory.
  • the processor is used to execute the method in the third aspect.
  • an electronic device which includes the noise reduction self-encoding training device in any one of the foregoing fourth to fifth aspects.
  • an electronic device including the noise reduction self-encoding training device in any one of the above-mentioned sixth to seventh aspects.
  • an electronic device which includes the electrocardiographic signal noise reduction device in any one of the eighth to ninth aspects.
  • FIG. 1A is a schematic flowchart of an automatic analysis process of an ECG signal provided by an embodiment of the present invention
  • Fig. 3 is a schematic diagram of the principle of a self-encoder provided by an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a system framework provided by an embodiment of the present invention.
  • Figure 5 is a network structure diagram of a noise reduction autoencoder provided by an embodiment of the present invention.
  • Figure 6 is a schematic diagram of a chip hardware structure provided by an embodiment of the present invention.
  • FIG. 7A is a schematic flowchart of a training method for a noise reduction autoencoder according to an embodiment of the present invention.
  • FIG. 7C is a schematic diagram of the principle of calculating a reference ECG signal according to an embodiment of the present invention.
  • FIG. 7D is a schematic flowchart of another method for training a noise reduction autoencoder according to an embodiment of the present invention.
  • FIG. 8A is a schematic flowchart of a method for reducing noise of an ECG signal according to an embodiment of the present invention.
  • FIG. 8B is a schematic explanatory diagram of an ECG signal noise reduction method provided by an embodiment of the present invention.
  • FIG. 8C is a schematic diagram of a principle of calculating a reference ECG signal to be denoised according to an embodiment of the present invention.
  • 8D is a schematic explanatory diagram of a noise reduction result of an ECG signal of a target noise reduction autoencoder according to an embodiment of the present invention.
  • FIG. 9A is a schematic block diagram of a training device for a noise reduction autoencoder according to an embodiment of the present invention.
  • FIG. 9B is a schematic block diagram of another apparatus for training a noise reduction autoencoder according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of the hardware structure of a training device for a noise reduction autoencoder provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of the hardware structure of an electrocardiographic signal noise reduction device provided by an embodiment of the present application.
  • the ECG signal noise reduction method provided in the embodiments of the present application can be applied to scenarios such as ECG signal analysis, identification, and diagnosis.
  • the ECG signal noise reduction method of the embodiment of the present application can be applied in the following scenarios:
  • FIG. 1A a schematic flow diagram of the automatic analysis process of the ECG signal.
  • the automatic analysis of the ECG signal mainly includes two processing processes, namely the noise reduction of the ECG signal and the analysis of the ECG signal after the noise reduction.
  • the ECG signal noise reduction method provided in the embodiments of the present application can be applied to the noise reduction process of the ECG signal.
  • the ECG noise reduction method provided by the embodiments of the present application first uses the average beat subtraction method to decompose the ECG signal to be denoised into the reference ECG signal to be denoised and the noise-containing residual ECG signal, that is, first according to the ECG to be denoised
  • the signal obtains a reference ECG signal that retains obvious features such as the R peak position and RR interval of the ECG signal to be denoised (that is, the reference ECG signal to be denoised in the embodiment of this application), and then obtains the reference ECG signal to be denoised
  • the reference ECG signal is removed from the system to obtain the remaining ECG signal to be denoised.
  • the remaining ECG signal to be denoised is input to the target noise reduction autoencoder, and the target noise reduction autoencoder
  • the ECG signal undergoes noise reduction processing to obtain the noise-reduced residual ECG signal, and then the noise-reduced residual ECG signal is added to the reference ECG signal to be noise-reduced (also referred to as "superposition" in this article)
  • the obtained ECG signal is the ECG signal after the noise reduction of the ECG signal to be reduced.
  • the target denoising autoencoder is a trained neural network.
  • the target denoising autoencoder is obtained by training an initialized denoising autoencoder through multiple training samples.
  • the training samples include noisy residual ECG signals and The noise-free residual ECG signal corresponding to the noisy residual ECG signal, where the noise-containing residual ECG signal is the signal obtained after removing the reference ECG signal from the synthesized ECG signal, and the synthesized ECG signal is the noise-free residual ECG signal.
  • the signal superimposed with the EMG noise signal, the noise-free residual ECG signal corresponding to the noise-containing residual ECG signal is the signal obtained by removing the reference ECG signal from the noise-free ECG signal.
  • the reference ECG signal is extracted from the synthetic ECG signal or the noise-free ECG signal, and the obvious features such as the R peak position and R-R interval of the synthetic ECG signal are retained.
  • the denoised ECG signal can be analyzed.
  • the specific analysis process can be: Identify the characteristic points of the denoised ECG signal, and then identify the Input the feature points of the into the feature diagnosis model, and predict the diagnosis result of the denoised ECG signal through the feature diagnosis model based on the identified feature points.
  • the feature diagnosis model is a trained machine learning model, and the feature diagnosis The model takes the characteristic points of the ECG signal as input, and the true diagnosis result of the ECG signal is the machine learning model obtained by label training. It should be understood that the identification of the characteristic points of the ECG signal is not a necessary step in the analysis process of the ECG signal.
  • the ECG signal can also be input to the signal diagnosis model, and the signal diagnosis model Directly predict the diagnosis result for the ECG signal.
  • the signal diagnosis model is a trained machine learning model.
  • the signal diagnosis model takes the ECG signal as input, and the true diagnosis result of the ECG signal is the label for training. Machine learning model.
  • ECG sensors such as smart bracelets and smart watches
  • the smart bracelet and smart watch can be equipped with an ECG sensor to collect the user's ECG data.
  • the smart watch in the first embodiment of the present application is described as an example.
  • an ECG sensor includes two electrodes for collecting ECG signals.
  • the smart watch 11 may include one electrode 111 of the electrocardiogram sensor disposed on the back of the smart watch 11, and the other electrode 112 is disposed on the side of the smart watch 11.
  • the smart watch 11 may include a digital-to-analog conversion module 113.
  • the digital-to-analog conversion module 113 can perform analog-to-digital conversion on the analog ECG signals collected through the electrodes 111 and 112 to obtain discrete digital ECG signals.
  • the processing module inside the smart watch 11 can use the digitized ECG signal as the ECG signal to be noise-reduced by applying the ECG noise reduction method in the embodiment of the present application for noise reduction processing to obtain the noise-reduced ECG signal.
  • the smart watch 11 or the smart bracelet 12 can also analyze the noise-reduced ECG signal to obtain the analysis result. Further, the smart watch 11 or the smart bracelet 12 can also output the analysis result through an output device, such as a display, a loudspeaker, and the like.
  • an output device such as a display, a loudspeaker, and the like.
  • the smart watch 11 or smart bracelet 12 can also send the ECG signal to be noise-reduced to the terminal or server bound to it, and the terminal or server applies the ECG noise-reduction method in the embodiments of this application to perform the noise-reduction ECG signal Noise reduction processing to obtain the ECG signal after noise reduction.
  • the terminal or the server can send the noise-reduced ECG signal to the smart watch 11 or the smart bracelet 12, or send an analysis result obtained by analyzing the noise-reduced ECG signal.
  • the smart watch 11 or smart bracelet 12 equipped with an ECG sensor can monitor the wearer's ECG data in real time to monitor the wearer's physical condition.
  • the training method of the noise-reducing autoencoder provided by the embodiment of the application involves data processing, and can be specifically applied to data processing methods such as data training, machine rest, and deep learning.
  • data processing methods such as data training, machine rest, and deep learning.
  • the noise-free residual ECG signal corresponding to the noisy residual ECG signal performs symbolic and formalized intelligent information modeling, extraction, preprocessing, training, etc., and finally obtains the target noise reduction autoencoder; and, this application
  • the ECG signal noise reduction method provided by the embodiment can use the above-mentioned target noise reduction autoencoder to convert the input data (such as the residual ECG signal to be denoised obtained after removing the reference ECG signal from the ECG signal to be denoised in this application) ) Is input to the target noise reduction autoencoder to obtain output data (such as the residual ECG signal after noise reduction in this application).
  • the training method for the denoising autoencoder and the method for denoising the ECG signal provided by the embodiments of this application are inventions based on the same concept, and can also be understood as two parts in a system, or a whole Two stages of the process: such as model training stage and model application stage.
  • Electrocardiography also known as electrocardiogram, records the bioelectric signals generated during the contraction and relaxation of the heart. Each time the heart completes a complete electrical activity, it corresponds to an ECG waveform as shown in Figure 2, including P wave, QRS wave group (including Q wave, R wave and S wave) and T wave. Among them, the first wave on the ECG that deviates from the baseline in the positive direction is the P wave, and the second waveband is the QRS complex.
  • the QRS complex consists of a series of 3 deviations, reflecting the currents related to the depolarization of the left and right ventricles.
  • the first negative deviation in the QRS complex is called the Q wave
  • the first positive deviation in the QRS complex is called the R wave
  • the negative deviation after the R wave is called the S wave.
  • the round and blunt waveform at the top that appears after the QRS complex is the T wave, which represents the state of ventricular repolarization.
  • a complete waveform including the above-mentioned waves is called a beat.
  • the reference ECG signal includes obvious features such as the R peak position and RR interval in the ECG signal.
  • the reference ECG signal may include at least QRS complex. It is understandable that the reference ECG signal includes the characteristics of the part of the ECG signal, usually Obvious features that are easier to extract, such as R peak position, average R peak amplitude, etc. In the embodiment of the present application, the R peak position in the ECG signal is the same as the R peak position in the reference ECG signal corresponding to the ECG signal.
  • the remaining ECG signal After removing the reference ECG signal corresponding to the ECG signal from the ECG signal, the remaining ECG signal is obtained. Since the reference ECG signal includes the obvious features of the ECG signal, the remaining ECG signal includes the hidden features that are not easy to extract from the ECG signal, also known as the detailed features.
  • EMG noise also known as EMG noise signal
  • MUAP motor unit action potential
  • Signal averaging is a method to eliminate random interference by using the determinism (repeatability) of the signal and the randomness of noise.
  • Signal averaging refers to the technology of superimposing signals and then averaging them. In order to avoid signal distortion after superposition, the signals must be strictly aligned during superposition.
  • the averaged multiple ECG signals or multiple ECG signal segments are aligned based on the R peak, that is, the average multiple ECG signals or multiple ECG signal segments are based on the R peak Aligned.
  • a neural network can be composed of neural units.
  • a neural unit can refer to an arithmetic unit that takes xs and intercept 1 as inputs.
  • the output of the arithmetic unit can be:
  • s 1, 2,...n, n is a natural number greater than 1
  • W s is the weight of x s
  • b is the bias of the neural unit.
  • f is the activation function of the neural unit, which is used to introduce nonlinear characteristics into the neural network to convert the input signal in the neural unit into an output signal.
  • the output signal of the activation function can be used as the input of the next convolutional layer.
  • the activation function can be a sigmoid function.
  • a neural network is a network formed by connecting many of the above-mentioned single neural units together, that is, the output of one neural unit can be the input of another neural unit.
  • the input of each neural unit can be connected with the local receptive field of the previous layer to extract the characteristics of the local receptive field.
  • the local receptive field can be a region composed of several neural units.
  • Deep neural network deep neural network, DNN
  • Deep neural network also called multilayer neural network
  • DNN can be understood as a neural network with many hidden layers. There is no special metric for "many" here.
  • the neural network inside DNN can be divided into three categories: input layer, hidden layer, and output layer.
  • the first layer is the input layer
  • the last layer is the output layer
  • the number of layers in the middle are all hidden layers.
  • the layers are fully connected, that is to say, any neuron in the i-th layer must be connected to any neuron in the i+1th layer.
  • DNN looks complicated, it is not complicated in terms of the work of each layer.
  • the coefficient from the kth neuron of the L-1th layer to the jth neuron of the Lth layer is defined as It should be noted that the input layer has no W parameter.
  • more hidden layers make the network more capable of portraying complex situations in the real world. Theoretically speaking, a model with more parameters is more complex and has a greater "capacity", which means it can complete more complex learning tasks.
  • Training a deep neural network is also a process of learning a weight matrix, and its ultimate goal is to obtain the weight matrix of all layers of the trained deep neural network (a weight matrix formed by vectors W of many layers).
  • Autoencoders are a type of neural network designed to copy their input to the output. It is used to do such a thing, that is to make the output as much as possible to simulate the input, so as to find the compressed representation of the input.
  • the schematic diagram of the self-encoder shown in Figure 3 the self-encoder includes an encoder and a decoder, that is, the mapping between the input layer and the intermediate layer is called encoding, and the intermediate layer and the output layer (also called the reconstruction layer) The mapping between is called decoding.
  • the encoder compresses the input into a latent space representation (also referred to as an encoding representation in this application), and the encoding function can be used
  • W is The weight of
  • b is the bias of the neural unit
  • f( ⁇ ) is the activation function of the encoder
  • the decoder aims to reconstruct the input from the latent space representation, you can use the decoding function Get it for the decoder.
  • W′ is The weight of
  • b′ is the bias of the neural unit
  • g( ⁇ ) is the activation function of the neural unit of the decoder
  • the decoder reconstructs
  • the training of the autoencoder reduces the reconstruction error of the autoencoder by optimizing the parameters W, W′, b, b′, that is, reducing with The difference between.
  • the parameters are optimized, if the output is reconstructed With input Very close, then it can be considered that the latent space represents Caught
  • the effective characteristics of is The effective compression representation can achieve the purpose of data dimensionality reduction and feature extraction. Data visualization and data noise reduction are two main application scenarios of autoencoders.
  • the noise-reducing autoencoder For the autoencoder, optimization and training can only make the output of the autoencoder close to the input, and for lossy input (input containing noise), it cannot be reconstructed to obtain a lossless input.
  • the noise-reducing autoencoder is introduced.
  • the network structure of the noise-reducing autoencoder is the same as that of the autoencoder, but the training method is improved, through the damaged input ( Also called noise-containing input) to train the autoencoder to reconstruct the input.
  • Convolutional neural networks can use backpropagation (BP) algorithms to modify the size of the parameters in the initial super-resolution model during the training process, so that the reconstruction error loss of the super-resolution model becomes smaller and smaller. Specifically, forwarding the input signal to the output will cause error loss, and the parameters in the initial super-resolution model are updated by backpropagating the error loss information, so that the error loss is converged.
  • the backpropagation algorithm is a backpropagation motion dominated by error loss, and aims to obtain the optimal super-resolution model parameters, such as a weight matrix.
  • the ECG signal is usually a body surface bioelectric signal extracted by an ECG device through electrodes, and the acquired ECG signal is composed of multiple sampling points sorted in time.
  • the value of the sampling point is the intensity or energy value of the bioelectric signal on the body surface at the time of collection.
  • the multiple sampling points are arranged in the order of sampling time to form a data matrix (usually a row vector) to facilitate data processing of the ECG signal.
  • the ECG acquisition device is a device that collects ECG signals and analyzes ECG signals equal to the acquisition and processing of ECG signals. It can be an ECG acquisition device, an ECG machine, etc., or it can be equipped with an ECG signal. Sensors such as wearable devices or terminals.
  • an embodiment of the present invention provides a system architecture 100.
  • the data collection device 160 is used to collect data (for example, noise-free ECG signals, noise signals, etc.), and can also generate training data (also referred to as training samples in this application) based on the collected data
  • the training data includes the noisy residual ECG signal and the noise-free residual ECG signal corresponding to the noisy residual ECG signal, where the noisy residual ECG signal is the result of the synthetic ECG signal removing the reference ECG signal
  • the obtained signal, the synthetic ECG signal is obtained by superimposing the noiseless ECG signal and the EMG noise signal, the noiseless ECG signal is the ECG signal without EMG noise; the noiseless residual ECG signal is the noiseless heart
  • the electrical signal is obtained by removing the reference ECG signal; the reference ECG signal is obtained by the average beat subtraction, which retains the obvious characteristics of the composite ECG signal such as the R peak position of the composite ECG signal.
  • noise-free ECG signal refers to an ECG signal that contains no or almost no EMG noise, which can be collected by an ECG acquisition device in a stationary state, but it is not excluded that the noise-free ECG signal includes such as power frequency noise. , Baseline drift or other noise, etc.
  • the data acquisition device 160 may store the training data in the database 130, and the training device 120 obtains the target noise reduction autoencoder 101 by training based on the training data maintained in the database 130.
  • the following will describe in more detail how the training device 120 obtains the target denoising autoencoder 101 based on the training data with the first embodiment.
  • the target denoising autoencoder 101 can be used to implement the ECG signal denoising method provided in the embodiments of the present application. , That is, the ECG signal to be denoised is obtained, the reference ECG signal to be denoised is obtained by the average beat subtraction method, and the reference ECG signal to be denoised is removed from the ECG signal to be denoised to obtain the remaining ECG signal to be denoised.
  • the reference ECG signal to be denoised includes the R peak position of the ECG signal to be denoised, the RR interval and the obvious characteristics of the ECG signal to be denoised.
  • the remaining ECG signal to be denoised is input to the target noise reduction autoencoder 101,
  • the residual ECG signal after noise reduction can be obtained, and the residual ECG signal after noise reduction is superimposed with the reference ECG signal to be noise-reduced to obtain the noise-reduced ECG signal.
  • the target noise reduction autoencoder 101 in the embodiment of this application may specifically be an autoencoder.
  • the target noise reduction autoencoder 101 is obtained by training an initialized noise reduction autoencoder.
  • the training data maintained in the database 130 may not all come from the collection or generation of the data collection device 160, and may also be received from other devices (for example, training devices).
  • the training device 120 may not necessarily train the target noise reduction autoencoder 101 based on the training data maintained by the database 130. It may also obtain training data from the cloud or other places for model training. The above description should not be used as Limitations of the embodiments of this application.
  • the training device 120 may also generate training data based on the noise-free ECG signal and the noise signal, and the training data may be stored in the database 130 by the training device 120, which is not limited in the embodiment of the present application.
  • the training device 120 trains the target denoising autoencoder 101 obtained by the denoising autoencoder 121 according to the training samples.
  • the target denoising autoencoder 101 can be applied to different systems or devices, as shown in FIG. 4 Device 110.
  • the execution device 110 may be a terminal, such as a mobile phone terminal, a tablet computer, a notebook computer, AR/VR, a vehicle-mounted unit, a wearable device, such as a smart bracelet, a smart watch, etc., or a server or a cloud.
  • the execution device 110 may be configured with an I/O interface 112 for data interaction with external devices.
  • the user may input data to the I/O interface 112 through the user device 140, and the input data is implemented in this application. Examples can include: ECG signal to be noise-reduced.
  • the preprocessing module 113 is configured to perform preprocessing according to the input data (such as the ECG signal to be denoised) received by the I/O interface 112. In the embodiment of the present application, the preprocessing module 113 can be used to generate the to be denoised The reference ECG signal and the reference ECG signal to be denoised from the residual ECG signal to be denoised are removed to obtain the residual ECG signal to be denoised.
  • the signal superposition module 114 is used to add the noise-reduced reference ECG signal obtained by the preprocessing module 113 and the noise-reduced residual ECG signal output by the target noise-reduction autoencoder 101 to obtain the noise-reduced ECG signal.
  • the execution device 110 may call data, codes, etc. in the data storage system 150 for corresponding processing .
  • the data, instructions, etc. obtained by corresponding processing may also be stored in the data storage system 150.
  • the I/O interface 112 returns the processing result, such as the target ECG signal obtained above, to the user equipment 140, so as to provide it to the user.
  • the training device 120 can generate the corresponding target noise reduction autoencoder 101 based on different training data for different targets or different tasks, and the corresponding target noise reduction autoencoder 101 can be used to achieve The above goals or completion of the above tasks, so as to provide users with the desired results.
  • the user can manually set input data, and the manual setting can be operated through the interface provided by the I/O interface 112.
  • the user equipment 140 can automatically send input data to the I/O interface 112. If the user equipment 140 is required to automatically send input data and the user's authorization is required, the user can set the corresponding authority in the user equipment 140.
  • the user can view the result output by the execution device 110 on the user device 140, and the specific presentation form may be a specific manner such as display and sound.
  • the user equipment 140 may specifically be a terminal equipped with an ECG sensor, such as a mobile phone, a smart bracelet, a smart watch, etc., and the terminal may send an ECG signal to be noise-reduced to the executing device, and the executing device may respond to the signal to be reduced. Noise reduction is performed on the noisy ECG signal, and the noise-reduced ECG signal is obtained.
  • the execution device can send the noise-reduction ECG signal to the terminal, and the terminal can receive the noise-reduction ECG signal sent by the execution device, or according to The ECG signal after noise reduction is diagnosed and analyzed.
  • the execution device 110 can be a terminal such as a mobile phone, a tablet computer, or a server, a cloud, etc. After the execution device obtains the noise-reduced ECG signal, it can be based on the noise-reduced ECG signal Perform diagnostic analysis. The execution device may send the diagnosis result to the user device 140.
  • FIG. 4 is only a schematic diagram of a system architecture provided by an embodiment of the present invention, and the positional relationship among the devices, devices, modules, etc. shown in the figure does not constitute any limitation.
  • the data storage system 150 is an external memory relative to the execution device 110. In other cases, the data storage system 150 may also be placed in the execution device 110.
  • the target noise reduction autoencoder 101 is trained according to the training device 120.
  • the target noise reduction autoencoder 101 provided in the embodiment of the present application may include an encoder and a decoder.
  • both the encoder and the decoder may be a neural network, a convolutional neural network, or a deep neural network.
  • the denoising autoencoder 200 may include an input layer 21, an encoder 22, a decoder 23, and an output layer 24.
  • the encoder 22 may include one or more sets of convolutional layers/pooling layers 220.
  • the decoder 23 may include one or more sets of convolutional layers/upsampling layers 230.
  • the pooling layer in the encoder 22 is used for dimensionality reduction
  • the decoder 23 is used for dimensionality reduction.
  • the sampling layer is used for dimension upgrading.
  • the convolutional layer/pooling layer 220 may include layers 221-226, for example: in an implementation, layer 221 is a convolutional layer, layer 222 is a pooling layer, and layer 223 is a convolutional layer. Layers, 224 is the pooling layer, 225 is the convolutional layer, and 226 is the pooling layer; in another implementation, 221 and 222 are the convolutional layers, 223 is the pooling layer, and 224 and 225 are the convolutional layers. Layer, 226 is the pooling layer. That is, the output of the convolutional layer can be used as the input of the subsequent pooling layer, or as the input of another convolutional layer to continue the convolution operation.
  • the convolutional layer/upsampling layer 230 may include layers such as 231-236.
  • layer 231 is a convolutional layer
  • layer 232 is an upsampling layer
  • layer 233 is a convolutional layer
  • Layers, 234 is an upsampling layer
  • 235 is a convolutional layer
  • 236 is an upsampling layer
  • 231 and 232 are convolutional layers
  • 233 is an upsampling layer
  • 234 and 235 are convolutional layers.
  • Layer, 236 is the up-sampling layer. That is, the output of the convolution layer can be used as the input of the subsequent upsampling layer, or as the input of another convolution layer to continue the convolution operation.
  • the convolution layer 221 can include many convolution operators.
  • the convolution operator is also called a kernel. Its role in the processing of the ECG signal is equivalent to a filter that extracts specific information from the input data matrix.
  • the essence of the convolution operator is The above can be a weight matrix.
  • This weight matrix is usually predefined. In the process of convolution on the ECG signal, the weight matrix is usually one sample point after another sample point (or Two sampling points followed by two sampling points... it depends on the value of stride) to complete the work of extracting specific features from the ECG signal.
  • the size of the weight matrix should be related to the number of sampling points in the ECG signal. It should be noted that the depth dimension of the weight matrix and the horizontal depth dimension of the input ECG signal are the same. Different weight matrices can be used to extract different features in the data matrix.
  • weight values in these weight matrices need to be obtained through a lot of training in practical applications.
  • Each weight matrix formed by the weight values obtained through training can be used to extract information from the input ECG signal, so that the noise reduction autoencoder 20 is Input the ECG signal for correct noise reduction.
  • the initial convolutional layer (such as 221) often extracts more general features, which can also be called low-level features;
  • the features extracted by the subsequent convolutional layers (for example, 226) become more and more complex, such as high-level semantic features.
  • the features with higher semantics are more suitable for the problem to be solved. .
  • pooling layer After it is often necessary to reduce the number of training parameters, it is often necessary to periodically introduce a pooling layer after the convolutional layer.
  • it can be a convolutional layer followed by a layer
  • the pooling layer can also be a multi-layer convolutional layer followed by one or more pooling layers.
  • the purpose of the pooling layer is to reduce the dimensionality of the input data.
  • the pooling layer may include an average pooling operator and/or a maximum pooling operator for sampling the input data to obtain data with smaller dimensions.
  • the average pooling operator can calculate the input data within a specific range to generate an average value as the result of average pooling.
  • the maximum pooling operator can take the data with the largest value in a specific range as the result of maximum pooling.
  • the operators in the pooling layer should also be related to the dimension of the input data.
  • the dimensionality of the data output after processing by the pooling layer can be smaller than the dimensionality of the data input to the pooling layer.
  • Each sampling point in the data output by the pooling layer represents the average or maximum value of the corresponding subregion of the data input to the pooling layer. .
  • the purpose of the upsampling layer is to increase the dimensionality of the input data.
  • the principle of upsampling is to insert new elements between the elements based on the original input data.
  • the output layer 240 can have a loss function similar to the classification cross entropy, which is specifically used to calculate the prediction error of the denoising autoencoder.
  • the denoising autoencoder 200 shown in FIG. 2 is only used as an example of a denoising autoencoder. In specific applications, the denoising autoencoder may also exist in the form of other network models.
  • FIG. 6 is a hardware structure of a chip provided by an embodiment of the present invention.
  • the chip includes a neural network processor 30.
  • the chip can be set in the execution device 110 as shown in FIG. 4 to complete the calculation work of the calculation module 171.
  • the chip may also be set in the training device 120 shown in FIG. 4 to complete the training work of the training device 120 and output the target noise reduction autoencoder 101.
  • the algorithms of each layer in the noise reduction autoencoder as shown in FIG. 5 can be implemented in the chip as shown in FIG. 6.
  • the neural network processor 30 may be any processor suitable for large-scale XOR operation processing such as NPU, TPU, or GPU.
  • NPU can be mounted on the host CPU (Host CPU) as a coprocessor, and the host CPU assigns tasks to it.
  • the core part of the NPU is the arithmetic circuit 303.
  • the arithmetic circuit 303 is controlled by the controller 304 to extract matrix data in the memory (301 and 302) and perform multiplication and addition operations.
  • the arithmetic circuit 303 includes multiple processing units (Process Engine, PE). In some implementations, the arithmetic circuit 303 is a two-dimensional systolic array. The arithmetic circuit 303 may also be a one-dimensional systolic array or other electronic circuits capable of performing mathematical operations such as multiplication and addition. In some implementations, the arithmetic circuit 303 is a general-purpose matrix processor.
  • the arithmetic circuit 303 fetches the weight data of the matrix B from the weight memory 302 and caches it on each PE in the arithmetic circuit 303.
  • the arithmetic circuit 303 fetches the input data of matrix A from the input memory 301, and performs matrix operations based on the input data of matrix A and the weight data of matrix B, and the partial or final result of the obtained matrix is stored in the accumulator 308 .
  • the unified memory 306 is used to store input data and output data.
  • the weight data is directly transferred to the weight memory 302 through the direct memory access controller (DMAC, Direct Memory Access Controller) 305 of the storage unit.
  • the input data is also transferred to the unified memory 306 through the DMAC.
  • DMAC Direct Memory Access Controller
  • the bus interface unit (BIU, Bus Interface Unit) 310 is used for the interaction between the DMAC and the instruction fetch buffer (Instruction Fetch Buffer) 309; the bus interface unit 301 is also used for the instruction fetch memory 309 to obtain instructions from the external memory; the bus interface unit 301 also The storage unit access controller 305 obtains the original data of the input matrix A or the weight matrix B from the external memory.
  • the DMAC is mainly used to transfer the input data in the external memory DDR to the unified memory 306, or to transfer the weight data to the weight memory 302, or to transfer the input data to the input memory 301.
  • the vector calculation unit 307 has multiple arithmetic processing units, if necessary, further processing the output of the arithmetic circuit 303, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison and so on.
  • the vector calculation unit 307 is mainly used for calculation of non-convolutional layers or fully connected layers (FC, fully connected layers) in the neural network. Specifically, it can process: Pooling (pooling), Normalization (normalization), etc. calculations.
  • the vector calculation unit 307 may apply a nonlinear function to the output of the arithmetic circuit 303, such as a vector of accumulated values, to generate the activation value.
  • the vector calculation unit 307 generates a normalized value, a combined value, or both.
  • the vector calculation unit 307 stores the processed vector to the unified memory 306.
  • the vector processed by the vector calculation unit 307 can be used as the activation input of the arithmetic circuit 303, for example, for use in subsequent layers in a neural network, as shown in FIG. 2, if the current processing layer is a hidden layer 1 (231), the vector processed by the vector calculation unit 307 can also be used for calculation in the hidden layer 2 (232).
  • the instruction fetch buffer 309 connected to the controller 304 is used to store instructions used by the controller 304;
  • the unified memory 306, the input memory 301, the weight memory 302, and the fetch memory 309 are all On-Chip memories.
  • the external memory is independent of the NPU hardware architecture.
  • the calculation of each layer in the noise reduction autoencoder shown in FIG. 5 can be executed by the arithmetic circuit 303 or the vector calculation unit 307.
  • FIG. 7A is a schematic flowchart of a method for training a noise-reducing autoencoder according to Embodiment 1 of the present invention
  • FIG. 7B is a schematic explanatory diagram of a method for training a noise-reducing autoencoder according to Embodiment 1 of the present invention.
  • the method can be specifically executed by the training device 120 shown in FIG. 3.
  • steps S702-S706 in the method may also be pre-executed by other functional modules before the training device 120, that is, the data of the original samples received or obtained from the database 130 is preprocessed to obtain training samples
  • the training device executes S708 and S710 through the training samples to train the noise-reducing autoencoder.
  • the method may be processed by the CPU, or may be processed by the CPU and a processor suitable for neural network calculations (the neural network processor 30 shown in FIG. 6) together to process the neural network processor shown in FIG. 6 30.
  • a processor suitable for neural network calculations the neural network processor 30 shown in FIG. 6 -6 together to process the neural network processor shown in FIG. 6 30.
  • This application is not restricted.
  • the method may include some or all of the following steps:
  • S702 Superimpose the noise-free ECG signal and the EMG noise signal to obtain a synthesized ECG signal, where the signal-to-noise ratio (SNR) of the noise-free ECG signal is not less than the first Threshold, noise-free ECG signal includes M beat ECG signal, each beat ECG signal contains a QRS complex, H is an integer greater than 1.
  • SNR signal-to-noise ratio
  • the noise-free ECG signal may be an ECG signal collected by an ECG acquisition device when the person is in a static state.
  • the noise-free ECG signal may include the H-beat ECG signal, which is a series of sampling points sorted by time, and the value of the sampling point represents the intensity of the electrical signal on the surface of the organism when the sampling point is collected.
  • the noise-free ECG signal in the embodiments of the present application refers to the ECG signal that contains no or almost no EMG noise, but it is not excluded that the noise-free ECG signal includes such as power frequency noise, baseline drift or other noise, etc. .
  • the signal-to-noise ratio of the noise-free ECG signal is not less than the first threshold, and the first threshold can be a fixed value greater than 10db, such as 10db, 15db, 20db or 40db, etc., or it can be based on the power of the noise-free ECG signal It is determined, for example, that the first threshold is such that the signal-to-noise ratio of the noise-free ECG signal is equal to the second threshold.
  • the signal-to-noise ratio may specifically be the ratio of the power of the noise-free ECG signal to the power of myoelectric noise, or the ratio of the power of the noise-free ECG signal to the power of the noise.
  • the noise-free ECG signal and the EMG noise signal have the same sampling frequency and length.
  • One way to generate a synthetic ECG signal may be to superimpose the EMG noise signal and the noise-free ECG signal, that is, to synthesize
  • the amplitude of the ECG signal is the sum of the amplitude of the noise-free ECG signal and the amplitude of the EMG noise signal, or the weighted sum of the amplitude of the noise-free ECG signal and the amplitude of the EMG noise signal, also There may be other superposition methods, which are not limited in the embodiment of the present application. In specific calculations, the value of the k-th sampling point in the synthesized ECG signal is equal to the sum of the value of the k-th sampling point in the noise-free ECG signal and the value of the k-th sampling point in the noise signal.
  • a sample composed of a synthetic ECG signal and a noise-free ECG signal corresponding to the synthetic ECG signal is called an original sample, and multiple original samples constitute an original sample set.
  • the noise signals used in the synthesized ECG signals superimposed on different original samples may be different or the same, and there is no limitation on this.
  • the length of an ECG signal refers to the duration of the ECG signal. In the embodiment of the present application, the length of the ECG signal may be 5-10 minutes or longer. Or shorter, not limited here.
  • the number of sampling points in the ECG signal is related to the sampling frequency and the length of the ECG signal. Two signals with the same length at the same sampling frequency have the same number of sampling points.
  • the noise-free ECG signal may be preprocessed before superimposing and generating the synthesized ECG signal.
  • the preprocessing process may include wavelet transform (wavelet transform, WT) to remove the central electrical signal of the noiseless ECG signal. Noise outside the signal band. It is also possible to perform wavelet transformation on the synthesized ECG signal after superposing and generating the synthesized ECG signal, which is not limited in the embodiment of the present application. It should be understood that the frequency band of the ECG signal is generally between 0.05-60Hz, and the frequency of myoelectric noise is mainly concentrated in 0.01-100Hz.
  • Wavelet transform can be used to remove the noise signal outside the ECG signal band (0-0.05Hz and above 60H) In order to reduce the difficulty of the later noise reduction process, the specific implementation of wavelet transform is the prior art, which will not be repeated here.
  • the synthetic ECG signal in the original sample may be the ECG signal processed by wavelet transform, and meanwhile, the noise-free ECG signal corresponding to the synthetic ECG signal may be the ECG signal processed by the wavelet transformation.
  • S704 Decompose the synthesized ECG signal into a reference ECG signal and a noisy residual ECG signal by using an average beat subtraction method.
  • the first implementation of S704 may specifically include the following steps:
  • S7041 Perform average processing on the W beat ECG signal in the target ECG signal to obtain the second average ECG signal, where the target ECG signal can be a synthetic ECG signal, a noiseless ECG signal or from the first user (That is, users who have been collected to obtain a noise-free ECG signal) historically collected ECG signals, etc., W ⁇ H, W is a positive integer.
  • the W beat ECG signal used to generate the second average ECG signal in S7041 can be derived from a synthetic ECG signal, a noise-free ECG signal, or from the first user (that is, a noise-free ECG signal that is collected) User) historically collected ECG signals, etc.
  • the W-beat ECG signal may be a continuous W-beat ECG signal, or a discontinuous or partially continuous multi-beat ECG signal.
  • the training device performs signal averaging on the W-beat ECG signal, it is necessary to ensure that the position of the W-beat ECG signal is aligned, and further, the aligned W-beat ECG signal is superimposed and averaged.
  • the electrical signal is illustrated by taking the average processing of the W beat ECG signal to obtain the second average ECG signal as an example.
  • the specific implementation of the above-mentioned second average ECG signal may be:
  • Second average ECG signal It is obtained by averaging the W beat ECG signal in the target ECG signal. which is:
  • Ak represents the ECG signal in the interval of ⁇ t taken from the left and right sides of the W-beat ECG signal with R k as the center
  • R k is the apex of the QRS complex in the W-beat ECG signal
  • k 1,2 whilW.
  • the second average ECG signal and the ECG signal in the ⁇ t interval may include V sampling points, where V is a positive integer greater than 1, and the signal average may be obtained by the formula:
  • a k (v) is the value of the v-th sampling point in the ECG signal in the ⁇ t interval with R k as the center in the W beat ECG signal, 1 ⁇ v ⁇ V,1 ⁇ k ⁇ W, v,k are positive integers.
  • the second average ECG signal obtained by the implementation method 1 is different, and the reference ECG signal obtained by the second average ECG signal in the implementation method 1 is also different.
  • This implementation method 1 adaptively selects the reference ECG signal for different synthetic ECG signals, and the obtained reference ECG signal can extract the obvious characteristics of the synthetic ECG signal, so that the target noise reduction autoencoder obtained by training can be adapted Different ECG signals, thereby improving the noise reduction performance of the target noise reduction autoencoder.
  • signal averaging can reduce the noise of the ECG signal.
  • the second average ECG signal is a one-beat ECG signal after noise reduction processing.
  • the reference ECG signal obtained from the second average ECG signal can be considered to contain no EMG noise, and the average amplitude of the R peak of the target ECG signal is retained, and the reference ECG signal obtained above is for a specific
  • the synthetic ECG signal is generated, which can more accurately represent the obvious characteristics of the synthetic ECG signal.
  • Average ECG signal in the second It is obtained by averaging the W beat ECG signal in the noiseless ECG signal. Since the synthetic ECG signal is synthesized by the noise-free ECG signal and the noise signal, the noise-free ECG signal has the same characteristics as the R peak position and RR distance of the synthesized ECG signal, so it is combined with the synthesized ECG signal. Compared with the second average ECG signal obtained by averaging, the second average ECG signal obtained by averaging the noiseless ECG signal has less noise and EMG noise, and then more EMG noise is retained to contain noise In the remaining ECG signal, the trained target noise reduction autoencoder can learn the noise reduction function for this part of the EMG noise.
  • Average ECG signal in the second It is obtained by averaging the W-beat ECG signals from the historically collected ECG signals of the first user. For the ECG signal of the same user, the same second average ECG signal is used.
  • the reference ECG signal generated by the second average ECG signal obtained in this way takes into account individual differences, so that the reference ECG signal can more accurately represent the obvious characteristics of the synthesized ECG signal. For the reference ECG signal obtained by the same user, only A calculation is required to improve calculation efficiency.
  • the training device can detect the R peak of each beat of the ECG signal in the W beat ECG signal in the target ECG signal (that is, the apex of the R wave), and the R peak is the highest energy value in the beat of the ECG signal Sampling point.
  • S7045 Perform average processing on the W beat ECG signal in the target ECG signal to obtain the second average ECG signal.
  • the R peak of the second average ECG signal includes the ECG signal of ⁇ t1 on the left side and the ECG signal of ⁇ t2 on the right side.
  • the target ECG signal can be a synthetic ECG signal, a noiseless ECG signal, or a historically collected ECG signal from the first user (that is, the user who has been collected to obtain the noiseless ECG signal), etc.
  • W ⁇ H and W are positive integers.
  • a specific implementation of S7045 can be to select the ECG signal in the interval obtained by taking the R peak as the reference to the left and right taking ⁇ t2 for each beat of the W beat ECG signal to obtain W ECG signals Fragment. Furthermore, the W ECG signal segments are averaged to obtain a second average ECG signal.
  • each ECG signal segment includes a QRS complex, and the R peak position of all ECG signal segments has the same distance from the starting position of the ECG signal segment where it is located, that is, W ECG signal segments have the same R peak The number of sampling points on both sides are the same to ensure that the W ECG signal segments are aligned.
  • the selected W ECG signal segments of length L may also include P waves, QRS complexes, and T waves; or include P waves, QRS complexes, and so on.
  • the selected W ECG signal segments all include V sampling points, where the R peaks are all located at the Z-th sampling point, V and Z are integers greater than 1, and Z is less than V.
  • C k represents the ECG signal in the interval obtained by taking R k as the reference ⁇ t1 and ⁇ t2 in the W-beat ECG signal
  • R k is the apex of the QRS complex in the W-beat ECG signal
  • k 1, 2 ...W.
  • Ak represents the ECG signal in the interval of ⁇ t taken from the left and right sides of the W-beat ECG signal with R k as the center
  • R k is the apex of the QRS complex in the W-beat ECG signal
  • k 1,2 whilW.
  • the second average ECG signal and the ECG signal in the ⁇ t interval may include V sampling points, where V is a positive integer greater than 1, and the signal average may be obtained by the formula:
  • C k (v) is the value of the v-th sampling point in the ECG signal in the interval obtained by taking R k as the reference ⁇ t1 in the W beat ECG signal, 1 ⁇ v ⁇ V, 1 ⁇ k ⁇ W, v and k are positive integers.
  • the training device can divide the W-beat ECG signal from the target ECG signal, and then detect the R peak of each beat of the ECG signal in the W-beat ECG signal,
  • the R peak is the sampling point with the largest amplitude in the one-beat ECG signal; furthermore, the W-beat ECG signal is aligned based on the R peak.
  • the number of sampling points at each position is not Is greater than W, and then the aligned W beat ECG signals are averaged to obtain a second average ECG signal.
  • the average amplitude of one or more sampling points at each position can be calculated, the average amplitude of each position can be calculated, and the average ECG signal can be obtained, and then the average ECG signal is selected based on R k ⁇ t1 takes the ECG signal in the interval obtained by ⁇ t2 to the right to obtain the second average ECG signal.
  • the position of the R peak in the divided N-beat ECG signal may be different, and the length of the N-beat ECG signal may be the same or different.
  • Average ECG signal The value of the v-th sampling point in can be expressed as: among them, Average ECG signal
  • D k (v) is the value of the sampling point at position v in the W-beat ECG signal with R k as the location, 1 ⁇ v ⁇ V, 1 ⁇ k ⁇ W, v and k are positive integers. If there is no sampling point distribution at position v in the ECG signal D k , then D k (v) is zero.
  • the first implementation described above is a special case of the second implementation.
  • signal averaging can reduce the noise of the ECG signal.
  • the second average ECG signal is a one-beat ECG signal after noise reduction processing.
  • the reference ECG signal generated by the second average ECG signal can be considered to contain no EMG noise, and the reference ECG signal obtained above is generated for a specific synthetic ECG signal, which can more accurately represent the synthetic ECG The distinctive feature of the signal.
  • the synthetic ECG signal is obtained by synthesizing the noise-free ECG signal and the noise signal.
  • the first average ECG signal obtained by averaging the noise-free ECG signal The two-average ECG signal has less EMG noise, and more EMG noise is retained in the noisy residual ECG signal, so that the trained target noise reduction autoencoder can learn to deal with this part of EMG noise The noise reduction function.
  • the R peak position of the reference ECG signal obtained by the average beat subtraction is the same as the R peak position of the synthesized ECG signal.
  • the reference ECG signal has the same R peak position and R-R interval as the synthetic ECG signal.
  • the embodiment of the present application takes a specific implementation of S7046 as an example for description. It should be understood that the above-mentioned first implementation is a special case of the second implementation, and the specific implementation of S7042 can refer to the implementation of S7046, which will not be repeated here. Please also refer to the schematic diagram of the principle of calculating the reference ECG signal shown in FIG. 7C.
  • a specific implementation of S7046 may include but is not limited to the following steps:
  • S70461 Detect the R peak position of the synthetic ECG signal and the R peak position of the second average ECG signal.
  • S70462 Obtain H signal segments according to the second average ECG signal, the R peak position in the synthesized ECG signal, and the R peak position of the second average ECG signal, and the H signal segments are the same as the second average ECG signal And the R peak position of the h-th signal segment in the H signal segments is equal to the h-th R peak position in the synthesized ECG signal, h is a positive integer, and h is not greater than the total R peak in the synthesized ECG signal Number.
  • the second average ECG signal is aligned with each beat of the composite ECG signal, and the second average ECG signal aligned with the R peak position in the composite ECG signal is called It should be understood that, relative to the second average ECG signal, the position of each sampling point in the signal segment moves as a whole, but its waveform remains unchanged.
  • the interval between any two adjacent R peaks in the synthetic ECG signal may be different, and the length of the second average ECG signal may be greater than the length of an RR interval, or may be less than the length of an RR interval. length. At this time, two adjacent signal segments may partially overlap or have a certain distance.
  • S70463 Generate a reference ECG signal according to the H signal segments, where the value of the sampling point of the reference ECG signal at the third position is the value of the sampling point of the third signal segment at the third position and the value of the fourth signal segment at the third position.
  • the average of the value of the sampling point at the position, the third position is the position where there are multiple sampling points in the H signal fragments, the third signal fragment and the fourth signal fragment are the H signal fragments with the sampling point at the third position
  • Two signal segments; the value of the sampling point of the reference ECG signal at the fourth position is obtained by interpolating the values of the two closest sampling points to the fourth position in the multiple signal segments, and the third position is H signals Where the segments overlap, the fourth position is the position between H signal segments.
  • the interpolation algorithm is an existing technology, and will not be repeated here.
  • the value of the sampling point of the reference ECG signal at the third position may be the value of the sampling point of the third signal segment at the third position or the value of the sampling point of the fourth signal segment at the third position.
  • the value of the sampling point of the reference ECG signal at the fourth position can also be set to 0, which is not limited here.
  • S7043 and S7047 remove the reference ECG signal from the synthesized ECG signal to obtain the noisy residual ECG signal.
  • the synthesized ECG signal, the noise-free ECG signal, the reference ECG signal, the noise-containing residual ECG signal, and the noise-free residual ECG signal all include the same number of sampling points.
  • Remove the reference ECG signal from the synthetic ECG signal, that is, the value of the sample point in the synthetic ECG signal is subtracted from the value of the sample point in the reference ECG signal, that is, the residual ECG signal with noise
  • the value of the xth sampling point is equal to the difference between the value of the xth sampling point in the synthetic ECG signal and the value of the xth sampling point in the reference ECG signal.
  • removing the reference ECG signal from the noise-free ECG signal means that the value of the sample point in the noise-free ECG signal is subtracted from the value of the sample point in the reference ECG signal, that is, the noise-free ECG signal
  • the value of the xth sample point in the remaining ECG signal is equal to the difference between the value of the xth sample point in the noise-free ECG signal and the value of the xth sample point in the reference ECG signal.
  • x is the index of the sampling point
  • x is a positive integer
  • x is not greater than the total number of sampling points in the synthesized ECG signal.
  • Synthetic ECG signal X q The noisy residual ECG signal obtained after removing the reference ECG signal The length meets the length requirement of the input data of the noise reduction autoencoder. At this time, the noisy residual ECG signal And noiseless residual ECG signal The formed samples are called training samples, among which, the synthetic ECG signal X q is obtained by superimposing the noise-free ECG signal Y q with the EMG noise signal, and the noise-free residual ECG signal It is the signal obtained after the noise-free ECG signal Y q is removed from the reference ECG signal.
  • the original sample corresponds to the training sample one to one. Multiple training samples constitute a training sample set. This training sample set is used to train the noise reduction autoencoder.
  • a training sample in the training sample set can be expressed as Among them, q is the index of the original sample in the original sample set, which is also the index of the training sample in the training sample set in this implementation; the training sample set includes Q training samples, q and Q are positive integers, and q ⁇ Q.
  • the noisy residual ECG signal in the training sample may be obtained by normalizing the noisy residual ECG signal obtained by decomposition, and the normalization method may be maximum-minimum normalization , Or other normalization methods, here, take the maximum and minimum value normalization as an example to illustrate:
  • Is the noisy residual ECG signal in the training sample To decompose the noisy residual ECG signal, Is the minimum signal strength of the noisy residual ECG signal in the training sample, Is the maximum signal strength in the noisy residual ECG signal in the training sample.
  • the noise-free residual ECG signal in the training sample is obtained by normalizing the noise-free residual ECG signal obtained by decomposition.
  • the maximum and minimum value normalization as an example to illustrate:
  • Is the noise-free residual ECG signal in the training sample Is the minimum signal strength of the noise-free residual ECG signal in the training sample, Is the maximum signal strength of the noise-free residual ECG signal in the training sample.
  • a training sample in the training sample set can be expressed as
  • the training device may also preprocess the training samples before inputting the training samples to the denoising autoencoder.
  • the preprocessing process may include normalization. Operations can also include other operations, which are not limited here.
  • Synthetic ECG signal X q The noisy residual ECG signal obtained after removing the reference ECG signal The length of is far greater than the length of the input data required by the noise reduction autoencoder. At this point, the noisy residual ECG signal in the original sample can be And noiseless residual ECG signal Carry out cutting, and cut the noisy residual ECG signal slices Meet the length of the input data required by the noise reduction autoencoder.
  • the synthesized ECG signal X q is obtained by superimposing the noise-free ECG signal Y q with the EMG noise signal, and the noise-free residual ECG signal It is the signal obtained by removing the reference ECG signal from the noise-free ECG signal Y q , and e is the noise-free residual ECG signal slice obtained from Q noise-free residual ECG signal slices.
  • Index, e and E are positive integers, e ⁇ E. It should be understood that noisy residual ECG signal Multiple slices of noisy residual ECG signal and noiseless residual ECG signal obtained by cutting The multiple noiseless residual ECG signals obtained by cutting correspond one to one.
  • the formed samples are called training samples.
  • E training samples form the training sample set.
  • one training sample in the training sample set can be expressed as Among them, e is also called the index of the training sample in the training sample set.
  • one original sample can correspond to multiple training samples.
  • Multiple training samples constitute a training sample set.
  • the training sample set is used to train the noise reduction autoencoder to obtain the target noise reduction autoencoder.
  • steps S702-S706 may also be executed by other equipment before the training device, or may be executed by the training device.
  • the training device can generate multiple training samples.
  • the multiple training samples can be divided into a training sample set and a test sample set.
  • the training device can use the training sample set to train the noise-reducing autoencoder, where the noisy residual ECG signal is Training input, the noise-free residual ECG signal corresponding to the noisy residual ECG signal is the training label, and finally the target noise reduction autoencoder is obtained.
  • the training device can use the test sample set to test the trained target denoising autoencoder to evaluate the robustness and generalization ability of the target denoising autoencoder.
  • the embodiment of the present application takes the training sample set described in the foregoing implementation (1) as an example for illustration.
  • step S708 may also be in the form in the foregoing implementation (2) or other forms, which will not be repeated here.
  • specific implementation of the training device using the training samples to train the noise reduction autoencoder may include the following steps:
  • S708 Input the noisy residual ECG signal into the noise reduction autoencoder to obtain the predicted residual ECG signal.
  • the denoising autoencoder is the initialized neural network or the denoising autoencoder updated during the training process.
  • the embodiment of this application takes the training sample as As an example, the residual ECG signal with noise Input to the noise reduction autoencoder, and the noise reduction autoencoder Process to get predicted residual ECG signal
  • S710 Update the parameters of the noise reduction autoencoder according to the error between the predicted residual ECG signal and the noise-free residual ECG signal to obtain the target noise reduction autoencoder.
  • one training sample may be used in one training process of the noise reduction autoencoder, or multiple training samples or all training samples may be used, which is not limited in the embodiment of the present application.
  • the target denoising autoencoder is a denoising autoencoder trained through the training sample set.
  • the embodiment of this application takes Q training samples as an example, where U is a positive integer not greater than Q, and the training device can determine Q according to the error between the predicted residual ECG signal and the noise-free residual ECG signal of each training sample
  • the parameters of the denoising autoencoder are updated through the optimization algorithm, so that the loss becomes smaller and smaller.
  • the optimization algorithm may be gradient descent, Adam algorithm or other optimization algorithms, which are not limited in the embodiment of the present application.
  • the loss function is used to calculate the loss corresponding to Q training samples.
  • the loss function can be the error between the predicted residual ECG signal and the noise-free residual ECG signal, where the predicted residual ECG signal and the noise-free residual ECG signal.
  • the error of the electrical signal can be the mean absolute error (MAE), mean squared error (MSE), or root mean squared error between the predicted residual ECG signal and the noise-free residual ECG signal. Error, RMSE), etc., can also be used to predict the cross entropy of the residual ECG signal and the noise-free residual ECG signal, and can also have other forms, which are not limited in this application.
  • the loss function L can be expressed by predicting the average absolute error between the residual ECG signal and the noise-free residual ECG signal, then:
  • the above method does not directly use the synthetic ECG signal for the training of the noise reduction autoencoder, but first removes the reference ECG signal including the R peak position and other obvious features from the synthetic ECG signal, and the reference ECG signal remains The obvious characteristics of the synthesized ECG signal, such as the R peak position, the average amplitude of the R peak, etc., are used to avoid the distortion of the ECG signal; the noisy residual ECG signal obtained after the synthetic ECG signal is removed from the reference ECG signal.
  • the noise reduction autoencoder in the embodiment of the present application only needs to extract the encoding representation of the detailed information of the ECG signal.
  • FIG. 7D is a schematic flowchart of another method for training a noise reduction autoencoder according to Embodiment 2 of the present invention.
  • the method can be specifically executed by the training device 120 shown in FIG. 3.
  • steps S712-S716 in the method may also be pre-executed by other functional modules before the training device 120, that is, the data of the original samples received or obtained from the database 130 is preprocessed to obtain training samples
  • the training device executes S718 and S720 through the training samples to train the noise reduction autoencoder.
  • the method may be processed by the CPU, or may be processed by the CPU and a processor suitable for neural network calculations (the neural network processor 30 shown in FIG. 6) together to process the neural network processor shown in FIG. 6 30.
  • This application is not restricted.
  • the method may include some or all of the following steps:
  • the noise-free ECG signal may include a multi-beat ECG signal H-beat ECG signal, each beat ECG signal contains a QRS complex, and H is an integer greater than 1.
  • S714 Decompose the noise-free ECG signal into a reference ECG signal and a noise-free residual ECG signal by using an average beat subtraction method.
  • S7141 Perform average processing on the W beat ECG signal in the target ECG signal to obtain a second average ECG signal, where the target ECG signal can be a synthetic ECG signal, a noiseless ECG signal or from the first user (That is, users who have been collected to obtain a noise-free ECG signal) historically collected ECG signals, etc., W ⁇ H, W is a positive integer.
  • S7142 Replace the second average ECG signal with A j corresponding to the H-beat ECG signal in the noise-free ECG signal to obtain the reference ECG signal.
  • a j represents the H-beat ECG signal with ⁇ t as the center of R j.
  • the second implementation of S714 may specifically include but is not limited to the following steps:
  • the training device can detect the R peak of each beat of the ECG signal in the W beat ECG signal in the target ECG signal (that is, the apex of the R wave), and the R peak is the maximum energy value in the beat of the ECG signal Sampling point.
  • the synthesized ECG signal, the noise-free ECG signal, the reference ECG signal, the noise-containing residual ECG signal, and the noise-free residual ECG signal all include the same number of sampling points.
  • Remove the reference ECG signal from the synthetic ECG signal, that is, the value of the sample point in the synthetic ECG signal is subtracted from the value of the sample point in the reference ECG signal, that is, the residual ECG signal with noise
  • the value of the xth sampling point is equal to the difference between the value of the xth sampling point in the synthetic ECG signal and the value of the xth sampling point in the reference ECG signal.
  • S718 Input the noisy residual ECG signal into the noise reduction autoencoder to obtain the predicted residual ECG signal.
  • S720 Update the parameters of the noise reduction autoencoder according to the error between the predicted residual ECG signal and the noise-free residual ECG signal to obtain the target noise reduction autoencoder.
  • FIG. 8A is a schematic flowchart of an ECG signal noise reduction method according to Embodiment 2 of the present invention
  • FIG. 8B is a schematic explanatory diagram of an ECG signal noise reduction method according to Embodiment 2 of the present invention.
  • the target noise reduction autoencoder obtained by training in the first embodiment realizes the noise reduction of the ECG signal to be denoised.
  • the method may be specifically executed by the execution device 110 shown in FIG. 3, and the ECG signal to be denoised in the method may be the input data given by the user device 140 shown in FIG.
  • the preprocessing module 113 can be used to execute the signal superimposing module 114 in the execution device 110 in S802-S804 of the method 800 to execute S808 in the method 800, and the calculation module 111 in the execution device 110 can Used to execute the S806.
  • the method 800 may be processed by a CPU, or a CPU and a processor suitable for neural network calculation (for example, the neural network processor 30 shown in FIG. 6), which is not limited in this application.
  • the ECG signal noise reduction method 800 may include but is not limited to some or all of the following processes:
  • the user equipment may send the ECG signal to be noise-reduced to the execution device, requesting the execution device to reduce the noise of the ECG signal to be noise-reduced.
  • the execution device may also collect the user's ECG signal in real time through the ECG device, and the ECG signal of the preset length collected in real time is the ECG signal to be noise-reduced.
  • the preset length is the length required by the noise reduction autoencoder for input data.
  • the ECG signal to be denoised can be preprocessed.
  • the preprocessing can include but is not limited to operations such as wavelet transform.
  • the ECG signal to be denoised in the following steps is the preprocessed ECG signal.
  • the execution device can perform wavelet transform on the ECG signal to be denoised to remove the noise outside the frequency band of the central electrical signal of the ECG signal to be denoised, so as to reduce the difficulty of the later noise reduction process.
  • the specific implementation of wavelet transform is the existing technology, here No longer.
  • the execution device may be a wearable device or terminal equipped with an ECG sensor, such as a smart bracelet, smart watch, etc.
  • an ECG sensor such as a smart bracelet, smart watch, etc.
  • S802 a specific implementation of S802 may be: The sensor collects the analog ECG signal on the surface of the user's skin; further, the analog ECG signal is processed through the digital-to-analog conversion module to obtain a digital ECG signal to be denoised.
  • the execution device may be a server or a terminal, etc.
  • a specific implementation of S802 may be: the execution device receives the ECG signal to be noise-reduced sent by the ECG acquisition device.
  • the ECG acquisition device may be a wearable device or a terminal equipped with an ECG sensor.
  • a wearable device collects the ECG signal of the wearer, and the ECG signal is the ECG signal to be noise-reduced.
  • the smart watch can send the signal to the terminal (such as a mobile phone) bound to it through Bluetooth.
  • Noise reduction ECG signal the mobile phone receives the ECG signal to be noise reduction.
  • the mobile phone After the mobile phone receives the ECG signal to be noise-reduced, it can perform noise reduction processing on the ECG signal to be noise-reduced; it can also send the ECG signal to be noise-reduced to the server, and the server implements the ECG signal to be noise-reduced Perform noise reduction processing.
  • S804 Decompose the ECG signal to be denoised into the reference ECG signal to be denoised and the remaining ECG signal to be denoised by using the average beat subtraction method.
  • the first implementation of S804 may specifically include the following steps:
  • S8041 Perform averaging processing on the N-beat ECG signal in the ECG signal to be noise-reduced to obtain the first average ECG signal, where N is less than M, and N is a positive integer.
  • the N-beat ECG signal used to generate the first average ECG signal in S8041 may be a continuous N-beat ECG signal in the ECG signal to be denoised, or it may be a discontinuous or partially continuous N-beat ECG signal. electric signal.
  • the N-beat ECG signal needs to be aligned, and then the aligned multi-beat ECG signal is superimposed and averaged, and the specific implementation is the same as that described in S704 above.
  • the specific implementation principles of the two average electrocardiogram signals are similar, and can refer to the related descriptions in the foregoing implementation 1 and implementation 2, which will not be repeated here.
  • implementation 1 of the first average ECG signal may be:
  • Second average ECG signal It is obtained by averaging the W beat ECG signal in the target ECG signal. which is:
  • the first average ECG signal and the ECG signal in the ⁇ t interval may include V sampling points, where V is a positive integer greater than 1, and the signal average may be obtained by the formula:
  • the first average ECG signals obtained through implementation 4 are different, and the reference ECG signals obtained through the first average ECG signal in implementation 1 are also different.
  • This implementation manner 4 adaptively selects the reference ECG signal for different ECG signals to be denoised, and the obtained reference ECG signal can more accurately extract the obvious features of the ECG signal to be denoised, and then the denoised ECG signal
  • the ECG signal can better retain the obvious features of the ECG signal to be noise-reduced, reduce the distortion of the ECG signal after noise reduction, and improve the quality of the ECG signal after noise reduction.
  • the obtained first average ECG signals are different, and the reference ECG signals obtained from the first average ECG signals are also different.
  • the reference ECG signal is adaptively selected for different ECG signals to be denoised, and the obtained reference ECG signal can more accurately extract the obvious features of the ECG signal to be denoised, thereby reducing
  • the noisy ECG signal can better retain the obvious features of the ECG signal to be denoised, reduce the distortion of the ECG signal after noise reduction, and improve the quality of the ECG signal after noise reduction.
  • Implementation mode 2 of the first average ECG signal may be:
  • First average ECG signal It is obtained by averaging the N-beat ECG signals from the historically collected ECG signals of the second user (the user whose ECG signals to be denoised is collected).
  • the specific calculation method is the same as that of the above-mentioned first average electrocardiogram signal implementation manner 1, please refer to the related description in the above-mentioned implementation manner 1, which will not be repeated here.
  • the same first average ECG signal is used.
  • the implementation manner 5 obtains the reference ECG signal to be denoised generated by the first average ECG signal, taking into account individual differences, so that the reference ECG signal to be denoised can more accurately represent the obvious characteristics of the ECG signal to be denoised, relatively
  • the reference ECG signal to be noise-reduced obtained by the same user only one calculation is required, which improves the calculation efficiency.
  • the second implementation of S804 may specifically include but not limited to the following steps:
  • S8044 Detect the R peak of each beat of the ECG signal in the N-beat ECG signal in the ECG signal to be noise-reduced (that is, the apex of the R wave), and the R peak is the sample with the largest energy value in one beat of the ECG signal point.
  • S8045 Perform averaging processing on the N-beat ECG signal in the ECG signal to be noise-reduced to obtain the first average ECG signal.
  • the R peak of the first average ECG signal includes the ECG signal of ⁇ t3 on the left side and the heart signal of ⁇ t4 on the right side.
  • Electric signal, N ⁇ M, N is a positive integer.
  • a specific implementation of S8045 can be to select the ECG signal in the interval obtained by taking the R peak as the reference to the left and right taking ⁇ t4 for each beat of the N-beat ECG signal to obtain N ECG signals Fragment. Furthermore, the N ECG signal segments are averaged to obtain the first average ECG signal. Among them, each ECG signal segment includes a QRS complex, and the R peak position of all ECG signal segments has the same distance from the starting position of the ECG signal segment where it is located, that is, N ECG signal segments have the same R peak The number of sampling points on both sides are the same to ensure alignment of N ECG signal segments.
  • ⁇ t1 may be equal to ⁇ t3 in the first embodiment, and ⁇ t2 may be equal to ⁇ t4 in the first embodiment.
  • ⁇ t1 in the first embodiment may not be equal to ⁇ t3, and ⁇ t2 in the first embodiment may not be equal to ⁇ t4, which is not limited.
  • the R peak position of the reference ECG signal obtained by the average beat subtraction is the same as the R peak position of the synthesized ECG signal.
  • the reference ECG signal has the same R peak position and R-R interval as the synthetic ECG signal.
  • the embodiment of the present application takes a specific implementation of S8046 as an example for illustration. It should be understood that the above-mentioned first implementation is a special case of the second implementation. For the specific implementation of S8042, refer to the implementation of S8046, which will not be repeated here.
  • the principle of calculating the reference ECG signal is the same as in the first embodiment above. Please also refer to the schematic diagram of the principle of calculating the reference ECG signal to be denoised shown in Figure 8C.
  • a specific implementation of S8046 may include but is not limited to the following step:
  • S80461 Detect the R peak position of the ECG signal to be noise-reduced and the R peak position of the first average ECG signal.
  • S80462 Obtain M signal segments according to the first average ECG signal, the R peak position in the ECG signal to be noise-reduced, and the R peak position of the first average ECG signal, and the M signal segments have the same value as the first average ECG signal.
  • the signal has the same waveform, and the R peak position of the h-th signal segment in the M signal segments is equal to the h-th R peak position in the ECG signal to be denoised, h is a positive integer, and h is not greater than the ECG to be denoised The total number of R peaks in the signal.
  • the first average ECG signal is aligned with each beat of the ECG signal to be denoised, and the first average ECG signal is aligned with the R peak position in the ECG signal to be denoised.
  • the average ECG signal is called a signal segment. It should be understood that, relative to the first average ECG signal, the position of each sampling point in the signal segment moves as a whole, but its waveform remains unchanged.
  • the interval between any two adjacent R peaks in the ECG signal to be noise-reduced may be different, and the length of the first average ECG signal may be greater than the length of one RR interval, or may be less than one RR interval. The length of the interval. At this time, two adjacent signal segments may partially overlap or have a certain distance.
  • S80463 Generate a reference ECG signal to be denoised according to the M signal segments, where the value of the sampling point of the reference ECG signal to be denoised at the first position is the value of the sampling point of the first signal segment at the first position and the The average value of the sampling points of the two signal segments at the first position.
  • the first position is the position where there are multiple sampling points in the M signal segments.
  • the first signal segment and the second signal segment are the M signal segments in the first position.
  • the value of the sampling point of the reference ECG signal to be denoised at the second position is interpolated based on the value of the two most adjacent sampling points in the M signal segments It is obtained that the first position is the position including the overlap on the M signal segments, and the second position is the position between the M signal segments.
  • the interpolation algorithm is an existing technology, and will not be repeated here.
  • the value of the sampling point of the reference ECG signal to be denoised at the first position may be the value of the sampling point of the first signal segment at the first position or the second signal segment The value of the sampling point at the first position.
  • the value of the sampling point of the reference ECG signal to be denoised at the second position can also be set to 0, which is not limited here.
  • the method of generating the reference ECG signal to be denoised used by the trained target denoising autoencoder may be consistent with the method of generating the reference ECG signal to be denoised.
  • S8043 or S8047 can be:
  • the ECG signal to be denoised, the reference ECG signal to be denoised, and the remaining ECG signal to be denoised all include the same number of sampling points.
  • the reference ECG signal to be denoised is removed from the ECG signal to be denoised, that is, the value of the sample point in the ECG signal to be denoised is subtracted from the value of the sample point in the reference ECG signal to be denoised. That is, the value of the yth sampling point in the remaining ECG signal to be denoised is equal to the value of the yth sampling point in the ECG signal to be denoised and the value of the yth sampling point in the reference ECG signal to be denoised difference.
  • y is the index of the sampling point
  • y is a positive integer
  • y is not greater than the total number of sampling points in the synthesized ECG signal.
  • a normalization operation may be performed on the remaining ECG signal to be denoised. Whether the normalization operation is required and the target noise reduction autoencoder's requirements for input data are determined.
  • the noisy residual ECG signal in the training sample of the target noise reduction autoencoder is normalized data
  • the residual ECG signal to be denoised is input to the target noise reduction autoencoder.
  • the normalization operation is performed on the remaining ECG signal to be denoised; otherwise, the normalization operation is not required to be performed on the remaining ECG signal to be denoised, which will not be repeated in this embodiment of the application.
  • S806 Input the residual ECG signal to be noise-reduced into the target noise-reduction autoencoder to obtain the residual ECG signal after noise reduction.
  • the ECG signal after noise reduction is the ECG signal to be noise-reduced after noise reduction processing After the ECG signal.
  • the ECG signal obtained by superimposing the reference ECG signal to be noise-reduced and the residual ECG signal after noise reduction that is, the value of the sampling point in the reference ECG signal and the value of the sampling point in the residual ECG signal after noise reduction
  • the value corresponds to the addition, that is, the value of the zth sample point in the denoised ECG signal is equal to the value of the zth sample point in the reference ECG signal to be denoised and the residual ECG signal after noise reduction
  • the value of the zth sampling point in, z is the index of the sampling point, and z is not greater than the total number of sampling points in the ECG signal to be denoised.
  • the reference ECG signal to be denoised including obvious features such as the R peak position of the ECG signal to be denoised, and use the target denoising autoencoder to treat the denoised ECG signal
  • the remaining ECG signal to be de-noised is denoised, avoiding the noise reduction processing of the target denoising autoencoder on the obvious features of the de-noising ECG signal, so that the reference ECG signal to be denoised is
  • the residual ECG signal after noise is superimposed to obtain the noise-reduced ECG signal, which can better retain the R peak position in the ECG signal to be noise-reduced, and reduce the distortion of the ECG signal after noise reduction.
  • FIG. 8D shows the ECG signal to be denoised, the ideal ECG signal (that is, the ECG signal that the ECG signal to be denoised is expected to obtain through noise reduction processing), and the convolutional autoencoder in the prior art
  • the denoised ECG signal obtained after the noise reduction process is performed on the noisy ECG signal, the denoised ECG signal is reduced by the target denoising autoencoder in the embodiment of the present application and the ECG signal denoising method provided in the present application
  • the denoised ECG signal obtained after noise processing It can be seen from FIG.
  • the method of the embodiment of the present application better extracts the detailed features of the ECG signal to be denoised, and reduces the denoised ECG signal. Distortion, improve noise reduction performance.
  • the first embodiment is the training stage of the denoising autoencoder (the stage performed by the training device 120 as shown in FIG. 4), and the specific training adopts any one of the possibilities based on the first embodiment and the first embodiment.
  • the noise reduction autoencoder provided in the implementation manner is performed; and the second embodiment can be understood as the application stage of the target noise reduction autoencoder obtained by training (the stage executed by the execution device 110 as shown in FIG. 4). It can be embodied as adopting the target noise reduction autoencoder trained in the first embodiment, and obtaining the output signal according to the input residual ECG signal to be denoised, that is, the residual ECG signal after noise reduction in the second embodiment. Finally, the remaining ECG signal after noise reduction and the reference ECG signal to be noise-reduced are superimposed to obtain the noise-reduced ECG signal.
  • Fig. 9A is a schematic block diagram of a training device for noise reduction and self-encoding in an embodiment of the present invention.
  • the noise reduction self-encoding training device 90 shown in FIG. 9A (the device 90 may specifically be the training device 120 of FIG. 4), which may include:
  • the superimposing unit 901 is used to superimpose the noise-free ECG signal and the EMG noise signal to obtain a synthetic ECG signal.
  • the noise-free ECG signal includes an H-beat ECG signal, and each beat of the ECG signal includes a QRS complex, H is a positive integer greater than 1, and the signal-to-noise ratio of the noise-free ECG signal is not less than the first threshold;
  • a decomposition unit 902 configured to decompose the synthesized ECG signal into a reference ECG signal and a noisy residual ECG signal by using average beat subtraction;
  • the removing unit 903 is configured to remove the reference ECG signal from the noise-free ECG signal to obtain a noise-free residual ECG signal;
  • the training unit 904 is configured to train the noise-reducing autoencoder according to the noise-containing residual ECG signal and the noise-free residual ECG signal corresponding to the noise-containing residual ECG signal, wherein the noise-containing residual ECG signal is Training input, and the noise-free residual ECG signal corresponding to the noisy residual ECG signal is a training label.
  • the decomposition unit 902 is specifically configured to:
  • the reference ECG signal is removed from the synthetic ECG signal to obtain the noisy residual ECG signal.
  • the decomposing unit 902 performing the averaging processing of the W beat ECG signal in the synthesized ECG signal to obtain the second average ECG signal specifically includes:
  • Ak represents the ECG signal in the W-beat ECG signal that takes R k as the center and takes the left and right ⁇ t intervals
  • R k is the QRS wave in the W-beat ECG signal
  • k 1, 2...W.
  • Fig. 9B is a schematic block diagram of a training device for noise reduction and self-encoding in an embodiment of the present invention.
  • the training device 92 for noise reduction and self-encoding shown in FIG. 9B (the device 92 may specifically be the training device 120 of FIG. 4), which may include:
  • the superimposing unit 921 is used to superimpose the noise-free ECG signal and the EMG noise signal to obtain a synthesized ECG signal.
  • the noise-free ECG signal includes an H-beat ECG signal, and each beat of the ECG signal includes a QRS complex, H is a positive integer greater than 1, and the signal-to-noise ratio of the noise-free ECG signal is not less than the first threshold;
  • the decomposition unit 922 is configured to decompose the noise-free ECG signal into a reference ECG signal and a noise-free residual ECG signal by using average beat subtraction;
  • the removing unit 923 is configured to remove the reference ECG signal from the synthesized ECG signal to obtain a noisy residual ECG signal
  • the training unit 924 is configured to train the noise-reducing autoencoder according to the noise-containing residual ECG signal and the noise-free residual ECG signal corresponding to the noise-containing residual ECG signal, wherein the noise-containing residual ECG signal is Training input, and the noise-free residual ECG signal corresponding to the noisy residual ECG signal is a training label.
  • FIG. 10 is a schematic block diagram of an ECG signal noise reduction device provided by an embodiment of the present invention.
  • the ECG signal noise reduction device 1000 shown in FIG. 10 (the device 1000 may specifically be the execution device 110 of FIG. 4), which may include :
  • the obtaining unit 1001 is configured to obtain an ECG signal to be noise-reduced, where the ECG signal to be noise-reduced includes M beats of the ECG signal, each beat of the ECG signal includes a QRS complex, and M is a positive integer greater than 1;
  • the first decomposition unit 1002 uses average beat subtraction to decompose the ECG signal to be denoised into the reference ECG signal to be denoised and the remaining ECG signal to be denoised;
  • the noise reduction unit 1003 is configured to input the residual ECG signal to be noise-reduced into the target noise reduction autoencoder to obtain the residual ECG signal after noise reduction;
  • the superimposing unit 1004 is configured to superimpose the reference ECG signal to be noise-reduced and the remaining ECG signal after noise reduction to obtain the ECG signal after noise reduction.
  • the first decomposition unit 1002 is specifically configured to:
  • N is less than M, and N is a positive integer
  • the reference ECG signal to be denoised is removed from the ECG signal to be denoised to obtain the remaining ECG signal to be denoised.
  • the first decomposition unit 1002 performing the averaging processing on the N-beat ECG signal in the ECG signal to be noise-reduced to obtain the first average ECG signal specifically includes:
  • B i represents the N ECG beat to about the center R i in the ECG signal from each interval ⁇ t, R i beat from the ECG QRS wave of the N
  • the vertices of the group, i 1, 2...N.
  • the device 1000 may further include some or all of the units in the noise reduction and self-encoding training device 90, 92 shown in FIG. 9A or FIG. 9B, and details are not described herein again.
  • FIG. 11 is a schematic diagram of the hardware structure of a training device for a noise reduction autoencoder provided by an embodiment of the present application.
  • the training device 1100 of the noise reduction autoencoder shown in FIG. 11 includes a memory 1101, a processor 1102, a communication interface 1103, and a bus 1104.
  • the memory 1101, the processor 1102, and the communication interface 1103 implement communication connections between each other through the bus 1104.
  • the memory 1101 may be a read only memory (Read Only Memory, ROM), a static storage device, a dynamic storage device, or a random access memory (Random Access Memory, RAM).
  • the memory 1101 may store a program.
  • the processor 1102 and the communication interface 1103 are used to execute the training method of the noise reduction autoencoder described in Embodiment 1 or Embodiment 2 of this application The various steps.
  • the processor 1102 may adopt a general-purpose central processing unit (Central Processing Unit, CPU), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), graphics processing unit (graphics processing unit, GPU), or one or more
  • the integrated circuit is used to execute related programs to realize the functions required by the units in the training device of the noise reduction autoencoder in this embodiment of the application, or to execute the noise reduction self in the first or second embodiment of the method of this application. Encoder training method.
  • the processor 1102 may also be an integrated circuit chip with signal processing capability. In the implementation process, each step of the training method of the noise reduction autoencoder of this application can be completed by the integrated logic circuit of the hardware in the processor 1102 or instructions in the form of software.
  • the aforementioned processor 1102 may also be a general-purpose processor, a digital signal processor (Digital Signal Processing, DSP), an application specific integrated circuit (ASIC), a ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices , Discrete gates or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processing
  • ASIC application specific integrated circuit
  • FPGA Field Programmable Gate Array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory 1101, and the processor 1102 reads the information in the memory 1101, and combines its hardware to complete the functions required by the units included in the training device for the noise reduction autoencoder in this embodiment of the application, or execute the method of the application The training method of the noise reduction autoencoder of the first embodiment or the second embodiment.
  • the communication interface 1103 uses a transceiver device such as but not limited to a transceiver to implement communication between the device 1100 and other devices or communication networks.
  • a transceiver device such as but not limited to a transceiver to implement communication between the device 1100 and other devices or communication networks.
  • training data (such as the training samples described in Embodiment 1 of the present application) can be obtained through the communication interface 1103.
  • the bus 1104 may include a path for transferring information between various components of the device 1100 (for example, the memory 1101, the processor 1102, and the communication interface 1103).
  • the superimposing units 901 and 921, the decomposing units 902 and 922, the removing units 903 and 923, and the training units 904 and 924 in the training device 90 or 92 of the noise reduction autoencoder may be equivalent to the processor 1102.
  • FIG. 12 is a schematic diagram of the hardware structure of an electrocardiographic signal noise reduction device provided by an embodiment of the present application.
  • the electrocardiographic signal noise reduction device 1200 shown in FIG. 12 includes a memory 1201, a processor 1202, an electrocardiographic sensor 1203, a communication interface 1204, and a bus 1205.
  • the memory 1201, the processor 1202, and the communication interface 1204 implement communication connections between each other through the bus 1205.
  • the memory 1201 may be a read only memory (Read Only Memory, ROM), a static storage device, a dynamic storage device, or a random access memory (Random Access Memory, RAM).
  • the memory 1201 may store a program. When the program stored in the memory 1201 is executed by the processor 1202, the processor 1202 and the communication interface 1204 are used to execute the steps of the method for reducing the noise of the ECG signal in the third embodiment of the present application.
  • the processor 1202 may adopt a general-purpose central processing unit (Central Processing Unit, CPU), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a graphics processing unit (graphics processing unit, GPU), or one or more
  • the integrated circuit is used to execute related programs to realize the functions required by the units in the electrocardiographic signal noise reduction device 1200 in this embodiment of the present application, or to implement the electrocardiographic signal noise reduction method in the third method embodiment of this application.
  • the processor 1202 may also be an integrated circuit chip with signal processing capability. In the implementation process, the various steps of the method for reducing the noise of the electrocardiogram signal of the present application can be completed by the integrated logic circuit of hardware in the processor 1202 or instructions in the form of software.
  • the aforementioned processor 1202 may also be a general-purpose processor, a digital signal processor (Digital Signal Processing, DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices , Discrete gates or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processing
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • FPGA Field Programmable Gate Array
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory 1201, and the processor 1202 reads the information in the memory 1201, and combines its hardware to complete the functions required by the units included in the electrocardiographic signal noise reduction device of the embodiment of the present application, or execute the method embodiment of the present application The noise reduction method of the ECG signal.
  • the ECG sensor 1203 includes two electrodes and an analog-to-digital conversion module.
  • the two electrodes decompose and contact the skin surface of different parts of the user to collect the user's ECG signal.
  • the digital-to-analog conversion module is used to collect The obtained ECG signal is converted into a digitized ECG signal, which is the ECG signal to be noise-reduced in this embodiment of the application.
  • the ECG sensor 1203 is not a necessary part of the ECG signal noise reduction device 1200.
  • the ECG signal noise reduction device 1200 is specifically a wearable device such as a smart bracelet or a smart watch, and the ECG signal noise reduction device 1200 may include the ECG sensor 1203.
  • the ECG signal noise reduction device 1200 is specifically a mobile phone or server, etc.
  • the ECG signal noise reduction device 1200 may not include the ECG sensor 1203, and the ECG signal noise reduction device 1200 can receive ECG collection
  • the ECG signal to be noise-reduced sent by the device may be a wearable device such as a smart bracelet or a smart watch equipped with an ECG sensor. It should be understood that the embodiments of the present application may also include other application scenarios.
  • the communication interface 1204 uses a transceiving device such as but not limited to a transceiver to implement communication between the device 1200 and other devices or a communication network.
  • a transceiving device such as but not limited to a transceiver to implement communication between the device 1200 and other devices or a communication network.
  • training data (such as the ECG signal to be noise-reduced as described in the second embodiment of the present application) can be obtained through the communication interface 1204.
  • the bus 1205 may include a path for transferring information between various components of the device 1200 (for example, the memory 1201, the processor 1202, and the communication interface 1204).
  • the acquisition unit 1001 in the ECG signal noise reduction device 1000 is equivalent to the communication interface 1204 or the ECG sensor 1203 in the ECG signal noise reduction device 1200; the first decomposition unit 1002 in the ECG signal noise reduction device 1000
  • the noise reduction unit 1003 and the superposition unit 1004 may be equivalent to the processor 1202.
  • the devices 1100 and 1200 shown in FIG. 11 and FIG. 12 only show a memory, a processor, and a communication interface, in the specific implementation process, those skilled in the art should understand that the devices 1100 and 1200 also include implementations. Other devices necessary for normal operation. At the same time, according to specific needs, those skilled in the art should understand that the devices 1100 and 1200 may also include hardware devices that implement other additional functions. In addition, those skilled in the art should understand that the apparatuses 1100 and 1200 may also only include the necessary devices for implementing the embodiments of the present application, and not necessarily all the devices shown in FIG. 11 or FIG. 12.
  • the device 1100 is equivalent to the training device 120 in FIG. 4, and the device 1200 is equivalent to the execution device 110 in FIG. 4.
  • a person of ordinary skill in the art may be aware that the units and algorithm steps of the examples described in the embodiments disclosed in this document can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of this application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Animal Behavior & Ethology (AREA)
  • Veterinary Medicine (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Artificial Intelligence (AREA)
  • Signal Processing (AREA)
  • Cardiology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physiology (AREA)
  • Psychiatry (AREA)
  • Evolutionary Computation (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

La présente invention concerne un procédé d'apprentissage d'auto-codeur de débruitage, un procédé de débruitage de signal d'électrocardiographie, ainsi que des appareils et des dispositifs associés, qui utilisent l'intelligence artificielle pour effectuer un débruitage de signal d'électrocardiographie, et peuvent être appliqués à des domaines, tels que la détection d'électrocardiogramme intelligente. Un signal d'électrocardiographie de référence à débruiter comprenant des caractéristiques significatives, telles que des positions de pic R et des distances R-R d'un signal d'électrocardiographie à débruiter, est extrait à partir dudit signal d'électrocardiographie, et un débruitage est effectué sur un signal d'électrocardiographie restant à débruiter au moyen d'un auto-codeur de débruitage cible après que ledit signal d'électrocardiographie de référence a été retiré dudit signal d'électrocardiographie, pour empêcher l'auto-codeur de débruitage cible d'effectuer un traitement de débruitage sur les caractéristiques significatives dans ledit signal d'électrocardiographie, de telle sorte que ledit signal d'électrocardiographie de référence et le signal d'électrocardiographie restant débruité sont superposés afin d'obtenir un signal d'électrocardiographie débruité, les positions de pic R dans ledit signal d'électrocardiographie étant mieux conservées, et la distorsion du signal d'électrocardiographie débruité étant réduite.
PCT/CN2020/080880 2019-05-14 2020-03-24 Procédé d'apprentissage d'auto-codeur de débruitage, procédé de débruitage de signal d'électrocardiographie et appareils WO2020228420A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910399830.9 2019-05-14
CN201910399830.9A CN110141215B (zh) 2019-05-14 2019-05-14 降噪自编码器的训练方法、心电信号的降噪方法及相关装置、设备

Publications (1)

Publication Number Publication Date
WO2020228420A1 true WO2020228420A1 (fr) 2020-11-19

Family

ID=67595358

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/080880 WO2020228420A1 (fr) 2019-05-14 2020-03-24 Procédé d'apprentissage d'auto-codeur de débruitage, procédé de débruitage de signal d'électrocardiographie et appareils

Country Status (2)

Country Link
CN (1) CN110141215B (fr)
WO (1) WO2020228420A1 (fr)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110141215B (zh) * 2019-05-14 2020-12-15 清华大学 降噪自编码器的训练方法、心电信号的降噪方法及相关装置、设备
CN110974217B (zh) * 2020-01-03 2022-08-09 苏州大学 基于卷积自编码器的双阶段心电信号降噪方法
US20220061768A1 (en) * 2020-09-01 2022-03-03 Biosense Webster (Israel) Ltd. Removing noise from cardiac signals
US20220133206A1 (en) * 2020-11-03 2022-05-05 Biosense Webster (Israel) Ltd. Recording apparatus noise reduction
CN114781445B (zh) * 2022-04-11 2022-11-18 山东省人工智能研究院 一种基于可解释性的深度神经网络的心电信号降噪方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6035231A (en) * 1997-10-29 2000-03-07 Siemens Elema Ab Electrocardiogram signal processing apparatus
US20070066907A1 (en) * 1999-12-29 2007-03-22 Bsp Biological Signal Processing Ltd. Method and device for analyzing a periodic or semi-periodic signal
CN102247143A (zh) * 2011-06-03 2011-11-23 吉林大学珠海学院 一种可集成的心电信号去噪和qrs波识别的快速算法
CN104706350A (zh) * 2014-11-13 2015-06-17 华中科技大学 一种心电信号降噪方法
CN106889984A (zh) * 2017-01-22 2017-06-27 河北大学 一种心电信号自动降噪方法
US10123745B1 (en) * 2015-08-21 2018-11-13 Greatbatch Ltd. Apparatus and method for cardiac signal noise detection and disposition based on physiologic relevance
CN110141215A (zh) * 2019-05-14 2019-08-20 清华大学 降噪自编码器的训练方法、心电信号的降噪方法及相关装置、设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9986951B1 (en) * 2013-11-25 2018-06-05 Vital Connect, Inc. Low-distortion ECG denoising
CN105590011B (zh) * 2014-10-20 2019-04-30 深圳市迈迪加科技发展有限公司 一种基于脉搏回归模型的心电信号数据修正方法及系统
US10346665B2 (en) * 2017-05-30 2019-07-09 Sunasic Technologies Limited Noise reduced capacitive image sensor and method operating the same
CN109645979A (zh) * 2017-10-10 2019-04-19 深圳市理邦精密仪器股份有限公司 动态心电信号伪差识别方法及装置
CN109620212A (zh) * 2019-01-31 2019-04-16 天津工业大学 一种非接触式心电信号检测系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6035231A (en) * 1997-10-29 2000-03-07 Siemens Elema Ab Electrocardiogram signal processing apparatus
US20070066907A1 (en) * 1999-12-29 2007-03-22 Bsp Biological Signal Processing Ltd. Method and device for analyzing a periodic or semi-periodic signal
CN102247143A (zh) * 2011-06-03 2011-11-23 吉林大学珠海学院 一种可集成的心电信号去噪和qrs波识别的快速算法
CN104706350A (zh) * 2014-11-13 2015-06-17 华中科技大学 一种心电信号降噪方法
US10123745B1 (en) * 2015-08-21 2018-11-13 Greatbatch Ltd. Apparatus and method for cardiac signal noise detection and disposition based on physiologic relevance
CN106889984A (zh) * 2017-01-22 2017-06-27 河北大学 一种心电信号自动降噪方法
CN110141215A (zh) * 2019-05-14 2019-08-20 清华大学 降噪自编码器的训练方法、心电信号的降噪方法及相关装置、设备

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HAO, HUAQING: "Research on ECG Denoising Algorithm Based on Improved Guided Filter", COLLECTION OF MASTER'S THESIS OF HEBEI UNIVERSITY, 31 January 2019 (2019-01-31) *
XIANG, YANDE: "Research on Electrocardiogram Signal Detection and Classification Based on Convolutional Neural Network", COLLECTION OF DOCTORAL DISSERTATIONS OF ZHEJIANG UNIVERSITY, 31 January 2019 (2019-01-31), pages 1 - 124 *

Also Published As

Publication number Publication date
CN110141215A (zh) 2019-08-20
CN110141215B (zh) 2020-12-15

Similar Documents

Publication Publication Date Title
WO2020228420A1 (fr) Procédé d'apprentissage d'auto-codeur de débruitage, procédé de débruitage de signal d'électrocardiographie et appareils
Chiang et al. Noise reduction in ECG signals using fully convolutional denoising autoencoders
Singh et al. A new ECG denoising framework using generative adversarial network
Huang et al. Accurate classification of ECG arrhythmia using MOWPT enhanced fast compression deep learning networks
Dasan et al. A novel dimensionality reduction approach for ECG signal via convolutional denoising autoencoder with LSTM
CA2849294C (fr) Debruitage de signaux physiologiques
Wang et al. A novel ECG signal compression method using spindle convolutional auto-encoder
Rasti-Meymandi et al. A deep learning-based framework For ECG signal denoising based on stacked cardiac cycle tensor
Mir et al. ECG denoising and feature extraction techniques–a review
Maalej et al. On the wavelet-based compressibility of continuous-time sampled ECG signal for e-health applications
CN116383617B (zh) 一种基于脉搏波波形特征的智能血压检测方法及系统
CN116012916A (zh) 远程光体积描记信号和心率检测模型构建方法及检测方法
Jin et al. A novel deep wavelet convolutional neural network for actual ecg signal denoising
Karri et al. A real-time cardiac arrhythmia classification using hybrid combination of delta modulation, 1D-CNN and blended LSTM
CN114648048A (zh) 基于变分自编码和PixelCNN模型的心电信号降噪方法
Zhang et al. An end-to-end lower limb activity recognition framework based on sEMG data augmentation and enhanced CapsNet
CN110495878B (zh) 基于ecg的疾病预测方法、装置及电子设备
CN116942172A (zh) 一种基于编解码结构的小波双通道单导联心电去噪方法
Said et al. Deep learning and low rank dictionary model for mhealth data classification
Sheu et al. Lightweight denoising autoencoder design for noise removal in electrocardiography
CN113827253A (zh) 计算设备和从脑电信号中去除噪声的方法
Banerjee et al. Noise cleaning of ECG on edge device using convolutional sparse contractive Autoencoder
CN113288050A (zh) 基于图卷积网络的多维增强癫痫发作预测系统
Jhang et al. Integration Design of Portable ECG Signal Acquisition With Deep-Learning Based Electrode Motion Artifact Removal on an Embedded System
Liu Self-Supervised Electrocardiograph De-noising

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20806068

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20806068

Country of ref document: EP

Kind code of ref document: A1