Electrocardiosignal detection method and device, electronic equipment and storage medium

By collecting electrocardiogram (ECG) signals in wearable devices and performing peak location and waveform analysis, it is possible to determine whether the heartbeat is abnormal. This solves the problem of tremors affecting ECG signal detection and improves the flexibility and accuracy of detection.

CN118892324APending Publication Date: 2024-11-05VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411222542.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

In existing technologies, when wearable devices measure electrocardiogram (ECG) signals, the user's finger tremors can affect the accuracy of the test results, leading to abnormal tremors that affect the detection effect of ECG signals.

Method used

By collecting electrocardiogram (ECG) signals, peak location is performed to determine each heartbeat, and waveforms from one heartbeat to the next are obtained. Based on the amplitude values ​​of the sampling points in the waveform, it is determined whether the heartbeat is abnormal, thus reducing the impact of jitter on the detection results.

Benefits of technology

It improves the flexibility and accuracy of ECG signal detection, reduces the impact of abnormal jitter on the detection results, and ensures that abnormal heartbeats can be accurately identified when jitter is present.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118892324A_ABST
    Figure CN118892324A_ABST
Patent Text Reader

Abstract

The invention discloses an electrocardiosignal detection method and device, electronic equipment and a storage medium, and belongs to the technical field of electronic equipment. The electrocardiosignal detection method comprises the steps that a first electrocardiosignal is collected; peak positioning is carried out on the first electrocardiosignal, each heartbeat in the first electrocardiosignal is determined, and each heartbeat is a point corresponding to each peak in the first electrocardiosignal; acquiring a first waveform from a first heartbeat to at least one second heartbeat in the first electrocardiosignal; wherein the second heartbeat is adjacent to the first heartbeat; and based on the amplitude value of each sampling point in the first waveform, determining a detection result of the first heartbeat, the detection result representing whether the first heartbeat is an abnormal heartbeat.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a method, device, electronic equipment and storage medium for detecting an electrocardiogram signal. Background Art

[0002] In daily life, users often use wearable devices to detect human health conditions, such as using smart watches to measure heart rate, blood oxygen, electrocardiogram, blood pressure, etc. During the measurement process, in order to improve the measurement accuracy, the human body is often required to remain in a resting state.

[0003] In the related art, the user presses his finger on the ECG electrode of the smart watch (the above-mentioned wearable device), and the smart watch measures the user's ECG signal through the ECG electrode. However, during the measurement process, the user's finger will inevitably shake slightly, and these slight shakes will also be reflected in the ECG signal. If the wearable device still directly performs pathological detection on the ECG signal, these slight shakes will affect the detection results of the ECG signal.

[0004] It can be seen that the method of detecting ECG signals by electronic devices (the above-mentioned wearable devices) in the related art is not flexible enough, resulting in abnormal jitters that affect the detection results of ECG signals. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for detecting an electrocardiogram signal, which can improve the flexibility of the electronic device in detecting an electrocardiogram signal, thereby reducing the impact of abnormal jitter on the detection results of the electrocardiogram signal.

[0006] In a first aspect, an embodiment of the present application provides a method for detecting an electrocardiogram signal, which is applied to a wearable device, and the method includes: collecting a first electrocardiogram signal; performing peak location on the first electrocardiogram signal to determine each heartbeat in the first electrocardiogram signal, wherein each heartbeat is a point corresponding to each peak in the first electrocardiogram signal; obtaining a first waveform from a first heartbeat to at least one second heartbeat in the first electrocardiogram signal; wherein the second heartbeat is adjacent to the first heartbeat; and determining a detection result of the first heartbeat based on the amplitude value of each sampling point in the first waveform, wherein the detection result indicates whether the first heartbeat is an abnormal heartbeat.

[0007] In the second aspect, an embodiment of the present application provides a method and device for detecting an electrocardiogram signal, the device comprising: an acquisition module, a determination module and an acquisition module. The acquisition module is used to acquire a first electrocardiogram signal. The determination module is used to perform peak location on the first electrocardiogram signal, and determine each heartbeat in the first electrocardiogram signal, where each heartbeat is a point corresponding to each peak in the first electrocardiogram signal. The acquisition module is used to acquire a first waveform from a first heartbeat to at least one second heartbeat in the first electrocardiogram signal acquired by the acquisition module; wherein the second heartbeat is adjacent to the first heartbeat. The determination module is also used to determine a detection result of the first heartbeat based on the amplitude value of each sampling point in the first waveform acquired by the acquisition module, and the detection result characterizes whether the first heartbeat is an abnormal heartbeat.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the electrocardiogram signal detection method as described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the electrocardiogram signal detection method as described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the electrocardiogram signal detection method as described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method for detecting electrocardiogram signals as described in the first aspect.

[0012] In an embodiment of the present application, a wearable device collects a first electrocardiogram signal; and performs peak location on the first electrocardiogram signal to determine each heartbeat in the first electrocardiogram signal, where each heartbeat is a point corresponding to each peak in the first electrocardiogram signal, and obtains a first waveform from the first heartbeat to at least one second heartbeat in the first electrocardiogram signal, where the second heartbeat is adjacent to the first heartbeat; based on the amplitude value of each sampling point in the first waveform, a detection result of the first heartbeat is determined, and the detection result characterizes whether the first heartbeat is an abnormal heartbeat. In this solution, since the waveform of a normal electrocardiogram signal is regular, but in the case of abnormal jitter during the acquisition process, the waveform of the electrocardiogram signal will change, therefore, the wearable device can determine whether the first heartbeat is an abnormal heartbeat through the first waveform from the first heartbeat to at least one second heartbeat in the first electrocardiogram signal, so as to determine whether the user jitters during the acquisition of the electrocardiogram signal. In this way, after collecting the ECG signal, the wearable device does not perform pathological detection directly based on the ECG signal, but first detects whether there is an abnormal heartbeat in the ECG signal to determine whether there is abnormal jitter in the process of detecting and collecting the ECG signal, thereby reducing the impact of abnormal jitter on the detection results of the ECG signal and improving the flexibility of ECG signal detection and the accuracy of the detection results. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a schematic diagram of a smart watch provided in an embodiment of the present application;

[0014] Figure 2 is a schematic diagram of a smart watch measuring an electrocardiogram signal in accordance with the electrocardiogram signal detection method according to an embodiment of the present application;

[0015] Figure 3 is a schematic diagram of four types of ECG signals provided in an embodiment of the present application;

[0016] Figure 4 This is one of the flow charts of the method for detecting an electrocardiogram signal provided in an embodiment of the present application;

[0017] Figure 5 This is the second flow chart of the method for detecting an electrocardiogram signal provided in an embodiment of the present application;

