WO2024067030A1 - 信号的去噪方法及电子设备 - Google Patents
信号的去噪方法及电子设备 Download PDFInfo
- Publication number
- WO2024067030A1 WO2024067030A1 PCT/CN2023/117833 CN2023117833W WO2024067030A1 WO 2024067030 A1 WO2024067030 A1 WO 2024067030A1 CN 2023117833 W CN2023117833 W CN 2023117833W WO 2024067030 A1 WO2024067030 A1 WO 2024067030A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sampling point
- target
- signal
- target sampling
- electronic device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
- A61B5/346—Analysis of electrocardiograms
- A61B5/349—Detecting specific parameters of the electrocardiograph cycle
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
- A61B5/346—Analysis of electrocardiograms
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
- A61B5/346—Analysis of electrocardiograms
- A61B5/349—Detecting specific parameters of the electrocardiograph cycle
- A61B5/366—Detecting abnormal QRS complex, e.g. widening
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7203—Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7225—Details of analogue processing, e.g. isolation amplifier, gain or sensitivity adjustment, filtering, baseline or drift compensation
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7235—Details of waveform analysis
- A61B5/725—Details of waveform analysis using specific filters therefor, e.g. Kalman or adaptive filters
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, measuring or recording for evaluating the cardiovascular system, e.g. pulse, heart rate, blood pressure or blood flow
- A61B5/024—Measuring pulse rate or heart rate
- A61B5/02438—Measuring pulse rate or heart rate with portable devices, e.g. worn by the patient
Definitions
- the present application relates to the technical field of life feature recognition and processing, and in particular to a signal denoising method and electronic equipment.
- ECG signals are usually collected through electrodes attached to the surface of the skin. Since ECG signals on the skin are relatively weak and easily interfered by noise, there is a lot of noise in the collected ECG signals, which reduces the accuracy and reliability of ECG diagnosis. In particular, the ECG collected by wearable ECG devices when the user is in a non-stationary state contains a lot of noise.
- ECG signals such as myoelectric noise and motion noise
- noises in ECG signals exist in the entire frequency band of ECG signals. Although the impact of these noises is small, it is difficult to completely eliminate them. These noises are more obvious in the stable section of the signal.
- traditional denoising methods denoise these noises in ECG signals, they are likely to interfere with the peaks of the P wave, T wave, and R wave in the ECG signals; and the P wave, T wave, and R wave are the key features of the ECG signals. When they are affected, the ECG signals lose their reference value.
- the purpose of the present application is to provide a signal denoising method and electronic device.
- the method uses the continuous mutation of the peak with reference significance in the ECG signal to identify whether the signal point is a point on the signal wave with reference significance during denoising, thereby determining whether to perform denoising on the signal point.
- the ECG signal can be effectively denoised while ensuring the reference value of the ECG signal.
- the present application provides a signal denoising method, comprising: determining a first feature sequence corresponding to a target sampling point, the first feature sequence corresponding to the target sampling point includes j elements, the j elements correspond one-to-one to the j sampling points in the signal to be denoised, the element corresponding to any one of the j sampling points represents the sum of the rising or falling amplitudes of each sampling point between the any one sampling point and the first sampling point, the falling or rising amplitude of any one of the j sampling points is the difference between the amplitude of the any one sampling point and the amplitude of the next sampling point of the any one sampling point, the first sampling point is a sampling point located before the any one sampling point, presenting an opposite change trend with the any one sampling point, and the closest to the any one sampling point; when the values in the first feature sequence corresponding to the target sampling point are all less than the cumulative variation threshold corresponding to the target sampling point, the amplitude of the target sampling point and the amplitudes of m
- the target sampling point is a sampling point in the signal to be de-noised
- the signal to be de-noised may be a signal directly collected by the electronic device, or a signal collected by other devices and sent to the electronic device.
- the electronic device may also send the signal obtained after de-noising the de-noised signal back to the other device.
- the signal to be denoised may be an electrocardiogram signal
- the electrocardiogram signal may be a bioelectric signal of a biological body surface extracted by the electronic device through electrodes
- the collected electrocardiogram signal is composed of a plurality of sampling points arranged according to the sampling time.
- the value of the sampling point is the intensity or energy value of the bioelectric signal of the body surface during the acquisition.
- the plurality of sampling points are arranged in the order of the sampling time to form an electrocardiogram with a certain degree of fluctuation.
- the QRS wave in the electrocardiogram signal is often the largest, most obvious, and sharpest.
- the amplitude difference between two adjacent sampling points on the QRS wave group in the electrocardiogram signal is very large, which also leads to the absolute value of the slope between two adjacent sampling points in the QRS wave group is also very large.
- the “presenting an opposite trend of change” means that the amplitude of the sampling point before the first sampling point is greater than the amplitude of the first sampling point, but the amplitude of the sampling point after the first sampling point is smaller than the amplitude of the first sampling point; or it means that the amplitude of the sampling point before the first sampling point is smaller than the amplitude of the first sampling point, but the amplitude of the sampling point after the first sampling point is larger than the amplitude of the first sampling point.
- the first sampling point may be a sampling point located on a peak or trough in the signal to be detected.
- the “sum of the rising or falling amplitudes” means either the sum of the rising amplitudes or the sum of the falling amplitudes. That is, from only one change trend, it is determined whether there is a sufficient number of continuous sampling points with a sharp rising amplitude among the j sampling points, or whether there is a sufficient number of continuous sampling points with a sharp falling amplitude among the j sampling points.
- the j may be any integer greater than 1.
- a wave can be regarded as two parts according to the change trend, namely the rising part (the amplitude of the sampling point is getting larger and larger) and the falling part (the amplitude of the sampling point is getting larger and larger).
- the peak of the wave rises first and then falls, and the trough of the wave falls first and then rises.
- the amplitude of the sampling point in the QRS complex may change with a fixed change trend for a longer time. For example, in the QS segment of the QRS complex, the amplitude of the signal first rises persistently and then falls persistently.
- a sub-signal is selected from the ECG signal with a time window of a fixed length (for example, a time window including 30 sampling points), if this sub-signal is a signal completely located in the QRS complex, then the amplitude of this sub-signal is likely to rise or fall sharply; and if this sub-signal is a signal located in the stable segment signal, then the change trend of the amplitude of this signal is likely to change many times, such as rising first and then falling, and then rising again and then falling... and so on. And the change amplitude of this sub-signal (reflected in the image as whether the wave is sharp enough) may be very small.
- a time window of a fixed length for example, a time window including 30 sampling points
- electronic devices can use a change trend as a reference dimension, by checking the persistence and mutation of a signal determined by a sampling point in a change trend, that is, whether there is a continuous sampling point in a signal.
- the number of these sampling points is sufficient and the amplitude keeps rising or falling sharply to determine whether the signal is a signal on the QRS complex, thereby determining whether the sampling point is a point on the QRS complex or around the QRS complex.
- the electronic device can construct a feature sequence that can reflect whether this point is a sampling point on the QRS complex based on the change trend and change amplitude of the amplitude of each sampling point and the sampling points around the sampling point.
- This feature sequence can be called the first feature sequence corresponding to this point.
- the electronic device in the process of the electronic device denoising the signal to be denoised, the electronic device first determines a sampling point in the signal to be denoised as a target sampling point, and then determines the first characteristic sequence corresponding to the target sampling point in the manner described above. After processing the amplitude of the target sampling point, the electronic device uses the next sampling point of the target sampling point as a new target sampling point, and obtains the first characteristic sequence corresponding to the new target sampling point in the same manner. It is not difficult to understand that when the target sampling point changes, the first time window corresponding to the target sampling point will also move backward accordingly (generally by the position of one sampling point). In other words, the electronic device has used each sampling point before the target sampling point as a target sampling point, and obtained the first characteristic sequence corresponding to these sampling points.
- the electronic device after the electronic device determines the first feature sequence corresponding to the target sampling point, the electronic device will determine a threshold value according to the first feature sequence corresponding to the target sampling point and the first feature sequences corresponding to the v sampling points before the target sampling point, that is, the cumulative variation threshold value corresponding to the target sampling point.
- This cumulative variation threshold value represents a distribution range of the values of most elements in the sequence obtained by splicing the first feature sequence corresponding to the target sampling point and the v first feature sequences corresponding to the v sampling points before the target sampling point.
- the value of an element in the sequence is greater than or equal to the cumulative variation threshold value, it means that the value of the element is significantly greater than the values of other elements in the sequence, that is, the element is an element that has undergone a mutation, which coincides with the mutation of the QRS wave group in the electrocardiogram signal.
- the electronic device can use the average filtering method to average the amplitude of the target sampling point and the amplitude of the m sampling points around the target sampling point to obtain the target value, and update the amplitude of the target sampling point to the target value, so as to achieve the denoising effect of the target sampling point.
- the target sampling point is likely to be a sampling point located in the QRS complex in the signal to be de-noised, and in order to protect the characteristics of the QRS complex, the electronic device does not change the amplitude of the target sampling point.
- This method uses the continuous mutation of the peak with reference significance in the ECG signal to identify whether the sampling point is a point on the signal wave with reference significance during denoising, thereby determining whether to perform denoising on the sampling point.
- the ECG signal can be effectively denoised while ensuring the reference value of the ECG signal.
- the method before averaging the amplitude of the target sampling point and the amplitudes of m sampling points around the target sampling point to obtain the target value, the method further includes: determining a first eigenvalue corresponding to the target sampling point, the first eigenvalue corresponding to the target sampling point representing the average of the absolute values of the amplitude differences between each two adjacent sampling points in a time window including the target sampling point and containing (k+1) sampling points; averaging the amplitude of the target sampling point and the amplitudes of m sampling points around the target sampling point to obtain the target value, including: the values in the first feature sequence corresponding to the target sampling point are all less than the target value.
- the amplitude of the target sampling point and the amplitudes of the m sampling points around the target sampling point are averaged to obtain the target value;
- the average variation threshold corresponding to the target sampling point is determined by the first eigenvalue corresponding to the target sampling point and the first eigenvalues corresponding to i sampling points; in the signal to be denoised, the i sampling points are the i sampling points before the target sampling point.
- the direction of the R wave in the QRS complex in the signal may be reversed.
- the R wave in the QRS complex in their ECG signal may be inverted due to myocardial ischemia.
- the rising and falling trends of the sampling points in the R wave are reversed, and the changing trends between the peaks and troughs of the R wave and the PR and ST segments are also reversed.
- the position of the target sampling point is analyzed only by constructing the first feature sequence corresponding to the target sampling point, it is likely that an erroneous conclusion will be drawn, and the amplitude of the target sampling point may be processed in an inappropriate manner during the denoising process.
- the first eigenvalue corresponding to the target sampling point only focuses on the amplitude change of the sampling point, not the change trend of the sampling point amplitude.
- This embodiment uses the first eigenvalue corresponding to the target sampling point and the first feature sequence corresponding to the target sampling point to judge the area where the target sampling point is located, which can greatly reduce the probability of judging the position of the sampling point on the abnormal ECG signal, determine whether the target signal point is a point located on the QRS wave group, and denoise the noise of the stable segment signal in the signal while retaining the characteristics of the Q wave and the S wave.
- the first eigenvalue corresponding to the target sampling point is also conducive to electronic devices to more quickly and accurately identify whether it is a sampling point on the R wave.
- the method further includes: when there is at least one value in the first feature sequence corresponding to the target sampling point that is greater than or equal to the cumulative variation threshold corresponding to the target sampling point, keeping the amplitude of the target sampling point unchanged; and/or when the first feature value corresponding to the target sampling point is greater than or equal to the average variation threshold, keeping the amplitude of the target sampling point unchanged.
- the target sampling point when there is at least one value in the first characteristic sequence corresponding to the target sampling point that is greater than or equal to the cumulative variation threshold corresponding to the target sampling point, the target sampling point is likely to be a point on the QRS complex; in addition, if the first characteristic value corresponding to the target sampling point is greater than or equal to the average variation threshold, then the target sampling point is likely to be a point on the QRS complex and is most likely to be a point on the R wave. Therefore, in this embodiment, in order to protect the reference value of the key wave in the signal after signal denoising, when the electronic device determines that the target sampling point is a point on the QRS complex, the electronic device keeps the amplitude of the target sampling point unchanged.
- the method before determining the first characteristic sequence corresponding to the target sampling point, the method further includes: performing high-pass filtering and low-pass filtering on the initial signal to obtain the signal to be denoised, wherein the initial signal is an electrical signal collected by the electronic device and representing the user's heart rhythm.
- the electronic device also performs high-pass filtering and low-pass filtering on the initial signal to obtain the signal to be denoised, wherein the initial signal is an electrical signal representing the user's heart rhythm collected by the electronic device.
- the high-pass filter and low-pass filter used by the electronic device can be multi-order filters, which can filter out higher and lower frequency bands in the initial signal collected by the electronic device, especially those that may contain artifacts. This facilitates subsequent analysis and retains the frequency range of the signal to be analyzed, thereby improving the processing efficiency of the subsequent processing process.
- electronic equipment can use a low-pass filter with a cut-off frequency lower than the AC power frequency (50Hz or 60Hz) to avoid power frequency interference.
- a high-pass filter is used to retain the highest frequencies of the signal of interest.
- the target sampling point in the time window including the target sampling point and containing (k+1) sampling points, is the last sampling point in the time window including the (k+1) sampling points; or, in the time window including the target sampling point and containing (k+1) sampling points, there is at least one sampling point before and after the target sampling point.
- the electronic device can obtain k sampling points before the sampling point, and calculate the average of the absolute values of the amplitude differences between each two adjacent sampling points among the (k+1) sampling points ending with the sampling point as the first eigenvalue corresponding to the sampling point. In this way, the electronic device can process the newly obtained sampling point with zero delay, and can complete the processing process of the target sampling point more efficiently.
- the electronic device may not process the sampling point immediately, but continue to acquire signals of several sampling points after the sampling point, and then acquire at least one sampling point before the sampling point and at least one sampling point before the sampling point with the sampling point as the base point, a total of k sampling points, and determine them together with the sampling point as the (k+1) sampling points, and calculate the average of the absolute values of the amplitude differences between every two adjacent sampling points in the (k+1) sampling points as the first eigenvalue corresponding to the sampling point.
- the target sampling point is taken as the sampling point in the middle position among the (k+1) sampling points, so that the calculated first eigenvalue corresponding to the target sampling point can more truly reflect the change trend of the target sampling point, and can more accurately judge whether the target sampling point is a point on the QRS complex.
- determining the first feature sequence corresponding to the target sampling point includes: taking the target sampling point as a starting point, determining a first time window including (j+1) sampling points; sequentially calculating the amplitude difference between each sampling point and the next sampling point except the last sampling point in the first time window to obtain j differences; resetting the numbers less than 0 in the j differences to 0 to obtain the first sequence corresponding to the target sampling point; sequentially performing a forward accumulation reconstruction operation on the elements in the first sequence corresponding to the target sampling point to obtain the j elements, and using the j elements as the first feature sequence corresponding to the target sampling point; wherein the accumulation reconstruction operation includes: when the value of the element is 0, keeping the value of the element unchanged; when the value of the element is not zero, accumulating the value of the element with the value of the previous element until an element with a value of 0 is encountered, and using the value obtained by the forward accumulation as the reconstructed value of the element.
- the electronic device may determine the first characteristic sequence corresponding to the target sampling point from the target sampling point in the following manner:
- the position is If the position is 0, if it is not zero, the forward accumulation will stop when it encounters an element that is 0, and the value obtained by the forward accumulation is the reconstructed value of the position.
- the cumulative change trend of the subsequent j sampling points around the target sampling point is quantified in the first feature sequence corresponding to the target sampling point by means of amplitude subtraction, negative value zeroing, and forward accumulation reconstruction, and the first feature sequences corresponding to two consecutive sampling points have multiple identical elements, which is conducive to the electronic device analyzing the data features of the target sampling point and determining the area where the target sampling point is located.
- determining the first eigenvalue corresponding to the target sampling point includes: determining a second time window including (k+1) sampling points; in the second time window, there are n sampling points before the target sampling point, and there are (k-n) sampling points after the target sampling point; sequentially calculating the absolute value of the difference between each sampling point in the second time window and the previous sampling point to obtain k absolute values of the difference, and taking an average of the k absolute values of the difference as the first eigenvalue corresponding to the target sampling point.
- the electronic device can determine a second time window including (k+1) sampling points based on the target sampling point; in the second time window, there are n sampling points before the target sampling point, and there are (k-n) sampling points after the target sampling point; then the electronic device can sequentially calculate the absolute value of the difference between each sampling point and the previous sampling point in the second time window, obtain k absolute values of the difference, and take the average value of the absolute values of the k differences as the first eigenvalue corresponding to the target sampling point.
- the first characteristic value corresponding to the target sampling point is based on the absolute value of the amplitude difference between the two sampling points, no matter how the change trend of the (k+1) sampling points changes, the change amplitude between the two sampling points is a number greater than 0.
- the first characteristic value corresponding to the target sampling point is the average value of the total slope between each adjacent two sampling points in the (k+1) sampling points.
- the slope i.e., the degree of mutation
- the electronic device can easily determine whether the target sampling point is a QRS wave, especially a point on the R wave, based on the first characteristic value corresponding to the target sampling point, so as to determine whether the target sampling point needs to be denoised.
- the method further includes: splicing the first characteristic sequence corresponding to the target sampling point with the v first characteristic sequences corresponding to the v sampling points to obtain a second sequence, and determining the abnormal sequence corresponding to the second sequence by using the quartile method. value, and determining the outlier value corresponding to the second sequence as the cumulative variation threshold corresponding to the target sampling point.
- the above-mentioned cumulative variation threshold can be determined by the quartile method. Since a certain indication of the center, spread and shape of the data distribution is given, it has certain robustness and scientificity. Therefore, by determining the cumulative variation threshold corresponding to the target sampling point by the quartile method, it can accurately reflect to a certain extent whether there is an element with a numerical mutation in the first characteristic sequence corresponding to the target sampling point, and further reflect whether the target sampling point is a point on the QRS complex.
- the method further includes: constructing a third sequence using the first eigenvalue corresponding to the target sampling point and the i first eigenvalues corresponding to the i sampling points; determining an outlier corresponding to the third sequence using the quartile method, and determining the outlier corresponding to the third sequence as the average variation threshold corresponding to the target sampling point.
- MB is the first feature sequence corresponding to the target sampling point
- MB-1 is the first feature sequence corresponding to the sampling point before the target sampling point, and so on
- the sequence obtained by expanding and splicing multiple sequences such as MBv , MB-v+1 , ..., MB, is the second sequence mentioned above.
- the 75th percentile number (upper quartile) of the sequence express The number of 25 quantiles (lower quartiles) of the sequence.
- the average variation threshold corresponding to the target sampling point is determined by the quartile method, which can accurately reflect to a certain extent whether the target sampling point is an element with a numerical mutation in the third sequence, and further reflect whether the target sampling point is a point on the QRS complex (especially the R wave).
- the average variation threshold corresponding to the target sampling point can be expressed as
- CA is the cumulative variation threshold mentioned above
- M A is the first eigenvalue corresponding to the target sampling point
- M A-1 is the first eigenvalue corresponding to the sampling point before the target sampling point, and so on
- This is the third sequence mentioned above.
- the cumulative variation threshold corresponding to the target sampling point is an extreme outlier value corresponding to the second sequence determined using the quartile method
- the average variation threshold corresponding to the target sampling point is an extreme outlier value corresponding to the third sequence determined using the quartile method.
- the electronic device can determine the cumulative variation threshold corresponding to the target sampling point as the extreme outlier corresponding to the second sequence, and/or determine the average variation threshold corresponding to the target sampling point as the extreme outlier corresponding to the third sequence.
- an embodiment of the present application provides an electronic device, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute a method as in the first aspect or any possible implementation of the first aspect.
- a chip system which is applied to an electronic device, and the chip system includes one or more processors, and the processors are used to call computer instructions so that the electronic device executes the method in the first aspect or any possible implementation of the first aspect.
- a computer-readable storage medium comprising instructions, which, when executed on an electronic device, enable the electronic device to execute the method in the first aspect or any possible implementation of the first aspect.
- FIG1 is a waveform diagram of an EGG signal provided in an embodiment of the present application.
- FIG2 is a line graph showing the degree of change of data in a series provided by an embodiment of the present application.
- FIG3 is a schematic diagram illustrating a noise reduction result of an electrocardiogram signal provided in an embodiment of the present application
- FIG4 is a schematic diagram of the appearance of an electronic device provided in an embodiment of the present application.
- FIG5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
- FIG6 is a flow chart of a signal denoising method provided in an embodiment of the present application.
- FIG7 is a schematic diagram of a variation trend of amplitude of a sub-signal in a signal to be denoised provided by an embodiment of the present application;
- FIG8 is a schematic diagram of a process of obtaining a first feature sequence corresponding to a target sampling point based on the target sampling point according to an embodiment of the present application
- FIG9 is a schematic diagram showing a comparison between an initial signal image and a first characteristic sequence image provided by an embodiment of the present application.
- FIG10 is a flow chart of a signal denoising method provided in an embodiment of the present application.
- FIG11 is a schematic diagram showing a comparison between an initial signal image and a first eigenvalue image provided in an embodiment of the present application.
- Electrocardiogram also known as ECG signal, 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 1, including P wave, QRS complex (including Q wave, R wave and S wave) and T wave. Among them, the first waveform on the electrocardiogram that deviates positively from the baseline is the P wave, and the second band is the QRS complex.
- the QRS complex consists of a series of 3 deviations, reflecting the current 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 waveform with a rounded top after the QRS complex is the T wave, which represents the state of ventricular repolarization.
- a complete waveform including the above waves is called a beat.
- the ECG signal between two complete waveforms (beats) also appears as a wave shape, but the fluctuation of these waves is much smaller than that of the waves in the QRS complex (including Q wave, R wave and S wave).
- the ECG signal between these two complete waveforms (beats) is relatively stable. Therefore, in this application, we can call the ECG signal between every two complete waveforms (beats) in a segment of ECG signal, that is, the signal at the end of FIG1 that appears to have a relatively stable fluctuation, a "stable segment signal".
- Myoelectric noise also known as electromyographic noise signal, is the noise caused by human activity and muscle tension, that is, the superposition of motor unit action potentials (MUAP) of muscle fibers in the human body in time and space.
- MUAP motor unit action potentials
- Muscle activity in the head and neck is the main source of EEG electromyographic interference, and muscle activity below the neck generally does not cause significant interference to EEG.
- Such interference has a small amplitude but a high frequency, ranging from 5Hz to 2000Hz, and appears as an irregular and rapidly changing waveform.
- Motion noise is caused by slight movements of the human body. Its main characteristic is mutation. The frequency range is generally between 3Hz and 14Hz, and the duration is also very short.
- ECG signals are usually bioelectric signals on the body surface extracted by ECG equipment through electrodes.
- the collected ECG signals are composed of multiple sampling points in time order.
- the value of the sampling point is the intensity or energy value of the bioelectric signal on the body surface during the collection.
- the multiple sampling points are arranged in the order of sampling time to form an ECG.
- the sampling frequency refers to the number of points that the recorder collects the voltage of the ECG signal per second. The higher the sampling frequency, the less distortion the ECG waveform will have, and the collected data will more accurately describe the continuous ECG waveform.
- the sampling frequency is too low, the amplitude of the Q wave, R wave, and S wave will decrease, the waveform will be step-shaped, and the ECG will lose some meaningful information. Therefore, it is necessary to apply an appropriate sampling frequency.
- the ECG acquisition device is a device capable of collecting ECG signals, analyzing ECG signals, etc., and can be an ECG acquisition device, an ECG machine, etc., or a wearable device or terminal with an ECG sensor, etc.
- a filter is a device that filters waves. It is a circuit that allows signals within a certain frequency band to pass through while blocking signals outside this frequency band from passing through.
- low-pass filters There are two main types of filters: low-pass filters and high-pass filters.
- the working principle is that inductors prevent high-frequency signals from passing through and allow low-frequency signals to pass through, while capacitors prevent high-frequency signals from passing through and allow low-frequency signals to pass through.
- Low-pass filters use the principle that capacitors pass high frequencies and block low frequencies, and inductors pass low frequencies and block high frequencies. For high frequencies that need to be cut off, capacitors absorb and inductors block them from passing; for low frequencies that need to be released, capacitors have high resistance and inductors have low resistance to allow them to pass through.
- high-pass filters prevent low-frequency signals from passing through and allow high-frequency signals to pass through.
- Quartile also known as quartile point, refers to the values at three dividing points when all values are arranged from small to large and divided into four equal parts in statistics. It is mostly used in box plot drawing in statistics. It is the value at 25% and 75% after a set of data is sorted. Quartile is to divide all data into 4 parts by 3 points, each of which contains 25% of the data. Obviously, the middle quartile is the median (usually represented by Q2), so the quartiles usually refer to the values at the 25% position (called the lower quartile, usually represented by Q1) and the values at the 75% position (called the upper quartile, usually represented by Q3).
- the outliers in the sequence can usually be calculated with the help of quartiles.
- Q3+k(Q3-Q1) as a threshold, and the values in the sequence that are greater than this threshold are outliers, that is, values that are significantly larger than other values in the sequence.
- K is 1.5
- the above threshold is the moderate anomaly threshold
- the values in the sequence that are greater than the moderate anomaly threshold are moderate outliers
- K is 3
- the above threshold is the extreme anomaly threshold
- the values in the sequence that are greater than the extreme anomaly threshold are extreme outliers.
- the noise of the stable segment signal in the ECG signal can be denoised without interfering with the peaks of the P wave, T wave, and R wave in the ECG signal. Please refer to the subsequent instructions for details, which will not be elaborated here.
- Electrocardiogram (ECG)/ECG signal is a comprehensive manifestation of cardiac electrical activity on the human epidermis. It contains rich physiological and pathological information reflecting cardiac rhythm and its electrical conduction. To a certain extent, it can objectively reflect the physiological conditions of various parts of the heart. At present, it has become one of the important methods for non-invasive examination and diagnosis of cardiovascular diseases, and one of the important bases for evaluating whether the heart function is good.
- FIG3 is a schematic diagram of a denoising result of an ECG signal provided in an embodiment of the present application.
- FIG3 (A) shows an image of an original ECG signal before denoising
- FIG3 (B) shows an image of an ECG signal obtained after denoising the original ECG signal using an existing denoising method
- FIG3 (C) shows an image of an ECG signal obtained after denoising the original ECG signal using the denoising method provided in the present application.
- the original ECG signal can be a wearable device with an ECG sensor, such as an ECG signal collected by a smart bracelet, a smart watch, etc., or a dynamic ECG device widely used in hospitals and other institutions, that is, a traditional twelve-lead ECG signal acquisition instrument.
- the original ECG signal is an ECG signal directly collected by the device and has not yet been denoised, but may have undergone certain preprocessing. Combined with the above description, it can be seen that the ECG signal is a weak signal with strong nonlinearity, non-stationarity and randomness.
- the directly collected ECG signal is accompanied by a lot of noise.
- These noises can be manifested as frequent and short peaks in the ECG signal image, that is, the peaks caused by noise shown in (A) of FIG3 .
- the influence of these noises is more obvious in the stable segment signal of the ECG signal.
- the ECG signal There may also be some persistent and reference-meaningful peaks in the ECG signal that are not caused by noise, such as the P wave and R wave mentioned above.
- (B) in FIG3 shows an image of an ECG signal obtained after denoising the original ECG signal using an existing denoising method.
- (B) in FIG3 uses a solid line to represent the image of the ECG signal obtained after denoising, and uses a dotted line to represent the image of the ECG signal before denoising (i.e., the ECG signal shown in (A) in FIG3).
- the noise condition of the ECG signal obtained is significantly improved, the frequent and short peaks caused by noise in the image are significantly reduced, and the change trend of the stable segment signal in the ECG signal becomes simpler and clearer.
- waves with reference significance such as P waves and T waves can usually reflect the health status of a person's heart.
- these waves are distorted, the diagnosis results obtained by medical staff based on the ECG signals where these waves are located may be inaccurate, and in severe cases may even endanger the life safety of the patient.
- the present application provides a signal denoising method and electronic device, which can use the continuous mutation of the peak with reference significance in the ECG signal to identify whether the signal point is a point on the signal wave with reference significance during denoising, thereby determining whether to perform denoising on the signal point.
- the ECG signal can be denoised without affecting the wave with reference significance in the ECG signal, that is, the ECG signal can be effectively denoised while ensuring the reference value of the ECG signal.
- (C) in FIG3 shows an image of an ECG signal obtained after denoising the original ECG signal using the denoising method provided by the present application.
- (C) in FIG3 uses a solid line to represent the image of the ECG signal obtained after denoising, and uses a dotted line to represent the image of the ECG signal before denoising (i.e., the ECG signal shown in (A) in FIG3).
- the noise condition of the ECG signal obtained is also significantly improved, the frequent and short peaks caused by noise in the image are significantly reduced, and the change trend of the stable segment signal in the ECG signal becomes simpler and clearer.
- the denoising method provided by the present application not only ensures the denoising effect on the stable segment signal, but also further ensures the reference value of the ECG signal - after the ECG signal is denoised, the overlap degree of the key peaks in the denoised signal and the original signal before denoising is extremely high.
- the R wave, P wave, and T wave of the denoised ECG signal are basically overlapped with the R wave, P wave, and T wave of the ECG signal before denoising.
- the electronic device may be a mobile phone, a tablet computer, a wearable device such as a smart bracelet and a smart watch, an in-vehicle device, an augmented reality (AR)/virtual reality (VR) device, a laptop computer, Ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA) or special camera (such as SLR camera, card camera), etc.
- AR augmented reality
- VR virtual reality
- UMPC Ultra-mobile personal computer
- PDA personal digital assistant
- special camera such as SLR camera, card camera
- the appearance of the electronic device can refer to Figure 4.
- (A) in Figure 4 shows the specific style of the electronic device when worn on the wrist of the user
- (B) in Figure 4 may show the specific style of the back side of the electronic device (i.e., the side that is in close contact with the user's skin when worn).
- the above-mentioned electronic device may be provided with an ECG sensor to collect the user's ECG data.
- the ECG sensor includes two electrodes for collecting ECG signals.
- the two electrodes of the ECG sensor i.e., electrode 111 and electrode 112 are both arranged on the back of the electronic device.
- the electronic device may include a data conversion module 113 inside, and the data conversion module 113 may perform analog-to-digital conversion on the analog ECG signal collected by electrodes 111 and 112 to obtain a discrete digitized ECG signal.
- the processing module inside the electronic device may use the digitized ECG signal as the ECG signal to be denoised and apply the signal denoising method in the embodiment of the present application to denoise the signal to obtain a denoised ECG signal.
- the user can press the dial 114 of the electronic device with a finger so that the electrodes 112 and 111 contact the user's arm.
- the electronic device may also analyze the noise-reduced ECG signal to obtain an analysis result. Furthermore, the electronic device may 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 above-mentioned electronic device can also send the ECG signal to be denoised to the terminal or server to which it is bound, and the terminal or server applies the ECG denoising method in the embodiment of the present application to perform denoising processing on the ECG signal to be denoised to obtain the ECG signal after denoising.
- the terminal or server can send the ECG signal after denoising to the above-mentioned electronic device, or send the analysis result obtained by analyzing the ECG signal after denoising.
- the above electronic device equipped with an ECG sensor can monitor the wearer's ECG data in real time or periodically to monitor the wearer's physical condition.
- the electronic device in the embodiment of the present application is a smart terminal device, which, in addition to indicating time, also has one or more functions such as reminder, navigation, calibration, monitoring, and interaction; the display mode of the smart watch includes pointers, numbers, images, etc.
- the schematic diagram of the appearance of the electronic device shown in FIG4 does not constitute a specific limitation on the electronic device.
- the appearance of the electronic device 100 may be different from that shown in FIG4; for example, in some embodiments, the dial 114 of the electronic device may be circular; for another example, one electrode 111 of the electrocardiogram sensor of the electronic device may be disposed on the back of the electronic device, and the other electrode 112 may be disposed on the side of the electronic device.
- the user may press the electrode 112 with a finger, and the electrode 111 contacts the user's arm.
- FIG. 5 exemplarily shows the structure of the above electronic device.
- the electronic device 100 is capable of executing the signal denoising method provided in the embodiment of the present application.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna, a wireless communication module 150, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a button 172, a display screen 171, a sensor module 180, etc.
- USB universal serial bus
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an acceleration sensor 180C, a capacitive proximity sensor 180D, an electrocardiogram sensor 180C, and a pressure sensor 180A.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
- the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc.
- different processing units may be independent devices or integrated in one or more processors.
- the controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved. At the same time, the processor 110 may also store data received by the electronic device 100 from other electronic devices.
- the processor 110 can control the electronic device 100 to send the ECG signal to be denoised to the terminal or server to which it is bound, and the terminal or server applies the ECG denoising method in the embodiment of the present application to perform denoising processing on the ECG signal to be denoised to obtain the ECG signal after denoising.
- the electronic device 100 can receive the ECG signal after denoising sent by the terminal or server, or receive the analysis result obtained by the terminal or server analyzing the ECG signal after denoising.
- the processor 110 controls the dial and base of the smart watch to obtain an initial ECG signal.
- the processor 110 includes a filter device or a filter circuit, which can filter the initial ECG signal, filter out the higher and lower frequency bands of the initial ECG signal, and retain the signal to be analyzed.
- the processor 110 will also apply the signal denoising method in the embodiment of the present application to the signal obtained by filtering to perform denoising processing to obtain a denoised ECG signal.
- the processor 110 may include one or more interfaces.
- the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, a Micro USB interface, a USB Type C interface, etc.
- I2C inter-integrated circuit
- I2S inter-integrated circuit sound
- PCM pulse code modulation
- UART universal asynchronous receiver/transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, audio, video and other files are saved in the external memory card.
- the internal memory 121 may be used to store computer executable program codes, wherein the executable program codes include instructions.
- the internal memory 121 may include a program storage area and a data storage area.
- the program storage area may store an operating system, an application required for at least one function (such as voice broadcast, image playback function, etc.), etc.
- the data storage area may store data created during the use of the electronic device 100 (such as audio data, phone book, etc.), etc.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio. The interface can also be used to connect other electronic devices, such as AR devices, etc.
- the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
- the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- the wireless communication function of the electronic device 100 can be implemented through an antenna, a wireless communication module 150, a modulation and demodulation processor, and a baseband processor.
- the electronic device 100 can communicate wirelessly with other electronic devices through the wireless communication module 150.
- the antenna is used to transmit and receive electromagnetic wave signals.
- Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna.
- the antenna can be reused as a diversity antenna for a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the wireless communication module 150 may be one or more devices integrated with at least one communication processing module.
- the wireless communication module 150 may provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied to the electronic device 100.
- WLAN wireless local area networks
- BT Bluetooth
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared
- the wireless communication module 150 may be one or more devices integrated with at least one communication processing module.
- the wireless communication module 150 receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
- the wireless communication module 150 may also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna.
- the electronic device 100 can be communicatively connected with other electronic devices via the wireless communication module 150 .
- the electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
- the audio module 170 can also be used to encode and decode audio signals.
- the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
- the speaker 170A also called a "speaker" is used to convert an audio electrical signal into a sound signal.
- the electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
- the receiver 170B also called a "handset" is used to convert the audio electrical signal into a sound signal.
- the voice can be answered by placing the receiver 170B close to the human ear.
- Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C.
- the electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
- the key 172 includes a power key, a volume key, etc.
- the key 172 may be a mechanical key or a touch key.
- the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
- the electronic device 100 implements the display function through a GPU, a display screen 171, and an application processor.
- the GPU is a microprocessor for image processing, which connects the display screen 171 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 171 is used to display images, videos, etc.
- the display screen 71 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
- the electronic device 100 may include 1 or N display screens 171, where N is a positive integer greater than 1.
- the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
- the pressure sensor 180A can be set on the display screen 71.
- the capacitive pressure sensor can be a parallel plate including at least two conductive materials.
- the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
- the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A.
- the electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A.
- touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
- the gyro sensor 180B can be used to determine the motion posture of the electronic device 100.
- the angular velocity of the electronic device 100 around three axes i.e., x, y, and z axes
- the gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- the acceleration sensor 180C can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
- the capacitive proximity sensor 180D may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
- the light emitting diode may be an infrared light emitting diode.
- the electronic device 100 emits infrared light outward through the light emitting diode.
- the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
- the electronic device 100 can use the capacitive proximity sensor 180D to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
- the capacitive proximity sensor 180D can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
- the ECG sensor 180E usually includes two electrodes for collecting ECG signals.
- the sinoatrial node in the human heart rhythmically controls the contraction and relaxation of the heart to pump blood to the trunk.
- This control signal is an electrical signal (human nerve signals are all manifested as electrical signals on the nerves), which will gradually spread to the body surface and can be measured through electrodes on the skin.
- the ECG sensor 180E can detect bioelectricity when in contact with human skin and convert it into electrical signals. These electrical signals can be digitally processed by the processor 110 and converted into digital signals. The processor can further process these digitized signals in conjunction with the GPU to obtain an accurate and detailed electrocardiogram and display it on the display screen 171.
- the ambient light sensor 180F is used to sense the ambient light brightness.
- the electronic device 100 can adaptively adjust the brightness of the display screen 171 according to the perceived ambient light brightness.
- the ambient light sensor 180F can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the capacitive proximity sensor 180D to detect whether the electronic device 100 is in a pocket to prevent accidental touch.
- the charging management module 140 is used to receive charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
- the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
- the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
- the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 171 and the wireless communication module 150.
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
- the power management module 141 can also be set in the processor 110.
- the power management module 141 and the charging management module 140 can also be set in the same device.
- FIG6 is a flow chart of a signal denoising method provided in an embodiment of the present application.
- the method uses the continuous mutation of the peaks with reference significance in the ECG signal to identify whether the signal point is a point on the signal wave with reference significance during denoising, thereby determining whether to perform denoising on the signal point.
- the ECG signal can be denoised without affecting the waves with reference significance in the ECG signal, that is, the ECG signal can be effectively denoised while ensuring the reference value of the ECG signal.
- the method provided in an embodiment of the present application may include but is not limited to the following steps:
- S601 The electronic device determines a first characteristic sequence corresponding to a target sampling point.
- the electronic device may be the electronic device shown in FIG. 4 , or may be the electronic device 100 in the foregoing description.
- the target sampling point is a sampling point in the signal to be de-noised.
- the signal to be de-noised may be a signal directly collected by the electronic device, or may be a signal collected by other devices and sent to the electronic device.
- the signal to be denoised may be an electrocardiogram signal, which may be a bioelectric signal of a biological body surface extracted by the electronic device through electrodes.
- the collected electrocardiogram signal is composed of multiple sampling points sorted according to sampling time.
- the value of the sampling point is the intensity or energy value of the bioelectric signal of the body surface during collection.
- the multiple sampling points are arranged in the order of sampling time to form an electrocardiogram with a certain degree of fluctuation.
- the electronic device before executing step S601, the electronic device also performs high-pass filtering and low-pass filtering on the initial signal to obtain the above-mentioned signal to be denoised, and the initial signal is an electrical signal collected by the electronic device that represents the user's heart rhythm.
- the high-pass filter and low-pass filter used by the electronic device can be multi-order filters, which can filter out higher and lower frequency bands in the initial signal collected by the electronic device, especially those that may contain artifacts. It is convenient for subsequent analysis and retains the frequency range of the signal to be analyzed, thereby improving the processing efficiency of the subsequent processing process.
- the electronic device can use a low-pass filter with a cutoff frequency lower than the AC power frequency (50Hz or 60Hz) to avoid power frequency interference.
- the low frequency band that is, the frequency band below 1Hz, since the electronic device can use a high-pass filter that retains the highest frequency band of the signal of interest.
- ECG signals usually appear as peaks (or troughs) with different degrees of fluctuation. Combined with the above description, it can be seen that in the ECG signal, there are several peaks with particularly obvious fluctuations, namely the Q wave, R wave and S wave in the QRS complex.
- the QRS complex has the highest peak R wave in the ECG.
- These ECG signals are important reference features in the ECG signal. For example, when the Q wave is abnormal, it means that the patient may be at risk of old myocardial infarction. Therefore, retaining the authenticity of the QRS complex in the ECG signal when denoising the signal is of great significance for judging the overall rhythm and frequency.
- the QRS wave in the ECG signal is often the largest, most obvious, and sharpest. Mathematically, this is called the “singularity" or “mutation” of the QRS wave, which is manifested as a sudden change in slope.
- the amplitude difference between two adjacent sampling points on the QRS wave group in the ECG signal is very large, which also leads to a very large absolute value of the slope between two adjacent sampling points in the QRS wave group.
- a wave can be regarded as two parts according to the change trend, namely the rising part (the amplitude of the sampling point is getting larger and larger) and the falling part (the amplitude of the sampling point is getting larger and larger).
- the peak of the wave rises first and then falls, and the trough of the wave falls first and then rises.
- the amplitude of the sampling point in the QRS complex may change with a fixed change trend for a longer time. For example, in the QS segment of the QRS complex, the amplitude of the signal first rises persistently and then falls persistently.
- a sub-signal is selected from the ECG signal with a time window of a fixed length (for example, a time window including 30 sampling points), if this sub-signal is a signal completely located in the QRS complex, then the amplitude of this sub-signal is likely to rise or fall sharply; and if this sub-signal is a signal located in the stable segment signal, then the change trend of the amplitude of this signal is likely to change many times, such as rising first and then falling, and then rising and falling again... and so on. In addition, the change amplitude of this sub-signal (reflected in the image as whether the wave is sharp enough) may be very small.
- a time window of a fixed length for example, a time window including 30 sampling points
- the electronic device can use a change trend as a dimension for reference, and check the persistence and mutation of a signal determined by a sampling point in a change trend, that is, whether there is a continuous sampling point in a signal, the number of these sampling points is sufficient and the amplitude keeps rising or falling sharply, to determine whether the signal is a signal on the QRS wave group, thereby determining whether the sampling point is a point on the QRS wave group or around the QRS wave group.
- the above-mentioned electronic device can construct a feature sequence that can reflect whether this point is a sampling point on the QRS wave group based on the change trend and change amplitude of the amplitude of each sampling point and the sampling points around the sampling point.
- This feature sequence can be called the first feature sequence corresponding to this point.
- the first characteristic sequence corresponding to the above-mentioned target sampling point includes j elements, and the j elements correspond one-to-one to the j sampling points in the above-mentioned signal to be denoised.
- the element corresponding to any one of the above-mentioned j sampling points represents the sum of the rising or falling amplitudes of the sampling points between the above-mentioned any one sampling point and the first sampling point.
- the falling or rising amplitude of any one of the above-mentioned j sampling points is the difference between the amplitude of the above-mentioned any one sampling point and the amplitude of the next sampling point of the above-mentioned any one sampling point.
- the above-mentioned first sampling point is a sampling point located before the above-mentioned any one sampling point, presenting an opposite change trend with the above-mentioned any one sampling point, and being the closest to the above-mentioned any one sampling point.
- the first sampling point can be a sampling point located on a peak or trough in the above-mentioned signal to be detected.
- the above “sum of rising or falling amplitudes” means either the sum of rising amplitudes or the sum of falling amplitudes. That is, only one change trend is observed, and it is determined whether there is a sufficient number of continuous sampling points with a sharp rising amplitude among the above j sampling points, or whether there is a sufficient number of continuous sampling points with a sharp falling amplitude among the above j sampling points.
- the j can be any integer greater than 1.
- the curve in FIG7 is the image of a sub-signal in the above-mentioned signal to be denoised, and the sub-signal is composed of ten sampling points from sampling point 701 to sampling point 710.
- the vertical axis represents the amplitude of the sampling point, and the amplitude of the sampling point located at the top is larger.
- sampling point 701 is the above-mentioned target sampling point
- this section of the ECG signal starting with sampling point 701 and ending with sampling point 710 can be divided into 6 sections according to the amplitude change trend, namely, the rising section corresponding to sampling point 701-sampling point 702, the falling section corresponding to sampling point 702-sampling point 705, the rising section corresponding to sampling point 705-sampling point 706, the falling section corresponding to sampling point 706-sampling point 708, the rising section corresponding to sampling point 708-sampling point 709, and the falling section corresponding to sampling point 709-sampling point 710.
- the change trend of each sampling point depends on whether the sampling point is in the rising section or the falling section.
- sampling point 701 is in the rising segment, the change trend of sampling point 701 is rising; if sampling point 704 is in the falling segment, the change trend of sampling point 704 is falling; sampling point 702, sampling point 705, sampling point 706, sampling point 708, and sampling point 709 are critical points where the change trend changes, and their change trends can be rising or falling, which should be determined according to the change trend of the signal segment in which they are located.
- the sub-signal shown in FIG7 is analyzed with the descending trend as the reference dimension. With the descending trend as the reference dimension, there is no need to consider the degree of change and the speed of change of the rising segment image.
- the change trends between all the sampling points in the rising segment corresponding to sampling point 701-sampling point 702, the rising segment corresponding to sampling point 705-sampling point 706, and the rising segment corresponding to sampling point 708-sampling point 709 can be defaulted to 0, that is, x 701 ⁇ x 702 (x t represents the amplitude corresponding to sampling point t, for example, x 701 represents the amplitude of sampling point 701, the same below), then the change amplitude from x 701 to x 702 is regarded as 0, and similarly, the change amplitude from x 705 to x 706 , and the change amplitude from x 708 to x 709 are all 0.
- sampling point 703-sampling point 705 In the descending section corresponding to sampling point 702-sampling point 705, the change trend of sampling point 703-sampling point 705 is a descending trend.
- sampling point 702 is located before them and is The nearest sampling point that shows the opposite trend, that is, sampling point 702 is the "first sampling point" of sampling points 703-705.
- the sum of the decline amplitude of each sampling point in sampling points 703-sampling point 705 and sampling point 702 is x702 - x703 , x702 - x704 , x702 - x705 .
- the sum of the decline amplitude of each sampling point in sampling points 703-sampling point 705 and sampling point 702 is x06 - x707 , x706 - x708 ; in the descending section corresponding to sampling points 709-sampling point 710, the sum of the decline amplitude of sampling point 710 and sampling point 709 is x709 - x710 .
- the j (here j is equal to 9) elements contained in the first feature sequence corresponding to the sampling point 701 as the target sampling point are [0, x702 - x703 , x702 - x704 , x702 - x705 , 0, x706 - x707 , x706 - x708 , 0, x709 - x710 ]. It can be seen that the 9 sampling points corresponding to these 9 elements are sampling point 702 to sampling point 710, and these nine elements represent the degree of cumulative change of the corresponding sampling points in their respective corresponding signal segments.
- the electronic device may determine the first characteristic sequence corresponding to the target sampling point from the target sampling point in the following manner:
- the target sampling point determines the first time window containing (j+1) sampling points; calculate the amplitude difference between each sampling point and the next sampling point except the last sampling point in the first time window in sequence to obtain j differences; reset the numbers less than 0 in the j differences to 0 to obtain the first sequence corresponding to the target sampling point; perform a forward accumulation reconstruction operation on the elements in the first sequence corresponding to the target sampling point in sequence to obtain the j elements, and use the j elements as the first feature sequence corresponding to the target sampling point; wherein the accumulation reconstruction operation includes: when the value of the element is 0, keep the value of the element unchanged; when the value of the element is not zero, add the value of the element to the value of the previous element until an element with a value of 0 is encountered, and use the value obtained by the forward accumulation as the reconstructed value of the element.
- sampling point 801 in Figure 8 is the target sampling point.
- Sampling point 801-sampling point 810 are the (j+1) sampling points, and the time window corresponding to sampling point 801-sampling point 810 is the first time window.
- the amplitudes of sampling points 801 to 810 are 5, 10, 9, 7, 4, 8, 3, 1, 8, 1 respectively (it should be understood that the amplitudes set here are only for the convenience of readers to understand, and do not represent the amplitudes of the signal to be denoised in the actual scene, the same below).
- the amplitudes of sampling points 801 to 810 are arranged in sequence, that is, a sequence [5, 10, 9, 7, 4, 8, 3, 1, 8, 1] is obtained. 4, 8, 3, 1, 8, 1].
- the amplitude difference between each sampling point and the next sampling point in the above sampling point 801-sampling point 810 is calculated in turn (the previous term minus the next term, if there is no sampling point after sampling point 810, the calculation is stopped), and 9 differences are obtained, which are -5, 1, 2, 3, -4, 5, 2, -7, 7; these 9 differences are the above j differences. These 9 differences are arranged in sequence to obtain a new sequence [-5, 1, 2, 3, -4, 5, 2, -7, 7].
- the numbers less than 0 in the new sequence are reset to 0, and the first sequence corresponding to the above target sampling point (that is, sampling point 801) is obtained [0, 1, 2, 3, 0, 5, 2, 0, 7].
- the cumulative variation threshold corresponding to the target sampling point is determined by the first feature sequence corresponding to the target sampling point and v first feature sequences corresponding to v sampling points before the target sampling point.
- the specific role and determination method of the first feature sequence corresponding to any sampling point among the v sampling points can refer to the above description of the first feature sequence corresponding to the target sampling point, which will not be repeated here.
- the electronic device first determines that a sampling point in the above-mentioned signal to be denoised is the target sampling point, and then determines the first feature sequence corresponding to the target sampling point in the manner described above. After processing the amplitude of the target sampling point, the electronic device will take the next sampling point of the above-mentioned target sampling point as the new target sampling point, and obtain the first feature sequence corresponding to the new target sampling point in the same way. It is not difficult to understand that when the target sampling point changes, the first time window corresponding to the target sampling point will also move backward accordingly (generally moving the position of one sampling point).
- the sampling point 800 is the historical target sampling point, and the sequence composed of the amplitudes of the sampling points in the first time window corresponding to the sampling point 800 is [9, 5, 10, 9, 7, 4, 8, 3, 1, 8,].
- the first characteristic sequence corresponding to the sampling point 800 is [4, 0, 1, 3, 6, 0, 5, 7, 0] (here it is assumed that the sampling point 800 is a point on a peak or a trough).
- the electronic device has used each sampling point before the target sampling point as the target sampling point, and obtained the first characteristic sequence corresponding to these sampling points.
- the remaining elements are all elements in the first characteristic sequence corresponding to the previous sampling point.
- the electronic device after the electronic device determines the first feature sequence corresponding to the target sampling point, the electronic device will determine the first feature sequence corresponding to the target sampling point and the first feature sequence corresponding to the v sampling points before the target sampling point.
- a characteristic sequence determines a threshold, that is, the cumulative variation threshold corresponding to the above target sampling point. This cumulative variation threshold represents a distribution range of the values of most elements in the sequence after the sequence obtained by splicing the first characteristic sequence corresponding to the above target sampling point and the v first characteristic sequences corresponding to the v sampling points before the above target sampling point.
- the value of an element in the sequence is greater than or equal to the cumulative variation threshold, it means that the value of the element is significantly greater than the values of other elements in the sequence, that is, the element is an element that has undergone a mutation, which coincides with the mutation of the QRS wave group in the electrocardiogram signal.
- the electronic device can use the average filtering method to average the amplitude of the target sampling point and the amplitude of the m sampling points around the target sampling point to obtain the target value, and update the amplitude of the target sampling point to the target value, so as to achieve the denoising effect of the target sampling point.
- the target sampling point is likely to be a sampling point located in the QRS wave group in the above-mentioned signal to be denoised.
- the above-mentioned electronic device does not change the amplitude of the above-mentioned target sampling point.
- m may be equal to thirty percent of the sampling frequency of the signal to be denoised.
- the electronic device may concatenate the first feature sequence corresponding to the target sampling point with the v first feature sequences corresponding to the v sampling points to obtain a second sequence.
- the outlier corresponding to the second sequence is determined using the quartile method, and the outlier corresponding to the second sequence is determined as the cumulative variation threshold corresponding to the target sampling point.
- the outlier corresponding to the second sequence is an extreme outlier corresponding to the second sequence.
- MB is the first feature sequence corresponding to the target sampling point
- MB-1 is the first feature sequence corresponding to the sampling point before the target sampling point, and so on
- the sequence obtained by expanding and splicing multiple sequences such as MBv , MB-v+1 , ..., MB, is the second sequence mentioned above.
- the 75th percentile number (upper quartile) of the sequence express The 25th percentile number (lower quartile) of the sequence.
- the first characteristic sequence corresponding to the sampling point 800 and the first characteristic sequence corresponding to the sampling point 801 in the above description are used as examples for description.
- the value of v is 1.
- the first characteristic sequence corresponding to the sampling point 800 is [4, 0, 1, 3, 6, 0, 5, 7, 0]
- the first characteristic sequence corresponding to the sampling point 801 is [0, 1, 3, 6, 0, 5, 7, 0, 7]
- MB [0, 1, 3, 6, 0, 5, 7, 0, 7]
- MB -1 [4, 0, 1, 3, 6, 0, 5, 7, 0].
- the electronic device determines the target sampling point 801 as a sampling point on the stable segment, then the electronic device updates the amplitude of the target sampling point 801, and updates the amplitude of the target sampling point 801 to the average value of the sum of the amplitudes of the m sampling points around the sampling point 801.
- the amplitude of the sampling points in the QRS complex has continuous mutation (or there is a sufficiently large number of continuous sampling points, the amplitude of these sampling points keeps rising or falling sharply)
- the first feature sequence corresponding to these sampling points is likely to produce elements with larger values due to the cumulative variation of the sampling point amplitude, and the first feature sequence corresponding to these sampling points is likely to have elements with values greater than the cumulative variation threshold corresponding to these sampling points.
- the first feature sequence corresponding to these sampling points is likely to be difficult to produce elements with larger values due to the non-accumulative nature of the sampling point amplitude and the small variation between the amplitudes, and the first feature sequence corresponding to these sampling points is basically unlikely to have elements with values greater than the cumulative variation threshold corresponding to these sampling points.
- FIG9 shows an image of an initial signal without denoising and an image of a sequence obtained by splicing the first feature sequences corresponding to each sampling point in the initial signal.
- FIG9 (B) shows an image of an initial signal without denoising, which can be the image of the initial signal in the above description
- FIG9 (A) shows an image of the first feature sequence corresponding to each sampling point in the initial signal.
- multiple first feature sequences corresponding to multiple sampling points can be spliced to obtain a sequence (the sampling point corresponding to each element in this sequence can be the sampling point corresponding to the first feature sequence ending with the element), and the image corresponding to this sequence is the image shown in FIG9 (A).
- the image shown in (A) in Figure 9 also has obvious and sharp waves at these positions, which further verifies that the sampling points on the Q wave, R wave and S wave in the initial signal are likely to have elements with values greater than the cumulative variation threshold corresponding to these sampling points in the corresponding first feature sequence, and the electronic device can By more accurately identifying these sampling points without changing their amplitudes, and specifically denoising the noise of the sampling points in the stable segment signal, the original characteristics of the QRS complex in the ECG signal can be retained, and the ECG signal can be effectively denoised while ensuring its reference value.
- the present application also provides another signal denoising method.
- This method not only refers to the continuous mutation of the peaks of reference significance, but also refers to the average variation degree of the peaks of reference significance in the ECG signal.
- denoising it identifies the sampling points on the waves of reference significance in the ECG signal, especially the sampling points on the R wave, so as to effectively avoid the suppression of the sampling points on these waves when denoising the signal.
- the ECG signal can be effectively denoised while further ensuring the reference value of the ECG signal.
- the ECG signal can be denoised without affecting the waves with reference significance in the ECG signal, that is, the ECG signal can be effectively denoised while ensuring the reference value of the ECG signal.
- the method provided in the embodiment of the present application may include but is not limited to the following steps:
- S1001 The electronic device determines a first feature sequence corresponding to a target sampling point.
- the electronic device may be the electronic device shown in FIG. 4 , or may be the electronic device 100 in the foregoing description.
- the target sampling point is a sampling point in the signal to be de-noised.
- the signal to be de-noised may be a signal directly collected by the electronic device, or may be a signal collected by other devices and sent to the electronic device.
- the signal to be denoised may be an electrocardiogram signal, which may be a bioelectric signal of a biological body surface extracted by the electronic device through electrodes.
- the collected electrocardiogram signal is composed of multiple sampling points sorted according to sampling time.
- the value of the sampling point is the intensity or energy value of the bioelectric signal of the body surface during collection.
- the multiple sampling points are arranged in the order of sampling time to form an electrocardiogram with a certain degree of fluctuation.
- step S1001 can refer to the above description of step S601 in Figure 6, which will not be repeated here.
- the electronic device can execute step S1001 and step S1002 in any order, that is, the electronic device can first execute step S1001 and then execute step S1002; or the electronic device can first execute step S1002 and then execute step S1001; or in some scenarios, the electronic device can execute step S1002 and step S1001 at the same time, and the present application does not limit this.
- S1002 The electronic device determines a first eigenvalue corresponding to the target sampling point.
- the first eigenvalue corresponding to the target sampling point represents the average of the absolute values of the amplitude differences between every two adjacent sampling points in a time window including the target sampling point and containing (k+1) sampling points.
- the QRS wave in the ECG signal is often the largest, most obvious, and sharpest. Mathematically, it is called the “singularity" or “mutation” of the QRS wave, which is manifested as a sudden change in slope. This mutation is more obvious in the R wave of the QRS complex.
- the electronic device can use the above-mentioned target sampling point as a base point to determine a time window containing (k+1) sampling points, and average the absolute value of the amplitude difference between each two adjacent sampling points in this time window to obtain the first eigenvalue corresponding to the above-mentioned target sampling point.
- the first characteristic value corresponding to the target sampling point is based on the absolute value of the amplitude difference between the two sampling points, no matter how the change trend of the (k+1) sampling points changes, the change amplitude between the two sampling points is is a number greater than 0. That is to say, no matter whether the amplitude of the sampling points in the time window containing the (k+1) sampling points is continuously rising, continuously falling, or alternatingly rising and falling, the first eigenvalue corresponding to the target sampling point is the average value of the total slope between each adjacent two sampling points in the (k+1) sampling points.
- the slope i.e., the degree of mutation
- the electronic device can easily determine whether the target sampling point is a QRS wave, especially a point on the R wave, based on the first eigenvalue corresponding to the target sampling point, so as to determine whether the target sampling point needs to be denoised.
- the target sampling point in the time window including the target sampling point and containing (k+1) sampling points, may be the last sampling point in the time window including the (k+1) sampling points; or, in the time window including the target sampling point and containing (k+1) sampling points, there is at least one sampling point before and after the target sampling point.
- the electronic device can obtain k sampling points before the sampling point, and calculate the average of the absolute values of the amplitude differences between each two adjacent sampling points among the (k+1) sampling points ending with the sampling point as the first eigenvalue corresponding to the sampling point. In this way, the electronic device can process the newly obtained sampling point with zero delay, and can complete the processing process of the target sampling point more efficiently.
- the electronic device may not process the sampling point immediately, but continue to obtain signals of several sampling points after the sampling point, and then use the sampling point as a base point to obtain at least one sampling point before the sampling point and at least one sampling point before the sampling point, a total of k sampling points, which are determined together with the sampling point as the (k+1) sampling points, and the average of the absolute values of the amplitude differences between each two adjacent sampling points in the (k+1) sampling points is calculated as the first eigenvalue corresponding to the sampling point.
- the target sampling point is used as the sampling point in the middle of the (k+1) sampling points, so that the calculated first eigenvalue corresponding to the target sampling point can more truly reflect the change trend of the target sampling point, and can accurately judge whether the target sampling point is a point on the QRS complex.
- the electronic device may determine the first eigenvalue corresponding to the target sampling point from the target sampling point in the following manner:
- the electronic device can determine a second time window including (k+1) sampling points; in the second time window, there are n sampling points before the target sampling point, and there are (kn) sampling points after the target sampling point; then the electronic device can sequentially calculate the absolute value of the difference between each sampling point and the previous sampling point in the second time window, obtain k absolute values of the difference, and use the average value of the absolute values of the k differences as the first sampling point corresponding to the target sampling point. Eigenvalues.
- the cumulative variation threshold corresponding to the target sampling point is determined by the first feature sequence corresponding to the target sampling point and v first feature sequences corresponding to v sampling points before the target sampling point.
- step S1003 the details of "the values in the first feature sequence corresponding to the above-mentioned target sampling point are all less than the cumulative variation threshold corresponding to the target sampling point" and "the electronic device averages the amplitude of the target sampling point and the amplitudes of m sampling points around the target sampling point to obtain the target value, and updates the amplitude of the target sampling point to the target value" in step S1003 can be referred to the aforementioned description of step S602 in Figure 6, which will not be repeated here.
- the average variation threshold corresponding to the target sampling point is determined by the first eigenvalue corresponding to the target sampling point and i first feature sequences corresponding to i sampling points before the target sampling point.
- the specific role and determination method of the first eigenvalue corresponding to any sampling point among the i sampling points can refer to the above description of the first eigenvalue corresponding to the target sampling point, which will not be repeated here.
- the electronic device first determines a sampling point in the signal to be denoised as a target sampling point, and then determines the first eigenvalue corresponding to the target sampling point in the manner described above. After processing the amplitude of the target sampling point, the electronic device uses the next sampling point of the target sampling point as a new target sampling point, and obtains the first eigenvalue corresponding to the new target sampling point in the same manner. It is not difficult to understand that when the target sampling point changes, the second time window corresponding to the target sampling point will also move backward accordingly (generally by the position of one sampling point). Taking FIG.
- the electronic device has used each sampling point before the target sampling point as the target sampling point, and obtained the first eigenvalues corresponding to these sampling points.
- the electronic device will determine a threshold value according to the first eigenvalue corresponding to the target sampling point and the first eigenvalues corresponding to the i sampling points before the target sampling point, that is, the average variation threshold value corresponding to the target sampling point.
- This cumulative variation threshold represents a distribution range of the values of most elements in the sequence after the sequence obtained by splicing the first eigenvalue corresponding to the target sampling point and the v first eigenvalues corresponding to the i sampling points before the target sampling point.
- the value of an element in the sequence is greater than or equal to the average variation threshold, it means that the value of the element is significantly greater than the values of other elements in the sequence, that is, the element is an element that has undergone a mutation, which coincides with the mutation of the QRS wave group in the electrocardiogram signal, especially the mutation of the slope of the sampling point on the R wave. Therefore, in this method, if the first eigenvalue corresponding to the target sampling point is less than the average variation threshold corresponding to the target sampling point, it means that the target sampling point is likely to be a sampling point located in the stationary segment signal of the signal to be denoised.
- the electronic device can use the average filtering method to average the amplitude of the target sampling point and the amplitudes of the m sampling points around the target sampling point to obtain a target value, and update the amplitude of the target sampling point to the target value. Value, so as to achieve the denoising effect of the target sampling point.
- the first eigenvalue corresponding to the above target sampling point is greater than or equal to the average variation threshold corresponding to the target sampling point, it means that the target sampling point is likely to be a sampling point located in the QRS complex in the above signal to be denoised.
- the above electronic device does not change the amplitude of the above target sampling point.
- the electronic device may concatenate the first characteristic sequence value corresponding to the target sampling point with the i first characteristic values corresponding to the i sampling points to obtain a third sequence.
- the quartile method is used to determine the abnormal value corresponding to the third sequence, and the abnormal value corresponding to the third sequence is determined as the cumulative variation threshold corresponding to the target sampling point.
- the abnormal value corresponding to the third sequence is the extreme abnormal value corresponding to the second sequence.
- CA is the cumulative variation threshold mentioned above
- M A is the first eigenvalue corresponding to the target sampling point
- M A-1 is the first eigenvalue corresponding to the sampling point before the target sampling point, and so on;
- This is the third sequence mentioned above.
- the first characteristic sequence corresponding to the sampling point 800 and the first characteristic sequence corresponding to the sampling point 801 in the above description are used as examples for description.
- the value of v is 1, i is 7, and the sampling point 801 is the target sampling point.
- the third sequence constructed based on the sampling point 801 is [6, 2.7, 4, 3.5, 5, 3.3, 3.6].
- the first characteristic sequence corresponding to the sampling point 801 is [4, 0, 1, 3, 6, 0, 5, 7, 0]
- the CB corresponding to the sampling point 801 is 28
- the first characteristic sequence corresponding to the sampling point 801 is [4, 0, 1, 3, 6, 0, 5, 7, 0], and the values of the elements in the sequence are all less than 25. If the first characteristic value mA corresponding to the target sampling point 801 is less than CA , the electronic device will determine that the target sampling point 801 is a sampling point in the Q stationary segment signal, and the electronic device will update the amplitude of the target sampling point 801 to the average value of the sum of the amplitudes of the m sampling points around the sampling point 801.
- the direction of the R wave in the QRS complex of the signal may be reversed.
- the R wave in the QRS complex in their ECG signal may be inverted due to myocardial ischemia.
- the rising and falling trends of the sampling points in the R wave are reversed, and the peak and trough of the R wave and the trend of change between the PR segment and the ST segment are also reversed.
- the position of the target sampling point is analyzed only by constructing the first feature sequence corresponding to the target sampling point, it is likely to draw a wrong conclusion, and it is likely to use an inappropriate method to process the amplitude of the target sampling point during the denoising process.
- the first eigenvalue corresponding to the target sampling point only focuses on the amplitude change of the sampling point, and does not focus on the change trend of the amplitude of the sampling point. If the first eigenvalue corresponding to the target sampling point and the first feature sequence corresponding to the target sampling point are used together to judge the area where the target sampling point is located, it is possible to greatly reduce the judgment of the sampling point position on the abnormal ECG signal, determine whether the target signal point is a point located on the QRS complex, and denoise the noise of the stable segment signal in the signal while retaining the characteristics of the Q wave and S wave. In addition, even for a normal ECG signal, the first characteristic value corresponding to the target sampling point is helpful for the electronic device to more quickly and accurately identify whether it is a sampling point on the R wave.
- the first feature sequence and the first feature value corresponding to the target sampling point may correspond to two data features FB and FA of the target sampling point, respectively. If the first feature value mA corresponding to the target sampling point is greater than or equal to the average variation threshold CA corresponding to the target sampling point, the feature FA of the target sampling point is 1, otherwise FA is 0; if there is at least one element in the first feature sequence MB corresponding to the target sampling point that is greater than or equal to the cumulative variation threshold CA corresponding to the target sampling point, the data FB of the target sampling point is 1, otherwise FB is 0.
- the amplitude of the sampling points in the QRS complex has continuous mutation, especially the sampling points on the R wave, the amplitude mutation is very obvious. It can be understood that for the sampling points on the QRS complex, the first characteristic sequence values corresponding to these sampling points are likely to be greater than the average variation threshold corresponding to these sampling points due to the drastic change in the amplitude of the sampling points. Correspondingly, for the sampling points in the stationary signal, the first eigenvalues corresponding to these sampling points are likely to be difficult to be large values due to the small variation between the amplitudes of the sampling points. Therefore, the first eigenvalues corresponding to these sampling points are basically unlikely to be greater than the average variation threshold corresponding to these sampling points.
- FIG11 shows an image of an initial signal without denoising and an image of the first characteristic sequence value corresponding to each sampling point in the initial signal.
- FIG11 (B) shows an image of an initial signal without denoising, which can be the image of the initial signal in the aforementioned description, and
- FIG11 (A) shows an image of the first characteristic value corresponding to each sampling point in the initial signal.
- the image shown in FIG11 (A) also has an obvious wave with a large amplitude at the corresponding position, which further verifies that the sampling point of the R wave in the initial signal, its corresponding first characteristic value is very likely to be greater than the average variation threshold corresponding to these sampling points, and the electronic device can more accurately identify these sampling points without changing their amplitude, and specifically denoise the noise of the sampling points in the stationary segment signal, which can retain the original characteristics of the R wave of the QRS complex in the electrocardiogram signal, and effectively denoise the electrocardiogram signal while ensuring the reference value of the electrocardiogram signal.
- An embodiment of the present application also provides an electronic device, which includes: one or more processors and a memory; wherein the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method shown in the aforementioned embodiment.
- the term "when" may be interpreted to mean “if" or “after" or “in response to determining" or “in response to detecting", depending on the context.
- the phrases “upon determining" or “if (the stated condition or event) is detected” may be interpreted to mean “if determining" or “in response to determining" or “upon detecting (the stated condition or event)” or “in response to detecting (the stated condition or event)", depending on the context.
- the computer program product includes one or more computer instructions.
- the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
- the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
- the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means.
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media.
- the available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk).
- the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium.
- the program When the program is executed, it can include the processes of the above-mentioned method embodiments.
- the aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- Surgery (AREA)
- Animal Behavior & Ethology (AREA)
- Veterinary Medicine (AREA)
- Public Health (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Biophysics (AREA)
- Pathology (AREA)
- Biomedical Technology (AREA)
- Heart & Thoracic Surgery (AREA)
- Medical Informatics (AREA)
- Molecular Biology (AREA)
- Signal Processing (AREA)
- Cardiology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Artificial Intelligence (AREA)
- Psychiatry (AREA)
- Physiology (AREA)
- Power Engineering (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
Description
Claims (13)
- 一种信号的去噪方法,其特征在于,包括:确定目标采样点对应的第一特征序列,所述目标采样点对应的第一特征序列包括j个元素,所述j个元素与待去噪信号中的j个采样点一一对应,所述j个采样点中任意一个采样点对应的元素表征所述任意一个采样点与第一采样点之间的各采样点的上升或下降幅度之和,所述j个采样点中任一采样点的下降或上升幅度为所述任一采样点的幅值与所述任一采样点的后一采样点的幅值的差值,所述第一采样点为位于所述任意一个采样点之前的与所述任意一个采样点呈现相反变化趋势、且与所述任意一个采样点距离最近的一个采样点;在所述目标采样点对应的第一特征序列中的数值均小于所述目标采样点对应的累积变异阈值的情况下,将所述目标采样点的幅值和所述目标采样点周围的m个采样点的幅值进行平均处理,得到目标数值,并将所述目标采样点的幅值更新为所述目标数值,所述目标采样点对应的累积变异阈值由所述目标采样点对应的第一特征序列以及在所述目标采样点之前的v个采样点对应的v个第一特征序列确定。
- 根据权利要求1所述的方法,其特征在于,在将所述目标采样点的幅值和所述目标采样点周围的m个采样点的幅值进行平均处理,得到目标数值之前,所述方法还包括:确定所述目标采样点对应的第一特征值,所述目标采样点对应的第一特征值表征包括所述目标采样点在内、包含(k+1)个采样点的时间窗中每相邻两个采样点之间幅值差的绝对值的均值;所述将所述目标采样点的幅值和所述目标采样点周围的m个采样点的幅值进行平均处理,得到目标数值,包括:在所述目标采样点对应的第一特征序列中的数值均小于所述目标采样点对应的累积变异阈值,且所述目标采样点对应的第一特征值小于平均变异阈值的情况下,将所述目标采样点的幅值和所述目标采样点周围的m个采样点的幅值进行平均处理,得到所述目标数值;所述目标采样点对应的平均变异阈值由所述目标采样点对应的第一特征值以及i个采样点对应的第一特征值确定;在待去噪信号中,所述i个采样点为在所述目标采样点之前的i个采样点。
- 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:在所述目标采样点对应的第一特征序列中存在至少一个数值大于或等于所述目标采样点对应的累积变异阈值的情况下,保持所述目标采样点的幅值不变;和/或,所述目标采样点对应的第一特征值大于或等于所述平均变异阈值的情况下,保持所述目标采样点的幅值不变。
- 根据权利要求1-3任一项所述的方法,其特征在于,在确定目标采样点对应的第一特 征序之前,所述方法还包括:对初始信号进行高通滤波和低通滤波,得到所述待去噪信号,所述初始信号为电子设备采集到的表征用户心律的电信号。
- 根据权利要求2-4任一项所述的方法,其特征在于,所述包括所述目标采样点在内、包含(k+1)个采样点的时间窗中,所述目标采样点为所述包含(k+1)个采样点的时间窗中的最后一个采样点;或,在包括所述目标采样点在内、包含(k+1)个采样点的时间窗中,所述目标采样点之前以及所述目标采样点之后均存在至少一个采样点。
- 根据权利要求1-5任一项所述的方法,其特征在于,所述确定目标采样点对应的第一特征序列,包括:以所述目标采样点为起点,确定包含(j+1)个采样点的第一时间窗;依次计算所述第一时间窗中除最后一个采样点外,每个采样点与后一个采样点之间的幅值差,得到j个差值;将所述j个差值中小于0的数重置为0,得到所述目标采样点对应的第一序列;将所述目标采样点对应的第一序列中的元素依次进行前向累加重构操作,得到所述j个元素,并将所述j个元素作为所述目标采样点对应的第一特征序列;其中,所述累加重构操作包括:在元素的值为0的情况下,保持元素的值不变;在元素的值不为零的情况下,将元素的值与之前的元素的值累加直至遇到值为0的元素为止,并将前向累加所得的值作为元素重构后的值。
- 根据权利要求2-6任一项所述的方法,其特征在于,所述确定所述目标采样点对应的第一特征值,包括:确定包含(k+1)个采样点的第二时间窗;在所述第二时间窗中,所述目标采样点之前存在n个采样点,所述目标采样点之后存在(k-n)个采样点;依次计算所述第二时间窗中每个采样点与前一个采样点之间的差值的绝对值,得到k个差值绝对值,将所述k个差值的绝对值的平均值作为所述目标采样点对应的第一特征值。
- 根据权利要求1-7任一项所述的方法,其特征在于,所述确定目标采样点对应的第一特征序列之后,所述方法还包括:将所述目标采样点对应的第一特征序列与所述v个采样点对应的v个第一特征序列进行拼接,得到第二序列,利用四分位法确定所述第二序列对应的异常值,将所述第二序列对应的异常值确定为所述目标采样点对应的累积变异阈值。
- 根据权利要求2-8任一项所述的方法,其特征在于,所述确定目标采样点对应的第一特征值之后,所述方法还包括:利用所述目标采样点对应的第一特征值与所述i个采样点对应的i个第一特征值构造第 三序列;利用四分位法确定所述第三序列对应的异常值,将所述第三序列对应的异常值确定为所述目标采样点对应的平均变异阈值。
- 根据权利要求8或9任一项所述的方法,其特征在于,所述目标采样点对应的累积变异阈值为利用四分位法确定的所述第二序列对应的极度异常值,和/或,所述目标采样点对应的平均变异阈值为利用四分位法确定的所述第三序列对应的极度异常值。
- 一种电子设备,其特征在于,所述电子设备包括:一个或多个处理器、存储器和显示屏;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行如权利要求1-10中任一项所述的方法。
- 一种芯片系统,其特征在于,所述芯片系统应用于电子设备,所述芯片系统包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行如权利要求1-10中任一项所述的方法。
- 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-10中任一项所述的方法。
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/730,060 US20250114042A1 (en) | 2022-09-29 | 2023-09-08 | Method for removing noise from signal, and electronic device |
| CN202380067352.6A CN119866193A (zh) | 2022-09-29 | 2023-09-08 | 信号的去噪方法及电子设备 |
| EP23870269.0A EP4442194B1 (en) | 2022-09-29 | 2023-09-08 | Signal denoising method and electronic device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211202646.9A CN117770758B (zh) | 2022-09-29 | 2022-09-29 | 心电信号的去噪方法及电子设备 |
| CN202211202646.9 | 2022-09-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024067030A1 true WO2024067030A1 (zh) | 2024-04-04 |
Family
ID=90398663
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/117833 Ceased WO2024067030A1 (zh) | 2022-09-29 | 2023-09-08 | 信号的去噪方法及电子设备 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20250114042A1 (zh) |
| EP (1) | EP4442194B1 (zh) |
| CN (3) | CN117770758B (zh) |
| WO (1) | WO2024067030A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119026998A (zh) * | 2024-10-29 | 2024-11-26 | 青岛华芯晶电科技有限公司 | 一种晶棒质量的智能预警方法及系统 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN121567143A (zh) * | 2026-01-22 | 2026-02-24 | 上海凌耘微电子有限公司 | 基于滑动窗口统计判定的信号干扰滤除方法、系统、设备、介质及程序产品 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070260151A1 (en) * | 2006-05-03 | 2007-11-08 | Clifford Gari D | Method and device for filtering, segmenting, compressing and classifying oscillatory signals |
| CN106889984A (zh) * | 2017-01-22 | 2017-06-27 | 河北大学 | 一种心电信号自动降噪方法 |
| CN114521899A (zh) * | 2020-11-23 | 2022-05-24 | 武汉心络科技有限公司 | 心电信号滤波方法、装置、计算机设备及存储介质 |
| CN114938951A (zh) * | 2022-05-31 | 2022-08-26 | 南京佗道医疗科技有限公司 | 一种呼吸数据处理方法 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6599242B1 (en) * | 2000-07-19 | 2003-07-29 | Medtronic, Inc. | Method and apparatus for data compression of heart signals |
| CN108478215A (zh) * | 2018-01-25 | 2018-09-04 | 深圳市德力凯医疗设备股份有限公司 | 基于小波分析的脑电信号去噪方法、存储介质以及装置 |
| CN111358450B (zh) * | 2020-03-17 | 2023-04-07 | 乐普(北京)医疗器械股份有限公司 | 一种血压分类方法和装置 |
| CN114611542B (zh) * | 2020-11-25 | 2025-08-26 | 华为技术有限公司 | 信号降噪处理方法及通信装置 |
| CN113040784B (zh) * | 2021-04-21 | 2022-07-05 | 福州大学 | 一种心电信号的肌电噪声滤波方法 |
| CN114145757B (zh) * | 2022-02-08 | 2022-05-10 | 广东工业大学 | 一种基于非对称合成滤波器组的脑电信号重构方法 |
-
2022
- 2022-09-29 CN CN202211202646.9A patent/CN117770758B/zh active Active
- 2022-09-29 CN CN202411463225.0A patent/CN119423780A/zh active Pending
-
2023
- 2023-09-08 EP EP23870269.0A patent/EP4442194B1/en active Active
- 2023-09-08 WO PCT/CN2023/117833 patent/WO2024067030A1/zh not_active Ceased
- 2023-09-08 US US18/730,060 patent/US20250114042A1/en active Pending
- 2023-09-08 CN CN202380067352.6A patent/CN119866193A/zh active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070260151A1 (en) * | 2006-05-03 | 2007-11-08 | Clifford Gari D | Method and device for filtering, segmenting, compressing and classifying oscillatory signals |
| CN106889984A (zh) * | 2017-01-22 | 2017-06-27 | 河北大学 | 一种心电信号自动降噪方法 |
| CN114521899A (zh) * | 2020-11-23 | 2022-05-24 | 武汉心络科技有限公司 | 心电信号滤波方法、装置、计算机设备及存储介质 |
| CN114938951A (zh) * | 2022-05-31 | 2022-08-26 | 南京佗道医疗科技有限公司 | 一种呼吸数据处理方法 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4442194A4 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119026998A (zh) * | 2024-10-29 | 2024-11-26 | 青岛华芯晶电科技有限公司 | 一种晶棒质量的智能预警方法及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| US20250114042A1 (en) | 2025-04-10 |
| EP4442194A1 (en) | 2024-10-09 |
| CN119423780A (zh) | 2025-02-14 |
| CN117770758B (zh) | 2024-11-01 |
| EP4442194B1 (en) | 2025-12-10 |
| EP4442194A4 (en) | 2025-01-22 |
| CN119866193A (zh) | 2025-04-22 |
| CN117770758A (zh) | 2024-03-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20240122540A1 (en) | Systems and Methods of Spatial Filtering for Measuring Electrical Signals | |
| CN104363824B (zh) | 心电图中实时qrs持续时间的测量 | |
| EP2547252B1 (en) | Electrocardiographic monitoring system | |
| WO2024067030A1 (zh) | 信号的去噪方法及电子设备 | |
| González-Mendoza et al. | Validation of an EMG sensor for Internet of Things and Robotics | |
| US10448896B2 (en) | Method and apparatus for processing bio-signals using recursive estimation | |
| CN105125202A (zh) | 一种基于低噪声放大器的心电监护系统 | |
| Zhang et al. | A wearable 12-lead ECG acquisition system with fabric electrodes | |
| CN107595277A (zh) | 一种具有运动识别和定位功能的心电监测系统及监测方法 | |
| Mahmud et al. | A real time and non-contact multiparameter wearable device for health monitoring | |
| RU2661756C2 (ru) | Устройство мозг-машинного интерфейса для дистанционного управления экзоскелетными конструкциями | |
| TWI855485B (zh) | 穿戴式聽診器 | |
| CN105249956A (zh) | 一种基于放大电路的心电监护系统 | |
| Shin et al. | WHAM: A novel, wearable heart activity monitor based on Laplacian potential mapping | |
| US20210128001A1 (en) | Ekg monitoring device for use with smart watch | |
| Gawali et al. | A Wearable ECG Sensor for Intelligent Cardiovascular Health Informatics | |
| US20250082217A1 (en) | Apparatus and method of processing biosignal | |
| US20250090075A1 (en) | Ecg signal reconstruction from eeg signal | |
| CN210472139U (zh) | 一种远程心电监护系统 | |
| Ge et al. | ECG Circuit: Analyzation and Application | |
| CN118078300A (zh) | 一种便携式可穿戴医学数据检测系统及方法 | |
| JP2024083227A (ja) | ウェアラブル聴診器 | |
| KR20250039253A (ko) | 생체 신호 처리 장치 및 생체 신호 처리 방법 | |
| Plesnik et al. | Mobile users ECG signal processing | |
| Yadav et al. | Real Time Acquisition and Analysis of ECG signals using MATLAB |
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: 23870269 Country of ref document: EP Kind code of ref document: A1 |
|
| ENP | Entry into the national phase |
Ref document number: 2023870269 Country of ref document: EP Effective date: 20240704 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 18730060 Country of ref document: US |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 202380067352.6 Country of ref document: CN |
|
| WWP | Wipo information: published in national office |
Ref document number: 18730060 Country of ref document: US |
|
| WWP | Wipo information: published in national office |
Ref document number: 202380067352.6 Country of ref document: CN |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWG | Wipo information: grant in national office |
Ref document number: 2023870269 Country of ref document: EP |