A method of and electronic device for detecting cardiac rhythms
By analyzing the heart rate difference trajectory parameters of PPG signals and combining them with threshold judgment, the heart rhythm type can be accurately identified, solving the problem of misidentification in PPG signal detection and improving the accuracy of arrhythmia detection and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2026-03-24
AI Technical Summary
Existing arrhythmia detection methods based on PPG signals are prone to misidentification, especially misidentifying premature beats as atrial fibrillation signals, resulting in a poor user experience.
By acquiring PPG signals of a preset duration, the parameters of the heart rate difference trajectory are analyzed, such as angle, number, angle standard deviation, and distance standard deviation. Combined with threshold judgment, different identification and processing procedures are adopted to accurately identify the heart rhythm type, including premature beats, atrial fibrillation, sinus rhythm, ventricular tachycardia, bigeminy, and trigeminy.
It improves the accuracy of arrhythmia detection, reduces the probability of premature beats being misidentified as atrial fibrillation, and enhances the user experience.
Smart Images

Figure CN116919371B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and more specifically, to a method and electronic device for detecting heart rhythm. Background Technology
[0002] As the age of onset for heart disease gradually becomes younger and more common, heart health is receiving increasing attention. Cardiac arrhythmias can include atrial fibrillation (AF) and premature beats (PVCs). AF is a common heart condition. Early detection of AF can help patients discover heart abnormalities promptly. PVCs are a common type of arrhythmia.
[0003] In medicine, Holter monitoring is generally used to collect 24-hour Holter monitoring data. However, this method requires professional assistance, is complex to operate, and is costly. Especially for paroxysmal atrial fibrillation and occasional premature ventricular contractions (PVCs), the duration of each episode is short and the timing is unpredictable, easily leading to missed detections ("not detected when the condition is present, or not detected when the condition is present"). To save costs and facilitate user operation, photoplethysmography (PPG) technology is typically used to measure arrhythmias. For example, users can detect arrhythmias using a smartwatch.
[0004] However, in practical applications, PPG signals are prone to misidentification (for example, premature beats may be identified as atrial fibrillation), making it difficult to accurately identify atrial fibrillation or premature beats, which affects the user experience. Summary of the Invention
[0005] In view of this, this application provides a method, electronic device, computer-readable storage medium, and computer program product for detecting heart rhythm, which can improve the accuracy of arrhythmia detection and greatly enhance the user experience.
[0006] In a first aspect, a method for detecting heart rhythm is provided, the method being applied to an electronic device, the method comprising:
[0007] Acquire the first PPG signal of the first preset duration;
[0008] Multiple heart rate values are determined based on the first PPG signal;
[0009] The difference between every two adjacent heart rates is determined based on the multiple heart rate values, and the difference between every two adjacent heart rates is used to generate a heart rate difference trajectory map.
[0010] The parameters of the heart rate difference trajectory are obtained based on the heart rate difference trajectory map. The parameters of the heart rate difference trajectory include one or more of the following parameters: angle, number, angle standard deviation, and distance standard deviation.
[0011] Based on the parameters of the heart rate difference trajectory, the heart rhythm type of the first PPG signal is determined, and the heart rhythm type includes any one of the following: premature beats, atrial fibrillation, sinus rhythm, ventricular tachycardia, bigeminy, and trigeminy.
[0012] This displays the heart rhythm type of the first PPG signal.
[0013] The above method can be executed by an electronic device or a chip within an electronic device. Based on the above scheme, by acquiring a PPG signal of a first preset duration, and according to the trajectory of the heart rate difference change of the PPG signal of the first preset duration, the parameters of the trajectory (including but not limited to: angle, number, angle standard deviation, distance standard deviation) are obtained. Then, the heart rhythm type is determined based on the trajectory parameters, and the heart rhythm type is presented to the user. This application embodiment identifies heart rhythm type based on parameters derived from the heart rate difference trajectory, which can improve the accuracy of arrhythmia detection. Furthermore, compared to heart rhythm identification based on each heart rate (or the waveform morphology of the heartbeat), this application embodiment identifies heart rate based on the heart rate of a segment of signal (i.e., the PPG signal of the first preset duration). This can improve the accuracy of identifying premature beats or atrial fibrillation, reduce the probability of misidentifying premature beats as atrial fibrillation, and improve the user experience.
[0014] In one possible implementation, the method further includes:
[0015] A first parameter is determined based on the first PPG signal of the first preset duration, and it is determined whether the first parameter is greater than or equal to a first threshold.
[0016] The step of determining the heart rhythm type of the first PPG signal based on the parameters of the heart rate difference trajectory includes:
[0017] Based on the first parameter and the parameters of the heart rate difference trajectory, the heart rhythm type of the first PPG signal is determined.
[0018] Optionally, determining the first parameter based on a PPG signal of a first preset duration includes: extracting multiple RRIs from the peaks of the PPG signal of the first preset duration; calculating the difference between every two adjacent RRIs based on the multiple RRIs, wherein the difference between every two adjacent RRIs is used to determine the first parameter.
[0019] The comparison between the first parameter and the first threshold here is for preliminary atrial fibrillation identification. If the first parameter is greater than or equal to the first threshold, the probability of atrial fibrillation is greater than the probability of not having atrial fibrillation, and the process proceeds to the first identification stage. If the first parameter is less than the first threshold, the probability of atrial fibrillation is less than the probability of not having atrial fibrillation, and the process proceeds to the second identification stage. This approach allows for data stream splitting, saving subsequent judgment steps and thus reducing the power consumption of electronic devices. For example, in a non-atrial fibrillation identification window, subsequent steps might involve determining whether bigeminy or trigeminy has occurred, while the judgment process in the atrial fibrillation identification window will not involve this step.
[0020] In one possible implementation, determining the heart rate type of the first PPG signal based on the first parameter and the parameters of the heart rate difference trajectory includes:
[0021] When the first parameter is greater than or equal to the first threshold, a first identification process is performed based on the parameters of the heart rate difference trajectory to determine the heart rhythm type of the first PPG signal. The heart rhythm type includes any one of the following: premature beats, atrial fibrillation, sinus rhythm, and ventricular tachycardia.
[0022] When the first parameter is less than the first threshold, a second identification process is performed based on the parameters of the heart rate difference trajectory to determine the heart rhythm type of the first PPG signal. The heart rhythm type includes any of the following: premature beats, atrial fibrillation, sinus rhythm, ventricular tachycardia, bigeminy, and trigeminy.
[0023] In one possible implementation, in the first identification process or the second identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory meet a first preset condition, the heart rhythm type is premature beat;
[0024] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a first preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory are both less than or equal to the first angle standard deviation threshold.
[0025] The following describes several implementation methods for determining the heart rhythm type based on parameters and related preset conditions of the heart rhythm difference trajectory.
[0026] In one possible implementation, in the first identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory satisfy a second preset condition, and the first probability parameter satisfies a third preset condition, the heart rhythm type is atrial fibrillation.
[0027] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first angle standard deviation threshold.
[0028] Wherein, the first probability parameter satisfies a third preset condition, including: the first probability parameter is less than a first probability threshold.
[0029] In one possible implementation, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory satisfy a second preset condition, and the first probability parameter does not satisfy a third preset condition, the heart rhythm type is sinus rhythm;
[0030] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first angle standard deviation threshold.
[0031] Wherein, the first probability parameter does not meet the third preset condition, including: the first probability parameter is not less than the first probability threshold.
[0032] In one possible implementation, in the first identification process or the second identification process, the heart rate difference trajectory includes: a first trajectory, a second trajectory, a third trajectory, and a fourth trajectory;
[0033] The parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, and the parameters of the first trajectory and the parameters of the third trajectory satisfy a fifth preset condition; or, the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, and the parameters of the second trajectory and the parameters of the fourth trajectory satisfy a sixth preset condition, and the heart rhythm type is ventricular tachycardia.
[0034] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is less than a first quantity threshold;
[0035] Wherein, the parameters of the first trajectory and the parameters of the third trajectory satisfy the fifth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the third trajectory is greater than or equal to the second quantity threshold, the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the third trajectory are both less than or equal to the second angle standard deviation threshold, and the angle mean parameter of the first trajectory is less than the angle mean parameter of the third trajectory.
[0036] Wherein, the parameters of the second trajectory and the parameters of the fourth trajectory satisfy the sixth preset condition, including: the sum of the number parameters of the second trajectory and the number parameters of the third trajectory is greater than or equal to the second quantity threshold, the angle standard deviation parameters of the second trajectory and the angle standard deviation parameters of the third trajectory are both less than or equal to the second angle standard deviation threshold, and the angle mean parameter of the second trajectory is less than the angle mean parameter of the fourth trajectory.
[0037] In one possible implementation, in the first identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, and the first probability parameter satisfies a seventh preset condition, the heart rhythm type is atrial fibrillation.
[0038] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is less than a first quantity threshold;
[0039] Wherein, the first probability parameter satisfies the seventh preset condition, including: the first probability parameter is less than the second probability threshold.
[0040] In one possible implementation, in the first identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, and the first probability parameter does not satisfy a seventh preset condition, the heart rhythm type is sinus rhythm.
[0041] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is less than a first quantity threshold;
[0042] The first probability parameter does not meet the seventh preset condition, including: the first probability parameter is not less than the second probability threshold.
[0043] In one possible implementation, in the second identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; the parameters of the first trajectory and the parameters of the second trajectory satisfy a second preset condition, and the heart rhythm type is atrial fibrillation;
[0044] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first angle standard deviation threshold.
[0045] In one possible implementation, in the second identification process, the heart rate difference trajectory includes a fifth trajectory and a sixth trajectory; the parameters of the fifth trajectory and the parameters of the sixth trajectory satisfy an eighth preset condition, and the distance standard deviation parameters of the fifth trajectory and the distance standard deviation parameters of the sixth trajectory satisfy a ninth preset condition, and the heart rhythm type is bigeminy.
[0046] Wherein, the parameters of the fifth trajectory and the parameters of the sixth trajectory satisfy the eighth preset condition, including: the minimum value of the number parameter of the fifth trajectory and the number parameter of the sixth trajectory is greater than or equal to the third quantity threshold, and the angle standard deviation parameter of the fifth trajectory and the angle standard deviation parameter of the sixth trajectory are both less than or equal to the third angle standard deviation threshold;
[0047] Wherein, the distance standard deviation parameters of the fifth trajectory and the sixth trajectory satisfy the ninth preset condition, including: the distance standard deviation parameter of the fifth trajectory is less than or equal to the first distance standard deviation threshold, and the distance standard deviation parameter of the sixth trajectory is less than or equal to the first distance standard deviation threshold.
[0048] Therefore, the method for detecting heart rhythm based on the embodiments of this application can accurately identify bigeminy and improve user experience.
[0049] In one possible implementation, in the second identification process, the heart rate difference trajectory includes a fifth trajectory and a sixth trajectory; the parameters of the fifth trajectory and the parameters of the sixth trajectory satisfy an eighth preset condition, and the distance standard deviation parameters of the fifth trajectory and the distance standard deviation parameters of the sixth trajectory do not satisfy a ninth preset condition, and the heart rhythm type is trigeminy.
[0050] Wherein, the parameters of the fifth trajectory and the parameters of the sixth trajectory satisfy the eighth preset condition, including: the minimum value of the number parameter of the fifth trajectory and the number parameter of the sixth trajectory is greater than or equal to the third quantity threshold, and the angle standard deviation parameter of the fifth trajectory and the angle standard deviation parameter of the sixth trajectory are both less than or equal to the third angle standard deviation threshold;
[0051] Wherein, the distance standard deviation parameters of the fifth trajectory and the sixth trajectory do not meet the ninth preset condition, including: the distance standard deviation parameter of the fifth trajectory is greater than the first distance standard deviation threshold, and the distance standard deviation parameter of the sixth trajectory is greater than the first distance standard deviation threshold.
[0052] Therefore, the method for detecting heart rhythm based on the embodiments of this application can accurately identify trigeminy and improve user experience.
[0053] In one possible implementation, in the second identification process, the heart rate difference trajectory includes: a first trajectory, a second trajectory, a seventh trajectory, an eighth trajectory, a ninth trajectory, and a tenth trajectory; when the parameters of the first trajectory and the second trajectory satisfy a second preset condition, and the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory satisfy a tenth preset condition, the heart rhythm type is premature beats;
[0054] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first standard deviation threshold.
[0055] Among them, the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory satisfy the tenth preset condition, including: the maximum value of the angle standard deviation parameter of the seventh trajectory, the angle standard deviation parameter of the eighth trajectory, the angle standard deviation parameter of the ninth trajectory, and the angle standard deviation parameter of the tenth trajectory is less than or equal to the fourth angle standard deviation threshold.
[0056] In one possible implementation, in the second identification process, the heart rate difference trajectory includes: a first trajectory, a second trajectory, a seventh trajectory, an eighth trajectory, a ninth trajectory, and a tenth trajectory; when the parameters of the first trajectory and the second trajectory satisfy a second preset condition, and the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory do not satisfy a tenth preset condition, and when the first probability parameter satisfies an eleventh preset condition or the first quantity satisfies a twelfth preset condition, the heart rhythm type is atrial fibrillation;
[0057] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first standard deviation threshold.
[0058] Wherein, the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory do not meet the tenth preset condition, including: the maximum value of the angle standard deviation parameter of the seventh trajectory, the angle standard deviation parameter of the eighth trajectory, the angle standard deviation parameter of the ninth trajectory, and the angle standard deviation parameter of the tenth trajectory is greater than the fourth angle standard deviation threshold.
[0059] Wherein, the first probability parameter satisfies the eleventh preset condition, including: the first probability parameter is less than the third probability threshold;
[0060] Wherein, the first quantity satisfies the twelfth preset condition, including: the first quantity is greater than or equal to the fourth quantity threshold;
[0061] In one possible implementation, in the second identification process, the heart rate difference trajectory includes: a first trajectory, a second trajectory, a seventh trajectory, an eighth trajectory, a ninth trajectory, and a tenth trajectory; when the parameters of the first trajectory and the second trajectory satisfy a second preset condition, and the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory do not satisfy a tenth preset condition, and the first probability parameter does not satisfy an eleventh preset condition or the first quantity does not satisfy a twelfth preset condition, the heart rhythm type is sinus rhythm;
[0062] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first standard deviation threshold.
[0063] Among them, the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory do not meet the tenth preset condition, including: the maximum value of the angle standard deviation parameter of the seventh trajectory, the angle standard deviation parameter of the eighth trajectory, the angle standard deviation parameter of the ninth trajectory, and the angle standard deviation parameter of the tenth trajectory is greater than the fourth angle standard deviation threshold.
[0064] Wherein, the first probability parameter does not meet the eleventh preset condition, including: the first probability parameter is not less than the third probability threshold;
[0065] Wherein, the first quantity does not meet the twelfth preset condition, including: the first quantity is less than the fourth quantity threshold.
[0066] In one possible implementation, the method further includes:
[0067] Obtain the ACC signal for the second preset duration;
[0068] The state of the electronic device is determined based on the ACC signal of the second preset duration;
[0069] The process of acquiring the first PPG signal of the first preset duration includes:
[0070] If the electronic device is stationary for a third preset duration, then the first PPG signal for the first preset duration is acquired, wherein the third preset duration is less than or equal to the second preset duration.
[0071] Therefore, before starting to acquire PPG signals, the state of the electronic device can be determined by acquiring ACC signals, and the atrial fibrillation premature beat detection algorithm can only be entered when the electronic device is in a static state, so as to prepare for the subsequent acquisition of PPG signals.
[0072] In one possible implementation, acquiring the first PPG signal of a first preset duration includes:
[0073] Acquire a PPG signal and an ACC signal of a fourth preset duration. The PPG signal of the first preset duration includes multiple PPG signals of the fourth preset duration, and the fourth preset duration is less than the first preset duration.
[0074] Determine whether the electronic device is in motion throughout the fifth preset time period;
[0075] If the electronic device is not in motion for the fifth preset duration, it continues to acquire PPG and ACC signals for the fourth preset duration until the acquisition duration meets the first preset duration.
[0076] Here, the ACC signal can be acquired simultaneously with the PPG signal, and the status of the electronic device can be determined based on the ACC signal, which helps to obtain a valid PPG signal.
[0077] In one possible implementation, the method further includes:
[0078] When the heart rhythm type is atrial fibrillation, a prompt message is displayed to the user, which is used to notify the user of the heart rhythm abnormality.
[0079] Therefore, when an abnormal heart rhythm is detected, a notification message can be sent to the user so that the user can be informed of the risk of the abnormal heart rhythm in a timely manner.
[0080] In a second aspect, an electronic device is provided, including a unit for performing any of the methods in the first aspect. The electronic device may be a wearable device (e.g., a smartwatch or bracelet) or a chip within a wearable device (e.g., a smartwatch or bracelet). The electronic device includes an input unit, a display unit, and a processing unit.
[0081] When the electronic device is a wearable device, the processing unit may be a processor, the input unit may be a communication interface, and the display unit may be a graphics processing module and a screen; the wearable device may also include a memory for storing computer program code, which, when the processor executes the computer program code stored in the memory, causes the wearable device to perform any of the methods in the first aspect.
[0082] When the electronic device is a chip within a wearable device, the processing unit can be a logic processing unit inside the chip, the input unit can be an output interface, pin, or circuit, and the display unit can be a graphics processing unit inside the chip. The chip may also include a memory, which can be memory within the chip (e.g., registers, caches, etc.) or memory located outside the chip (e.g., read-only memory, random access memory, etc.). The memory is used to store computer program code, and when the processor executes the computer program code stored in the memory, it causes the chip to execute any of the methods in the first aspect.
[0083] Optionally, in one implementation, the processing unit is used to acquire a first PPG signal of a first preset duration;
[0084] Multiple heart rate values are determined based on the first PPG signal;
[0085] The difference between every two adjacent heart rates is determined based on the multiple heart rate values, and the difference between every two adjacent heart rates is used to generate a heart rate difference trajectory map.
[0086] The parameters of the heart rate difference trajectory are obtained based on the heart rate difference trajectory map. The parameters of the heart rate difference trajectory include one or more of the following parameters: angle, number, angle standard deviation, and distance standard deviation.
[0087] Based on the parameters of the heart rate difference trajectory, the heart rhythm type of the first PPG signal is determined, and the heart rhythm type includes any of the following: premature beats, atrial fibrillation, sinus rhythm, ventricular tachycardia, bigeminy, and trigeminy.
[0088] The display unit is used to display the heart rhythm type of the first PPG signal.
[0089] In one possible implementation, the processing unit is further configured to:
[0090] A first parameter is determined based on the first PPG signal of the first preset duration, and it is determined whether the first parameter is greater than or equal to a first threshold.
[0091] Based on the first parameter and the parameters of the heart rate difference trajectory, the heart rhythm type of the first PPG signal is determined.
[0092] Optionally, the processing unit is used to determine the first parameter based on the PPG signal of the first preset duration, specifically by: extracting multiple RRIs from the peaks of the PPG signal of the first preset duration; calculating the difference between each pair of adjacent RRIs based on the multiple RRIs, wherein the difference between each pair of adjacent RRIs is used to determine the first parameter.
[0093] In one possible implementation, the processing unit is configured to determine the heart rhythm type of the first PPG signal based on the first parameter and the parameters of the heart rate difference trajectory, specifically including:
[0094] When the first parameter is greater than or equal to the first threshold, a first identification process is performed based on the parameters of the heart rate difference trajectory to determine the heart rhythm type of the first PPG signal. The heart rhythm type includes any one of the following: premature beats, atrial fibrillation, sinus rhythm, and ventricular tachycardia.
[0095] When the first parameter is less than the first threshold, a second identification process is performed based on the parameters of the heart rate difference trajectory to determine the heart rhythm type of the first PPG signal. The heart rhythm type includes any of the following: premature beats, atrial fibrillation, sinus rhythm, ventricular tachycardia, bigeminy, and trigeminy.
[0096] In one possible implementation, in the first identification process or the second identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory meet a first preset condition, the heart rhythm type is premature beat;
[0097] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a first preset condition, including: the number of the first trajectory and the number of the second trajectory are greater than a first quantity threshold, and the angle standard deviation of the first trajectory and the angle standard deviation of the second trajectory are both less than or equal to the first angle standard deviation threshold.
[0098] In one possible implementation, in the first identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory satisfy a first preset condition, and the first probability parameter satisfies a third preset condition, the heart rhythm type is atrial fibrillation;
[0099] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a first preset condition, including: the number parameter of the first trajectory and the number parameter of the second trajectory are greater than a first quantity threshold, and the angle standard deviation parameter of the first trajectory and the angle standard deviation parameter of the second trajectory are both less than or equal to the first angle standard deviation threshold.
[0100] Wherein, the first probability parameter satisfies a third preset condition, including: the first probability parameter is less than a first probability threshold.
[0101] In one possible implementation, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory satisfy a second preset condition, and the first probability parameter does not satisfy a third preset condition, the heart rhythm type is sinus rhythm;
[0102] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first angle standard deviation threshold.
[0103] Wherein, the first probability parameter does not meet the third preset condition, including: the first probability parameter is not less than the first probability threshold.
[0104] In one possible implementation, in the first identification process or the second identification process, the heart rate difference trajectory includes: a first trajectory, a second trajectory, a third trajectory, and a fourth trajectory;
[0105] The parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, and the parameters of the first trajectory and the parameters of the third trajectory satisfy a fifth preset condition; or, the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, and the parameters of the second trajectory and the parameters of the fourth trajectory satisfy a sixth preset condition, and the heart rhythm type is ventricular tachycardia.
[0106] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is less than a first quantity threshold;
[0107] Wherein, the parameters of the first trajectory and the parameters of the third trajectory satisfy the fifth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the third trajectory is greater than or equal to the second quantity threshold, the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the third trajectory are both less than or equal to the second angle standard deviation threshold, and the angle mean parameter of the first trajectory is less than the angle mean parameter of the third trajectory.
[0108] Wherein, the parameters of the second trajectory and the parameters of the fourth trajectory satisfy the sixth preset condition, including: the sum of the number parameters of the second trajectory and the number parameters of the third trajectory is greater than or equal to the second quantity threshold, the angle standard deviation parameters of the second trajectory and the angle standard deviation parameters of the third trajectory are both less than or equal to the second angle standard deviation threshold, and the angle mean parameter of the second trajectory is less than the angle mean parameter of the fourth trajectory.
[0109] In one possible implementation, in the first identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, and the first probability parameter satisfies a seventh preset condition, the heart rhythm type is atrial fibrillation.
[0110] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is less than a first quantity threshold;
[0111] Wherein, the first probability parameter satisfies the seventh preset condition, including: the first probability parameter is less than the second probability threshold.
[0112] In one possible implementation, in the first identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, and the first probability parameter does not satisfy a seventh preset condition, the heart rhythm type is sinus rhythm.
[0113] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is less than a first quantity threshold;
[0114] The first probability parameter does not meet the seventh preset condition, including: the first probability parameter is not less than the second probability threshold.
[0115] In one possible implementation, in the second identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; the parameters of the first trajectory and the parameters of the second trajectory satisfy a second preset condition, and the heart rhythm type is atrial fibrillation;
[0116] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first angle standard deviation threshold.
[0117] In one possible implementation, in the second identification process, the heart rate difference trajectory includes a fifth trajectory and a sixth trajectory; the parameters of the fifth trajectory and the parameters of the sixth trajectory satisfy an eighth preset condition, and the distance standard deviation parameters of the fifth trajectory and the distance standard deviation parameters of the sixth trajectory satisfy a ninth preset condition, and the heart rhythm type is bigeminy.
[0118] Wherein, the parameters of the fifth trajectory and the parameters of the sixth trajectory satisfy the eighth preset condition, including: the minimum value of the number parameter of the fifth trajectory and the number parameter of the sixth trajectory is greater than or equal to the third quantity threshold, and the angle standard deviation parameter of the fifth trajectory and the angle standard deviation parameter of the sixth trajectory are both less than or equal to the third angle standard deviation threshold;
[0119] Wherein, the distance standard deviation parameters of the fifth trajectory and the sixth trajectory satisfy the ninth preset condition, including: the distance standard deviation parameter of the fifth trajectory is less than or equal to the first distance standard deviation threshold, and the distance standard deviation parameter of the sixth trajectory is less than or equal to the first distance standard deviation threshold.
[0120] In one possible implementation, in the second identification process, the heart rate difference trajectory includes a fifth trajectory and a sixth trajectory; the parameters of the fifth trajectory and the parameters of the sixth trajectory satisfy an eighth preset condition, and the distance standard deviation parameters of the fifth trajectory and the distance standard deviation parameters of the sixth trajectory do not satisfy a ninth preset condition, and the heart rhythm type is trigeminy.
[0121] Wherein, the parameters of the fifth trajectory and the parameters of the sixth trajectory satisfy the eighth preset condition, including: the minimum value of the number parameter of the fifth trajectory and the number parameter of the sixth trajectory is greater than or equal to the third quantity threshold, and the angle standard deviation parameter of the fifth trajectory and the angle standard deviation parameter of the sixth trajectory are both less than or equal to the third angle standard deviation threshold;
[0122] Wherein, the distance standard deviation parameters of the fifth trajectory and the sixth trajectory do not meet the ninth preset condition, including: the distance standard deviation parameter of the fifth trajectory is greater than the first distance standard deviation threshold, and the distance standard deviation parameter of the sixth trajectory is greater than the first distance standard deviation threshold.
[0123] In one possible implementation, in the second identification process, the heart rate difference trajectory includes: a first trajectory, a second trajectory, a seventh trajectory, an eighth trajectory, a ninth trajectory, and a tenth trajectory; when the parameters of the first trajectory and the second trajectory satisfy a second preset condition, and the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory satisfy a tenth preset condition, the heart rhythm type is premature beats;
[0124] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first standard deviation threshold.
[0125] Among them, the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory satisfy the tenth preset condition, including: the maximum value of the angle standard deviation parameter of the seventh trajectory, the angle standard deviation parameter of the eighth trajectory, the angle standard deviation parameter of the ninth trajectory, and the angle standard deviation parameter of the tenth trajectory is less than or equal to the fourth angle standard deviation threshold.
[0126] In one possible implementation, in the second identification process, the heart rate difference trajectory includes: a first trajectory, a second trajectory, a seventh trajectory, an eighth trajectory, a ninth trajectory, and a tenth trajectory; when the parameters of the first trajectory and the second trajectory satisfy a second preset condition, and the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory do not satisfy a tenth preset condition, and when the first probability parameter satisfies an eleventh preset condition or the first quantity satisfies a twelfth preset condition, the heart rhythm type is atrial fibrillation;
[0127] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first standard deviation threshold.
[0128] Wherein, the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory do not meet the tenth preset condition, including: the maximum value of the angle standard deviation parameter of the seventh trajectory, the angle standard deviation parameter of the eighth trajectory, the angle standard deviation parameter of the ninth trajectory, and the angle standard deviation parameter of the tenth trajectory is greater than the fourth angle standard deviation threshold.
[0129] Wherein, the first probability parameter satisfies the eleventh preset condition, including: the first probability parameter is less than the third probability threshold;
[0130] Wherein, the first quantity satisfies the twelfth preset condition, including: the first quantity is greater than or equal to the fourth quantity threshold;
[0131] In one possible implementation, in the second identification process, the heart rate difference trajectory includes: a first trajectory, a second trajectory, a seventh trajectory, an eighth trajectory, a ninth trajectory, and a tenth trajectory; when the parameters of the first trajectory and the second trajectory satisfy a second preset condition, and the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory do not satisfy a tenth preset condition, and the first probability parameter does not satisfy an eleventh preset condition or the first quantity does not satisfy a twelfth preset condition, the heart rhythm type is sinus rhythm;
[0132] Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first standard deviation threshold.
[0133] Among them, the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory do not meet the tenth preset condition, including: the maximum value of the angle standard deviation parameter of the seventh trajectory, the angle standard deviation parameter of the eighth trajectory, the angle standard deviation parameter of the ninth trajectory, and the angle standard deviation parameter of the tenth trajectory is greater than the fourth angle standard deviation threshold.
[0134] Wherein, the first probability parameter does not meet the eleventh preset condition, including: the first probability parameter is not less than the third probability threshold;
[0135] Wherein, the first quantity does not meet the twelfth preset condition, including: the first quantity is less than the fourth quantity threshold.
[0136] In one possible implementation, the processing unit is further configured to:
[0137] Obtain the ACC signal for the second preset duration;
[0138] The state of the electronic device is determined based on the ACC signal of the second preset duration;
[0139] If the electronic device is stationary for a third preset duration, then the first PPG signal for the first preset duration is acquired, wherein the third preset duration is less than or equal to the second preset duration.
[0140] In one possible implementation, the processing unit is used to acquire a first PPG signal of a first preset duration, specifically including:
[0141] Acquire a PPG signal and an ACC signal of a fourth preset duration. The PPG signal of the first preset duration includes multiple PPG signals of the fourth preset duration, and the fourth preset duration is less than the first preset duration.
[0142] Determine whether the electronic device is in motion throughout the fifth preset time period;
[0143] If the electronic device is not in motion for the fifth preset duration, it continues to acquire PPG and ACC signals for the fourth preset duration until the acquisition duration meets the first preset duration.
[0144] In one possible implementation, the processing unit is further configured to:
[0145] When the heart rhythm type is atrial fibrillation, the display unit is invoked to display a prompt message to the user, which is used to notify the user of the heart rhythm abnormality.
[0146] Thirdly, a computer-readable storage medium is provided that stores computer program code, which, when executed by an electronic device, causes the electronic device to perform any of the methods in the first aspect.
[0147] Fourthly, a computer program product is provided, the computer program product comprising: computer program code, which, when executed by an electronic device, causes the electronic device to perform any of the methods in the first aspect. Attached Figure Description
[0148] Figure 1 This is an example diagram illustrating an application scenario of an embodiment of this application;
[0149] Figure 2 This is a schematic flowchart of a method for detecting heart rhythm according to an embodiment of this application;
[0150] Figure 3 This is a schematic flowchart of a method for determining heart rhythm type according to an embodiment of this application;
[0151] Figure 4 This is a schematic diagram of the heart rate difference trajectory of premature beats according to an embodiment of this application;
[0152] Figure 5 This is a schematic diagram of the heart rate difference trajectory in normal atrial fibrillation according to an embodiment of this application;
[0153] Figure 6 This is a schematic diagram of the heart rate difference trajectory in rapid atrial fibrillation according to an embodiment of this application;
[0154] Figure 7 This is a schematic diagram of the heart rate difference trajectory of sinus rhythm according to an embodiment of this application;
[0155] Figure 8 This is a schematic diagram of the heart rate difference trajectory in ventricular tachycardia according to an embodiment of this application;
[0156] Figure 9 This is a schematic diagram of the heart rate difference trajectory of premature beats accompanied by bigeminy, according to an embodiment of this application.
[0157] Figure 10 This is a schematic diagram of the heart rate difference trajectory of premature beats accompanied by trigeminy in an embodiment of this application;
[0158] Figure 11 This is an example interface diagram for detecting heart rhythm according to an embodiment of this application;
[0159] Figure 12 This is an example diagram of a risk warning interface according to an embodiment of this application;
[0160] Figure 13 This is a schematic diagram of the software system used in the embodiments of this application;
[0161] Figure 14 This is a schematic diagram of a device applicable to embodiments of this application. Detailed Implementation
[0162] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0163] This application applies to electronic devices, such as smartwatches, smart bracelets, wristbands, helmets, headbands, glasses, or other wearable devices, medical testing devices, etc., capable of detecting heart rhythm or monitoring heart rate. The electronic device uses photoplethysmograph (PPG) technology to measure the user's pulse or heart rate. The electronic device can wirelessly communicate with other terminals through various wireless methods. These terminals include, but are not limited to, mobile phones, tablets, wireless communication devices, remote terminals, mobile devices, user terminals, handheld devices with wireless communication capabilities, computing devices or other processing devices connected to a wireless modem, in-vehicle devices, wearable devices, and terminal devices in future 5G or 6G networks.
[0164] The principle of using PPG technology to measure pulse or heart rate is as follows: Light of a specific color wavelength is emitted by a light-emitting diode (LED) and enters the human body. Then, the attenuated light after being reflected and absorbed by the blood vessels and tissues is measured. The pulse signal is detected by recording the pulsation state of the blood vessels.
[0165] For example, taking a smartwatch as an example, a heart rate sensor (e.g., a PPG sensor or PPG module) can be installed in the smartwatch. The smartwatch collects PPG signals through the heart rate sensor and obtains the user's instantaneous heart rate based on the PPG signals. This application embodiment does not specifically limit the type of heart rate sensor; for example, the heart rate sensor includes a reflective photoelectric heart rate sensor, a transmissive photoelectric heart rate sensor, etc. In this application embodiment, the smartwatch can detect the heart rhythm type based on the obtained PPG signal, thereby determining whether the heart rhythm is normal or abnormal (or arrhythmic). It is understood that the above description is only based on a smartwatch as an example, but this application embodiment is not limited to this.
[0166] The embodiments of this application can also be applied to terminals. For example, a terminal obtains the PPG signal measured by a smartwatch through a smartwatch. Optionally, after the terminal obtains the PPG signal measured by the smartwatch, it can also use the method of the embodiments of this application to determine the heart rhythm type.
[0167] refer to Figure 1 , Figure 1 The diagram shows a smartwatch and a smart bracelet in the wearing state.
[0168] like Figure 1 The smartwatch shown in Figure (1) includes a watch face 11 and a watch strap 12. When worn, the smartwatch... Figure 1 As shown in (2). The user can wear the smartwatch on their wrist via the strap 12, so that the back of the watch face 11 can fit against the skin. The user can adjust the tightness of the strap 12.
[0169] like Figure 1 The smart bracelet shown in Figure (3) includes a watch face 21 and a watch band 22. When worn, the smart bracelet... Figure 1 As shown in (4).
[0170] It should be understood that Figure 1 This is merely an illustrative description of one application scenario of this application, and does not constitute a limitation on the embodiments of this application, nor is this application limited thereto.
[0171] To accurately identify the type of heart rhythm, embodiments of this application provide a method and electronic device for detecting heart rhythm. Embodiments of this application obtain parameters of the trajectory (including but not limited to: angle, number, angle standard deviation, and distance standard deviation) based on the change trajectory of the heart rate difference of a PPG signal for a first preset duration. Then, the type of heart rhythm is determined based on the trajectory parameters. This improves the accuracy of identifying premature beats or atrial fibrillation, avoids misidentifying premature beat signals as atrial fibrillation signals, and enhances the user experience.
[0172] To facilitate understanding, some terms involved in the embodiments of this application will be briefly introduced before the embodiments of this application are introduced.
[0173] Heart rate refers to the number of times the heart beats per minute. Heart rhythm refers to the regularity of the heartbeat. Heart rhythm can be divided into normal heart rhythm and abnormal heart rhythm (or arrhythmia).
[0174] Normally, a normal heart rhythm originates from the sinoatrial node and has a frequency of 60-100 beats per minute, also known as sinus rhythm. Arrhythmia occurs when any of the following is abnormal: the origin of the heart rhythm, the heart rate and rhythm, or impulse conduction. In one way, arrhythmia can be described as bradycardia (e.g., a heart rate less than 60 beats per minute) or tachycardia (e.g., a heart rate exceeding 100 beats per minute).
[0175] For example, the heart rhythm type may include the following: sinus rhythm, premature beats, bigeminy, trigeminy, atrial fibrillation, ventricular tachycardia, etc.
[0176] Premature beats (PVCs), also known as premature contractions, can occur occasionally or frequently, and can happen irregularly or regularly after every one or several normal beats. PVCs are a common arrhythmia that can occur in normal individuals, but are more likely to occur in patients with cardiac neurosis and organic heart disease.
[0177] Bigeminy is a condition where a premature contraction occurs after every sinus beat. Trigeminy is a condition where a premature contraction occurs after every two normal beats.
[0178] Atrial fibrillation (AF) is the most common sustained cardiac arrhythmia. The heart rate in AF is irregular. AF is a common heart condition.
[0179] Ventricular tachycardia is a common arrhythmia, with a heart rate generally exceeding 100 beats per minute.
[0180] refer to Figure 2 The following is combined Figure 2 The flowchart in this application describes a method for detecting heart rhythm according to an embodiment of the present application. For ease of description, the following description uses a watch as an example of an electronic device.
[0181] like Figure 2As shown, the method for detecting heart rhythm in this application embodiment may include the following three stages: the first stage is used to determine whether to enter atrial fibrillation premature beat detection based on the ACC signal; the second stage is used to acquire a first PPG signal of a first preset duration; and the third stage is used to determine the heart rhythm type based on the first PPG signal of the first preset duration.
[0182] One possible implementation is to acquire the ACC signal before proceeding with the atrial fibrillation and premature beat detection process to determine the status of the electronic device. It should be understood that this description uses the ACC signal as an example, and the embodiments of this application are not limited to this. In fact, the ACC signal can be replaced with other information or signals used to determine the status of the electronic device.
[0183] For example, the first stage can be achieved through the following steps 0-3.
[0184] Step 0: Obtain the ACC signal for the second preset duration.
[0185] Optionally, the second preset duration can consist of n time units (n is an integer greater than or equal to 1).
[0186] It should be understood that the embodiments of this application do not specifically limit the type of time unit. For example, the time unit can be an hour, minute, second, microsecond, millisecond, etc. For instance, n time units can be n seconds.
[0187] It should also be understood that the ACC signal can be acquired actively or passively, and this application embodiment does not specifically limit it.
[0188] In one possible example, the application can receive user input (e.g., an input to trigger a continuous heart rate measurement function). The application includes atrial fibrillation and premature beat detection functionality. For example, the application may include, but is not limited to, applications for heart rate monitoring, activity tracking, exercise monitoring, and health monitoring. For instance, when a user clicks on an application within the UI to perform heart rate monitoring (e.g., activity monitoring or continuous measurement within the UI), the ACC signal can be acquired first during heart rate monitoring to determine whether to trigger the atrial fibrillation and premature beat detection function based on the ACC signal.
[0189] In one possible example, after receiving a user's action, the application can send a trigger action to the system, causing the system to call the accelerometer to collect data (such as an ACC signal) and detect the watch's status. It should be understood that this description uses an accelerometer as an example, and the embodiments of this application are not limited thereto.
[0190] Step 1: Determine the watch's status based on the ACC signal of the second preset duration.
[0191] A watch can be in a static or dynamic state. A static state refers to the state when the user's arm is not moving while wearing the watch. A dynamic state refers to the state when the watch moves with the arm. For example, when the user's arm swings significantly while wearing the watch, the watch is in a dynamic state.
[0192] One possible implementation is that the ACC signal can be 3-axis data (typically x, y, and z axes. Optionally, 3-axis data can be obtained through an accelerometer), and then the watch's state per second can be calculated based on the 3-axis data.
[0193] One possible approach is to determine the watch's state by setting a threshold for motion data (such as an acceleration threshold). For example, the watch's acceleration value can be calculated using 3-axis data. If the acceleration value is greater than or equal to the acceleration threshold, the watch is determined to be in motion; if the acceleration value is less than the acceleration threshold, the watch is determined to be stationary.
[0194] Step 2: Determine whether there is a third preset duration within the second preset duration, while the watch remains stationary.
[0195] If there is no third preset duration and the watch remains stationary, proceed to step 3, which is to exit the collection of ACC signals and wait for the next cycle or the next collection of ACC signals; if there is a third preset duration and the watch remains stationary, proceed to step 4.
[0196] The third preset duration is the cumulative duration. This third preset duration is close to the second preset duration. For example, when the difference between the second and third preset durations is sufficiently small, such as less than a certain threshold (which can be flexibly selected based on the specific implementation), they can be considered to be relatively close.
[0197] The preset duration is represented by time units. Step 2 can also be described as: Determine (or count) whether there are a total of n1 time units in which the watch is stationary. The duration composed of n1 time units is close to the duration composed of n time units. When both are represented by the same time unit, n1 is less than or equal to n.
[0198] The third preset duration can consist of n1 time units. It should be noted that n1 here is cumulative. In other words, n1 time units can be continuous or discontinuous time units, and this application embodiment does not specifically limit this.
[0199] It's understandable that the smallest time unit of n time units and n1 time units can be the same or different; there's no specific restriction on this. For example, if n's time unit is minutes, then n time units equal 1 minute; if n1's time unit is seconds, then n1 time units equal 58 seconds. Or, if both time units are seconds, then n time units equal 60 seconds, and n1 time units equal 58 seconds.
[0200] Taking seconds as an example, if the watch is detected to be stationary for n1 seconds out of n seconds, the atrial fibrillation premature beat algorithm is entered to detect the second stage of the process.
[0201] Step 2 above can also be expressed as follows: If the watch is detected to be in motion for n-n1 seconds within n seconds, then the ACC signal collection is stopped, or in other words, the ACC signal collection is halted, and the watch waits for the next ACC signal collection cycle before determining the status. Here, n-n1 seconds can be continuous or discontinuous.
[0202] If the watch remains stationary for n1 time units after the first stage, the second stage can begin collecting PPG signals. Therefore, continuously acquiring PPG signals to detect heart rhythm type can be avoided, helping to save power consumption in electronic devices.
[0203] Step 3: Exit the collection (or acquisition) of ACC signals.
[0204] For example, the second stage can be achieved through the following steps 4-9.
[0205] Step 4: Obtain the PPG signal and ACC signal for the fourth preset duration.
[0206] The fourth preset duration can consist of L1 time units. The description of the time units is as described above and will not be repeated here. For example, the fourth preset duration consists of L1 seconds.
[0207] Here, PPG signals are collected to prepare for subsequent analysis of heart rhythm type. Simultaneously, ACC signals also need to be collected. It should be noted that the purpose of collecting ACC signals here is to assist in the collection of PPG signals. If the ACC signal determines that the watch has been in motion for the fifth preset time period (e.g., the arm wearing the watch is continuously swinging with a large amplitude), then the atrial fibrillation and premature beat detection process can be exited, or in other words, the collection of PPG and ACC signals can be stopped.
[0208] One possible implementation is to acquire PPG signals using a PPG sensor.
[0209] One possible implementation is to acquire the ACC signal using an accelerometer.
[0210] Optionally, after acquiring the PPG signal for the fourth preset duration, the PPG signal for the fourth preset duration can be filtered to remove interference signals (such as interference caused by the user's breathing) or noise, so as to obtain the filtered PPG signal.
[0211] Optionally, the filtering process includes low-pass filtering and high-pass filtering.
[0212] Step 5.1: Extract features of the PPG signal (e.g., peaks).
[0213] For example, peaks can be extracted from the filtered PPG signal.
[0214] Step 5.2: Determine the watch's status based on the ACC signal.
[0215] Determining the watch's status here is similar to step 1 above, and you can refer to the relevant description above, so it will not be repeated here.
[0216] Step 6: Determine whether the fifth preset duration has been continuously in motion.
[0217] If the cumulative duration of the fifth preset time is continuously in motion, proceed to step 7; if the cumulative duration of the fifth preset time is not continuously in motion, proceed to step 8.
[0218] The fifth preset duration consists of L2 time units. The fifth preset duration is longer than the first preset duration. The fifth preset duration is also longer than the second preset duration.
[0219] The time unit can be referred to the previous description, and will not be repeated here. Taking seconds as an example, if the watch is in motion for a cumulative period of L2 seconds, then step 7 (jumping out of atrial fibrillation and premature beat detection) is executed. Otherwise, the PPG signal and ACC signal of the fourth preset duration are acquired until the acquisition duration meets the first preset duration, and then step 8 is executed. Optionally, L2 seconds can be greater than n-n1 seconds in step 2.
[0220] Step 7: Exit the atrial fibrillation premature beat detection.
[0221] Once the atrial fibrillation premature beat detection process is exited, the collection of PPG and ACC signals is stopped, and the process waits for the next ACC signal assessment.
[0222] Step 8: Determine whether the data collection duration meets the first preset duration.
[0223] The first preset duration refers to the cumulative duration for collecting PPG signals when it is determined that the watch has not been in motion continuously within the fifth preset duration. The first preset duration is longer than the fourth preset duration. For example, the first preset duration is 1 minute, and the fourth preset duration is 10 seconds.
[0224] If the acquisition duration meets the first preset duration, stop acquiring PPG and ACC signals and proceed to step 9; if the acquisition duration does not meet the first preset duration, return to continue executing step 4.
[0225] Step 9: Obtain the first PPG signal for the first preset duration.
[0226] The first preset duration can consist of L3 time units. The time units can be referred to the previous description and will not be repeated here.
[0227] Specifically, when the acquisition duration meets the first preset duration, the features of multiple PPG signals with a fourth preset duration are concatenated (or sorted according to chronological order) to obtain the first PPG signal with the first preset duration. For example, the first preset duration is 1 minute and the fourth preset duration is 6 seconds.
[0228] Here, splicing together the features of the first PPG signal with a first preset duration means combining multiple PPG signals with a fourth preset duration. Alternatively, the first PPG signal with a first preset duration is composed of multiple PPG signal segments, each with a duration of the fourth preset duration. Optionally, each PPG signal segment can be a filtered PPG signal. Alternatively, each PPG signal segment can be an unfiltered PPG signal, with filtering performed uniformly after splicing multiple PPG signal segments; this embodiment does not limit this approach.
[0229] It should be noted that the first PPG signal of the first preset duration here does not include the PPG signal collected when the atrial fibrillation premature beat detection is interrupted (while the heart is in motion for the fifth preset duration).
[0230] The second stage allows for the acquisition of effective PPG signals, thus preparing for subsequent heart rhythm type detection.
[0231] In summary, through the first and second stages described above, a first PPG signal of a first preset duration can be obtained. Then, the third stage can be entered, that is, the heart rhythm type can be determined based on the first PPG signal of the first preset duration.
[0232] It should be understood that the first and second stages described above are optional steps, and the embodiments of this application do not impose specific limitations.
[0233] Third stage: Step 10, determine the heart rhythm type based on the first PPG signal of the first preset duration.
[0234] Heart rhythm types include: premature beats, atrial fibrillation, sinus rhythm, ventricular tachycardia, bigeminy, trigeminy, etc.
[0235] The following text will combine Figure 3 Describe in detail how to determine the heart rhythm type based on the first PPG signal of a first preset duration.
[0236] Step 11, output the result.
[0237] The output of step 11 is the heart rhythm type obtained through step 10.
[0238] Understandably, the results can be displayed in some form on the screen of a mobile phone, watch, or bracelet.
[0239] One possible implementation is to display the heart rhythm type. For example, as... Figure 11 The interface shown in (2) allows the watch to display the number of abnormal heart rhythms.
[0240] One possible implementation is that users can view heart rate results on a device connected to the watch or bracelet, for example... Figure 11 As shown in the interface in (3), users can view the number of abnormal heart rhythms in the statistics details in the APP.
[0241] Optionally, Figure 2 Other processes can also be included. For example, before step 0, it can be determined whether the wearer of the watch is a living person, or in other words, whether the watch is being worn by the user. For instance, infrared detection technology and a liveness detection algorithm can be combined to determine whether the wearer is a living person. If the user is wearing the watch, there will be a need for heart rate monitoring to analyze the heart rhythm type.
[0242] It should be understood that Figure 2 The process described herein is merely an illustrative example and does not constitute a limitation on the embodiments of this application.
[0243] refer to Figure 3 The following is combined Figure 3 Describe the specific process of the third stage in detail.
[0244] Figure 3 A schematic flowchart illustrating a method for determining heart rhythm type according to an embodiment of this application is shown. It should be understood that... Figure 3 The method in can be compared with Figure 2 The processes described herein can be used in combination or independently; this application does not specifically limit their use in this regard.
[0245] like Figure 3As shown, the method includes:
[0246] Step 301: Determine multiple heart rate (HR) values based on the first PPG signal of the first preset duration.
[0247] As mentioned earlier, the first PPG signal of the first preset duration can be composed of multiple PPG signal segments, each with a duration of the fourth preset duration. Correspondingly, the multiple heart rate values here are the heart rate values determined based on these multiple PPG signal segments. For example, assuming the first preset duration is 1 minute and the fourth preset duration is 10 seconds, then these multiple heart rate values refer to the multiple heart rate values obtained from the PPG signal composed of the first 10-second PPG signal, the second 10-second PPG signal, ..., the sixth 10-second PPG signal.
[0248] One implementation involves extracting the pulse interval (R-Rinterval, RRI) from the peaks of a first PPG signal of a first preset duration, and then calculating the heart rate based on each RRI. RRI refers to the time interval between two adjacent peaks. Specifically, RRI can be understood as the interval between two R waves. The R wave is a concept in electrocardiography, referring to a wave with an upward trend in cardiac electrical activity; it can also be understood as a wave containing peaks.
[0249] For example, heart rate can be calculated using the following formula:
[0250]
[0251] Here, HR represents heart rate and RRI represents interval.
[0252] It should be understood that the method of calculating heart rate described here is only an example, and the embodiments of this application are not limited to this, and there may be other methods of calculating heart rate.
[0253] Step 302: Determine the difference between every two adjacent heart rates based on the plurality of heart rate values, and use the difference between every two adjacent heart rates to generate a heart rate difference trajectory map.
[0254] The heart rate difference can be represented as ΔHR. It's important to understand that the heart rate difference can be positive or negative.
[0255] In this embodiment of the application, a heart rate difference trajectory is plotted using multiple heart rate differences and heart rate difference thresholds to achieve the purpose of analyzing the type of arrhythmia.
[0256] Optionally, the heart rate difference threshold can be a priori value, for example, the heart rate difference threshold can be set to 6 or -6.
[0257] A heart rate difference trajectory plot is a scatter plot that reflects the distribution characteristics of the trajectories formed by various heart rate differences. For example, a Poincaré plot can be used for heart rate difference trajectory plots.
[0258] One implementation involves generating a Poincaréplot using heart rate differences. For example, if n+1 heart rate differences are obtained (ΔHR1, ..., ΔHR...),... n+1 Using these n+1 heart rate differences, a Poincaré plot is drawn, with ΔHR... n ΔHR is the vertical axis. n+1 Plot a Poincaré plot on the horizontal axis, centered at the origin. Divide the plot into nine regions in each of the four directions (up, down, left, and right) using the threshold values of heart rate differences as boundaries. These regions are labeled as: Region 0, Region 1, Region 2, Region 3... Region 8. A detailed description with accompanying figures will follow.
[0259] Step 303: Obtain the parameters of the heart rate difference trajectory based on the heart rate difference trajectory map. The parameters of the heart rate difference trajectory include one or more of the following parameters: angle, number, angle standard deviation, and distance standard deviation.
[0260] Specifically, after obtaining the heart rate difference trajectory map, the relevant parameters of each heart rate difference trajectory in the map can be calculated, including but not limited to the following parameters: the angle of the trajectory, the number of trajectories that the trajectory falls in the corresponding area, the standard deviation of the trajectory angle, and the standard deviation of the trajectory distance.
[0261] The heart rate difference trajectory plot includes several different trajectory types. The heart rate difference trajectory can be represented by the region numbering of the Poincaré plot.
[0262] One possible implementation is that the trajectory of the heart rate differences can be represented as a triangle formed by heart rate differences falling in region A, region B, and region C. For example, the trajectory could be represented as ABC. The regions mentioned here can specifically be the areas divided in the Poincaré plot mentioned earlier.
[0263] The angle of the trajectory of the heart rate difference refers to the angle of ∠ABC in the triangle mentioned above, and the vertex of this angle is the heart rate difference that falls in region B.
[0264] Taking trajectory 1-2-3 as an example (the explanation of other trajectories can be found here), trajectory 1-2-3 represents the line connecting heart rate differences passing through region 1, region 2, and region 3. For example, a heart rate difference 'a' falling in region 1 is connected to a heart rate difference 'b' falling in region 2. Then, a heart rate difference 'b' falling in region 2 is connected to a heart rate difference 'c' falling in region 3. The resulting trajectory is trajectory 1-2-3, where heart rate differences 'a', 'b', and 'c' are ordered in chronological order.
[0265] The angle of trajectory 1-2-3 is represented by θ. 123 θ 123 It is the angle ∠123, where ∠123 represents the angle with the heart rate difference falling in region 2 as the vertex.
[0266] The number of heart rate difference trajectories refers to the number of heart rate differences falling within a corresponding region. For example, the number of trajectory ABC refers to the number of heart rate differences falling near regions A and C. Alternatively, the number of trajectory ABC refers to the number of heart rate differences falling near regions A, B, and C.
[0267] For example, the number of trajectories 1-2-3 can be represented as num. 123 . num 123 This refers to the number of heart rate differences that fall near region 1 and region 3.
[0268] The angular standard deviation of heart rate differences refers to the standard deviation of the angle. The standard deviation of the angle is calculated based on the mean and standard values of the angle. The calculation method for the standard deviation can be found in the existing description.
[0269] For example, the standard deviation of the angles of the above trajectory 1-2-3 is expressed as sd. 123 . sd 123 The following formula can be used for calculation:
[0270]
[0271] in, It is a sequence x1, x2, ..., x n The mean. It can be understood that if calculating the standard deviation of an angle, then x in the above formula should be the value of the angle; if calculating the standard deviation of a distance, then x in the above formula should be the value of the distance.
[0272] One possible implementation is that the trajectory of the heart rate difference can also be represented as a line connecting the heart rate differences falling in region E and the heart rate differences falling in region F, i.e., the straight line EF.
[0273] When the trajectory of the heart rate difference is a straight line, the angle of the trajectory can be understood as the angle corresponding to the slope of the straight line EF.
[0274] For cases where the trajectory of the heart rate difference is a straight line, the standard deviation of the distance of the heart rate difference trajectory refers to the standard deviation of the distance from the origin (0, 0) to the straight line.
[0275] For example, sd_d 24 This represents the standard deviation of the distance from the origin to the line 2-4.
[0276] For example, the heart rate difference trajectory may include the following scenarios: parameters of the first trajectory (1-2-3), the second trajectory (6-4-5), the third trajectory (1-0-3), the fourth trajectory (6-0-5), the fifth trajectory (2-4), the sixth trajectory (4-2), the seventh trajectory (1-2), the eighth trajectory (2-3), the ninth trajectory (6-4), and the tenth trajectory (4-5).
[0277] For example, the angle parameter of the first trajectory is represented as θ. 123 The angle parameter of the second trajectory is represented by θ. 645 The angle parameter of the third trajectory is represented by θ. 103 The angular parameter of the fourth trajectory is represented by θ. 605 The angular parameter of the fifth trajectory is represented by θ. 24 The angular parameter of the sixth trajectory is represented by θ. 42 The angular parameter of the seventh trajectory is represented by θ. 12 The angular parameter of the eighth trajectory is represented by θ. 23 The angular parameter of the ninth trajectory is represented by θ. 64 The angular parameter of the tenth trajectory is represented by θ. 45 .
[0278] For example, the number of the first trajectory parameter is represented as hum 123 The number of second trajectories is represented by the parameter num. 645 The number of third trajectories is represented by the parameter num. 103 The number of fourth trajectories is represented by the parameter num. 605 The number of fifth trajectories is represented by hum. 24 The number of sixth trajectories is represented by the parameter num. 42 The number of seventh trajectories is represented by the parameter num. 12 The number of eighth trajectories is represented by the parameter num. 23 The number of ninth trajectories is represented by the parameter num. 64 The number of tenth trajectories is represented by the parameter num. 45 .
[0279] For example, the angular standard deviation parameter of the first trajectory is denoted as sd. 123 The angular standard deviation parameter of the second trajectory is denoted as sd. 645 The angular standard deviation parameter of the third trajectory is expressed as sd. 103 The angular standard deviation parameter of the fourth trajectory is expressed as sd. 605 The angular standard deviation parameter of the fifth trajectory is expressed as sd. 24 The angular standard deviation parameter of the sixth trajectory is expressed as sd. 42 The angular standard deviation parameter of the seventh trajectory is expressed as sd. 12 The angular standard deviation parameter of the eighth trajectory is expressed as sd. 23 The angular standard deviation parameter of the ninth trajectory is expressed as sd. 64 The angular standard deviation parameter of the tenth trajectory is expressed as sd. 45 .
[0280] For example, the standard deviation parameter of the distance from the origin (0, 0) to the fifth trajectory (2-4) is denoted as sd_d. 24 The standard deviation of the distance from the origin (0, 0) to the sixth locus (4-2) is denoted as sd_d. 42 .
[0281] Optionally, the parameters of the heart rate difference trajectory further include a first probability parameter and a first quantity. The first probability parameter refers to the probability of falling into region 0; for example, the first probability parameter is represented as r. zero The first quantity refers to the number of items that fall outside the region 0. For example, the first quantity is represented as num. outside .
[0282] It should be noted that different heart rhythm types have different characteristics in their heart rate difference trajectories, or rather, they each have their own patterns. By combining the parameters of the aforementioned heart rate difference trajectories, this embodiment can determine which type of heart rhythm the PPG signal of the first preset duration belongs to.
[0283] Optionally, in step 304, a first parameter is determined based on a first PPG signal of a first preset duration, and it is determined whether the first parameter is greater than or equal to a first threshold.
[0284] The comparison between the first parameter and the first threshold here is for preliminary atrial fibrillation (AF) identification. If the first parameter is greater than or equal to the first threshold, the probability of AF occurring is greater than the probability of not occurring, and the system proceeds to the AF identification window. If the first parameter is less than the first threshold, the probability of AF occurring is less than the probability of not occurring, and the system proceeds to the non-AF identification window. This approach allows for data stream splitting, saving subsequent judgment steps and thus reducing the power consumption of electronic devices. For example, in the non-AF identification window, subsequent steps might involve determining whether bigeminy or trigeminy has occurred, while the judgment steps in the AF identification window are not involved.
[0285] Of course, even if a heart rate enters the atrial fibrillation identification window, it doesn't necessarily mean the heart rhythm type is atrial fibrillation. Further judgment is needed based on the parameters of the heart rate difference trajectory to determine the heart rhythm type. Similarly, even if a heart rate enters the non-atrial fibrillation identification window, it doesn't necessarily mean the heart rhythm type is not atrial fibrillation. Further judgment is needed based on the parameters of the heart rate difference trajectory to determine the heart rhythm type, thereby improving accuracy.
[0286] Optionally, determining the first parameter based on a PPG signal of a first preset duration includes: extracting multiple RRIs from the peaks of the PPG signal of the first preset duration; calculating the difference between every two adjacent RRIs based on the multiple RRIs, wherein the difference between every two adjacent RRIs is used to determine the first parameter.
[0287] For ease of description, the difference between two adjacent RRIs (which can be simply referred to as the RRI difference) can be expressed as ΔRRI.
[0288] For example, the root mean square and sample entropy can be calculated based on multiple ΔRRIs, and then the first parameter can be determined based on the root mean square and sample entropy.
[0289] One possible implementation is that the first parameter is calculated using the following formula:
[0290] Comb = w × RMSSD + (1 - w) × SampEn
[0291] Where Comb represents the first parameter, w represents the weight value, RMSSD is the root mean square of the RRI difference, and SampEn is the sample entropy of the RRI. 0 ≤ w ≤ 1. Typically, the value of RMSSD is greater than that of SampEn, so the weight of RMSSD is less than the weight of SampEn.
[0292] One implementation method for RMSSD is to calculate it using the following formula:
[0293]
[0294] Where N represents the number of ΔRRIs, and ΔRRI represents the difference between adjacent RRIs.
[0295] Sample entropy is a metric used to measure the complexity of an RRI sequence. It measures the probability of a new pattern arising from the RRI sequence, thus indicating its complexity. The higher the probability of a new pattern arising, the greater the sequence's complexity.
[0296] For example, in Matlab, the sample entropy can be calculated by calling the SampEn function. The Matlab code example is as follows:
[0297] function SampEnVal=SampEn(data, m, r)
[0298] It is understood that the definition of the SampEn function can be based on a specific implementation, and this application embodiment does not impose any specific limitations.
[0299] It should be understood that the above descriptions of root mean square and sample entropy are merely exemplary descriptions, and the embodiments of this application are not limited thereto.
[0300] It is understood that step 304 can be an optional step. As one possible implementation, step 304 can also be omitted, that is, the heart rhythm type of the first PPG signal can be determined using the parameters of the heart rate difference trajectory.
[0301] Step 305.1: When the first parameter is greater than or equal to the first threshold, perform a first identification process based on the parameters of the heart rate difference trajectory (or enter the atrial fibrillation label window for identification processing) to determine the heart rhythm type of the first PPG signal. The heart rhythm type includes any of the following: premature beats, atrial fibrillation, sinus rhythm, and ventricular tachycardia.
[0302] In other words, when entering the atrial fibrillation label window for identification processing, it is possible to determine whether the parameters of different trajectories meet the corresponding preset conditions (for example, to determine the relationship between the parameters and the corresponding thresholds) in order to identify the heart rhythm type.
[0303] The following describes various implementations of the first identification process.
[0304] One possible implementation is that the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy a first preset condition, and the heart rhythm type is premature beat.
[0305] Optionally, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the first preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to the first quantity threshold, and the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory are both less than or equal to the first angle standard deviation threshold.
[0306] For example, when (num 123 +num 645 )≥Th_num1,sd 123 sd 645 If all values are less than or equal to the threshold Th_sd1, then it is a premature beat signal.
[0307] Figure 4 A schematic diagram showing the trajectory of the heart rate difference in premature beats is presented. Figure 4 As shown, in Figure 4 In the middle, with ΔHR n ΔHR is the vertical axis. n+1 Plot a Poincaré plot on the horizontal axis, centered at the origin. Divide the plot into nine regions (region 0, region 1, region 2... region 8) with heart rate difference thresholds as boundaries in the four cardinal directions. (It should be understood that the following text...) Figures 5 to 10 The drawing principles and Figure 4 Similarly, please refer to the description here, which will not be repeated below.
[0308] from Figure 4 As can be seen, the trajectory of premature beats resembles a triangle with overlaps. Premature beats are based on SD... 123 sd 645 ,num 123 ,num 645 It is used for identification.
[0309] One possible implementation is that when the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy a second preset condition, and the first probability parameter satisfies a third preset condition, the heart rhythm type is atrial fibrillation.
[0310] Optionally, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to the first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first standard deviation threshold.
[0311] Optionally, the first probability parameter satisfies a third preset condition, including: the first probability parameter is less than a first probability threshold.
[0312] For example, when (num 123 +num 645 )≥Th_num1,sd 123 sd 645 There is at least one value greater than the threshold Th_sd1, and r zero If <Th_r1, then it is atrial fibrillation.
[0313] Figure 5 This diagram illustrates the trajectory of heart rate differences in normal atrial fibrillation. Figure 6 A schematic diagram of the heart rate difference trajectory in rapid atrial fibrillation is shown.
[0314] The above Figure 5 and Figure 6 These are schematic diagrams illustrating the trajectory of heart rate differences in atrial fibrillation. From Figure 5 and Figure 6 It is known that the trajectory of atrial fibrillation is relatively random, chaotic, and rarely overlaps, therefore sd 123 sd 645 It's quite large.
[0315] One possible implementation is that when the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy a second preset condition, and the first probability parameter does not satisfy a third preset condition, the heart rhythm type is sinus rhythm.
[0316] Optionally, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to the first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first angle standard deviation threshold.
[0317] Optionally, the first probability parameter does not meet the third preset condition, including: the first probability parameter is not less than the first probability threshold, or the first probability parameter is greater than or equal to the first probability threshold.
[0318] For example, when (num 123 +num 645 When )≥Th_num1, if sd 123 sd 645 When at least one is greater than the threshold Th_sd1, and r zero If it is greater than or equal to Thr1, it is sinus rhythm.
[0319] Figure 7 This diagram illustrates the trajectory of heart rate differences in sinus rhythm. From Figure 7 It can be seen that the points of sinus rhythm are mainly concentrated in region 0. Sinus rhythm can be determined based on r. zero Identification is performed. Additionally, sinus rhythm can also be identified based on num. outside Identification is performed. For example, in the second identification processing implementation described later, the relevant implementation of sinus rhythm can be based on num. outside The identification process will be performed. The relevant constraints will be described in detail later.
[0320] One possible implementation is that the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy a fourth preset condition, and the parameters of the first trajectory (1-2-3) and the parameters of the third trajectory (1-0-3) satisfy a fifth preset condition; or, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy a fourth preset condition, and the parameters of the second trajectory (6-4-5) and the parameters of the fourth trajectory (6-0-5) satisfy a sixth preset condition, wherein the heart rhythm type is ventricular tachycardia.
[0321] Optionally, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy a fourth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is less than a first quantity threshold.
[0322] Optionally, the parameters of the first trajectory (1-2-3) and the parameters of the third trajectory (1-0-3) satisfy the fifth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the third trajectory is greater than or equal to the second quantity threshold, the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the third trajectory are both less than or equal to the second angle standard deviation threshold, and the angle mean parameter of the first trajectory is less than the angle mean parameter of the third trajectory.
[0323] Optionally, the parameters of the second trajectory (6-4-5) and the fourth trajectory (6-0-5) satisfy the sixth preset condition, including: the sum of the number parameters of the second trajectory and the number parameters of the third trajectory is greater than or equal to the second quantity threshold, the angle standard deviation parameters of the second trajectory and the angle standard deviation parameters of the third trajectory are both less than or equal to the second angle standard deviation threshold, and the angle mean parameter of the second trajectory is less than the angle mean parameter of the fourth trajectory.
[0324] For example, when (num 123 +num 645 When ) < Th_num1: when (num 123 +num 103 )≥Th_num2, and sd 123 sd 103 All are less than or equal to the threshold Th_sd2, and meanθ 123 <meanθ 103 , or when (num 645 +num 605 )≥Th_num2, and sd 645 sd 605 All are less than or equal to the threshold Th_sd2, and meanθ 645 <meanθ 605 If the mean is 0, then it is ventricular tachycardia. Here, mean represents the average value.
[0325] Figure 8 A schematic diagram of the heart rate difference trajectory in ventricular tachycardia is shown. From Figure 8 As shown in (1), the trajectory of ventricular tachycardia is concentrated in '1-2-3' and '1-0-3'. Ventricular tachycardia can be determined based on θ. 123 θ 103 ,num 123 ,num 103 sd 123 sd 103 Identification. From Figure 8 From (2), it can be seen that the trajectory of ventricular tachycardia is concentrated in '6-4-5' and '6-0-5'. Ventricular tachycardia can be determined based on θ. 645 θ 605 ,num 645 ,num 605 sd 645 sd 605 Perform identification.
[0326] One possible implementation is that when the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the fourth preset condition, and the first probability parameter satisfies the seventh preset condition, the heart rhythm type is atrial fibrillation.
[0327] Optionally, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy a fourth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is less than a first quantity threshold.
[0328] Optionally, the first probability parameter satisfies a seventh preset condition, including: the first probability parameter is less than the second probability threshold.
[0329] For example, when (num 123 +num 645 When ) < Th_num1, and r zero If <Th_r2, then it is atrial fibrillation.
[0330] One possible implementation is that when the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the fourth preset condition, and the first probability parameter does not satisfy the seventh preset condition, the heart rhythm type is sinus rhythm.
[0331] Optionally, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy a fourth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is less than a first quantity threshold.
[0332] Optionally, the first probability parameter does not meet the seventh preset condition, including: the first probability parameter is not less than the second probability threshold, or the first probability parameter is greater than or equal to the second probability threshold.
[0333] For example, when (num 123 +num 645 When ) < Th_num1, and r zero If ≥Th_r2, then it is sinus rhythm.
[0334] Step 305.2: When the first parameter is less than the first threshold, perform a second identification process based on the parameters of the heart rate difference trajectory (or enter the non-atrial fibrillation label window for identification processing) to determine the heart rhythm type of the first PPG signal. The heart rhythm type includes any of the following: premature beats, atrial fibrillation, sinus rhythm, ventricular tachycardia, bigeminy, and trigeminy.
[0335] In other words, when entering the non-atrial fibrillation label window for identification processing, it is possible to determine whether the parameters of different trajectories meet the corresponding preset conditions (for example, to determine the relationship between the parameters and the corresponding thresholds) in order to identify the heart rhythm type.
[0336] The following describes various implementations of the second identification process.
[0337] One possible implementation is that the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy a first preset condition, and the heart rhythm type is premature beat.
[0338] Optionally, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the first preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to the first quantity threshold, and the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory are both less than or equal to the first angle standard deviation threshold.
[0339] For example, when (num 123 +num 645 When )≥Th_num1, if sd 123 sd 645 If all values are less than or equal to the threshold Th_sd1, then it is a premature beat signal.
[0340] One possible implementation is that the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy a second preset condition, and the heart rhythm type is atrial fibrillation.
[0341] Optionally, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to the first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first angle standard deviation threshold.
[0342] For example, when (num 123 +num 645 )≥Th_num1,sd 123 sd 645 If at least one value is greater than the threshold Th_sd1, then it is atrial fibrillation. It can be seen that when (num... 123 +num 645 When )≥Th_num1, the difference between the condition for judging atrial fibrillation here and the condition for judging atrial fibrillation in step 305.1 is that there is no need to combine the first probability parameter for judgment here.
[0343] One possible implementation is that the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy a fourth preset condition, and the parameters of the first trajectory (1-2-3) and the parameters of the third trajectory (103) satisfy a fifth preset condition; or, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy a fourth preset condition, and the parameters of the second trajectory (6-4-5) and the parameters of the fourth trajectory (6-0-5) satisfy a sixth preset condition, wherein the heart rhythm type is ventricular tachycardia.
[0344] Optionally, the conditions for determining ventricular tachycardia here can be the same as those for determining ventricular tachycardia in step 305.1. For a detailed description, please refer to the previous description.
[0345] For example, when (num 123 +num 645 When ) < Th_num1: If (num 123 +num 103 )≥Th_num2, and sd 123 sd 103 All are less than or equal to the threshold Th_sd2, and meanθ 123 <meanθ 103 , or if (num 645 +num 605 )≥Th_num2, and sd 645 sd 605 All are less than or equal to the threshold Th_sd2, and meanθ 645 <meanθ 605 If so, it is ventricular tachycardia.
[0346] In one possible implementation, the parameters of the fifth trajectory (2-4) and the sixth trajectory (4-2) satisfy the eighth preset condition, and the distance standard deviation parameters of the fifth trajectory (2-4) and the sixth trajectory (4-2) satisfy the ninth preset condition, wherein the heart rhythm type is bigeminy.
[0347] Optionally, the parameters of the fifth trajectory (2-4) and the sixth trajectory (4-2) satisfy the eighth preset condition, including: the minimum value of the number parameter of the fifth trajectory and the number parameter of the sixth trajectory is greater than or equal to the third quantity threshold, and the angle standard deviation parameter of the fifth trajectory and the angle standard deviation parameter of the sixth trajectory are both less than or equal to the third angle standard deviation threshold.
[0348] Optionally, the distance standard deviation parameters of the fifth trajectory (2-4) and the sixth trajectory (4-2) satisfy the ninth preset condition, including: the distance standard deviation parameter of the fifth trajectory is less than or equal to the first distance standard deviation threshold, and the distance standard deviation parameter of the sixth trajectory is less than or equal to the first distance standard deviation threshold.
[0349] For example, when min(num) 24 ,num 42 )≥Th_num3,sd 24 ≤Th_sd3, sd 42 ≤Th_sd3, if sd_d 24 ≤Th_d1,sd_d 42 If ≤Th_d1, then it is a bigeminy.
[0350] Figure 9 This diagram illustrates the trajectory of the heart rate difference in premature beats accompanied by bigeminy. From... Figure 9 As can be seen from this, the bigeminyms overlap, mainly concentrated in the '2-4' and '4-2' regions. The bigeminyms can be determined according to θ. 24 θ 42 ,num 24 ,num 42 sd 24 sd 42 sd_d 24 sd_d 42 Identification.
[0351] Therefore, the method for detecting heart rhythm based on the embodiments of this application can accurately identify bigeminy and improve user experience.
[0352] In one possible implementation, the parameters of the fifth trajectory (2-4) and the sixth trajectory (4-2) satisfy the eighth preset condition, and the distance standard deviation parameters of the fifth trajectory (2-4) and the sixth trajectory (4-2) do not satisfy the ninth preset condition, and the heart rhythm type is trigeminy.
[0353] Optionally, the possible implementation of the parameters of the fifth trajectory (2-4) and the sixth trajectory (4-2) satisfying the eighth preset condition can be referred to the description above when determining the heart rhythm type as bigeminy, and will not be repeated here.
[0354] Optionally, the distance standard deviation parameters of the fifth trajectory (2-4) and the sixth trajectory (4-2) do not meet the ninth preset condition, including: the distance standard deviation parameter of the fifth trajectory is greater than the first distance standard deviation threshold, and the distance standard deviation parameter of the sixth trajectory is greater than the first distance standard deviation threshold.
[0355] For example, when min(num) 24 ,num 42 )≥Th_num3,sd 24 ≤Th_sd3, sd 42 ≤Th_sd3, if sd_d 24 >Th d1 sd_d 42 If >Th_d1, then it is a triadic law.
[0356] Figure 10 This diagram illustrates the trajectory of the heart rate difference in premature beats accompanied by trigeminy. From Figure 10 As can be seen, the trajectories of the triadic law also overlap, mainly concentrated in the '2-4' and '4-2' regions. The triadic law can be determined according to θ. 24 θ 42 ,num 24 ,num 42 sd 24 sd 42 sd_d 24 sd_d 42 Identification.
[0357] Therefore, the method for detecting heart rhythm based on the embodiments of this application can accurately identify trigeminy and improve user experience.
[0358] One possible implementation is that when the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the second preset condition, and the parameters of the seventh trajectory (1-2), the eighth trajectory (2-3), the ninth trajectory (6-4), and the tenth trajectory (4-5) satisfy the tenth preset condition, the heart rhythm type is premature beat.
[0359] Optionally, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to the first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first standard deviation threshold.
[0360] Optionally, the parameters of the seventh trajectory (1-2), the eighth trajectory (2-3), the ninth trajectory (6-4), and the tenth trajectory (4-5) satisfy the tenth preset condition, including: the maximum value of the angle standard deviation parameter of the seventh trajectory, the angle standard deviation parameter of the eighth trajectory, the angle standard deviation parameter of the ninth trajectory, and the angle standard deviation parameter of the tenth trajectory is less than or equal to the fourth angle standard deviation threshold.
[0361] For example, when (num 123 +num 645 )≥Th_num1,sd 123 sd 645 There is at least one value greater than the threshold Th_sd1, and max(sd) 12 sd 23 sd 64 sd 45 If )≤Th_sd4, then it is a premature beat signal.
[0362] In one possible implementation, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the second preset condition, and the parameters of the seventh trajectory (1-2), the eighth trajectory (2-3), the ninth trajectory (6-4), and the tenth trajectory (4-5) do not satisfy the tenth preset condition. Furthermore, when the first probability parameter satisfies the eleventh preset condition or the first quantity satisfies the twelfth preset condition, the heart rhythm type is atrial fibrillation.
[0363] Optionally, possible implementations in which the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the second preset condition can be referred to the above description, and will not be repeated here.
[0364] Optionally, the parameters of the seventh trajectory (1-2), the eighth trajectory (2-3), the ninth trajectory (6-4), and the tenth trajectory (4-5) do not meet the tenth preset condition, including: the maximum value of the angle standard deviation parameter of the seventh trajectory, the angle standard deviation parameter of the eighth trajectory, the angle standard deviation parameter of the ninth trajectory, and the angle standard deviation parameter of the tenth trajectory is greater than the fourth angle standard deviation threshold.
[0365] Optionally, the first probability parameter satisfies the eleventh preset condition, including: the first probability parameter is less than the third probability threshold.
[0366] Optionally, the first quantity satisfies the twelfth preset condition, including: the first quantity is greater than or equal to the fourth quantity threshold.
[0367] For example, when (num 123 +num 645 )≥Th_num1,sd 123 sd 645 There is at least one value greater than the threshold Th_sd1, and max(sd) 12 sd 23 sd 64 sd 45 )>Th_sd4, and r zero <Th_r3 or num outside When the value is ≥Th_num4, it indicates atrial fibrillation.
[0368] In one possible implementation, the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the second preset condition, and the parameters of the seventh trajectory (1-2), the eighth trajectory (2-3), the ninth trajectory (6-4), and the tenth trajectory (4-5) do not satisfy the tenth preset condition, and the first probability parameter does not satisfy the eleventh preset condition or the first quantity does not satisfy the twelfth preset condition, then the heart rhythm type is sinus rhythm.
[0369] Optionally, possible implementations in which the parameters of the first trajectory (1-2-3) and the parameters of the second trajectory (6-4-5) satisfy the second preset condition can be referred to the above description, and will not be repeated here.
[0370] Optionally, for possible implementations where the parameters of the seventh trajectory (1-2), the eighth trajectory (2-3), the ninth trajectory (6-4), and the tenth trajectory (4-5) do not satisfy the tenth preset condition, please refer to the description above, which will not be repeated here.
[0371] Optionally, the first probability parameter does not meet the eleventh preset condition, including: the first probability parameter is not less than the third probability threshold, or in other words, the first probability parameter is greater than or equal to the third probability threshold.
[0372] Optionally, the first quantity does not meet the twelfth preset condition, including: the first quantity is less than the fourth quantity threshold.
[0373] For example, when (num 123 +num 645 )≥Th_num1,sd 123 sd 645 There is at least one value greater than the threshold Th_sd1, and max(sd) 12 sd23 sd 64 sd 45 )>Th_sd4, and r zero ≥Th_r3 or num outside When Th_num4 is less than 4, it is sinus rhythm.
[0374] It is hereby clarified that the possible implementation methods or examples of the various preset conditions mentioned above do not constitute a limitation on the embodiments of this application.
[0375] It should be understood that the classification of the "equal to" cases in the various implementations is merely illustrative and does not limit the scope of protection of the embodiments of this application. For example, in some cases, the "equal to" case and the "greater than" case belong to the same category. In fact, as another implementation, the "equal to" case can also be classified as the "less than" case, and the embodiments of this application do not specifically limit this. For example, (num) in the above text 123 +num 645 )≥Th_num1 is only one possible implementation. As another implementation, "(num 123 +num 645 The case of "(num) = Th_num1" can also be classified as "(num) = Th_num1". 123 In the case of "+num645<Th_num1”.
[0376] In this embodiment, a PPG signal of a first preset duration is acquired. Based on the trajectory of the heart rate difference changes in the PPG signal of the first preset duration, parameters of the trajectory (including but not limited to: angle, number, angle standard deviation, and distance standard deviation) are obtained. Then, the type of heart rhythm is determined based on these trajectory parameters. Compared to identification based on each heart rate (or the waveform morphology of the heartbeat), this embodiment identifies the heart rate based on a segment of the signal (i.e., the PPG signal of the first preset duration). This improves the accuracy of identifying premature beats or atrial fibrillation, reduces the probability of misidentifying premature beats as atrial fibrillation, and enhances the user experience.
[0377] For ease of understanding, the following is combined with Figure 11 and Figure 12 The interface is described in the text.
[0378] Figure 11 This is an example diagram of an interface for detecting heart rhythm according to an embodiment of this application.
[0379] like Figure 11 As shown in (1), when wearing the watch, the user can tap the heart rate application on the watch interface. The heart rate application can perform continuous heart rate measurements. It should be understood that... Figure 11The interface in (1) only shows icons for some applications, such as weather and blood oxygen saturation, which does not limit the embodiments of this application.
[0380] In one possible implementation, when the watch is connected to a mobile phone, the user can enable the option to continuously measure heart rate via their phone. Once enabled, the watch will monitor the user's heart rate 24 hours a day, displaying a 24-hour heart rate curve and resting heart rate.
[0381] When continuously measuring heart rate, the watch interface can... Figure 11 As shown in (2). Figure 11 The interface shown in (2) allows the watch to display the heart rate curve, resting heart rate, and number of abnormal heart rhythms for a certain period of time.
[0382] As one possible implementation, heart rate statistics can also be displayed on a mobile phone. The mobile phone interface can be as follows: Figure 11 As shown in Figure (3), the statistics details interface can display information such as the 24-hour heart rate curve, average heart rate, number of irregular heart rhythms, number of times no abnormalities were found, and statistical chart of the proportion of irregular heart rhythms to the user.
[0383] Understandable. Figure 11 The interfaces described herein are merely illustrative examples, and the embodiments of this application are not limited thereto.
[0384] Figure 12 A schematic diagram of a risk warning interface is shown. As one possible implementation, when an abnormal heart rhythm is detected, a warning message can be sent to the user so that they can be promptly informed of the risk associated with the abnormal heart rhythm. Figure 12 As shown in Figure (1), the bracelet interface can send a prompt box 902 (or a prompt window) to the user, which displays "You are currently at risk of atrial fibrillation!". After seeing the prompt box 902, the user can click 901 to close the prompt box 902.
[0385] As one possible implementation, when a phone is connected to a watch or fitness tracker, the phone can also send notifications to the user. Similarly, such as... Figure 12 As shown in Figure (2), a prompt box 903 can also be sent to the user on the mobile phone interface. The prompt box 903 displays "You are currently at risk of atrial fibrillation!" After seeing the prompt box 903, the user can click 904 to close the prompt box 903.
[0386] Understandable. Figure 12 The interface described herein is merely an exemplary description, and the embodiments of this application are not limited thereto.
[0387] The following combination Figure 13 and Figure 14The software system and hardware architecture used in the embodiments of this application are described respectively.
[0388] Figure 13 This is a schematic diagram of the software system used in the embodiments of this application. For example... Figure 13 As shown, a layered software system is divided into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the software system can be divided into six layers, from top to bottom: application layer, system service layer, algorithm library, hardware abstraction layer (HAL), kernel layer, and driver layer.
[0389] like Figure 13 As shown, the application layer includes a watch face, activity tracking, calls, and workouts.
[0390] Understandable. Figure 13 The examples shown are only a portion of the applications; in fact, the application layer can include other applications as well, and this application does not limit this. For example, the application layer may also include applications such as messaging, alarm clock, weather, stopwatch, compass, timer, flashlight, calendar, and Alipay.
[0391] like Figure 13 As shown, the system service layer includes step counting, heart rate service, calories, and heart health.
[0392] An algorithm library can include multiple algorithm modules. For example, such as... Figure 13 As shown, the algorithm library includes atrial fibrillation detection algorithm module, sleep algorithm, wearable algorithm, etc.
[0393] The atrial fibrillation detection algorithm module is used to determine the heart rhythm type in order to accurately identify atrial fibrillation or premature beats. As one possible implementation, the atrial fibrillation detection algorithm module is used to perform the aforementioned... Figure 3 The method shown.
[0394] Wearing algorithms are used to detect whether the watch is being worn.
[0395] like Figure 13 As shown, the hardware abstraction layer includes C++ libraries, storage, display, touch control, etc. The C++ libraries are used to provide system resources for the algorithm libraries.
[0396] Understandable. Figure 13 The Hardware Abstraction Layer shown is only a part of the content. In fact, the Hardware Abstraction Layer (HAL) can also include other components, such as Bluetooth modules, GPS modules, etc.
[0397] like Figure 13 As shown, the kernel layer includes the OS kernel. The OS kernel is used for management and scheduling.
[0398] The driver layer is used to drive hardware resources. The driver layer can include multiple driver modules. For example... Figure 13 As shown, the driving layer includes PPG driver, LCD driver, and motor, etc.
[0399] For example, a user can click on a workout app. While the user is exercising, the workout app can display their heart rate in real-time through the interface. The following combines... Figure 13 This application describes the process of detecting heart rhythm in an embodiment. When a user clicks the heart rate application, the application layer receives the user's operation and invokes the heart rate service in the system service layer. The OS kernel schedules the ACC driver to enable the ACC sensor to collect ACC signals to determine whether to enter the atrial fibrillation detection process. The OS kernel schedules the PPG driver to enable the PPG sensor to light up and collect data (or PPG signals). The PPG driver can return the collected data to the OS kernel. The OS kernel sends the collected data to the algorithm library for relevant calculations. The wearability algorithm module in the algorithm library detects whether the watch is being worn based on the PPG signal and reports the wearing result to the OS kernel. If the user is detected wearing the watch, the OS kernel triggers the execution of the heart rate monitoring service. The OS kernel sends the PPG signal collected by the PPG sensor to the atrial fibrillation detection algorithm module. The atrial fibrillation detection algorithm module calculates the heart rate and the confidence level of the heart rate based on the PPG signal. The atrial fibrillation detection algorithm module returns the heart rhythm type to the OS kernel. The OS kernel reports the heart rhythm type to the application layer. The application layer displays the heart rhythm type reported by the OS kernel on the UI interface.
[0400] Figure 14 A schematic diagram of a device 500 applicable to an embodiment of this application is shown. The device 500 may be a watch, wristband, wearable electronic device, or other wearable device for measuring heart rate, etc. The embodiments of this application do not limit the specific type of the device 500.
[0401] like Figure 14 As shown, the device 500 may include components such as a radio frequency (RF) circuit 210, a memory 220, other input devices 230, a touch screen 240, a PPG module 251, a buzzer 252, an accelerometer 253, an audio circuit 260, an I / O subsystem 270, a processor 280, and a power supply 290.
[0402] It should be noted that, Figure 14 The structure shown does not constitute a specific limitation on device 500. In other embodiments of this application, device 500 may include... Figure 14The components shown may include more or fewer components, or the device 500 may include... Figure 14 The components shown may be a combination of certain components, or the device 500 may include... Figure 14 Sub-components of some of the components shown. Figure 14 The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0403] RF circuit 210 can be used to send and receive information, or to receive and send signals during a call. For example, it receives downlink information from the base station, processes it, and then sends uplink data to the base station. Typically, RF circuitry includes, but is not limited to, antennas, at least one amplifier, transceiver, coupler, low-noise amplifier (LNA), duplexer, etc. Furthermore, RF circuit 210 can also communicate wirelessly with networks and other devices. The wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), etc.
[0404] The memory 220 can be used to store software programs, and the processor 280 executes various functions of the device 500 by running the software programs stored in the memory 220. The memory 220 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data maintained according to the use of the device 500 (such as audio data, telephone directory, etc.). In addition, the memory 220 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0405] Other input devices 230 can be used to receive input numeric or character information, and to generate key signal inputs related to user settings and function control of device 500. Specifically, other input devices 230 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, optical mouse (an optical mouse is a touch-sensitive surface that does not display visual output, or an extension of the touch-sensitive surface formed by a touch screen). Other input devices 230 are connected to other input device controllers 271 of I / O subsystem 270, and interact with processor 280 under the control of other input device controllers 271.
[0406] The touchscreen 240 can be used to display information input by the user or information provided to the user, as well as various menus of the device 500, and can also accept user input. Specifically, the touchscreen 240 may include a display panel 241 and a touch panel 242. The display panel 241 may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (Mini LED), a micro light-emitting diode (Micro LED), a micro OLED, or a quantum dot light-emitting diode (QLED).
[0407] The touch panel 242, also known as a display screen or touch-sensitive screen, can collect user touch or non-touch operations on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 242, and may also include motion-sensing operations; these operations include single-point control operations, multi-point control operations, etc.), and drive corresponding connected devices according to a pre-set program. Optionally, the touch panel 242 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's gestures, i.e., the touch position and posture, and detects the signals generated by the touch operation, transmitting the signals to the touch controller; the touch controller receives touch information from the touch detection device, converts it into information that the processor can process, and sends it to the processor 280, and can also receive and execute commands sent by the processor 280. In addition, the touch panel 242 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave, or any future technology. Furthermore, the touch panel 242 can cover the display panel 241. The user can operate on or near the touch panel 242 covering the display panel 241 based on the content displayed on the display panel 241 (including but not limited to: soft keyboard, virtual mouse, virtual buttons, icons, etc.). After detecting the operation on or near the touch panel 242, it transmits the information to the processor 280 via the I / O subsystem 270 to determine the user input. Subsequently, the processor 280 provides corresponding visual output on the display panel 241 based on the user input via the I / O subsystem 270. Although in Figure 5 In this embodiment, the touch panel 242 and the display panel 241 are two separate components to realize the input and output functions of the device 500. However, in some embodiments, the touch panel 242 and the display panel 241 can be integrated to realize the input and output functions of the device 500.
[0408] The display panel 241 can provide prompts regarding wearing method, wearing status, etc., under the program control of the processor 280, as well as historical information on the detected heart rate in visual (numerical, tabular, graphical) or audible (synthesized speech or tone) form. As a non-limiting example, a visual graph can be displayed showing the heart rate calculated every 5 minutes during a previous fixed time interval (e.g., 1 hour) or after the end of an exercise session (as determined by the user's instruction). The display panel 241 can also provide average heart rate information or heart rate statistics over one or more previous time periods under the control of the processor 280. As another example, the display panel 241 can provide the current heart rate value as a "real-time heart rate value" displayed periodically (e.g., every second) to the user during the ongoing exercise program.
[0409] PPG module 251 includes a light emitter and a light sensor. Heart rate measurement via the PPG module is based on the principle of light absorption by matter. The light emitter in the PPG module of the electronic device illuminates the blood vessels in the skin, and the light sensor receives the light transmitted through the skin. Since different volumes of blood within blood vessels absorb green light differently, during a heartbeat, blood flow increases, and the absorption of green light increases accordingly; during the intervals between heartbeats, blood flow decreases, and the absorption of green light decreases accordingly. Therefore, heart rate can be measured based on the absorbance of the blood. In operation, the light emitter transmits a light beam to the user's skin, and this beam can be reflected by the user's skin and received by the light sensor. The light sensor converts this light into an electrical signal indicating its intensity. This electrical signal can be in analog form and can be converted into digital form by an analog-to-digital converter. The digital signal from the analog-to-digital converter can be a time-domain PPG signal fed to the processor 280. The output of the accelerometer can also be converted into digital form using an analog-to-digital converter. The processor 280 can receive digitized signals from the light sensor and the accelerometer output signal from the digitized accelerometer, and can process these signals to provide heart rate or wear status output signals to a storage device, visual display, audible signal transducer, touch screen, or other output indicator.
[0410] The device 500 may also include at least one sensor, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 241 according to the ambient light level, and the proximity sensor can turn off the backlight of the display panel 241 and / or the touch panel 242 when the device 500 is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for vibration recognition-related functions (such as pedometers, tapping, etc.). Other sensors that may be configured in the device 500, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0411] The device 500 may also include a buzzer 252 that can generate vibrations according to instructions from the processor 280.
[0412] Audio circuit 260 provides an audio interface between the user and device 500. Audio circuit 260 can convert received audio data into a signal and transmit it to speaker 261, where speaker 261 converts it into a sound signal for output. On the other hand, microphone can convert collected sound signals into signals, which are received by audio circuit 260, converted into audio data, and then output to RF circuit 210 for transmission, such as to a mobile phone, or to memory 220 for further processing.
[0413] The I / O subsystem 270 controls external devices for input and output, and may include an other input device controller 271, a sensor controller 272, and a display controller 273. Optionally, one or more other input device controllers 271 receive signals from and / or send signals to other input devices 230. Other input devices 230 may include physical buttons (press buttons, rocker buttons, etc.), dial pads, swivel switches, joysticks, click wheels, and optical mice (the optical mouse may be a touch-sensitive surface that does not display visual output, or an extension of the touch-sensitive surface formed by the touchscreen). It is worth noting that the other input device controllers 271 can be connected to any one or more of the above-mentioned devices. The display controller 273 in the I / O subsystem 270 receives signals from and / or sends signals to the touchscreen 240. After the touchscreen 240 detects user input, the display controller 273 converts the detected user input into an interaction with the user interface object displayed on the touchscreen 240, thus realizing human-computer interaction. The sensor controller 272 can receive signals from one or more sensors 251 and / or send signals to one or more sensors 251.
[0414] The processor 280 is the control center of the device 500, connecting various parts of the mobile phone via various interfaces and lines. It executes various functions and processes data of the device 500 by running or executing software programs and / or modules stored in the memory 220, and by calling data stored in the memory 220. Optionally, the processor 280 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, or neural network processing unit (NPU). These different processing units can be independent devices or integrated devices.
[0415] Optionally, processor 280 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and applications; the modem processor primarily handles wireless communication. It is understood that the modem processor may also not be integrated into processor 280.
[0416] The device 500 also includes a power supply 290 (such as a battery) to power the various components. Optionally, the power supply can be logically connected to the processor 280 through a power management system, thereby enabling the management of charging, discharging, and power consumption. It should be understood that, although not shown, the device 500 may also include a camera, Bluetooth module, etc., which will not be described further here.
[0417] The modules stored in the memory 220 may include: operating system, contact / motion module, graphics module, and application program, etc.
[0418] The contact / motion module is used to detect contact between an object or finger and the touchscreen 240 or the clickable touch wheel, capturing the speed (direction and magnitude) and acceleration (change in magnitude or direction) of the contact, and determining the type of contact event. For example, various contact event detection modules are used, sometimes combining gestures with elements in the user interface to achieve certain operations: finger pinching / depinching, etc.
[0419] The graphics module is used to render and display graphics on touchscreens or other displays, including web pages, icons, digital images, videos, and animations.
[0420] Applications can include contacts, phone, video conferencing, email clients, instant messaging, personal sports, camera, image management, video player, music player, calendar, plugins (e.g., weather, stocks, calculator, clock, dictionary), custom plugins, search, notes, maps, and online video, etc.
[0421] Understandable. Figure 14 The connection relationships between the modules shown are merely illustrative and do not constitute a limitation on the connection relationships between the modules of device 500. Optionally, the modules of device 500 may also adopt a combination of various connection methods described in the above embodiments.
[0422] As can be seen from the above, the embodiments of this application obtain a first PPG signal of a first preset duration, then determine the heart rate difference based on the first PPG signal, and use the heart rate difference to generate a scatter plot to obtain the trajectory of the heart rate difference change. Based on the parameters derived from the trajectory of the heart rate difference change (including but not limited to: angle, number, angle standard deviation, distance standard deviation) to determine the heart rhythm type, it can accurately identify the heart rhythm type, improve the accuracy of identifying premature beats or atrial fibrillation, avoid identifying premature beat signals as atrial fibrillation signals, and improve the user experience.
[0423] This application also provides a computer program product that, when executed by a processor, implements the methods described in any of the method embodiments of this application.
[0424] The computer program product can be stored in memory and, after processes such as preprocessing, compilation, assembly, and linking, is finally converted into an executable object file that can be executed by a processor.
[0425] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a computer, implements the methods described in any of the method embodiments of this application. The computer program may be a high-level language program or an executable object program.
[0426] The computer-readable storage medium can be volatile memory or non-volatile memory, or it can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0427] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process and technical effects of the above-described apparatus and equipment can be referred to the corresponding processes and technical effects in the foregoing method embodiments, and will not be repeated here.
[0428] In the several embodiments provided in this application, the systems, apparatuses, and methods disclosed can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not performed. The apparatus embodiments described above are merely illustrative; the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Multiple units or components can be combined or integrated into another system. Furthermore, the coupling between units or components can be direct coupling or indirect coupling, including electrical, mechanical, or other forms of connection.
[0429] It should be understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0430] Furthermore, the terms "system" and "network" are often used interchangeably in this paper. The term "and / or" in this paper merely describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " in this paper generally indicates that the preceding and following related objects have an "or" relationship.
[0431] In summary, the above description is merely a preferred embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for detecting heart rhythm, characterized in that, The method is applied to an electronic device, and the method includes: Acquire the first PPG signal of the first preset duration; Multiple heart rate values are determined based on the first PPG signal; The difference between any two adjacent heart rates is determined based on the multiple heart rate values. The difference between any two adjacent heart rates is used to generate a heart rate difference trajectory diagram, which is a Panquet plot or a Poincaré plot. The parameters of the heart rate difference trajectory are obtained based on the heart rate difference trajectory map. The heart rate difference trajectory is represented by the region number of the Panquet or Poincaré diagram. The parameters of the heart rate difference trajectory include one or more of the following parameters: angle, number, angle standard deviation, and distance standard deviation. Based on the parameters of the heart rate difference trajectory, the heart rhythm type of the first PPG signal is determined, and the heart rhythm type includes any one of the following: premature beats, atrial fibrillation, sinus rhythm, ventricular tachycardia, bigeminy, and trigeminy. This displays the heart rhythm type of the first PPG signal.
2. The method according to claim 1, characterized in that, The method further includes: A first parameter is determined based on the first PPG signal of the first preset duration, and it is determined whether the first parameter is greater than or equal to a first threshold. The step of determining the heart rhythm type of the first PPG signal based on the parameters of the heart rate difference trajectory includes: Based on the first parameter and the parameters of the heart rate difference trajectory, the heart rhythm type of the first PPG signal is determined.
3. The method according to claim 2, characterized in that, Determining the heart rhythm type of the first PPG signal based on the first parameter and the parameters of the heart rate difference trajectory includes: When the first parameter is greater than or equal to the first threshold, a first identification process is performed based on the parameters of the heart rate difference trajectory to determine the heart rhythm type of the first PPG signal. The heart rhythm type includes any one of the following: premature beats, atrial fibrillation, sinus rhythm, and ventricular tachycardia. When the first parameter is less than the first threshold, a second identification process is performed based on the parameters of the heart rate difference trajectory to determine the heart rhythm type of the first PPG signal. The heart rhythm type includes any of the following: premature beats, atrial fibrillation, sinus rhythm, ventricular tachycardia, bigeminy, and trigeminy.
4. The method according to claim 3, characterized in that, In the first identification process or the second identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory meet a first preset condition, the heart rhythm type is premature beat; Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a first preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory are both less than or equal to the first angle standard deviation threshold.
5. The method according to claim 3 or 4, characterized in that, In the first identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory satisfy a second preset condition, and the first probability parameter satisfies a third preset condition, the heart rhythm type is atrial fibrillation; Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a first preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first angle standard deviation threshold. Wherein, the first probability parameter satisfies a third preset condition, including: the first probability parameter is less than a first probability threshold.
6. The method according to claim 3 or 4, characterized in that, The heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory satisfy a second preset condition, and the first probability parameter does not satisfy a third preset condition, the heart rhythm type is sinus rhythm; Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first angle standard deviation threshold. Wherein, the first probability parameter does not meet the third preset condition, including: the first probability parameter is not less than the first probability threshold.
7. The method according to claim 3 or 4, characterized in that, In the first identification process or the second identification process, the heart rate difference trajectory includes: a first trajectory, a second trajectory, a third trajectory, and a fourth trajectory; The parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, and the parameters of the first trajectory and the parameters of the third trajectory satisfy a fifth preset condition; or, the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, and the parameters of the second trajectory and the parameters of the fourth trajectory satisfy a sixth preset condition, and the heart rhythm type is ventricular tachycardia. Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is less than a first quantity threshold; Wherein, the parameters of the first trajectory and the parameters of the third trajectory satisfy the fifth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the third trajectory is greater than or equal to the second quantity threshold, the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the third trajectory are both less than or equal to the second angle standard deviation threshold, and the angle mean parameter of the first trajectory is less than the angle mean parameter of the third trajectory. Wherein, the parameters of the second trajectory and the parameters of the fourth trajectory satisfy the sixth preset condition, including: the sum of the number parameters of the second trajectory and the number parameters of the third trajectory is greater than or equal to the second quantity threshold, the angle standard deviation parameters of the second trajectory and the angle standard deviation parameters of the third trajectory are both less than or equal to the second angle standard deviation threshold, and the angle mean parameter of the second trajectory is less than the angle mean parameter of the fourth trajectory.
8. The method according to claim 3 or 4, characterized in that, In the first identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, and the first probability parameter satisfies a seventh preset condition, the heart rhythm type is atrial fibrillation; Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is less than a first quantity threshold; Wherein, the first probability parameter satisfies the seventh preset condition, including: the first probability parameter is less than the second probability threshold.
9. The method according to claim 3 or 4, characterized in that, In the first identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; when the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, and the first probability parameter does not satisfy a seventh preset condition, the heart rhythm type is sinus rhythm. Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy a fourth preset condition, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is less than a first quantity threshold; The first probability parameter does not meet the seventh preset condition, including: the first probability parameter is not less than the second probability threshold.
10. The method according to claim 3 or 4, characterized in that, In the second identification process, the heart rate difference trajectory includes: a first trajectory and a second trajectory; the parameters of the first trajectory and the parameters of the second trajectory satisfy a second preset condition, and the heart rhythm type is atrial fibrillation; Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first angle standard deviation threshold.
11. The method according to claim 3 or 4, characterized in that, In the second identification process, the heart rate difference trajectory includes a fifth trajectory and a sixth trajectory; the parameters of the fifth trajectory and the parameters of the sixth trajectory satisfy an eighth preset condition, and the distance standard deviation parameters of the fifth trajectory and the distance standard deviation parameters of the sixth trajectory satisfy a ninth preset condition, and the heart rhythm type is bigeminy; Wherein, the parameters of the fifth trajectory and the parameters of the sixth trajectory satisfy the eighth preset condition, including: the minimum value of the number parameter of the fifth trajectory and the number parameter of the sixth trajectory is greater than or equal to the third quantity threshold, and the angle standard deviation parameter of the fifth trajectory and the angle standard deviation parameter of the sixth trajectory are both less than or equal to the third angle standard deviation threshold. Wherein, the distance standard deviation parameters of the fifth trajectory and the sixth trajectory satisfy the ninth preset condition, including: the distance standard deviation parameter of the fifth trajectory is less than or equal to the first distance standard deviation threshold, and the distance standard deviation parameter of the sixth trajectory is less than or equal to the first distance standard deviation threshold.
12. The method according to claim 3 or 4, characterized in that, In the second identification process, the heart rate difference trajectory includes a fifth trajectory and a sixth trajectory; the parameters of the fifth trajectory and the parameters of the sixth trajectory satisfy an eighth preset condition, and the distance standard deviation parameters of the fifth trajectory and the distance standard deviation parameters of the sixth trajectory do not satisfy a ninth preset condition, and the heart rhythm type is trigeminy. Wherein, the parameters of the fifth trajectory and the parameters of the sixth trajectory satisfy the eighth preset condition, including: the minimum value of the number parameter of the fifth trajectory and the number parameter of the sixth trajectory is greater than or equal to the third quantity threshold, and the angle standard deviation parameter of the fifth trajectory and the angle standard deviation parameter of the sixth trajectory are both less than or equal to the third angle standard deviation threshold; Wherein, the distance standard deviation parameters of the fifth trajectory and the sixth trajectory do not meet the ninth preset condition, including: the distance standard deviation parameter of the fifth trajectory is greater than the first distance standard deviation threshold, and the distance standard deviation parameter of the sixth trajectory is greater than the first distance standard deviation threshold.
13. The method according to claim 3 or 4, characterized in that, In the second identification process, the heart rate difference trajectory includes: a first trajectory, a second trajectory, a seventh trajectory, an eighth trajectory, a ninth trajectory, and a tenth trajectory; when the parameters of the first trajectory and the second trajectory satisfy a second preset condition, and the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory satisfy a tenth preset condition, the heart rhythm type is premature beat; Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first standard deviation threshold. Among them, the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory satisfy the tenth preset condition, including: the maximum value of the angle standard deviation parameter of the seventh trajectory, the angle standard deviation parameter of the eighth trajectory, the angle standard deviation parameter of the ninth trajectory, and the angle standard deviation parameter of the tenth trajectory is less than or equal to the fourth angle standard deviation threshold.
14. The method according to claim 3 or 4, characterized in that, In the second identification process, the heart rate difference trajectory includes: a first trajectory, a second trajectory, a seventh trajectory, an eighth trajectory, a ninth trajectory, and a tenth trajectory; when the parameters of the first trajectory and the second trajectory satisfy a second preset condition, and the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory do not satisfy a tenth preset condition, and when the first probability parameter satisfies an eleventh preset condition or the first quantity satisfies a twelfth preset condition, the heart rhythm type is atrial fibrillation; Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first standard deviation threshold. Wherein, the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory do not meet the tenth preset condition, including: the maximum value of the angle standard deviation parameter of the seventh trajectory, the angle standard deviation parameter of the eighth trajectory, the angle standard deviation parameter of the ninth trajectory, and the angle standard deviation parameter of the tenth trajectory is greater than the fourth angle standard deviation threshold. Wherein, the first probability parameter satisfies the eleventh preset condition, including: the first probability parameter is less than the third probability threshold; Wherein, the first quantity satisfies the twelfth preset condition, including: the first quantity is greater than or equal to the fourth quantity threshold.
15. The method according to claim 3 or 4, characterized in that, In the second identification process, the heart rate difference trajectory includes: a first trajectory, a second trajectory, a seventh trajectory, an eighth trajectory, a ninth trajectory, and a tenth trajectory; when the parameters of the first trajectory and the second trajectory satisfy a second preset condition, and the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory do not satisfy a tenth preset condition, and the first probability parameter does not satisfy an eleventh preset condition or the first quantity does not satisfy a twelfth preset condition, the heart rhythm type is sinus rhythm; Wherein, the parameters of the first trajectory and the parameters of the second trajectory satisfy the second preset conditions, including: the sum of the number parameters of the first trajectory and the number parameters of the second trajectory is greater than or equal to a first quantity threshold, and at least one of the angle standard deviation parameters of the first trajectory and the angle standard deviation parameters of the second trajectory is greater than the first standard deviation threshold. Among them, the parameters of the seventh trajectory, the eighth trajectory, the ninth trajectory, and the tenth trajectory do not meet the tenth preset condition, including: the maximum value of the angle standard deviation parameter of the seventh trajectory, the angle standard deviation parameter of the eighth trajectory, the angle standard deviation parameter of the ninth trajectory, and the angle standard deviation parameter of the tenth trajectory is greater than the fourth angle standard deviation threshold. Wherein, the first probability parameter does not meet the eleventh preset condition, including: the first probability parameter is not less than the third probability threshold; Wherein, the first quantity does not meet the twelfth preset condition, including: the first quantity is less than the fourth quantity threshold.
16. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Obtain the ACC signal for the second preset duration; The state of the electronic device is determined based on the ACC signal of the second preset duration; Wherein, acquiring the first PPG signal of the first preset duration includes: If the electronic device is stationary for a third preset duration, then the first PPG signal for the first preset duration is acquired, wherein the third preset duration is less than or equal to the second preset duration.
17. The method according to any one of claims 1 to 4, characterized in that, The acquisition of the first PPG signal of the first preset duration includes: Acquire a PPG signal and an ACC signal of a fourth preset duration. The PPG signal of the first preset duration includes multiple PPG signals of the fourth preset duration, and the fourth preset duration is less than the first preset duration. Determine whether the electronic device is in motion throughout the fifth preset time period; If the electronic device is not in motion for the fifth preset duration, it continues to acquire PPG and ACC signals for the fourth preset duration until the acquisition duration meets the first preset duration.
18. The method according to any one of claims 1 to 4, characterized in that, The method further includes: When the heart rhythm type is atrial fibrillation, a prompt message is displayed to the user, which is used to notify the user of the heart rhythm abnormality.
19. An electronic device, characterized in that, The device includes a processor and a memory coupled together, the memory being used to store a computer program that, when executed by the processor, causes the electronic device to perform the method of any one of claims 1 to 18.
20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the method of any one of claims 1 to 18.
21. A chip, characterized in that, Includes a processor, which, when executing instructions, performs the method as described in any one of claims 1 to 18.
Citation Information
Patent Citations
Systems and methods for arrhythmia detection
US20180104502A1
Systems and methods for atrial arrhythmia detection
US20180256059A1