[0018] Figure 6 is one of the schematic diagrams of the filtered ECG signal provided in the embodiment of the present application;

[0019] Figure 7 This is the second schematic diagram of the filtered ECG signal provided in the embodiment of the present application;

[0020] Figure 8 This is the third flow chart of the method for detecting an electrocardiogram signal provided in an embodiment of the present application;

[0021] Fig. 9This is a third schematic diagram of a filtered ECG signal provided in an embodiment of the present application;

[0022] Fig.10 This is the fourth flow chart of the method for detecting an electrocardiogram signal provided in an embodiment of the present application;

[0023] Fig.11 This is one of the flowcharts of detecting whether a heartbeat is an abnormal heartbeat provided in an embodiment of the present application;

[0024] Fig.12 This is the fifth flow chart of the method for detecting an electrocardiogram signal provided in an embodiment of the present application;

[0025] Fig.13 This is a fourth schematic diagram of a filtered ECG signal provided in an embodiment of the present application;

[0026] Fig.14 This is the sixth flow chart of the method for detecting an electrocardiogram signal provided in an embodiment of the present application;

[0027] Fig.15 This is the second flow chart of detecting whether a heartbeat is an abnormal heartbeat provided in an embodiment of the present application;

[0028] Fig.16 This is one of the structural schematic diagrams of the electrocardiogram signal detection device provided in the embodiment of the present application;

[0029] Fig.17 This is the second structural schematic diagram of the electrocardiogram signal detection device provided in the embodiment of the present application;

[0030] Fig.18 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0031] Fig.19 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0033] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0034] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0035] The following, in conjunction with the accompanying drawings, describes in detail the electrocardiogram signal detection method, device, electronic device and storage medium provided in the embodiments of the present application through specific embodiments and their application scenarios.

[0036] The electrocardiogram signal detection method provided in the embodiment of the present application can be applied to the scenario of measuring electrocardiogram signals using wearable devices.

[0037] Exemplarily, the wearable device may be any electronic device capable of collecting ECG signals, such as a smart watch or a smart bracelet.

[0038] Take the wearable device as a smart watch as an example. Figure 1 is a schematic diagram of a smart watch provided in an embodiment of the present application, the smart watch includes electrocardiogram electrodes, Figure 1 (a) is a schematic diagram of the front of the smart watch. Figure 1 (b) in the figure is a schematic diagram of the back of the smart watch.

[0039] Figure 2 It is a schematic diagram of measuring ECG signals by a smart watch according to the ECG signal detection method of an embodiment of the present application. Figure 2 (a) is the measurement of the electrocardiogram (ECG) or electrocardiogram signal when the user's finger is not shaking. Figure 2 (b) in the figure is the measurement of the electrocardiogram or ECG signal when the user's fingers are slightly shaking.

[0040] Figure 3 Schematic diagram of four types of ECG signals provided in the embodiments of the present application. Figure 3 (a) is a schematic diagram of a normal ECG signal. Figure 3 (b) is a schematic diagram of the ECG signal of the disease (ventricular premature beats). Figure 3 (c) and Figure 3 (d) in the figure are schematic diagrams of ECG signals with abnormal jitter. Figure 3 Among the four ECG signals, it can be seen Figure 3 (c) and Figure 3 (d) in both Figure 3 It is similar to (b) in the figure, which shows that abnormal jitter can easily interfere with the detection results of electronic devices on ECG signals.

[0041] To this end, an embodiment of the present application provides a method for detecting an electrocardiogram signal, wherein a wearable device collects a first electrocardiogram signal; and performs peak location on the first electrocardiogram signal, determines each heartbeat in the first electrocardiogram signal, where each heartbeat is a point corresponding to each peak in the first electrocardiogram signal, and obtains a first waveform from the first heartbeat to at least one second heartbeat in the first electrocardiogram signal, where the second heartbeat is adjacent to the first heartbeat; based on the amplitude value of each sampling point in the first waveform, determines a detection result of the first heartbeat, and the detection result characterizes whether the first heartbeat is an abnormal heartbeat. In this solution, since the waveform of a normal electrocardiogram signal is regular, but in the case of abnormal jitter during the acquisition process, the waveform of the electrocardiogram signal will change, therefore, the wearable device can determine whether the first heartbeat is an abnormal heartbeat through the first waveform from the first heartbeat to at least one second heartbeat in the first electrocardiogram signal, so as to determine whether the user has jitter during the acquisition of the electrocardiogram signal. In this way, after collecting the ECG signal, the wearable device does not directly perform pathological detection based on the ECG signal, but first detects whether there is abnormal jitter in the process of collecting the ECG signal, thereby reducing the impact of abnormal jitter on the detection result of the ECG signal, and improving the flexibility of ECG signal detection and the accuracy of the detection result.

[0042] The execution subject of the method for detecting an ECG signal provided in the embodiment of the present application may be a detection device for ECG signals. Exemplarily, the detection device for ECG signals may be an electronic device, or a functional component or functional entity in the electronic device. The electronic device of the embodiment of the present application may be a wearable device. The following will take the execution subject as an example of a wearable device to exemplify the method for detecting an ECG signal provided in the embodiment of the present application.

[0043] Figure 4 is a flow chart of a method for detecting an electrocardiogram signal provided in an embodiment of the present application, such as Figure 4As shown, the method for detecting an electrocardiogram signal provided in an embodiment of the present application may include the following steps 101 to 104.

[0044] Step 101: A wearable device collects a first electrocardiogram signal.

[0045] Optionally, in an embodiment of the present application, the first ECG signal may be a complete ECG signal or a partial ECG signal obtained by the wearable device performing an ECG signal measurement on the user.

[0046] Optionally, in the embodiment of the present application, the user wears the wearable device and triggers ECG signal measurement on the wearable device, then the wearable device can measure the user's ECG signal of a first preset duration to obtain a first ECG signal. Alternatively, the wearable device can extract a portion of the ECG signal of a second preset duration from the ECG signal of the first preset duration as the first ECG signal.

[0047] It should be noted that the first preset duration or the second preset duration can be set by the wearable device by default or according to actual needs, and the embodiment of the present application does not limit this. For example, the first preset duration can be 1 minute or 2 minutes, and the second preset duration can be 30 seconds.

[0048] For example, taking the wearable device as a smart watch as an example, combined with the above Figure 1 , Figure 2 After the user wears the smart watch, the ECG electrodes on the back of the dial are close to the wrist. The user clicks the ECG measurement control on the display screen of the smart watch and presses his finger on the ECG electrodes on the side of the smart watch. The smart watch measures the user's ECG signal for 2 minutes to obtain the first ECG signal.

