Electrocardiosignal detection method, device and equipment and storage medium
Patent Information
- Application Number
- CN202311229104.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-22
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2043-09-22
AI Technical Summary
ECG wearable devices are susceptible to user movement and environment when collecting ECG signals, resulting in poor signal quality and stability, which in turn affects the accurate detection of cardiovascular diseases.
By periodically detecting the target wave in the electrocardiogram, determining the parameter attributes of the target wave, and resetting the parameter attributes of all target waves according to the number of abnormal parameter attributes, thereby improving the accuracy of signal detection.
Accurate detection of ECG signals in high noise scenarios is achieved, and the accuracy and stability of ECG signal detection is improved.
Smart Images

Figure CN119679427A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of signal detection, and in particular to an electrocardiogram signal detection method, device, equipment and storage medium. Background Art
[0002] With the aging of the population and the increase in life pressure, the number of people suffering from cardiovascular diseases is increasing and gradually getting younger. At present, cardiovascular disease has become one of the major diseases that threaten people's life safety. Therefore, real-time monitoring of cardiovascular status plays a very important role in diagnosing cardiovascular disease.
[0003] With the development of technology, the types and functions of wearable devices are becoming more and more abundant. For example, users can monitor their heart rate and cardiovascular diseases by wearing electrocardiogram (ECG) wearable devices, so as to detect cardiovascular diseases as early as possible and treat them in time.
[0004] However, ECG wearable devices are easily affected by user movements and the surrounding environment, resulting in poor quality and stability of the collected ECG signals, which in turn makes it impossible for the ECG wearable devices to accurately analyze the collected ECG signals, making the test results inaccurate, thereby affecting the test results of cardiovascular diseases. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present disclosure provides an electrocardiogram signal detection method, device, equipment and storage medium.
[0006] According to a first aspect of an embodiment of the present disclosure, there is provided an electrocardiogram signal detection method, comprising:
[0007] In response to acquiring an electrocardiogram signal, a target wave in the electrocardiogram signal is periodically detected according to a set window, wherein the target wave is a rising wave corresponding to a peak point whose amplitude is greater than a reference threshold; in response to periodically detecting the target wave in the electrocardiogram signal after a first time, abnormal parameter attributes in the target wave are determined based on a first number of parameter attributes, and a second number of abnormal parameter attributes are determined; based on the second number and the first number of abnormal parameter attributes of the target wave, the parameter attributes of all target waves are reset; and based on the reset parameter attributes, the target wave in the electrocardiogram signal after the first time is detected.
[0008] In one embodiment, the abnormal parameter attributes include: the number of target waves is less than the minimum number threshold; the number of target waves is greater than the maximum number threshold; the standard deviation of the target wave amplitude is greater than the set target wave amplitude standard deviation threshold; the variance of the target wave amplitude is greater than the set target wave amplitude variance threshold; the variability of the target wave amplitude is greater than the set target wave amplitude variability threshold; the standard deviation of the target wave amplitude is greater than the set target wave amplitude standard deviation threshold; the standard deviation of two target wave intervals is greater than the set standard deviation threshold of two target wave intervals; the variance of two target wave intervals is greater than the set variance threshold of two target wave intervals; the variability of two target wave intervals is greater than the set variability threshold of two target wave intervals.
[0009] In one embodiment, resetting the parameter attributes of all target waves based on the second number and the first number of abnormal parameter attributes in the target wave includes: resetting the parameter attributes of all target waves in response to the ratio between the second number and the first number of abnormal parameter attributes of the target wave being greater than a threshold.
[0010] In one embodiment, the parameter attributes based on the first number are used to determine the abnormal parameter attributes in the target wave, and to determine the second number of abnormal parameter attributes, including: in response to the first time, each time the abnormal parameter attribute is detected in each cycle, the number of the abnormal parameter attributes is accumulated by 1 to obtain the second number of the abnormal parameter attributes, and the initial value of the number of the abnormal parameter attributes is 0.
[0011] In one embodiment, the first number of parameter attributes is one or more of preset parameter attributes; the preset parameter attributes include at least one of the following: the minimum number of target waves; the maximum number of target waves; the standard deviation of the target wave amplitude; the variance of the target wave amplitude; the variability of the target wave amplitude; the standard deviation of the interval between two target waves; the variance of the interval between two target waves; the variability of the interval between two target waves.
[0012] According to a second aspect of an embodiment of the present disclosure, there is provided an electrocardiogram signal detection device, comprising:
[0013] a detection unit, configured to, in response to acquiring the electrocardiogram signal, periodically detect a target wave in the electrocardiogram signal according to a set window, wherein the target wave is a rising wave corresponding to a peak point whose amplitude is greater than a reference threshold; and detect the target wave in the electrocardiogram signal after the first time has passed based on the reset parameter attribute;
[0014] a determining unit for determining, in response to the periodic detection of a target wave in the electrocardiographic signal passing a first time, the presence of an abnormal parameter attribute in the abnormal target wave based on a first number of parameter attributes, and determining a second number of the abnormal target wave parameter attributes;
[0015] A reset unit is used to reset the parameter attributes of all target waves based on the second number of abnormal parameter attributes of the abnormal target waves and the first number.
[0016] In one embodiment, the determination unit determines the presence of the abnormal parameter attribute in the target wave in the following manner: the number of target waves is less than the minimum number threshold; the number of target waves is greater than the maximum number threshold; the standard deviation of the target wave amplitude is greater than the set target wave amplitude standard deviation threshold; the variance of the target wave amplitude is greater than the set target wave amplitude variance threshold; the variability of the target wave amplitude is greater than the set target wave amplitude variability threshold; the standard deviation of the target wave amplitude is greater than the set target wave amplitude standard deviation threshold; the standard deviation of the two target wave intervals is greater than the set standard deviation threshold of the two target wave intervals; the variance of the two target wave intervals is greater than the set variance threshold of the two target wave intervals; the variability of the two target wave intervals is greater than the set variability threshold of the two target wave intervals.
[0017] In one embodiment, the reset unit resets the parameter attributes of all target waves based on the second number and the first number of abnormal waves with abnormal parameter attributes in the target wave in the following manner: in response to the ratio between the second number and the first number of abnormal target waves with abnormal parameter attributes of the target wave being greater than a threshold, the parameter attributes of all target waves are reset.
[0018] In one embodiment, the determination unit determines the abnormal target waves with abnormal parameter attributes in the target wave based on the parameter attributes of the first number of detected target waves, and determines the second number of abnormal parameter attribute target waves in the following manner: in response to the first time having passed, each time the abnormal parameter attribute wave is detected in each cycle, the number of the abnormal parameter attribute waves is accumulated by 1 to obtain the second number of the abnormal parameter attribute target waves, and the initial value of the number of the abnormal parameter attribute target waves is 0.
[0019] In one embodiment, the first number of parameter attributes is one or more of preset parameter attributes; the preset parameter attributes include at least one of the following: the minimum number of target waves detected; the maximum number of target waves detected; the standard deviation of the target wave amplitude; the variance of the target wave amplitude; the variability of the target wave amplitude; the standard deviation of the interval between two target waves; the variance of the interval between two target waves; the variability of the interval between two target waves.
[0020] According to a third aspect of an embodiment of the present disclosure, there is provided an electrocardiogram signal detection device, comprising:
[0021] processor;
[0022] a memory for storing processor-executable instructions;
[0023] The processor is configured to: execute the method described in the first aspect or any one of the embodiments of the first aspect.
[0024] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the method described in the first aspect or any one of the embodiments of the first aspect.
[0025] The technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: by determining the target wave, obtaining the parameter attributes of the first number of target waves in the first time, determining the presence of abnormal parameter attributes in the target wave based on the parameter attributes and determining the second number of abnormal parameter attributes. That is, converting the detection result of the electrocardiogram signal into a monitorable parameter attribute, determining the abnormality of the detected electrocardiogram signal through the abnormal parameter attribute and all parameter attributes, resetting the parameter attributes in all target waves, and re-detecting the target wave in the electrocardiogram signal, thereby detecting in real time whether the target wave in the electrocardiogram signal is a normal signal, ensuring that a normal electrocardiogram signal is detected, and thereby improving the accuracy of electrocardiogram signal detection in a high-noise scenario.
[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0028] Figure 1 is a schematic diagram showing an electrocardiogram collected by an ECG wearable device according to an exemplary embodiment.
[0029] Figure 2 The figure is a flow chart of a method for detecting an electrocardiogram signal according to an exemplary embodiment.
[0030] Figure 3 The figure is a flow chart of a method for detecting an electrocardiogram signal according to an exemplary embodiment.
[0031] Figure 4 The figure is a flow chart of a method for detecting an electrocardiogram signal according to an exemplary embodiment.
[0032] Figure 5 The figure is a block diagram of an electrocardiogram signal detection device according to an exemplary embodiment.
[0033] Figure 6 The invention is a block diagram of a device for detecting electrocardiogram signals according to an exemplary embodiment. DETAILED DESCRIPTION
[0034] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0035] The ECG signal detection method provided by the present disclosure is applied to scenarios of ECG signal detection, such as scenarios of ECG signal detection performed on wearable devices.
[0036] With the aging of the population and the increase in life pressure, the number of people suffering from cardiovascular diseases is increasing and gradually getting younger. Cardiovascular disease has become one of the major diseases that threaten people's life safety, and electrocardiogram is a reliable basis for clinical diagnosis of cardiovascular disease. However, conventional ECG monitoring equipment is large in size, difficult to wear, and does not meet the user's need for real-time ECG monitoring. Therefore, the development of ECG wearable devices in the field of wearable health monitoring technology is an inevitable trend in scientific and technological development.
[0037] At present, ECG wearable devices can collect ECG data through sensors, analyze ECG data, and perform dynamic electrocardiogram monitoring, thereby achieving the function of preventing cardiovascular diseases. Among them, the heart rate can only be calculated after the R wave in the ECG data is calibrated, so it is necessary to analyze the R wave signal in the ECG signal. Figure 1 is a schematic diagram of an electrocardiogram collected by an ECG wearable device according to an exemplary embodiment. Figure 1 As shown, during the ECG wearable device's electrocardiogram collection process, due to the unstable capacitance of the wearable device or the user is not in a suitable state for electrocardiogram detection, the early collection signal has an abnormal waveform, which affects the detection algorithm and leads to inaccurate later detection signals.
[0038] In the related art, the slope method detection algorithm can be improved by implementing an updated amplitude screening threshold and a slope comparison threshold, and adding an R wave interval check, so as to detect the R wave in real time with a higher accuracy under the condition of greater interference. However, when updating the amplitude screening threshold, the first amplitude screening threshold is still calculated by the abnormal waveform signal. Therefore, improving the slope method detection algorithm cannot well guarantee the accurate detection of the heart rate through the ECG with abnormal waveform.
[0039] In the related art, the received patient physiological information can be compared with the starting threshold. When the starting threshold is exceeded, the system is transferred to a reset threshold different from the starting threshold; when the reset threshold is exceeded, the system is transferred back to the starting threshold. However, there is no solution for updating or resetting the threshold for ECG signals with abnormal waveforms. Therefore, the related art cannot solve the problem of accurately detecting ECG signals under high noise.
[0040] Therefore, the present disclosure determines the target wave, obtains the parameter attributes of the first number of the target wave in the first time, determines the existence of abnormal parameter attributes in the target wave based on the parameter attributes, and determines the second number of abnormal parameter attributes. Based on the second number and the first number, when it is judged that the current signal detection result is abnormal, the parameter attributes in all the target waves can be reset, thereby ensuring that a normal signal is obtained, thereby improving the accuracy of electrocardiogram signal detection.
[0041] Figure 2 is a flow chart of a method for detecting an electrocardiogram signal according to an exemplary embodiment. Figure 2 As shown, the electrocardiogram signal detection method is used in a terminal and includes the following steps.
[0042] In step S11 , in response to acquiring the electrocardiographic signal, a target wave in the electrocardiographic signal is periodically detected according to a set window.
[0043] The target wave is a rising wave corresponding to a peak point whose amplitude is greater than a reference threshold.
[0044] The rising wave may be an R wave, and the R wave may be an upward wave in an electrocardiogram signal.
[0045] In the embodiment of the present disclosure, the reference threshold value may be the product of the reference value and the amplitude base value. For example, the reference threshold value may be the product of 0.4 and the amplitude base value. The amplitude corresponding to the median peak point of the peak points in the first window of the setting window may be used as the amplitude base value.
[0046] In the disclosed embodiment, the ECG signal can be obtained by a sensor installed on a wearable device. The baseline drift and motion noise in the collected ECG signal can be removed by a bandpass filter, and the power frequency interference and its harmonics can be removed by a notch filter, so as to obtain a more accurate ECG signal.
[0047] In step S12, in response to periodically detecting a target wave in the electrocardiographic signal for a first time, determining abnormal parameter attributes in the target wave based on a first number of parameter attributes, and determining a second number of abnormal parameter attributes.
[0048] Among them, the first time can include multiple setting windows.
[0049] The setting window may represent the electrocardiogram signal detected within a set time.
[0050] In the embodiment of the present disclosure, a first number of parameter attributes are determined in the target wave, and whether the detected target wave is reasonable can be represented based on the first number of parameter attributes.
[0051] In the disclosed embodiment, whether there are abnormal parameter attributes in the target wave can be determined based on the parameter attributes in the target wave, and the abnormal parameter attributes are counted to obtain a second number of abnormal data parameters.
[0052] In step S13, the parameter attributes of all target waves are reset based on the second number and the first number of abnormal parameter attributes of the target waves.
[0053] In the embodiment of the present disclosure, resetting the target wave parameter attribute may be setting the target wave parameter attribute to zero.
[0054] In the disclosed embodiment, after receiving the filtered ECG signal, the target wave is periodically detected in a set window, and after a first time, a first number of target wave parameter attributes are obtained. Based on the target wave parameter attributes, abnormal target waves in the target wave are obtained, and a second number of abnormal target waves is determined. Based on the ratio between the second number and the first number, the target wave parameter attributes are reset.
[0055] In step S14, based on the reset parameter attributes, the target wave in the electrocardiographic signal after the first time has passed is detected.
[0056] In the disclosed embodiment, after resetting the target wave parameter attributes, the target wave in the ECG signal after a first period of time is re-detected to obtain a first number of parameter attributes in the target wave after a second first period of time, and abnormal parameter attributes and their number in the target wave are determined to determine whether the parameter attributes need to be reset.
[0057] In the disclosed embodiment, by determining the target wave, obtaining the parameter attributes of the first number of target waves in the first time, determining the presence of abnormal parameter attributes in the target wave based on the parameter attributes and determining the second number of abnormal parameter attributes. That is, the detection result of the ECG signal is converted into a monitorable parameter attribute, the detected ECG signal is abnormal according to the proportion of the abnormal parameter attribute in all the parameter attributes, the parameter attributes in all the target waves are reset, and the target waves in the ECG signal are re-detected, so as to detect in real time whether the monitored ECG signal is a normal signal, and detect the normal ECG signal, thereby improving the accuracy of ECG signal detection.
[0058] In the disclosed embodiment, it is possible to determine whether the target wave is an abnormal target wave by comparing the parameter attributes of the detected target wave with a preset attribute threshold.
[0059] In the embodiment of the present disclosure, when at least one of the following is detected, it can be determined that there are abnormal parameter attributes in the target wave: the number of detected target waves is less than the minimum number threshold; the number of detected target waves is greater than the maximum number threshold; the standard deviation of the detected target wave amplitude is greater than the set target wave amplitude standard deviation threshold; the variance of the detected target wave amplitude is greater than the set target wave amplitude variance threshold; the variability of the detected target wave amplitude is greater than the set target wave amplitude variability threshold; the standard deviation of the detected target wave amplitude is greater than the set target wave amplitude standard deviation threshold; the standard deviation of the detected interval between two target waves is greater than the set standard deviation threshold between two target waves; the variance of the detected interval between two target waves is greater than the set variance threshold between two target waves; the variability of the detected interval between two target waves is greater than the set variability threshold between two target waves.
[0060] In the disclosed embodiment, the parameter attributes of all target waves may be reset based on the ratio between the second number of abnormal parameter attributes of the target wave and the first number of parameter attributes in the target wave.
[0061] Figure 3 is a flow chart of a method for detecting an electrocardiogram signal according to an exemplary embodiment. Figure 3 As shown, the electrocardiogram signal detection method is used in a terminal and includes the following steps.
[0062] In step S21, in response to acquiring the electrocardiographic signal, a target wave in the electrocardiographic signal is periodically detected according to a set window.
[0063] In step S22, in response to periodically detecting a target wave in the electrocardiographic signal for a first time, determining abnormal parameter attributes in the target wave based on a first number of parameter attributes, and determining a second number of abnormal parameter attributes.
[0064] In step S23, in response to the ratio between the second number and the first number of abnormal parameter attributes of the target waves being greater than a threshold, the parameter attributes of all target waves are reset.
[0065] The threshold value may be preset by a user, and different threshold values may represent detection of electrocardiogram signals with different accuracy.
[0066] In step S24, based on the reset parameter attributes, the target wave in the electrocardiographic signal after the first time has passed is detected.
[0067] Among them, steps S21, S22, and S24 are the same as steps S11, S12, and S14, and will not be described in detail here.
[0068] In the embodiment of the present disclosure, a first number of parameter attributes of the target wave within a first time are obtained, and based on the parameter attributes of the target wave, it is determined that there are abnormal parameter attributes in the target wave, and the abnormal parameter attributes are determined to be a second number. When the ratio between the second number and the first number is greater than a threshold value, it is determined to reset the parameter attributes of all target waves and set the parameter attributes to zero.
[0069] In the embodiment of the present disclosure, resetting the parameter attributes of all target waves may be to set the parameter attributes of the target waveform to zero, and then reacquire the parameter attributes when monitoring the target waveform in real time.
[0070] In the embodiment of the present disclosure, if it is determined that the ratio between the second number and the first number is greater than a threshold, the parameter attributes of all target waves are reset; if it is determined that the ratio between the second number and the first number is greater than a threshold, there is no need to reset the parameter attributes of the target wave.
[0071] In the disclosed embodiment, when it is determined that the ratio between the second number and the first number is greater than a threshold value, that is, when the ratio between the abnormal parameter attribute and all parameter attributes in the target wave is greater than the threshold value, it can be determined that the current signal detection result is abnormal, and the parameter attributes can be reset so that new parameter attributes can be obtained when performing ECG signal detection, and the new parameter attributes can be detected, so as to ensure the rationality of the ECG signal and improve the accuracy of ECG signal detection.
[0072] In the embodiment of the present disclosure, in response to determining the abnormal parameter attributes from the first number of parameter attributes, the abnormal parameter attributes are counted to determine a second number of the abnormal parameter attributes.
[0073] Figure 4 is a flow chart of a method for detecting an electrocardiogram signal according to an exemplary embodiment. Figure 4 As shown, the electrocardiogram signal detection method is used in a terminal and includes the following steps.
[0074] In step S31 , based on the first number of parameter attributes, abnormal parameter attributes in the target wave are determined, and a second number of abnormal parameter attributes are determined.
[0075] In step S32, in response to the first time period having passed, each time an abnormal parameter attribute is detected in each cycle, the number of abnormal parameter attributes is cumulatively increased by 1 to obtain a second number of abnormal parameter attributes.
[0076] Among them, the initial value of the abnormal parameter attribute target wave number is 0.
[0077] In the embodiment of the present disclosure, after determining that there are abnormal parameter attributes in the target wave based on the parameter attributes in the target wave, the abnormal attributes in each cycle of target wave detection within the first time are counted from zero, and the counting result is the second number of abnormal parameter attributes.
[0078] In the disclosed embodiment, by counting the abnormal parameter attributes in the target wave, the number of abnormal attributes in the target waveform within the first time is determined, and the number of abnormal attributes can be compared with the number of all data attributes of the target wave to determine whether the target wave is abnormal, thereby enabling normal and accurate ECG signals to be obtained during ECG testing.
[0079] In the embodiment of the present disclosure, the first number of parameter attributes are one or more of the preset parameter attributes, wherein the preset parameter attributes include at least one of the following:
[0080] The minimum number of target waves detected; the maximum number of target waves detected; the standard deviation of the target wave amplitude; the variance of the target wave amplitude; the variability of the target wave amplitude; the standard deviation of the interval between two target waves; the variance of the interval between two target waves; the variability of the interval between two target waves.
[0081] In the embodiments of the present disclosure, the electrocardiogram signal detection method is described in conjunction with the following examples.
[0082] In the disclosed embodiment, the electrocardiogram signal detection method is described in combination with using an ECG wearable device to detect R waves in an ECG signal.
[0083] In the disclosed embodiment, the ECG signal is collected by the sensor in the ECG wearable device, and the baseline offset and motion noise are removed by the bandpass filter in the ECG wearable device, and the power frequency interference and power frequency harmonics in the ECG signal are removed by the notch filter, for example, the 50Hz or 60Hz power frequency interference and its harmonics in the ECG signal are removed by the notch filter.
[0084] In the disclosed embodiment, the filtered ECG signal is acquired and periodically detected according to a set window to determine the R wave.
[0085] In the disclosed embodiment, after determining that the current waveform is an R wave, the position and amplitude corresponding to the R wave are recorded.
[0086] In the disclosed embodiment, the R wave is a waveform having a peak point whose amplitude is greater than a reference threshold.
[0087] The product of the data threshold and the base value of the amplitude of the R wave may be used as a reference threshold, wherein the data threshold may be an empirical value obtained by the user from a database.
[0088] In the embodiment of the present disclosure, all peak points are determined in the first window of the setting window, wherein the peak point includes at least one of the following: in response to the point being located at the beginning or end of the ECG signal, if the amplitude corresponding to the point is greater than the amplitude of the points adjacent to the signal, then the point is a peak point; or in response to the point not being located at the beginning or end of the ECG signal, if the amplitude corresponding to the point is greater than the amplitude of the adjacent points on both sides, then the point is a peak point. The median point of all peak points is used as the base value of the R wave amplitude.
[0089] In the disclosed embodiment, the ECG signal is detected in real time, and the amplitude base value is updated in real time. The updated amplitude threshold value can be calculated by the following formula:
[0090]
[0091] Among them, R t is the amplitude base value, L n is the position of the R wave, R n is the amplitude of the R wave, is the updated amplitude base value, where n represents the (n+1)th target wave.
[0092] In the embodiment of the present disclosure, the acquired ECG signal is analyzed after T seconds to acquire parameter attributes corresponding to the R wave signal, wherein the number of parameter attributes is a first number. The parameter attributes may be one or more of the following parameter attributes preset by the user: the minimum number of target waves detected; or the maximum number of target waves detected; or the standard deviation of the target wave amplitude; or the variance of the target wave amplitude; or the variability of the target wave amplitude; or the standard deviation of the interval between two target waves; or the variance of the interval between two target waves; or the variability of the interval between two target waves. The number of abnormal R waves is determined to be a second number based on parameter attributes, wherein the abnormal R waves include at least one of the following: the number of R waves is less than a minimum number threshold; the number of R waves is greater than a maximum number threshold; the standard deviation of the R wave amplitude is greater than a set R wave amplitude standard deviation threshold; the variance of the R wave amplitude is greater than a set R wave amplitude variance threshold; the variability of the R wave amplitude is greater than a set R wave amplitude variability threshold; the standard deviation of the R wave amplitude is greater than a set R wave amplitude standard deviation threshold; the standard deviation of the RR interval is greater than a set RR interval standard deviation threshold; the variance of the RR interval is greater than a set RR interval variance threshold; the variability of the RR interval is greater than a set RR interval variability threshold.
[0093] In the disclosed embodiment, when the ratio of the second number to the first number is greater than the ratio threshold, all the parameters of the R wave are reset, wherein all the parameters of the R wave include the position and amplitude corresponding to the R wave, and the parameter attributes corresponding to the R wave signal. For example, the ratio threshold is preset to 30%, the parameter attributes of the R wave obtained, i.e., the first number, are 8 items, and the number of abnormal R waves, i.e., the second number, is 4, then the ratio between the second number and the first number is 50%, which is greater than the preset ratio threshold, therefore, the currently obtained ECG signal is not added, and all the parameters of the R wave need to be reset.
[0094] In the disclosed embodiment, the ECG signal after T seconds is used as the first window of the setting window, and the above operation is repeated, so that the rationality of the ECG signal can be judged. When the ECG signal is unreasonable, the signal is reset to obtain an ECG signal with better quality, thereby increasing the accuracy of ECG signal detection.
[0095] Based on the same concept, the embodiment of the present disclosure also provides an electrocardiogram signal detection device.
[0096] It is understandable that in order to realize the above functions, the ECG signal detection device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0097] Figure 5 is a block diagram of an electrocardiogram signal detection device according to an exemplary embodiment. Figure 5 The device includes a detection unit 101, a determination unit 102 and a reset unit 103.
[0098] The detection unit is used to respond to the acquisition of the electrocardiogram signal and periodically detect the target wave in the electrocardiogram signal according to the set window. The target wave is a rising wave corresponding to a peak point with an amplitude greater than a reference threshold; based on the reset parameter attributes, the target wave in the electrocardiogram signal after the first time is detected.
[0099] The determination unit is used to determine the existence of abnormal parameter attributes in the abnormal target wave based on a first number of parameter attributes in response to the periodic detection of the target wave in the electrocardiographic signal after a first time, and determine a second number of abnormal target wave parameter attributes.
[0100] The reset unit is used to reset the parameter attributes of all target waves based on the second quantity and the first quantity of the abnormal parameter attributes of the abnormal target waves.
[0101] In one embodiment, the determination unit determines that there are abnormal parameter attributes in the target wave in the following manner: the number of target waves is less than the minimum number threshold. The number of target waves is greater than the maximum number threshold. The standard deviation of the target wave amplitude is greater than the set target wave amplitude standard deviation threshold. The variance of the target wave amplitude is greater than the set target wave amplitude variance threshold. The variability of the target wave amplitude is greater than the set target wave amplitude variability threshold. The standard deviation of the target wave amplitude is greater than the set target wave amplitude standard deviation threshold. The standard deviation of the two target wave intervals is greater than the set standard deviation threshold of the two target wave intervals. The variance of the two target wave intervals is greater than the set variance threshold of the two target wave intervals. The variability of the two target wave intervals is greater than the set variability threshold of the two target wave intervals.
[0102] In one embodiment, the reset unit resets the parameter attributes of all target waves based on the second number and the first number of abnormal waves with abnormal parameter attributes in the target wave in the following manner: in response to the ratio between the second number and the first number of abnormal target waves with abnormal parameter attributes of the target wave being greater than a threshold, the parameter attributes of all target waves are reset.
[0103] In one embodiment, the determination unit determines the abnormal target waves with abnormal parameter attributes in the target wave based on the parameter attributes of the first number of detected target waves, and determines the second number of abnormal parameter attribute target waves in the following manner: in response to the first time having passed, each time an abnormal parameter attribute wave is detected in each cycle, the number of abnormal parameter attribute waves is accumulated by 1 to obtain the second number of abnormal parameter attribute target waves, and the initial value of the number of abnormal parameter attribute target waves is 0.
[0104] In one embodiment, the first number of parameter attributes is one or more of the preset parameter attributes. The preset parameter attributes include at least one of the following: the minimum number of target waves detected. Or the maximum number of target waves detected. Or the standard deviation of the target wave amplitude. Or the variance of the target wave amplitude. Or the variability of the target wave amplitude. Or the standard deviation of the interval between two target waves. Or the variance of the interval between two target waves. Or the variability of the interval between two target waves.
[0105] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0106] Figure 62 is a block diagram of a device 200 for detecting an electrocardiogram signal according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0107] Reference Figure 6 , device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .
[0108] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 202 may include one or more modules to facilitate the interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate the interaction between the multimedia component 208 and the processing component 202.
[0109] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0110] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
[0111] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0112] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.
[0113] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0114] The sensor assembly 214 includes one or more sensors for providing various aspects of status assessment for the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, and the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200, and the temperature change of the device 200. The sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 214 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0115] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0116] In an exemplary embodiment, the device 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0117] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0118] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0119] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0120] It will be further understood that the terms “center”, “longitudinal”, “lateral”, “front”, “back”, “up”, “down”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation.
[0121] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0122] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0123] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0124] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A method for detecting an electrocardiogram signal, characterized in that: The method comprises: In response to acquiring the ECG signal, periodically detecting a target wave in the ECG signal according to a set window, wherein the target wave is a rising wave corresponding to a peak point whose amplitude is greater than a reference threshold; In response to periodically detecting a target wave in the electrocardiographic signal passing a first time, determining abnormal parameter attributes in the target wave based on a first number of parameter attributes, and determining a second number of abnormal parameter attributes; Resetting the parameter attributes of all target waves based on the second number of the target wave abnormal parameter attributes and the first number; Based on the reset parameter attribute, the target wave in the electrocardiographic signal after the first time has passed is detected.
2. The electrocardiogram signal detection method according to claim 1, characterized in that: The abnormal parameter attributes include: the number of target waves is less than the minimum number threshold; The number of target waves is greater than the maximum number threshold; The standard deviation of the target wave amplitude is greater than the set target wave amplitude standard deviation threshold; The variance of the target wave amplitude is greater than the set target wave amplitude variance threshold; The target wave amplitude variation rate is greater than the set target wave amplitude variation rate threshold; The standard deviation of the target wave amplitude is greater than the set target wave amplitude standard deviation threshold; The standard deviation of the two target wave intervals is greater than the set standard deviation threshold of the two target wave intervals; The variance between the two target wave periods is greater than the set variance threshold between the two target wave periods; The variation rate between the two target wave periods is greater than the set variation rate threshold between the two target wave periods.
3. The ECG signal detection method according to claim 1, wherein the resetting of the parameter attributes of all target waves based on the second number of abnormal parameter attributes in the target wave and the first number comprises: In response to a ratio between the second number of abnormal parameter attributes of the target wave and the first number being greater than a threshold, the parameter attributes of all target waves are reset.
4. The electrocardiogram signal detection method according to claim 1, characterized in that: The determining of abnormal parameter attributes in the target wave based on the first number of parameter attributes, and determining a second number of abnormal parameter attributes, comprises: In response to the first time period having passed, each time the abnormal parameter attribute is detected in each cycle, the number of the abnormal parameter attributes is cumulatively increased by 1 to obtain a second number of the abnormal parameter attributes, and an initial value of the number of the abnormal parameter attributes is 0.
5. The method according to claim 1 or 2, characterized in that: The first number of parameter attributes are one or more of the preset parameter attributes; The preset parameter attributes include at least one of the following: Minimum number of target waves; Maximum number of target waves; standard deviation of the target wave amplitude; The variance of the target wave amplitude; The rate of variation of the target wave amplitude; The standard deviation of the interval between the two target waves; the variance between the two target waves; The variability between the two target waves.
6. An electrocardiogram signal detection device, characterized in that: The device comprises: A detection unit, configured to, in response to acquiring an electrocardiogram signal, periodically detect a target wave in the electrocardiogram signal according to a set window, wherein the target wave is a rising wave corresponding to a peak point whose amplitude is greater than a reference threshold; and detect the target wave in the electrocardiogram signal after a first time has passed based on a reset parameter attribute; a determining unit, configured to determine, in response to the periodically detecting that the target wave in the electrocardiographic signal passes through the first time, based on the first number of parameter attributes, that there is an abnormal parameter attribute in the abnormal target wave, and determine a second number of the abnormal target wave parameter attributes; A reset unit is used to reset the parameter attributes of all target waves based on the second number of abnormal parameter attributes of the abnormal target waves and the first number.
7. The electrocardiogram signal detection device according to claim 6, characterized in that: The determination unit determines that the abnormal parameter attribute exists in the target wave in the following manner: The number of target waves is less than the minimum number threshold; The number of target waves is greater than the maximum number threshold; The standard deviation of the target wave amplitude is greater than the set target wave amplitude standard deviation threshold; The variance of the target wave amplitude is greater than the set target wave amplitude variance threshold; The target wave amplitude variation rate is greater than the set target wave amplitude variation rate threshold; The standard deviation of the target wave amplitude is greater than the set target wave amplitude standard deviation threshold; The standard deviation of the two target wave intervals is greater than the set standard deviation threshold of the two target wave intervals; The variance between the two target wave periods is greater than the set variance threshold between the two target wave periods; The variation rate between the two target wave periods is greater than the set variation rate threshold between the two target wave periods.
8. The electrocardiogram signal detection device according to claim 6, wherein the resetting unit resets the parameter attributes of all target waves based on the second number of abnormal waves with abnormal parameter attributes in the target waves and the first number of abnormal waves in the target waves in the following manner: In response to a ratio between a second number of target waves having abnormal parameter attributes of the target waves and the first number being greater than a threshold, parameter attributes of all target waves are reset.
9. The electrocardiogram signal detection device according to claim 6, characterized in that: The determining unit determines abnormal target waves with abnormal parameter attributes in the target waves based on the detected first number of parameter attributes of the target waves, and determines a second number of target waves with abnormal parameter attributes in the following manner: In response to the first time, each time the abnormal parameter attribute wave is detected in each cycle, the number of the abnormal parameter attribute waves is accumulated by 1 to obtain the second number of the abnormal parameter attribute target waves, and the initial value of the abnormal parameter attribute target wave number is 0.
10. The device according to claim 6 or 7, characterized in that The first number of parameter attributes are one or more of the preset parameter attributes; The preset parameter attributes include at least one of the following: Minimum number of target waves detected; The maximum number of target waves detected; standard deviation of the target wave amplitude; The variance of the target wave amplitude; The rate of variation of the target wave amplitude; The standard deviation of the interval between the two target waves; the variance between the two target waves; The variability between the two target waves.
11. An electrocardiogram signal detection device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the electrocardiogram signal detection method according to any one of claims 1-5.
12. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Detection method and device for electrocardiosignals
CN105286852A
Method and device for processing electrocardiograph signals
CN108720832A
Electrocardiosignal analysis method, device, storage medium and processor
CN110393519A
Detection method and detection equipment
CN111695083A
Method for realizing electrocardiograph anomaly detection and classification through deep neural network based on multi-size convolution kernels
CN113128585A
Cited By
Lightweight neural network model-based arrhythmia identification method and system
CN120616567A