[0049] Optionally, in an embodiment of the present application, the first electrocardiogram signal may be obtained by sampling the complete electrocardiogram signal or a portion of the electrocardiogram signal at a preset sampling rate.

[0050] It should be noted that the preset sampling rate may be set by default by the wearable device or according to actual needs, and the present application embodiment does not limit this. For example, the preset sampling rate may be 50 Hz or 60 Hz.

[0051] Step 102: The wearable device performs peak location on the first electrocardiogram signal to determine each heartbeat in the first electrocardiogram signal.

[0052] In the embodiment of the present application, each of the above-mentioned heartbeats is a point corresponding to each peak in the above-mentioned first electrocardiogram signal.

[0053] Optionally, in an embodiment of the present application, the wearable device may set a fixed threshold value, and determine the sampling points in the first electrocardiogram signal whose amplitude values ​​are greater than the fixed threshold value as points corresponding to the peaks, that is, heartbeats.

[0054] It should be noted that the above-mentioned fixed threshold can be set according to actual needs or experience, and the present application embodiment does not limit this. For example, the above-mentioned fixed threshold can be 6V.

[0055] Optionally, in an embodiment of the present application, the wearable device can calculate the second-order derivative of the above-mentioned first electrocardiogram signal, and determine the point where the second-order derivative is zero as the point corresponding to the peak, that is, the heartbeat.

[0056] Optionally, in an embodiment of the present application, the wearable device may also use a pre-trained neural network to perform peak detection on the first electrocardiogram signal and output each heartbeat in the first electrocardiogram signal.

[0057] It should be noted that the above-mentioned implementation methods of peak location of the first electrocardiogram signal are all examples. In actual applications, the wearable device can also use other methods to locate the peak of the first electrocardiogram signal, and the embodiments of the present application are not limited to this.

[0058] Optionally, in the embodiment of the present application, combined with Figure 4 ,like Figure 5 As shown, after the above step 101, the method for detecting electrocardiogram signals provided in the embodiment of the present application may further include the following step 11, and the above step 102 may be implemented by the following step 12.

[0059] Step 11: The wearable device uses a target filtering method to filter the first electrocardiogram signal to obtain a filtered first electrocardiogram signal.

[0060] In the embodiment of the present application, the above-mentioned target filtering method includes at least one of the following: a high-pass filtering method, a band-pass filtering method, and an integral filtering method.

[0061] In the embodiment of the present application, the wearable device can use any high-pass filter capable of high-pass filtering to perform high-pass filtering on the first electrocardiogram signal. Exemplarily, the bandwidth of the high-pass filter can be set to 14 Hz.

[0062] In the embodiment of the present application, the wearable device can use any bandpass filter capable of implementing bandpass filtering to perform bandpass filtering on the first electrocardiogram signal. The bandwidth of the bandpass filter can be set to 0.67 Hz-40 Hz.

[0063] In an embodiment of the present application, the wearable device can perform integral filtering processing on the first electrocardiogram signal according to a preset window length.

[0064] It should be noted that the preset window length may be set by default of the wearable device or according to actual needs, and the present application embodiment does not limit this. For example, the preset window length may be 100.

[0065] Exemplarily, the wearable device can obtain the absolute value of the amplitude value of each sampling point in the first ECG signal, and then accumulate the amplitude values ​​of 100 points according to a preset window length of 100, and so on, to perform integral filtering on the first ECG signal to obtain a filtered first ECG signal.

[0066] In the embodiment of the present application, the wearable device can perform bandpass filtering on the first ECG signal to eliminate high-frequency noise and low-frequency noise in the first signal, and obtain the first ECG signal after bandpass filtering. Alternatively, the wearable device can perform high-pass filtering on the first ECG signal to eliminate low-frequency noise in the first ECG signal, and then perform integral filtering on the first ECG signal after high-pass filtering to eliminate high-frequency noise in the first signal, and obtain the first ECG signal after integral filtering, that is, obtain a smoother first ECG signal.

[0067] In this way, the wearable device performs filtering processing on the first ECG signal, thereby removing part of the noise in the first ECG signal, obtaining a smoother first ECG signal, reducing the influence of noise on ECG signal detection, and improving the accuracy of ECG signal detection.

[0068] Step 12: The wearable device performs peak location on the filtered first electrocardiogram signal to determine each heartbeat in the filtered first electrocardiogram signal.

[0069] For example, taking the wearable device performing bandpass filtering on the first electrocardiogram signal as an example, Figure 6 As shown, after the wearable device performs bandpass filtering on the first ECG signal, the Figure 6 The wearable device performs peak location on the first electrocardiogram signal after the bandpass filtering, and obtains Figure 6 The first ECG signal after bandpass filtering and peak location shown in (b) is Figure 6 The circles in (b) correspond to the heartbeats in the first electrocardiogram signal after filtering.

[0070] As another example, take the example of the wearable device performing high-pass filtering and integral filtering on the first electrocardiogram signal, as follows: Figure 7 As shown, after the wearable device performs high-pass filtering on the first ECG signal, the Figure 7 The wearable device further performs integration filtering on the first ECG signal after high-pass filtering, and then performs peak location on the first ECG signal after integration filtering, to obtain Figure 7 The first ECG signal after high-pass filtering, integral filtering and peak location shown in (b) of FIG. Figure 7 The points in (b) correspond to the heartbeats in the filtered first ECG signal.

[0071] Step 103: The wearable device obtains a first waveform from a first heartbeat to at least one second heartbeat in the first electrocardiogram signal.

[0072] In the embodiment of the present application, the second heartbeat is adjacent to the first heartbeat.

[0073] In the embodiment of the present application, the first heartbeat may be any heartbeat in the first electrocardiogram signal. The second heartbeat may be the previous heartbeat of the first heartbeat, or the second heartbeat may be the next heartbeat of the first heartbeat.

[0074] Optionally, in an embodiment of the present application, the wearable device may obtain a first waveform from a first heartbeat to a next heartbeat of the first heartbeat in the first electrocardiogram signal. Alternatively, the wearable device may obtain a first waveform from a previous heartbeat of the first heartbeat to the first heartbeat in the first electrocardiogram signal. Alternatively, the wearable device may obtain a waveform from a previous heartbeat of the first heartbeat to the first heartbeat, and a waveform from the first heartbeat to the next heartbeat of the first heartbeat, that is, obtain a first waveform from a previous heartbeat of the first heartbeat to a next heartbeat of the first heartbeat.

[0075] For example, Figure 7 As shown in (b), assuming that point B corresponds to the first heartbeat, point A corresponds to the previous heartbeat of the first heartbeat, and point C corresponds to the next heartbeat of the first heartbeat. The wearable device can obtain the first waveform from point B to point C, or obtain the first waveform from point A to point B, or obtain the first waveform from point A to point C.

[0076] Step 104: The wearable device determines a detection result of the first heartbeat based on the amplitude value of each sampling point in the first waveform.

[0077] In the embodiment of the present application, the above detection result indicates whether the above first heartbeat is an abnormal heartbeat.

[0078] In the embodiment of the present application, the wearable device can determine the detection result of the first heartbeat by calculating the standard deviation or comparing the amplitude values ​​of the sampling points. Next, the specific implementation of determining the detection result of the first heartbeat by the above two methods is described.

[0079] The first implementation method: Combination Figure 4 ,like Figure 8 As shown, the above step 104 can be implemented by following steps 201 and 202 .

[0080] Step 201: The wearable device determines a first standard deviation based on the amplitude value of each sampling point in the first waveform.

[0081] In the embodiment of the present application, the first standard deviation represents the degree of discreteness of the amplitude values ​​of each sampling point in the first waveform.

[0082] Optionally, in an embodiment of the present application, the wearable device may first calculate the average value of the amplitude values ​​of multiple sampling points in the first waveform, and then calculate the difference between the average value and the amplitude value of each sampling point based on the average value and the amplitude value of each sampling point to obtain multiple differences, and then calculate the arithmetic square root of the sum of the multiple differences to obtain the first standard deviation.

[0083] Optionally, in an embodiment of the present application, if at least one second heartbeat is the previous heartbeat of the first heartbeat, the above-mentioned first waveform is a waveform from the previous heartbeat of the first heartbeat to the first heartbeat, and the wearable device calculates the first standard deviation based on the amplitude value of each sampling point in the waveform.

[0084] For example, Fig. 9 As shown, assuming that the first heartbeat is the nth heartbeat, then at least one second heartbeat is the n-1th heartbeat, and the first waveform is the waveform from the n-1th heartbeat to the nth heartbeat, that is, Fig. 9 The wearable device may calculate the standard deviation (ie, the first standard deviation) of the amplitude values ​​of each sampling point in segment 1 according to the amplitude values ​​of each sampling point in segment 1.

[0085] Optionally, in an embodiment of the present application, if at least one second heartbeat is the next heartbeat of the first heartbeat, the above-mentioned first waveform is a waveform from the first heartbeat to the next heartbeat of the first heartbeat, and the wearable device calculates the first standard deviation based on the amplitude value of each sampling point in the waveform.

[0086] For example, Fig. 9 As shown, assuming that the first heartbeat is the nth heartbeat, then at least one second heartbeat is the n+1th heartbeat, and the first waveform is the waveform from the nth heartbeat to the n+1th heartbeat, that is, Fig. 9 The wearable device may calculate the standard deviation (ie, the first standard deviation) of the amplitude value of each sampling point in segment 2 according to the amplitude value of each sampling point in segment 2.

[0087] Optionally, in an embodiment of the present application, if at least one second heartbeat is two second heartbeats, and the two second heartbeats are respectively the previous heartbeat of the first heartbeat and the next heartbeat of the first heartbeat, then the first waveform includes a waveform from the previous heartbeat of the first heartbeat to the first heartbeat, and a waveform from the first heartbeat to the next heartbeat of the first heartbeat. It can be understood that the first waveform is a waveform from the previous heartbeat of the first heartbeat to the next heartbeat of the first heartbeat. Therefore, the wearable device calculates the first standard deviation based on the amplitude peaks of each sampling point in the waveform.

[0088] For example, Fig. 9 As shown, assuming that the first heartbeat is the nth heartbeat, the two second heartbeats are the n-1th heartbeat and the n+1th heartbeat, respectively, and the first waveform is the waveform from the n-1th heartbeat to the n+1th heartbeat, that is, Fig. 9 The wearable device may calculate the standard deviation (ie, the first standard deviation) of the amplitude value of each sampling point in segment 3 according to the amplitude value of each sampling point in segment 3.

[0089] Optionally, in the embodiment of the present application, in the case where the first waveform is a waveform from a first heartbeat to two second heartbeats, and the two second heartbeats are respectively a previous heartbeat of the first heartbeat and a next heartbeat of the first heartbeat, Figure 8 ,like Fig.10 As shown, the above step 201 can be implemented through the following steps 2011 and 2012.

[0090] Step 2011: The wearable device determines a second standard deviation, a third standard deviation, and a fourth standard deviation based on the amplitude value of each sampling point in the first waveform.

[0091] Optionally, in an embodiment of the present application, when the first waveform is a waveform from a first heartbeat to two second heartbeats, the wearable device may divide the first waveform into three waveforms. The first waveform is a waveform from a previous heartbeat to the first heartbeat. The second waveform is a waveform from the first heartbeat to the next heartbeat. The third waveform is a waveform from the previous heartbeat to the next heartbeat.

[0092] Optionally, in an embodiment of the present application, the second standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the previous heartbeat to the first heartbeat, that is, the standard deviation of the amplitude values ​​of each sampling point in the first waveform.

[0093] Optionally, in an embodiment of the present application, the third standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the first heartbeat to the next heartbeat, that is, the standard deviation of the amplitude values ​​of each sampling point in the second waveform.

[0094] Optionally, in an embodiment of the present application, the fourth standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the previous heartbeat to the next heartbeat, that is, the standard deviation of the amplitude values ​​of each sampling point in the third waveform.

[0095] It should be noted that for the second standard deviation, the third standard deviation and the fourth standard deviation, and the calculation process of these three standard deviations, reference can be made to the relevant description of the first standard deviation in the above embodiment, and the embodiments of the present application will not be repeated here.

[0096] Step 2012: The wearable device determines the maximum standard deviation among the second standard deviation, the third standard deviation, and the fourth standard deviation as the first standard deviation.

[0097] In the case where the first waveform is a waveform from a first heartbeat to two second heartbeats, the wearable device may divide the first waveform into three waveforms. The first waveform is a waveform from a previous heartbeat to the first heartbeat. The second waveform is a waveform from the first heartbeat to the next heartbeat. The third waveform is a waveform from the previous heartbeat to the next heartbeat.

[0098] For example, in combination Fig. 9 ,like Fig.11 As shown, assuming that the first heartbeat is the nth heartbeat, the two second heartbeats are the n-1th heartbeat and the n+1th heartbeat, respectively. The first waveform is the waveform from the n-1th heartbeat to the n+1th heartbeat. The waveform is divided into three waveforms. The first waveform is Fig.11 The second waveform of segment 1 is Fig.11 In segment 2, the third waveform is Fig.11 The wearable device can calculate the standard deviation s1 of segment 1 (i.e., the second standard deviation), calculate the standard deviation s2 of segment 2 (i.e., the third standard deviation), calculate the standard deviation s3 of segment 3 (i.e., the fourth standard deviation), determine the maximum standard deviation (i.e., the first standard deviation) from s1, s2, and s3, and determine whether the maximum standard deviation is greater than the first threshold value. If so, determine that the nth heartbeat is an abnormal heartbeat, and if not, determine that the nth heartbeat is not an abnormal heartbeat, that is, the nth heartbeat is a normal heartbeat.

[0099] In this way, since abnormal jitter will not only affect the amplitude value of the heartbeat collected at the moment when the abnormal jitter occurs, but may also affect the waveform collected later, and whether the heartbeat is abnormal needs to be determined based on the waveform over a period of time, the wearable device calculates the second standard deviation of the amplitude value of each sampling point in the waveform from the previous heartbeat to the first heartbeat, calculates the third standard deviation of the amplitude value of each sampling point in the waveform from the first heartbeat to the next heartbeat, and calculates the fourth standard deviation of the amplitude value of each sampling point in the waveform from the previous heartbeat to the next heartbeat, and selects the maximum standard deviation as the first standard deviation for subsequent judgment. Since the waveform corresponding to the maximum standard deviation is more likely to be abnormal, using the maximum standard deviation to determine whether the first heartbeat is abnormal can improve the accuracy of determining the abnormal heartbeat.

[0100] Step 202: When the first standard deviation is greater than the first threshold, the wearable device determines that the detection result indicates that the first heartbeat is an abnormal heartbeat.

[0101] It should be noted that the first threshold value may be set by default of the wearable device or according to actual needs, and the embodiment of the present application does not limit this. For example, the first threshold value may be 0.02.

[0102] In the embodiment of the present application, when the first standard deviation is less than or equal to the first threshold, the wearable device determines that the detection result indicates that there is no abnormal jitter in the first heartbeat.

[0103] Thus, in the first implementation method, since the change of the amplitude value of the sampling point in the normal ECG signal is regular, the calculated standard deviation is also relatively small, and the amplitude value of the sampling point in the case of abnormal jitter may not conform to the above rule. Therefore, in the presence of abnormal jitter, the calculated standard deviation will be relatively large. The embodiment of the present application determines whether the first heartbeat is an abnormal heartbeat by judging the relationship between the first standard deviation and the first threshold value. Before performing pathological detection based on the ECG signal, the abnormal heartbeat in the ECG signal can be detected, and then whether there is abnormal jitter in the process of collecting the ECG signal can be determined. This can reduce the impact of abnormal jitter on the pathological detection of the ECG signal, and improve the flexibility of ECG signal detection and the accuracy of pathological detection results.

[0104] The second implementation method: Combination Figure 4 ,like Fig.12 As shown, the above step 104 can also be implemented through the following steps 301 and 302.

[0105] Step 301: The wearable device determines an abnormality detection threshold based on a peak value of a first heartbeat and a peak value of a second heartbeat.

[0106] In an embodiment of the present application, the wearable device can add the peak value of the first heartbeat to the peak value of the second heartbeat, and then divide the sum by a preset value to obtain an abnormality detection threshold.

[0107] It should be noted that the above preset value can be set according to experience or actual needs, and the present embodiment of the application does not limit this. For example, the above preset value can be 20 or 30.

[0108] Optionally, in an embodiment of the present application, the second heartbeat may be the previous heartbeat of the first heartbeat, and the wearable device adds the peak value of the first heartbeat to the peak value of the previous heartbeat of the first heartbeat, and then divides the sum by a preset value to obtain an abnormality detection threshold.

[0109] Optionally, in an embodiment of the present application, the second heartbeat may be the next heartbeat of the first heartbeat, and the wearable device adds the peak value of the first heartbeat to the peak value of the next heartbeat of the first heartbeat, and then divides the sum by a preset value to obtain an abnormality detection threshold.

[0110] Step 302: When there is an amplitude value greater than the abnormality detection threshold among the amplitude values ​​of the sampling points in the first waveform, the wearable device determines that the detection result indicates that the first heartbeat is an abnormal heartbeat.

[0111] In the embodiment of the present application, when there is no amplitude value greater than the abnormality detection threshold among the amplitude values ​​of each sampling point in the first waveform, the wearable device determines that the detection result indicates that the first heartbeat is a normal heartbeat.

[0112] For example, see Fig.13 , Fig.13 (a) in FIG. 1 is the first ECG signal obtained after bandpass filtering and integral filtering, in which abnormal jitter exists. Fig.13 In (b), the wearable device calculates the abnormality detection threshold based on the peak value v1 of the nth heartbeat (i.e., the first heartbeat mentioned above) and the peak value v2 of the n+1th heartbeat (i.e., the next heartbeat of the first heartbeat mentioned above). If there is an amplitude value greater than the abnormality detection threshold between the waveform peak value v1 of the nth heartbeat and the peak value v2 of the n+1th heartbeat, the nth heartbeat is determined to be an abnormal heartbeat.

[0113] It should be noted that, in the second implementation manner described above, the amplitude value of each sampling point in the filtered first electrocardiogram signal is a positive number.

[0114] Thus, in the second implementation method, after the wearable device passes through high-pass filtering and integral filtering, the amplitude values ​​of each sampling point in the filtered first ECG signal are all positive numbers. For a normal ECG signal, the amplitude values ​​of each sampling point between two peak values ​​are small and regular. However, if there is abnormal jitter, the abnormal jitter may cause the amplitude value to increase. Therefore, by comparing the amplitude values ​​of each sampling point between the two peak values ​​with the size of the abnormal detection threshold, it is possible to determine whether the first heartbeat is an abnormal heartbeat, and then determine whether there is abnormal jitter in the process of collecting the ECG signal, that is, before performing pathological detection based on the ECG signal, detecting the presence of an abnormal heartbeat in the ECG signal can reduce the impact of abnormal jitter in the acquisition process on the pathological detection of the ECG signal, thereby improving the flexibility of ECG signal detection and the accuracy of pathological detection results.

[0115] It should be noted that the present embodiment only takes the first heartbeat as an example to illustrate the detection method of the electrocardiogram signal. In fact, for each heartbeat in the first electrocardiogram signal, the detection method of the electrocardiogram signal provided in the present embodiment can be used to determine whether each heartbeat is an abnormal heartbeat.

[0116] Exemplarily, after the wearable device obtains the first ECG signal, it can start from the first heartbeat of the first ECG signal, use the ECG signal detection method provided in the embodiment of the present application, traverse each heartbeat, and determine whether each heartbeat is an abnormal heartbeat.

[0117] Furthermore, after the wearable device traverses each heartbeat in the first electrocardiogram signal and determines whether each heartbeat is an abnormal heartbeat, it can obtain a detection result of the first electrocardiogram signal. The detection result of the first electrocardiogram signal indicates whether there is an abnormal heartbeat in the first electrocardiogram signal. In addition, the detection result of the first electrocardiogram signal may also include the position of the abnormal heartbeat in the first electrocardiogram signal.

[0118] For example, the detection result of the first electrocardiogram signal indicates that there are abnormal heartbeats in the first electrocardiogram signal, and the 10th heartbeat and the 11th heartbeat are abnormal heartbeats.

[0119] Furthermore, the wearable device may display the detection result of the first ECG signal on a display screen of the wearable device so that the user can choose whether to re-measure the ECG signal. Alternatively, when there are many abnormal heartbeats in the first ECG signal, the wearable device may directly display an option of "Measurement error, please re-measure" on the display screen.

[0120] Optionally, in an embodiment of the present application, if there is an abnormal heartbeat in the first ECG signal but the user chooses not to re-measure, the wearable device can perform pathological detection based on normal heartbeats other than the abnormal heartbeat in the first ECG signal to determine the user's health status.

[0121] The ECG signal detection method provided in the embodiment of the present application is that after the user uses a wearable device to measure the ECG and obtains the ECG signal, the wearable device detects whether there is an abnormal heartbeat in the ECG signal, and then determines whether there is abnormal jitter in the process of collecting the ECG signal, and reminds the user to re-measure or use the normal heartbeat in the ECG signal for subsequent detection when abnormal jitter exists. Compared with the related art of directly performing pathological detection on the ECG signal, the wearable device can reduce the influence of abnormal jitter in the acquisition process on the pathological detection of the ECG signal, thereby improving the flexibility of ECG signal detection and the accuracy of pathological detection results.

[0122] Fig.14 It is a flowchart of the method for detecting an electrocardiogram signal provided in an embodiment of the present application. The method may include the following steps 501 to 517.

[0123] Step 501: The wearable device collects a first electrocardiogram signal.

[0124] It should be noted that after the wearable device collects the first electrocardiogram signal, step 502 is executed, or step 510 is executed.

[0125] Step 502: The wearable device uses a bandpass filter to perform bandpass filtering on the first electrocardiogram signal to obtain a filtered first electrocardiogram signal.

[0126] Exemplarily, the bandwidth of the above-mentioned bandpass filter is set to 0.67 Hz-40 Hz.

[0127] Step 503: The wearable device performs peak location on the filtered first electrocardiogram signal to determine each heartbeat in the first electrocardiogram signal.

[0128] Step 504: The wearable device determines the first heartbeat as the current heartbeat.

[0129] It should be noted that the current heartbeat in this embodiment is the first heartbeat in the above embodiment.

[0130] Step 505: The wearable device obtains a first waveform from a previous heartbeat of the current heartbeat to a next heartbeat of the current heartbeat in the first electrocardiogram signal.

[0131] Step 506: The wearable device performs RR interval segmentation analysis on the first waveform.

[0132] In the embodiment of the present application, the RR interval is the time period between two heartbeats.

[0133] Exemplarily, the wearable device divides the waveform from the previous heartbeat of the current heartbeat to the current heartbeat into one segment, divides the waveform from the current heartbeat and the next heartbeat of the current heartbeat into one segment, and divides the waveform from the previous heartbeat of the current heartbeat to the next heartbeat of the current heartbeat into one segment.

[0134] Step 507: The wearable device determines whether the current heartbeat is an abnormal heartbeat based on the result of the RR interval segmentation analysis. If yes, execute step 508; if no, execute step 509.

[0135] Exemplarily, the wearable device calculates the standard deviation of each of the above segments, selects the maximum standard deviation therefrom, and determines whether the current heartbeat is an abnormal heartbeat based on the relationship between the maximum standard deviation and the first threshold.

[0136] Step 508: The wearable device marks the current heartbeat as an abnormal heartbeat.

[0137] Step 509: The wearable device determines whether all heartbeats have been traversed. If not, the next heartbeat of the current heartbeat is used as the current heartbeat again, and the process returns to step 505; if yes, the process ends.

[0138] Step 510: The wearable device uses a high-pass filter to perform high-pass filtering on the first ECG signal to obtain a filtered first ECG signal.

[0139] Exemplarily, the bandwidth of the high-pass filter is set to be greater than 14 Hz.

[0140] Step 511: The wearable device performs integral filtering on the filtered first electrocardiogram signal, and performs peak location on the integrated filtered first electrocardiogram signal to determine each heartbeat in the first electrocardiogram signal.

[0141] Exemplarily, the preset window length of the above integral filtering is set to 100.

[0142] Step 512: The wearable device uses the first heartbeat in the first electrocardiogram signal as the current heartbeat.

[0143] Step 513: The wearable device obtains a first waveform from the current heartbeat to the next heartbeat of the current heartbeat.

[0144] Step 514: The wearable device determines an abnormality detection threshold according to the peak value of the current heartbeat and the peak value of the next heartbeat of the current heartbeat.

[0145] Step 515: The wearable device determines whether there is an amplitude value greater than the abnormality detection threshold among the amplitude values ​​of each sampling point in the first waveform. If yes, execute step 516; if no, execute step 517.

[0146] Step 516: The wearable device marks the current heartbeat as an abnormal heartbeat.

[0147] Step 517: The wearable device determines whether all heartbeats have been traversed. If not, the next heartbeat of the current heartbeat is used as the current heartbeat again, and the process returns to step 513; if yes, the process ends.

[0148] For example, see Fig.15 Taking the current heartbeat as the nth heartbeat as an example, the wearable device extracts the peak value v1 of the nth heartbeat and the peak value v2 of the n+1th heartbeat. The wearable device determines whether there is an amplitude value greater than (v1+v2) / 20 (i.e., the above-mentioned abnormal detection threshold) in the amplitude values ​​of each sampling point of the waveform from the nth heartbeat to the n+1th heartbeat. If so, it is determined that the nth heartbeat is an abnormal heartbeat. If not, it is determined that the nth heartbeat is not an abnormal heartbeat.

[0149] It should be noted that the specific implementation process of the above steps 501 to 517 can refer to the relevant description of the above embodiment. To avoid repetition, this embodiment will not be repeated here.

[0150] It should be noted that the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not impose any restrictions on this.

[0151] The ECG signal detection method provided in the embodiment of the present application can be executed by an ECG signal detection device. In the embodiment of the present application, the ECG signal detection method performed by the ECG signal detection device is taken as an example to illustrate the ECG signal detection device provided in the embodiment of the present application.

[0152] Fig.16 It is a structural diagram of an electrocardiogram signal detection device provided in an embodiment of the present application. The electrocardiogram signal detection device includes: a collection module 1501, a determination module 1502 and an acquisition module 1503.

[0153] The acquisition module 1501 is used to acquire the first electrocardiogram signal.

[0154] The determination module 1502 is used to perform peak location on the first electrocardiogram signal to determine each heartbeat in the first electrocardiogram signal, where each heartbeat is a point corresponding to each peak in the first electrocardiogram signal.

[0155] The acquisition module 1503 is used to acquire a first waveform from a first heartbeat to at least one second heartbeat in the first electrocardiogram signal acquired by the acquisition module 1501; wherein the second heartbeat is adjacent to the first heartbeat.

[0156] The determination module 1502 is further configured to determine a detection result of the first heartbeat based on the amplitude value of each sampling point in the first waveform acquired by the acquisition module 1503 , wherein the detection result indicates whether the first heartbeat is an abnormal heartbeat.

[0157] Optionally, in an embodiment of the present application, the above-mentioned determination module 1502 is specifically used to determine a first standard deviation based on the amplitude values ​​of each sampling point in the above-mentioned first waveform; the first standard deviation characterizes the degree of discreteness of the amplitude values ​​of each sampling point in the first waveform; and, when the first standard deviation is greater than a first threshold, determine that the detection result characterizes that the first heartbeat is an abnormal heartbeat.

[0158] Optionally, in an embodiment of the present application, the first waveform is a waveform from the first heartbeat to two second heartbeats, and the two second heartbeats are respectively a previous heartbeat of the first heartbeat and a next heartbeat of the first heartbeat;

[0159] The determination module 1502 is specifically configured to determine the second standard deviation, the third standard deviation, and the fourth standard deviation based on the amplitude values ​​of each sampling point in the first waveform; and determine the maximum standard deviation among the second standard deviation, the third standard deviation, and the fourth standard deviation as the first standard deviation;

[0160] Among them, the above-mentioned second standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the previous heartbeat to the first heartbeat, the above-mentioned third standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the first heartbeat to the next heartbeat, and the above-mentioned fourth standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the previous heartbeat to the next heartbeat.

[0161] Optionally, in an embodiment of the present application, the above-mentioned determination module 1502 is specifically used to determine the anomaly detection threshold based on the peak value of the first heartbeat and the peak value of the second heartbeat; and, when there is an amplitude value greater than the anomaly detection threshold among the amplitude values ​​of each sampling point in the first waveform, determine that the detection result characterizes the first heartbeat as an existing heartbeat.

[0162] Optionally, in the embodiment of the present application, combined with Fig.16 ,like Fig.17 As shown, the above device also includes a filtering module 1504;

[0163] The filtering module 1504 is used to filter the first ECG signal collected by the collection module 1501 using a target filtering method to obtain a filtered first ECG signal; wherein the target filtering method includes at least one of the following: a high-pass filtering method, a band-pass filtering method, and an integral filtering method.

[0164] The ECG signal detection device provided in the embodiment of the present application is capable of determining whether the first heartbeat is an abnormal heartbeat through the first waveform from the first heartbeat to at least one second heartbeat in the first ECG signal, so as to determine whether the user has jitters during the process of collecting the ECG signal, since the waveform of a normal ECG signal is regular. In this way, after collecting the ECG signal, the ECG signal detection device does not directly perform pathological detection based on the ECG signal, but first determines whether there is abnormal jitter during the process of collecting the ECG signal by detecting whether there is an abnormal heartbeat in the ECG signal, thereby reducing the influence of abnormal jitter on the pathological detection of the ECG signal and improving the flexibility of ECG signal detection and the accuracy of pathological detection results.

[0165] The detection device of the ECG signal in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device, an augmented reality / virtual reality device, a robot, a wearable device (also referred to as a wearable device), a super mobile personal computer, a netbook or a personal digital assistant, etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0166] The electrocardiogram signal detection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0167] The electrocardiogram signal detection device provided in the embodiments of the present application can implement the various processes implemented in the various embodiments of the above-mentioned electrocardiogram signal detection method. To avoid repetition, they will not be described again here.

[0168] Alternatively, if Fig.18 As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores programs or instructions that can be executed on the processor 901, and when the program or instructions are executed by the processor 901, the various steps of the above-mentioned electrocardiogram signal detection method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0169] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0170] Fig.19 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0171] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0172] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.19 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0173] The sensor 1005 is used to collect the first electrocardiogram signal.

[0174] The above-mentioned processor 1010 is used to perform peak location on the first electrocardiogram signal collected by the user input unit 1001, determine each heartbeat in the first electrocardiogram signal, and each heartbeat is a point corresponding to each peak in the first electrocardiogram signal; obtain a first waveform from a first heartbeat to at least one second heartbeat in the first electrocardiogram signal; wherein the second heartbeat is adjacent to the first heartbeat; and determine a detection result of the first heartbeat based on the amplitude value of each sampling point in the above-mentioned first waveform, wherein the detection result indicates whether the first heartbeat is an abnormal heartbeat.

[0175] Optionally, in an embodiment of the present application, the processor 1010 is specifically used to determine a first standard deviation based on the amplitude values ​​of each sampling point in the first waveform; the first standard deviation represents the degree of discreteness of the amplitude values ​​of each sampling point in the first waveform; and, when the first standard deviation is greater than a first threshold, determine that the detection result represents that the first heartbeat is an abnormal heartbeat.

[0176] Optionally, in an embodiment of the present application, the first waveform is a waveform from a first heartbeat to two second heartbeats, and the two second heartbeats are respectively a previous heartbeat of the first heartbeat and a next heartbeat of the first heartbeat;

[0177] The processor 1010 is specifically configured to determine the second standard deviation, the third standard deviation, and the fourth standard deviation based on the amplitude values ​​of each sampling point in the first waveform; and determine the maximum standard deviation among the second standard deviation, the third standard deviation, and the fourth standard deviation as the first standard deviation;

[0178] Among them, the above-mentioned second standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the previous heartbeat to the first heartbeat, the above-mentioned third standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the first heartbeat to the next heartbeat, and the above-mentioned fourth standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the previous heartbeat to the next heartbeat.

[0179] Optionally, in an embodiment of the present application, the processor 1010 is specifically used to determine an abnormality detection threshold based on the peak value of the first heartbeat and the peak value of the second heartbeat; and, when there is an amplitude value greater than the abnormality detection threshold among the amplitude values ​​of each sampling point in the first waveform, determine that the detection result characterizes the first heartbeat as an abnormal heartbeat.

[0180] Optionally, in an embodiment of the present application, the processor 1010 is further used to filter the collected first ECG signal using a target filtering method to obtain a filtered first ECG signal; wherein the target filtering method includes at least one of the following: a high-pass filtering method, a band-pass filtering method, and an integral filtering method.

[0181] The electronic device provided in the embodiment of the present application has a regular waveform of a normal ECG signal, but in the case of abnormal jitter during the acquisition process, the waveform of the ECG signal will change. Therefore, the electronic device can determine whether the first heartbeat is an abnormal heartbeat through the first waveform from the first heartbeat to at least one second heartbeat in the first ECG signal, so as to determine whether the user has jitter during the acquisition of the ECG signal. In this way, after acquiring the ECG signal, the electronic device does not directly perform pathological detection based on the ECG signal, but first determines whether there is abnormal jitter during the detection and acquisition of the ECG signal by detecting whether there is an abnormal heartbeat in the ECG signal, thereby reducing the influence of abnormal jitter on the pathological detection of the ECG signal and improving the flexibility of ECG signal detection and the accuracy of pathological detection results.

[0182] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0183] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0184] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

[0185] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned electrocardiogram signal detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0186] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0187] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned electrocardiogram signal detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0188] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0189] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned electrocardiogram signal detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0190] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0191] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0192] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for detecting an electrocardiogram signal, applied to a wearable device, characterized in that: The method comprises: collecting a first electrocardiogram signal; Perform peak location on the first electrocardiogram signal to determine each heartbeat in the first electrocardiogram signal, where each heartbeat is a point corresponding to each peak in the first electrocardiogram signal; Acquire a first waveform from a first heartbeat to at least one second heartbeat in the first electrocardiogram signal; wherein the second heartbeat is adjacent to the first heartbeat; Based on the amplitude values ​​of each sampling point in the first waveform, a detection result of the first heartbeat is determined, and the detection result indicates whether the first heartbeat is an abnormal heartbeat.

2. The method according to claim 1, characterized in that The determining the detection result of the first heartbeat based on the amplitude value of each sampling point in the first waveform includes: Determine a first standard deviation based on the amplitude value of each sampling point in the first waveform; the first standard deviation represents the degree of dispersion of the amplitude value of each sampling point in the first waveform; When the first standard deviation is greater than a first threshold, it is determined that the detection result indicates that the first heartbeat is an abnormal heartbeat.

3. The method according to claim 2, characterized in that The first waveform is a waveform from the first heartbeat to two second heartbeats, and the two second heartbeats are respectively a previous heartbeat of the first heartbeat and a next heartbeat of the first heartbeat; The determining a first standard deviation based on the amplitude value of each sampling point in the first waveform includes: Determining a second standard deviation, a third standard deviation, and a fourth standard deviation based on the amplitude values ​​of each sampling point in the first waveform; determining a maximum standard deviation among the second standard deviation, the third standard deviation, and the fourth standard deviation as the first standard deviation; Among them, the second standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the previous heartbeat to the first heartbeat, the third standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the first heartbeat to the next heartbeat, and the fourth standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the previous heartbeat to the next heartbeat.

4. The method according to claim 1, characterized in that: The determining the detection result of the first heartbeat based on the amplitude value of each sampling point in the first waveform includes: Determining an abnormality detection threshold based on the peak value of the first heartbeat and the peak value of the second heartbeat; In the case where there is an amplitude value greater than the abnormality detection threshold among the amplitude values ​​of the sampling points in the first waveform, it is determined that the detection result indicates that the first heartbeat is an abnormal heartbeat.

5. The method according to any one of claims 1 to 4, characterized in that After acquiring the first electrocardiogram signal, the method further includes: Using a target filtering method to filter the first electrocardiogram signal to obtain a filtered first electrocardiogram signal; The target filtering method includes at least one of the following: a high-pass filtering method, a band-pass filtering method, and an integral filtering method.

6. A device for detecting an electrocardiogram signal, characterized in that: The device comprises: a collection module, a determination module and an acquisition module; The acquisition module is used to acquire the first electrocardiogram signal; The determination module is used to perform peak location on the first electrocardiogram signal to determine each heartbeat in the first electrocardiogram signal, where each heartbeat is a point corresponding to each peak in the first electrocardiogram signal; The acquisition module is used to acquire a first waveform from a first heartbeat to at least one second heartbeat in the first electrocardiogram signal acquired by the acquisition module; wherein the second heartbeat is adjacent to the first heartbeat; The determination module is further used to determine a detection result of the first heartbeat based on the amplitude value of each sampling point in the first waveform acquired by the acquisition module, wherein the detection result indicates whether the first heartbeat is an abnormal heartbeat.

7. The device according to claim 6, characterized in that The determination module is specifically used for: Determine a first standard deviation based on the amplitude value of each sampling point in the first waveform; the first standard deviation represents the degree of dispersion of the amplitude value of each sampling point in the first waveform; When the first standard deviation is greater than a first threshold, it is determined that the detection result indicates that the first heartbeat is an abnormal heartbeat.

8. The device according to claim 7, characterized in that The first waveform is a waveform from the first heartbeat to two second heartbeats, and the two second heartbeats are respectively a previous heartbeat of the first heartbeat and a next heartbeat of the first heartbeat; The determination module is specifically used for: Determine a second standard deviation, a third standard deviation, and a fourth standard deviation based on the amplitude values ​​of each sampling point in the first waveform; and determine the maximum standard deviation among the second standard deviation, the third standard deviation, and the fourth standard deviation as the first standard deviation; Among them, the second standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the previous heartbeat to the first heartbeat, the third standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the first heartbeat to the next heartbeat, and the fourth standard deviation is the standard deviation of the amplitude values ​​of each sampling point in the waveform from the previous heartbeat to the next heartbeat.

9. The device according to claim 6, characterized in that The determination module is specifically used for: Determining an abnormality detection threshold based on the peak value of the first heartbeat and the peak value of the second heartbeat; In the case where there is an amplitude value greater than the abnormality detection threshold among the amplitude values ​​of the sampling points in the first waveform, it is determined that the detection result indicates that the first heartbeat is an abnormal heartbeat.

10. The device according to any one of claims 6 to 9, characterized in that The device further comprises: a filtering module; The filtering module is used to filter the first ECG signal collected by the collection module in a target filtering manner to obtain the first ECG signal after filtering; The target filtering method includes at least one of the following: a high-pass filtering method, a band-pass filtering method, and an integral filtering method.

11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method for detecting an electrocardiogram signal as described in any one of claims 1 to 5 are implemented.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method for detecting an electrocardiogram signal according to any one of claims 1 to 5 are implemented.