A human posture switching recognition method and related device

CN117732020BActive Publication Date: 2026-08-07HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2022-09-14
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

但目前已知的一些具有健康监测功能的电子设备,对人体姿态切换的识别不准确

Benefits of technology

[0060] It should be understood that the third to fifth aspects of the embodiments of this application correspond to the technical solutions of the first and second aspects of the embodiments of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be described again.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117732020B_ABST
    Figure CN117732020B_ABST
Patent Text Reader

Abstract

Provided are a human posture switching recognition method and related device. The method can be applied to an electronic device, which includes an altitude sensing module, a motion sensing module, a heart rate sensing module, and a processor. The altitude sensing module is configured to obtain a wrist altitude of a user. The motion sensing module is configured to obtain an arm angle of the user, which is an angle between a forearm connected to the wrist and a horizontal plane on which a center of gravity of a torso of the user is located. The heart rate sensing module is configured to obtain a heart rate of the user. The processor is configured to determine a center of gravity altitude of the user based on the wrist altitude and the arm angle, and to determine whether the user has switched a posture based on a change amount of the center of gravity altitude and a change amount of the heart rate within a preset time period. The change amount of the center of gravity altitude and the change amount of the heart rate are used to determine whether the user has switched the posture, which can improve the accuracy of recognizing human posture switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a method and related device for recognizing human posture switching. Background Technology

[0002] Maintaining a sitting or standing posture for extended periods is detrimental to health. When sitting for long periods, pressure on the lumbar spine and buttocks increases significantly, and without proper relaxation, it can lead to conditions such as herniated discs and sciatica. Conversely, prolonged standing increases pressure on the lower limbs and feet, affecting blood circulation and potentially causing conditions like varicose veins and plantar fasciitis.

[0003] Currently, there are many health monitoring electronic devices on the market, such as smart bracelets and smartwatches, which can recognize the human body in a static state and remind users to perform appropriate exercise or change posture if they remain stationary for a certain period of time to help improve their health. However, some known electronic devices with health monitoring functions are inaccurate in recognizing changes in human posture. Summary of the Invention

[0004] This application provides a method and related apparatus for recognizing human posture transitions, so as to improve the accuracy of recognizing human posture transitions.

[0005] In a first aspect, this application provides an electronic device comprising: an altitude sensing module, a motion sensing module, a heart rate sensing module, and a processor; the altitude sensing module is used to acquire the user's wrist altitude, which is the altitude of the user's wrist when wearing the electronic device; the motion sensing module is used to acquire the user's arm angle, which is the angle between the forearm connected to the wrist and the horizontal plane where the user's center of gravity is located; the heart rate sensing module is used to acquire the user's heart rate; the processor is used to determine the user's center of gravity altitude based on the wrist altitude and the arm angle, which is the altitude of the user's center of gravity; and is used to determine whether the user has changed posture based on the change in center of gravity altitude and the change in heart rate over a preset time period.

[0006] Based on the above scheme, considering that the user's center of gravity elevation is different when the user is in different postures, the change in the user's center of gravity elevation is used as an important factor to determine whether the user has changed posture. The change in the user's center of gravity elevation and heart rate within a preset time period is used to determine whether the user has changed posture, which helps to improve the accuracy of recognizing human posture changes.

[0007] In conjunction with the first aspect, in some possible designs of the first aspect, when the processor determines whether a user has changed posture based on the change in center of gravity altitude and the change in heart rate within a preset time period, it specifically determines that the user has changed posture if the change in center of gravity altitude is greater than a preset first altitude change threshold and the change in heart rate is greater than a preset first heart rate change threshold; or, if the change in center of gravity altitude is less than a preset second altitude change threshold and the change in heart rate is less than a preset second heart rate change threshold; or, if the change in center of gravity altitude is greater than or equal to the second altitude change threshold and less than or equal to the first altitude change threshold, and / or the change in heart rate is greater than or equal to the second heart rate change threshold and less than or equal to the first heart rate change threshold, the user has not changed posture.

[0008] In conjunction with the first aspect, in some possible designs of the first aspect, when the processor determines whether a user has changed posture based on the changes in center of gravity altitude and heart rate over a preset time period, it specifically determines that the user has changed posture if both the changes in center of gravity altitude and heart rate are greater than 0 or both are less than 0, and the absolute value of the change in center of gravity altitude is greater than a preset first altitude change threshold, and the absolute value of the change in heart rate is greater than a preset first heart rate change threshold; or, if both the changes in center of gravity altitude and heart rate are greater than 0, and at least one of the following conditions is met, the user is determined to have changed posture. No posture change: The absolute value of the change in center of gravity altitude is less than or equal to the first altitude change threshold, or the absolute value of the change in heart rate is less than or equal to the first heart rate change threshold; or, if the change in center of gravity altitude and the change in heart rate are both less than 0, and at least one of the following conditions is met, the user is determined not to have changed posture: the absolute value of the change in center of gravity altitude is less than or equal to the first altitude change threshold, or the absolute value of the change in heart rate is less than or equal to the first heart rate change threshold; or, if the change in center of gravity altitude and the change in heart rate are not both greater than 0, or not both less than 0, the user is determined not to have changed posture.

[0009] In conjunction with the first aspect, in some possible designs of the first aspect, the altitude sensing module includes a barometer for acquiring the air pressure value at the location of the wrist, and the wrist altitude is obtained based on the air pressure value.

[0010] In conjunction with the first aspect, in some possible designs of the first aspect, the motion sensing module includes an accelerometer for acquiring the left-right acceleration, the front-back acceleration, and the up-down acceleration of the electronic device, and the arm angle is obtained based on the left-right acceleration, the front-back acceleration, and the up-down acceleration.

[0011] In conjunction with the first aspect, in some possible designs of the first aspect, where the electronic device is worn on the user's left wrist, the aforementioned center of gravity altitude is the first center of gravity altitude H. TL H TL Satisfy: H TL =H H -ΔH L ΔH L ΔH represents the relative height of the user's left wrist to the user's center of gravity. L Satisfy: ΔH L =L L ×sinθ,L L This indicates the length of the user's left forearm; when the electronic device is worn on the user's right wrist, the above-mentioned center of gravity elevation is the second center of gravity elevation H. TR H TR Satisfy: H TR =H H -ΔH R ΔH R ΔH represents the relative height of the user's right wrist to the user's center of gravity. R Satisfy: ΔH R =L R ×sinθ,L R This represents the length of the user's right forearm; where H H The above refers to the wrist elevation, and θ refers to the above arm angle.

[0012] In conjunction with the first aspect, in some possible designs of the first aspect, the processor is also used to determine whether the electronic device is worn on the user's left or right wrist.

[0013] Optionally, when determining whether the electronic device is worn on the user's left or right wrist, the processor specifically performs the following: based on N first centroid elevations H obtained within a preset time period... TL Determine the first noise amplitude H NL N≥3, where N is an integer; based on the N second centroid elevations H obtained within a preset time period. TR Determine the second noise amplitude H NR ; in H NR -H NL If the value exceeds a preset threshold, it is determined that the electronic device is worn on the user's left wrist; in H NL -H NR If the noise level exceeds a preset threshold, it is determined that the electronic device is worn on the user's right wrist; wherein, the first noise amplitude H NL satisfy: H TL (n) represents the altitude H of the above N first centroids. TLThe elevation H of the nth first centroid in the middle TL H TL (n-1) represents the altitude H of the above N first centroids. TL The elevation H of the (n-1)th primary centroid in the middle TL H TL (N) represents the altitude H of the above N first centroids. TL The elevation H of the Nth primary centroid in the middle TL H TL (1) represents the altitude H of the above N first centroids. TL The first centroid elevation H in the middle TL , 2≤n≤N, where n is an integer; second noise amplitude H NR satisfy: H TR (n) represents the altitude H of the above N secondary centroids. TR The altitude H of the nth secondary centroid in TR H TR (n-1) represents the altitude H of the above N secondary centroids. TR The elevation H of the (n-1)th secondary centroid in TR H TR (N) represents the altitude H of the aforementioned N secondary centroids. TR The elevation H of the Nth secondary centroid in TR H TR (1) represents the altitude H of the above N secondary centroids. TR The first secondary center of gravity in the middle is at an altitude H. TR .

[0014] In cases where it is uncertain whether the electronic device is worn on the user's left or right wrist, the electronic device can be based on the aforementioned first center of gravity altitude H. TL Second center of gravity altitude H TR Determine whether the electronic device is worn on the user's left or right wrist to facilitate subsequent calculations and analysis.

[0015] Optionally, the posture includes sitting and standing postures, and the processor is also used to determine the user's posture after the posture change based on the change in center of gravity elevation and the change in heart rate, if it is determined that the user has changed posture.

[0016] In other words, given that the user has changed their posture, the electronic device can also determine whether the user's posture after changing posture is standing or sitting.

[0017] In conjunction with the first aspect, in some possible designs of the first aspect, when the processor determines the user's posture after changing posture based on the change in center of gravity altitude and the change in heart rate, it specifically determines that the user's posture after changing posture is a standing posture when both the change in center of gravity altitude and the change in heart rate are greater than 0; and determines that the user's posture after changing posture is a sitting posture when both the change in center of gravity altitude and the change in heart rate are less than 0.

[0018] Optionally, the posture includes sitting, standing, and lying positions. The processor is also used to determine the user's posture after the posture change based on the change in center of gravity altitude, the change in heart rate, the reserve heart rate, and the posture before the change, when it is determined that the user has changed posture. The reserve heart rate is the difference between the user's current heart rate and the user's resting heart rate.

[0019] In other words, given that the user has changed their posture, the electronic device can also determine whether the user is standing, sitting, or lying down after changing their posture.

[0020] Resting heart rate refers to the heart rate at rest, with a normal heart rate ranging from 60 to 100 beats per minute. In this embodiment, the user's resting heart rate is defined as the heart rate during a stable phase of sleep at night. It is understood that different users may have different resting heart rates.

[0021] If the user's heart rate during a stable phase of sleep at night is not available, the resting heart rate can be a preset default value. As an example rather than a limitation, the preset default resting heart rate can be 60 beats per minute.

[0022] Heart reserve is the difference between a user's current heart rate and their resting heart rate, i.e., HR. S =HR - HR0, where HR S HR represents the user's reserve heart rate, HR represents the user's current heart rate, and HR0 represents the user's resting heart rate.

[0023] The posture before switching can be the posture the user was in after the previous posture change, or it can be the default initial posture. As an example and not a limitation, the default initial posture can be a sitting, standing, or lying posture, and this application embodiment does not impose any limitation on this. It is understood that when the user has just put on the electronic device, the posture before switching can be the default initial posture.

[0024] In conjunction with the first aspect, in some possible designs of the first aspect, when the processor determines the user's posture after a posture change based on the change in center of gravity altitude, the change in heart rate, the reserve heart rate, and the posture before the switch, it specifically performs the following: If the posture before the switch was lying down, and both the change in center of gravity altitude and the change in heart rate are greater than 0, and the change in center of gravity altitude is greater than a preset third altitude change threshold, the change in heart rate is greater than a preset third heart rate change threshold, and the reserve heart rate is within a preset first range, then the user's posture after the posture change is determined to be standing; or, if the posture before the switch was lying down, and both the change in center of gravity altitude and the change in heart rate are greater than 0, and the change in center of gravity altitude is less than or equal to a preset third altitude change threshold, or the change in heart rate is less than or equal to a preset third heart rate change threshold, or the reserve heart rate is not within the first range, then the user's posture after the posture change is determined to be sitting; if the posture before the switch was sitting, and the change in center of gravity altitude and the change in heart rate are greater than 0, then the user's posture after the posture change is sitting. If all values ​​are greater than 0, the user's posture after changing posture is determined to be standing; or, if the previous posture was sitting, and the change in center of gravity altitude is less than or equal to 0, or the change in heart rate is less than or equal to 0, the user's posture after changing posture is determined to be lying down; if the previous posture was standing, and both the change in center of gravity altitude and the change in heart rate are less than 0, and the absolute value of the change in center of gravity altitude is greater than a preset third altitude change threshold, the absolute value of the change in heart rate is greater than a preset third heart rate change threshold, and the reserve heart rate is within a preset second range, the user's posture after changing posture is determined to be lying down; or, if the previous posture was standing, and both the change in center of gravity altitude and the change in heart rate are less than 0, and the absolute value of the change in center of gravity altitude is less than or equal to a preset third altitude change threshold, or the absolute value of the change in heart rate is less than or equal to a preset third heart rate change threshold, or the reserve heart rate is not within a second range, the user's posture after changing posture is determined to be sitting.

[0025] Optionally, the processor is also used to count at least one of the following durations: the duration the user remains in a lying position, the duration the user remains in a sitting position, or the duration the user remains in a standing position.

[0026] In conjunction with the first aspect, in some possible designs of the first aspect, the processor is specifically used to count the duration of the user's sitting posture and the duration of the user's standing posture; the electronic device also includes an audio output module controlled by the processor, which emits a first prompt audio when the duration of the user's standing posture exceeds a preset first time threshold, the first prompt audio being used to remind the user that the user has been standing for a long time; and / or, emits a second prompt audio when the duration of the user's sitting posture exceeds a preset second time threshold, the second prompt audio being used to remind the user that the user has been sitting for a long time.

[0027] This method can be used to remind users to engage in appropriate exercise or change their posture, thereby helping to improve their health.

[0028] In conjunction with the first aspect, in some possible designs of the first aspect, the electronic device also includes a display module controlled by the processor, which displays the duration counted by the processor.

[0029] Optionally, the heart rate sensing module includes a photoplethysmography (PPG) sensor for acquiring heart rate.

[0030] Secondly, this application provides a method for recognizing human posture switching. This method is applied to an electronic device and can be executed by the electronic device itself, or by components configured inside the electronic device, such as a processor, chip, or chip system. It can also be implemented by logic modules or software that have some or all of the functions of the electronic device. This application does not limit the scope of this method.

[0031] For example, the method includes: acquiring the user's wrist elevation, arm angle, and heart rate, wherein the wrist elevation is the elevation of the user's wrist while wearing the electronic device, and the arm angle is the angle between the forearm connected to the wrist and the horizontal plane where the user's center of gravity is located; determining the user's center of gravity elevation based on the wrist elevation and the arm angle, wherein the center of gravity elevation is the elevation of the user's center of gravity; and determining whether the user has changed posture based on the change in center of gravity elevation and the change in heart rate over a preset time period.

[0032] Based on the above scheme, considering that the user's center of gravity elevation is different when the user is in different postures, the change in the user's center of gravity elevation is used as an important factor to determine whether the user has changed posture. The change in the user's center of gravity elevation and heart rate within a preset time period is used to determine whether the user has changed posture, which helps to improve the accuracy of recognizing human posture changes.

[0033] In conjunction with the second aspect, in some possible implementations of the second aspect, determining whether a user has changed posture based on the changes in center of gravity altitude and heart rate within a preset time period includes: determining that the user has changed posture if the changes in center of gravity altitude are greater than a preset first altitude change threshold and the changes in heart rate are greater than a preset first heart rate change threshold; or, determining that the user has changed posture if the changes in center of gravity altitude are less than a preset second altitude change threshold and the changes in heart rate are less than a preset second heart rate change threshold; or, determining that the user has not changed posture if the changes in center of gravity altitude are greater than or equal to the second altitude change threshold and less than or equal to the first altitude change threshold, and / or, the changes in heart rate are greater than or equal to the second heart rate change threshold and less than or equal to the first heart rate change threshold.

[0034] In conjunction with the second aspect, in some possible implementations of the second aspect, determining whether a user has changed posture based on the changes in center of gravity altitude and heart rate within a preset time period includes: determining that the user has changed posture when both the changes in center of gravity altitude and heart rate are greater than 0 or both are less than 0, and the absolute value of the change in center of gravity altitude is greater than a preset first altitude change threshold, and the absolute value of the change in heart rate is greater than a preset first heart rate change threshold; or, determining that both the changes in center of gravity altitude and heart rate are greater than 0, and the absolute value of the change in center of gravity altitude is less than or equal to the first altitude change threshold, and... / Or, if the absolute value of the change in heart rate is less than or equal to a first heart rate change threshold, it is determined that the user has not changed posture; or, if it is determined that both the change in center of gravity altitude and the change in heart rate are less than 0, and the absolute value of the change in center of gravity altitude is less than or equal to a first altitude change threshold, and / or, the absolute value of the change in heart rate is less than or equal to a first heart rate change threshold, it is determined that the user has not changed posture; or, if it is determined that the change in center of gravity altitude is greater than 0 and the change in heart rate is less than 0, or, if it is determined that the change in center of gravity altitude is less than 0 and the change in heart rate is greater than 0, it is determined that the user has not changed posture.

[0035] In conjunction with the second aspect, in some possible implementations of the second aspect, the wrist elevation is obtained based on the air pressure value at the location of the wrist.

[0036] In conjunction with the second aspect, in some possible implementations of the second aspect, the arm angle is obtained based on the left-right acceleration, the forward-backward acceleration, and the up-down acceleration of the electronic device.

[0037] In conjunction with the second aspect, in some possible implementations of the second aspect, when the electronic device is worn on the user's left wrist, the aforementioned center of gravity altitude is the first center of gravity altitude H.TL H TL Satisfy: H TL =H H -ΔH L ΔH L ΔH represents the relative height of the user's left wrist to the user's center of gravity. L Satisfy: ΔH L =L L ×sinθ,L L This indicates the length of the user's left forearm; when the electronic device is worn on the user's right wrist, the above-mentioned center of gravity elevation is the second center of gravity elevation H. TR H TR Satisfy: H TR =H H -ΔH R ΔH R ΔH represents the relative height of the user's right wrist to the user's center of gravity. R Satisfy: ΔH R =L R ×sinθ,L R This represents the length of the user's right forearm; where H H The above refers to the wrist elevation, and θ refers to the above arm angle.

[0038] In conjunction with the second aspect, in some possible implementations of the second aspect, the method further includes: determining whether the electronic device is worn on the user's left or right wrist.

[0039] Optionally, determining whether the electronic device is worn on the user's left or right wrist includes: based on N first centroid elevations H obtained within a preset time period. TL Determine the first noise amplitude H NL N≥3, where N is an integer; based on the N second centroid elevations H obtained within a preset time period. TR Determine the second noise amplitude H NR ; in H NR -H NL If the value exceeds a preset threshold, it is determined that the electronic device is worn on the user's left wrist; in H NL -H NR If the noise level exceeds a preset threshold, it is determined that the electronic device is worn on the user's right wrist; wherein, the first noise amplitude H NL satisfy: H TL (n) represents the altitude H of the above N first centroids. TL The elevation H of the nth first centroid in the middle TL H TL (n-1) represents the altitude H of the above N first centroids. TLThe elevation H of the (n-1)th primary centroid in the middle TL H TL (N) represents the altitude H of the above N first centroids. TL The elevation H of the Nth primary centroid in the middle TL H TL (1) represents the altitude H of the above N first centroids. TL The first centroid elevation H in the middle TL , 2≤n≤N, where n is an integer; second noise amplitude H NR satisfy: H TR (n) represents the altitude H of the above N secondary centroids. TR The altitude H of the nth secondary centroid in TR H TR (n-1) represents the altitude H of the above N secondary centroids. TR The elevation H of the (n-1)th secondary centroid in TR H TR (N) represents the altitude H of the aforementioned N secondary centroids. TR The elevation H of the Nth secondary centroid in TR H TR (1) represents the altitude H of the above N secondary centroids. TR The first secondary center of gravity in the middle is at an altitude H. TR .

[0040] In cases where it is uncertain whether the electronic device is worn on the user's left or right wrist, the electronic device can be based on the aforementioned first center of gravity altitude H. TL Second center of gravity altitude H TR Determine whether the electronic device is worn on the user's left or right wrist to facilitate subsequent calculations and analysis.

[0041] Optionally, the posture includes sitting and standing postures. The method further includes: if it is determined that the user has changed posture, determining the user's posture after changing posture based on the change in center of gravity elevation and the change in heart rate.

[0042] In other words, given that the user has changed their posture, the electronic device can also determine whether the user's posture after changing posture is standing or sitting.

[0043] In conjunction with the second aspect, in some possible implementations of the second aspect, the user's posture after changing posture is determined based on the change in center of gravity altitude and the change in heart rate, including: if the change in center of gravity altitude and the change in heart rate are both greater than 0, the user's posture after changing posture is determined to be a standing posture; if the change in center of gravity altitude and the change in heart rate are both less than 0, the user's posture after changing posture is determined to be a sitting posture.

[0044] Optionally, the posture includes sitting, standing, and lying positions. The method further includes: when it is determined that the user has changed posture, determining the user's posture after changing posture based on the change in center of gravity altitude, the change in heart rate, the reserve heart rate, and the posture before the change, wherein the reserve heart rate is the difference between the user's current heart rate and the user's resting heart rate.

[0045] In other words, given that the user has changed their posture, the electronic device can also determine whether the user is standing, sitting, or lying down after changing their posture.

[0046] Resting heart rate refers to the heart rate at rest, with a normal heart rate ranging from 60 to 100 beats per minute. In this embodiment, the user's resting heart rate is defined as the heart rate during a stable phase of sleep at night. It is understood that different users may have different resting heart rates.

[0047] If the user's heart rate during a stable phase of sleep at night is not available, the resting heart rate can be a preset default value. As an example rather than a limitation, the preset default resting heart rate can be 60 beats per minute.

[0048] Heart reserve is the difference between a user's current heart rate and their resting heart rate, i.e., HR. S =HR - HR0, where HR S HR represents the user's reserve heart rate, HR represents the user's current heart rate, and HR0 represents the user's resting heart rate.

[0049] The posture before switching can be the posture the user was in after the previous posture change, or it can be the default initial posture. As an example and not a limitation, the default initial posture can be a sitting, standing, or lying posture, and this application embodiment does not impose any limitation on this. It is understood that when the user has just put on the electronic device, the posture before switching can be the default initial posture.

[0050] In conjunction with the second aspect, in some possible implementations of the second aspect, the user's posture after switching postures is determined based on the change in center of gravity altitude, the change in heart rate, the reserve heart rate, and the posture before the switch. This includes: if the posture before the switch was lying down, and both the change in center of gravity altitude and the change in heart rate are greater than 0, and the change in center of gravity altitude is greater than a preset third altitude change threshold, the change in heart rate is greater than a preset third heart rate change threshold, and the reserve heart rate is within a preset first range, then the user's posture after switching postures is determined to be standing; or, if the posture before the switch was lying down, and both the change in center of gravity altitude and the change in heart rate are greater than 0, and the change in center of gravity altitude is less than or equal to a preset third altitude change threshold, or the change in heart rate is less than or equal to a preset third heart rate change threshold, or the reserve heart rate is not within the first range, then the user's posture after switching postures is determined to be sitting; if the posture before the switch was sitting, and both the change in center of gravity altitude and the change in heart rate are greater than a preset third heart rate change threshold, then the user's posture after switching postures is determined to be sitting; if the posture before the switch was sitting, and both the change in center of gravity altitude and the change in heart rate are greater than a preset third heart rate change threshold, then the user's posture after switching postures is determined to be sitting. If the value is 0, the user's posture after the posture change is determined to be standing; or, if the user's posture before the change was sitting, and the change in center of gravity altitude is less than or equal to 0, or the change in heart rate is less than or equal to 0, the user's posture after the posture change is determined to be lying down; if the user's posture before the change was standing, and both the change in center of gravity altitude and the change in heart rate are less than 0, and the absolute value of the change in center of gravity altitude is greater than a preset third altitude change threshold, the absolute value of the change in heart rate is greater than a preset third heart rate change threshold, and the reserve heart rate is within a preset second range, the user's posture after the posture change is determined to be lying down; or, if the user's posture before the change was standing, and both the change in center of gravity altitude and the change in heart rate are less than 0, and the absolute value of the change in center of gravity altitude is less than or equal to a preset third altitude change threshold, or the absolute value of the change in heart rate is less than or equal to a preset third heart rate change threshold, or the reserve heart rate is not within a second range, the user's posture after the posture change is determined to be sitting.

[0051] Optionally, the method further includes: calculating at least one of the following durations: the duration the user remains in a lying position, the duration the user remains in a sitting position, or the duration the user remains in a standing position.

[0052] In conjunction with the second aspect, in some possible implementations of the second aspect, the duration of the user's sitting posture and the duration of the user's standing posture are counted; when the duration of the user's standing posture exceeds a preset first time threshold, a first prompt audio is emitted, the first prompt audio being used to remind the user that the user has been standing for a long time; and / or, when the duration of the user's sitting posture exceeds a preset second time threshold, a second prompt audio is emitted, the second prompt audio being used to remind the user that the user has been sitting for a long time.

[0053] This method can be used to remind users to engage in appropriate exercise or change their posture, thereby helping to improve their health.

[0054] In conjunction with the second aspect, in some possible implementations of the second aspect, the method further includes: displaying the duration counted by the processor.

[0055] Thirdly, this application provides a chip system including at least one processor for supporting the implementation of the functions involved in the electronic device in any possible implementation of the second aspect and the second aspect, such as processing data, signals, etc. involved in the above methods.

[0056] In one possible design, the chip system also includes a memory for storing program instructions and data, which may be located within or outside the processor.

[0057] The chip system can consist of chips or include chips and other discrete components.

[0058] Fourthly, this application provides a computer-readable storage medium storing a computer program (also referred to as code or instructions) that, when executed by a computer, causes the methods in the second aspect and any possible implementation thereof to be performed.

[0059] Fifthly, this application provides a computer program product comprising: a computer program (also referred to as code or instructions) that, when executed by a computer, causes the methods in any possible implementation of the second aspect to be performed.

[0060] It should be understood that the third to fifth aspects of the embodiments of this application correspond to the technical solutions of the first and second aspects of the embodiments of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be described again. Attached Figure Description

[0061] Figure 1 This is a schematic diagram of a scenario applicable to the human posture switching recognition method provided in the embodiments of this application;

[0062] Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;

[0063] Figure 3 This is a schematic diagram of the three-axis acceleration of the electronic device provided in the embodiments of this application;

[0064] Figure 4 This is a schematic flowchart of the human posture switching recognition method provided in the embodiments of this application;

[0065] Figure 5 This is a flowchart illustrating how to determine whether a user has switched postures, provided in an embodiment of this application.

[0066] Figure 6 This is another flowchart for determining whether a user has switched postures, provided in an embodiment of this application;

[0067] Figure 7 This is a flowchart of a method for determining the user's posture after switching postures, provided in an embodiment of this application.

[0068] Figure 8 This is a flowchart provided in an embodiment of the present application for determining the user's posture after switching postures when the user's posture before switching is a lying posture;

[0069] Figure 9 This is a flowchart provided in an embodiment of the present application for determining the user's posture after switching postures when the user's posture before switching is a sitting posture;

[0070] Figure 10 This is a flowchart provided in an embodiment of the present application for determining the user's posture after switching postures when the user's posture before switching is a standing posture;

[0071] Figure 11 This is a schematic diagram of the curves showing the center of gravity elevation and heart rate of a user when switching from a sitting to a standing posture, as provided in an embodiment of this application.

[0072] Figure 12 This is a schematic diagram of the center of gravity elevation and heart rate curves of a user switching from a lying position to a sitting position and then to a standing position, as provided in the embodiments of this application. Detailed Implementation

[0073] The technical solutions in this application will now be described with reference to the accompanying drawings.

[0074] To facilitate a clear description of the technical solutions in the embodiments of this application, the following explanation is provided first.

[0075] First, in the embodiments of this application, the terms "first" and "second" are used to distinguish identical or similar items with essentially the same function and effect. For example, the first altitude change threshold and the second altitude change threshold are used to distinguish different altitude change thresholds; the first heart rate change threshold and the second heart rate change threshold are used to distinguish different heart rate change thresholds; the first center of gravity altitude and the second center of gravity altitude are used to distinguish different center of gravity altitudes; the first noise amplitude and the second noise amplitude are used to distinguish different noise amplitudes; and the first time threshold and the second time threshold are used to distinguish different time thresholds, without limiting their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that the terms "first" and "second" are not necessarily different.

[0076] Second, in the embodiments of this application, "at least one" refers to one or more. "And / or" 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, where A and B can be singular or plural. The character " / " generally indicates an "or" relationship between the preceding and following related objects, but it does not exclude the possibility of indicating an "and" relationship. The specific meaning can be understood in conjunction with the context.

[0077] Third, in the embodiments of this application, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product or device.

[0078] Maintaining a sitting or standing posture for extended periods is detrimental to health. When sitting for long periods, pressure on the lumbar spine and buttocks increases significantly, and without proper relaxation, it can lead to conditions such as herniated discs and sciatica. Conversely, prolonged standing increases pressure on the lower limbs and feet, affecting blood circulation and potentially causing conditions like varicose veins and plantar fasciitis.

[0079] Currently, there are many health monitoring electronic devices on the market, such as smart bracelets and smartwatches, which can recognize the human body at rest and remind users to engage in appropriate exercise or change their posture if they remain stationary for a certain period of time to help improve their health. However, some known health monitoring electronic devices use a preset correspondence between heart rate zones and human posture to determine whether the user has changed posture. But in this implementation method, the user's heart rate can be affected by various factors. For example, when the user performs additional actions (such as talking) or experiences emotional fluctuations, the user's heart rate will be higher. Therefore, the method of using a preset correspondence between heart rate zones and human posture to determine whether the user has changed posture is inaccurate in recognizing posture changes.

[0080] To address the aforementioned issues, this application provides a method and related apparatus for recognizing human posture changes. Considering that the user's center of gravity elevation varies depending on the posture, the change in the user's center of gravity elevation is used as an important factor in determining whether the user has changed posture. The method determines whether the user has changed posture based on the change in the user's center of gravity elevation and heart rate over a preset time period, thereby improving the accuracy of recognizing human posture changes.

[0081] For ease of understanding, the electronic device provided in this application will be described in detail below with reference to the accompanying drawings.

[0082] Figure 2 This is a schematic diagram of the structure of the electronic device provided in an embodiment of this application. For example... Figure 2 As shown, the electronic device 200 may include a processor 201, an altitude sensing module 202, a motion sensing module 203, a heart rate sensing module 204, an audio output module 205, a display module 206, a memory 207, a power supply 208, a Bluetooth module 209, and a wireless fidelity (Wi-Fi) module 210, etc. The altitude sensing module 202 can be used to acquire the user's wrist altitude, which is the altitude of the user's wrist when wearing the electronic device 200; the motion sensing module 203 can be used to acquire the user's arm angle (e.g., ...). Figure 1 The arm angle shown is the forearm (as shown) connected to the wrist of the user wearing the electronic device 200. Figure 1 The forearm shown in the image is related to the user's center of gravity (such as...). Figure 1The angle of the horizontal plane where the torso center of gravity is located (shown in the figure); the heart rate sensing module 204 can be used to acquire the user's heart rate; the processor 201 can be used to determine the user's center of gravity altitude based on the wrist altitude and arm angle mentioned above, the center of gravity altitude is the altitude of the user's torso center of gravity, and to determine whether the user has changed posture based on the change in center of gravity altitude and the change in heart rate within a preset time period.

[0083] The electronic devices provided in this application embodiment may include smartwatches, smart bracelets, and other devices that can be worn on a user's wrist.

[0084] As an example and not a limitation, the preset time period can be 10 seconds, 20 seconds, 30 seconds, 1 minute, etc., and this application embodiment does not impose any limitation on it. The change in center of gravity elevation within the preset time period is the difference between the average center of gravity elevation in the current preset time period and the average center of gravity elevation in the previous preset time period, that is, ΔH. T =H T (t)-H T (t-Δt), ΔH T H represents the change in the center of gravity elevation within a preset time period. T (t) represents the average elevation of the center of gravity within the current preset time period, H T (t-Δt) represents the average elevation of the center of gravity in the previous preset time period; the change in heart rate in the preset time period is the difference between the average heart rate in the current preset time period and the average heart rate in the previous preset time period, that is, ΔHR=HR(t)-HR(t-Δt), where ΔHR represents the change in heart rate in the preset time period, HR(t) represents the average heart rate in the current preset time period, and HR(t-Δt) represents the average heart rate in the previous preset time period.

[0085] In one possible design, the altitude sensing module 202 may include a barometer for collecting the air pressure value at the position of the user's wrist when wearing the electronic device 200, and the wrist altitude is obtained based on the air pressure value.

[0086] In other words, an electronic device (or its processor) can calculate the altitude of the user's wrist when wearing the device based on the air pressure at the location of the user's wrist.

[0087] Optionally, wrist elevation must meet the following requirements: (For ease of description, this formula is referred to as Formula 1), where H H The value P represents the air pressure at the wrist position where the user is wearing the electronic device.

[0088] As an example and not a limitation, the barometer may collect the air pressure value P at the location of the user's wrist while wearing the electronic device 200 at a frequency of 1 Hertz (Hz) (i.e., collecting 1 air pressure value P per second). In practical applications, the sampling frequency of the air pressure value P may include, but is not limited to, 1 Hz, and this application embodiment does not impose any limitation on this.

[0089] Additionally, as an example rather than a limitation, based on Formula 1 above, a wrist elevation H can be calculated every 10 seconds. H More specifically, for every 10 pressure readings collected by the barometer, a wrist elevation H can be calculated based on the 10th pressure reading. H In practical applications, the frequency of calculating wrist elevation may include, but is not limited to, once every 10 seconds, and this application embodiment does not impose any limitation on this.

[0090] In practical applications, the altitude of the user's wrist when wearing the electronic device can be calculated using Formula 1 above, but is not limited to other known formulas relating air pressure and altitude. This application does not impose any limitations on this.

[0091] In one possible design, the motion sensing module 203 may include an accelerometer for acquiring the left-right acceleration, the front-back acceleration, and the up-down acceleration of the electronic device, and the arm angle is obtained based on the left-right acceleration, the front-back acceleration, and the up-down acceleration.

[0092] In this implementation, the electronic device (or the processor of the electronic device) can calculate the arm angle of the forearm connected to the wrist of the user wearing the electronic device based on the acceleration in the left-right direction, the acceleration in the front-back direction, and the acceleration in the up-down direction of the electronic device.

[0093] Optionally, the arm angle satisfies: (For ease of description, this formula will be referred to as Formula 2.) Where θ represents the aforementioned arm angle, Ax represents the left-right acceleration of the electronic device, and A Y A represents the left-right acceleration of the electronic device. Z This indicates the acceleration of the electronic device in the left-right direction.

[0094] Figure 3 This is a schematic diagram of the three-axis acceleration of the electronic device provided in the embodiments of this application.

[0095] As an example rather than a limitation, such as Figure 3As shown in the figure, a smartwatch is used as an example of an electronic device. The three-axis acceleration of the electronic device can include the left-right acceleration A shown in the figure. X acceleration A in the forward and backward directions Y And the acceleration A in the vertical direction Z The vertical direction of an electronic device can be understood as the direction perpendicular to the screen of the electronic device. The plane formed by the horizontal and vertical directions of the electronic device is parallel to the plane on which the screen of the electronic device is located. Figure 1 In the scenario depicting an electronic device worn on a user's wrist, the left-right direction of the electronic device can be the direction in which the user's forearm extends, and the front-back direction of the electronic device can be perpendicular to the direction in which the user's forearm extends. This application does not impose any limitations on this aspect.

[0096] As an example and not a limitation, the accelerometer collects A-weighted accelerometer readings from the forearm connected to the wrist of the user wearing the electronic device 200. X A Y and A Z The frequency can be 100Hz (that is, 100 sets of A samples per second). X A Y and A Z In practical application scenarios, A X A Y and A Z The sampling frequency may include, but is not limited to, 100Hz, and this application embodiment does not impose any limitation on it.

[0097] Furthermore, as an example and not a limitation, based on Formula 2 above, the frequency for calculating the arm angle θ can be 20Hz (i.e., 20 arm angle θ values ​​are calculated per second). More specifically, the accelerometer collects 5 sets of A... X A Y and A Z Then we can base our decisions on these 5 sets of A X A Y and A Z Group A of 5 X A Y and A Z An arm angle θ is calculated. In practical applications, the frequency for calculating the arm angle may include, but is not limited to, 20Hz, and this application embodiment does not impose any limitation on this.

[0098] In practical applications, to avoid high-frequency abrupt changes in the arm angle θ, a low-pass filter can be applied to the calculated arm angle θ. As an example and not a limitation, the cutoff frequency for the low-pass filter on the calculated arm angle θ can be 1 Hz, and this application does not impose any limitation on this.

[0099] Optionally, the motion sensing module 203 may include an accelerometer and a gyroscope. The accelerometer is used to collect the acceleration in the left-right direction, the acceleration in the front-back direction, and the acceleration in the up-down direction of the electronic device. The gyroscope is used to collect the angular velocity in the left-right direction, the angular velocity in the front-back direction, and the angular velocity in the up-down direction of the electronic device. The arm angle is obtained based on the acceleration in the left-right direction, the acceleration in the front-back direction, and the acceleration in the up-down direction of the electronic device, as well as the angular velocities in the left-right direction, the angular velocities in the front-back direction, and the angular velocities in the up-down direction.

[0100] For ease of description, the angular velocities in the left-right direction, the front-back direction, and the up-down direction are collectively referred to as the three-axis angular velocities.

[0101] In this implementation, the electronic device (or the processor of the electronic device) can determine the arm angle of the forearm connected to the wrist of the user wearing the electronic device based on a known method for determining the angle of an object based on triaxial acceleration and triaxial angular velocity. This application embodiment does not limit this in any way.

[0102] Optionally, the motion sensing module 203 may include an accelerometer, a gyroscope, and a magnetometer. The accelerometer is used to collect the acceleration in the left-right direction, the acceleration in the front-back direction, and the acceleration in the up-down direction of the electronic device. The gyroscope is used to collect the angular velocity in the left-right direction, the angular velocity in the front-back direction, and the angular velocity in the up-down direction of the electronic device. The magnetometer is used to collect the magnetic force in the left-right direction, the magnetic force in the front-back direction, and the magnetic force in the up-down direction of the electronic device. The arm angle is obtained based on the acceleration in the left-right direction, the acceleration in the front-back direction, the acceleration in the up-down direction, the angular velocity in the left-right direction, the angular velocity in the front-back direction, the angular velocity in the up-down direction, and the magnetic force in the left-right direction, the magnetic force in the front-back direction, and the magnetic force in the up-down direction of the electronic device.

[0103] For ease of description, the magnetic forces in the left-right direction, the front-back direction, and the up-down direction are collectively referred to as triaxial magnetic forces.

[0104] In this implementation, the electronic device (or its processor) can determine the arm angle of the forearm connected to the wrist of the user wearing the electronic device based on known methods for determining the angle of an object using triaxial acceleration, triaxial angular velocity, and triaxial magnetism. For example, the electronic device (or its processor) can determine the arm angle using known attitude fusion algorithms based on Kalman filtering or complementary filtering, based on triaxial acceleration, triaxial angular velocity, and triaxial magnetism; this application embodiment does not impose any limitations on this.

[0105] In one possible design, the heart rate sensing module 204 described above may include a photoplethysmography sensor for acquiring the user's heart rate.

[0106] As an example and not a limitation, the photoplethysmography sensor can acquire a user's heart rate at a frequency of 1 Hz (i.e., one heart rate value per second). In practical applications, the heart rate acquisition frequency may include, but is not limited to, 1 Hz, and this application embodiment does not impose any limitation on this.

[0107] In practical applications, the altitude sensing module can calculate the user's wrist altitude based on the air pressure value P collected by the barometer and report it to the controller of the electronic device. Alternatively, the altitude sensing module can directly report the collected air pressure value P to the processor, which then calculates the user's wrist altitude based on the received air pressure value P. This application embodiment does not limit this approach. Similarly, in practical applications, the motion sensing module can calculate the user's arm angle based on the triaxial acceleration collected by the accelerometer and report it to the controller of the electronic device. Alternatively, the motion sensing module can directly report the collected triaxial acceleration to the processor, which then calculates the user's arm angle based on the received triaxial acceleration. This application embodiment does not limit this approach. In practical applications, the heart rate sensing module can collect the user's heart rate using a photoplethysmography sensor and report the collected heart rate to the processor of the electronic device. Furthermore, the processor of the electronic device can determine the user's center of gravity altitude based on the wrist altitude and arm angle, and determine whether the user has changed posture based on the changes in center of gravity altitude and heart rate over a preset period of time.

[0108] This application also provides a method for recognizing human posture switching. This method is applied to an electronic device and can be executed by the electronic device itself, or by internal components such as a processor, chip, or chip system. It can also be implemented by a logic module or software having some or all of the functions of the electronic device. This application does not limit the scope of this method. The electronic device may, for example, have the following features: Figure 2 The structure of the electronic device 200 shown may vary, or it may have more or fewer components; this application does not limit this.

[0109] The following is in conjunction with the above Figure 2 as well as Figures 4 to 10 The method for recognizing human posture switching provided in the embodiments of this application will be described in detail.

[0110] Figure 4 This is a schematic flowchart of the human posture switching recognition method provided in the embodiments of this application. Figure 4 The method 400 shown may include steps 410 to 430. The various steps in the method 400 are described in detail below.

[0111] In step 410, the user's wrist elevation, arm angle, and heart rate are obtained.

[0112] Wrist elevation is the elevation of the user's wrist while wearing the electronic device. Arm angle is the forearm (e.g., the angle of the forearm connected to the user's wrist when wearing the electronic device). Figure 1 The forearm shown in the image is related to the user's center of gravity (such as...). Figure 1 The angle of the horizontal plane where the torso's center of gravity (as shown) is located, for example... Figure 1 The arm angle is shown in the image.

[0113] As mentioned above, electronic devices can include an altitude sensing module, a motion sensing module, and a heart rate sensing module. The electronic device can obtain the user's wrist altitude based on the altitude sensing module, the user's arm angle based on the motion sensing module, and the user's heart rate based on the heart rate sensing module. Detailed descriptions can be found in the relevant descriptions above; for the sake of brevity, they will not be repeated here.

[0114] In step 420, the user's center of gravity altitude is determined based on wrist elevation and arm angle.

[0115] After obtaining the user's wrist elevation and arm angle, the user's center of gravity elevation can be calculated based on the wrist elevation and arm angle.

[0116] In one possible implementation, when the electronic device is worn on the user's left wrist, the center of gravity altitude is the first center of gravity altitude H. TL H TL Satisfy: H TL =H H -ΔH L (For ease of description, this formula is referred to as Formula 3), ΔH L This ΔH represents the relative height of the user's left wrist to the user's center of gravity. L Satisfy: ΔH L =L L ×sinθ (for ease of description, this formula is denoted as Formula 4), L L This indicates the length of the user's left forearm; with the electronic device worn on the user's right wrist, the center of gravity altitude is the second center of gravity altitude H. TR H TR Satisfy: (For ease of description, this formula is denoted as Formula 5) H TR =H H -ΔH R ΔH R This ΔH represents the relative height of the user's right wrist to the user's center of gravity. R Satisfy: ΔH R =L R×sinθ (for ease of description, this formula is denoted as Formula 6), L R This represents the length of the user's right forearm; where H H The above refers to the wrist elevation, and θ refers to the above arm angle.

[0117] As mentioned above, a wrist elevation H can be calculated every 10 seconds. H And it can calculate 20 arm angles θ per second, so it can calculate a wrist elevation H in each calculation. H At that time, the latest arm angle θ value among the multiple arm angles θ obtained is combined with the wrist elevation H calculated in this operation. H The user's center of gravity altitude is further calculated; that is, an altitude can be calculated every 10 seconds. This application does not impose any limitations on this aspect.

[0118] It should be noted that, if the user has pre-entered their height, the length of the user's forearm (including the left or right forearm) can be estimated using known methods for estimating forearm length based on height. For example, if the user's height is 1.7 meters, the estimated forearm length is approximately 0.3 meters. If the user has not pre-entered their height, subsequent calculations can be performed based on a pre-set default value for the forearm. This is not a limitation, but rather an example; for instance, the pre-set default value for the forearm is 0.3 meters. This application does not impose any limitations on this aspect.

[0119] For example, after obtaining the user's wrist elevation and arm angle, and assuming the electronic device is worn on the user's left wrist, the user's first center of gravity elevation H when the electronic device is worn on the user's left wrist can be calculated based on the above formulas 3 and 4. TL And the altitude of the first center of gravity H can be determined. TL For subsequent calculations; given that the electronic device is worn on the user's right wrist, the user's second center of gravity altitude H can be calculated based on Formulas 5 and 6 above. TR And the altitude of the second center of gravity H can be determined. TR For subsequent calculations; when it is uncertain whether the electronic device is worn on the user's left or right wrist, the user's first center of gravity elevation H can be calculated based on the above formulas 3 and 4, assuming the electronic device is worn on the user's left wrist. TL Furthermore, the elevation H of the user's second center of gravity when the electronic device is worn on the user's right wrist can be calculated based on Formulas 5 and 6 above. TR And the altitude of the first center of gravity H can be determined. TL Second center of gravity altitude H TRUsed for subsequent calculations, i.e., based on the elevation H of the first centroid. TL Second center of gravity altitude H TR Subsequent calculations will then be performed. This application does not impose any limitations on the embodiments thereof.

[0120] Optionally, method 400 may further include: determining whether the electronic device is worn on the user's left or right wrist.

[0121] As an example and not a limitation, the processor of an electronic device can also be used to determine whether the electronic device is worn on the user's left or right wrist.

[0122] In cases where it is uncertain whether the electronic device is worn on the user's left or right wrist, the electronic device can be based on the aforementioned first center of gravity altitude H. TL Second center of gravity altitude H TR Determine whether the electronic device is worn on the user's left or right wrist to facilitate subsequent calculations and analysis.

[0123] In one possible implementation, determining whether the electronic device is worn on the user's left or right wrist includes: based on N first centroid elevations H obtained within a preset time period. TL Determine the first noise amplitude H NL N≥3, where N is an integer; based on the N second centroid elevations H obtained within the preset time period. TR Determine the second noise amplitude H NR ; in H NR -H NL If the value exceeds a preset threshold, it is determined that the electronic device is worn on the user's left wrist; in H NL -H NR If the noise level exceeds the preset threshold, it is determined that the electronic device is worn on the user's right wrist; wherein, the first noise amplitude H NL satisfy: (For ease of description, this formula is referred to as Formula 7), H TL (n) represents the altitude H of the above N first centroids. TL The elevation H of the nth first centroid in the middle TL H TL (n-1) represents the altitude H of the above N first centroids. TL The elevation H of the (n-1)th primary centroid in the middle TL H TL (N) represents the altitude H of the above N first centroids. TL The elevation H of the Nth primary centroid in the middle TL H TL (1) represents the altitude H of the above N first centroids. TL The first centroid elevation H in the middle TL, 2≤n≤N, where n is an integer; second noise amplitude H NR satisfy: (For ease of description, this formula is referred to as Formula 8), H TR (n) represents the altitude H of the above N secondary centroids. TR The altitude H of the nth secondary centroid in TR H TR (n-1) represents the altitude H of the above N secondary centroids. TR The elevation H of the (n-1)th secondary centroid in TR H TR (N) represents the altitude H of the aforementioned N secondary centroids. TR The elevation H of the Nth secondary centroid in TR H TR (1) represents the altitude H of the above N secondary centroids. TR The first secondary center of gravity in the middle is at an altitude H. TR .

[0124] The aforementioned preset duration can also be the duration of a preset time window, as an example rather than a limitation. For example, the preset duration could be 2 minutes, 3 minutes, 5 minutes, etc., and this application embodiment does not impose any limitation on this. Furthermore, the value of N is related to the preset duration and the frequency of calculating the user's center of gravity altitude mentioned above. With a preset duration of 5 minutes, and a first center of gravity altitude H calculated every 10 seconds... TL and 1 second center of gravity altitude H TR For example, the elevation H of the first centroid can be calculated in 5 minutes. TL and 30 secondary center of gravity altitudes H TR At this point, N = 30.

[0125] As an example and not a limitation, the preset threshold can be 0.4 meters, 0.5 meters, 0.6 meters, etc., and the embodiments of this application do not impose any limitations on it.

[0126] For example, with a preset duration of 5 minutes, and every 10 seconds, the elevation H of the first center of gravity can be calculated. TL and 1 second center of gravity altitude H TR For example, when a user wears the electronic device for 5 minutes, the device's processor can use the 30 first center of gravity altitudes (H) obtained during those 5 minutes as a basis for its calculations. TL The first noise amplitude H is calculated according to Formula 7 above. NL And based on the 30 secondary center of gravity altitudes H obtained within these 5 minutes, TR The second noise amplitude H is calculated according to Formula 8 above. NR ; then, it can be done in H NR -H NLIf the value exceeds a preset threshold, it is determined that the electronic device is worn on the user's left wrist, in H NL -H NR If the value exceeds the preset threshold, it is determined that the electronic device is worn on the user's right wrist.

[0127] Additionally, it is understandable that in H NR -H NL If the threshold is less than or equal to a preset threshold, and / or, in H NL -H NR If the elevation of the first centroid is less than or equal to the preset threshold, the processor of the electronic device cannot base its calculations on the 30 first centroid elevations H obtained within the aforementioned 5 minutes. TL and 30 secondary center of gravity altitudes H TR This determines whether the electronic device is worn on the user's left or right wrist. Therefore, the altitude H of the 31st first center of gravity needs to be calculated when the user has worn the electronic device for 5 minutes and 10 seconds. TL And the 31st second center of gravity at altitude H TR Then, based on the second first centroid altitude H TL Up to the 31st first center of gravity at altitude H TL The new first noise amplitude H is calculated according to Formula 7 above. NL Based on the second second center of gravity altitude H TR Up to the 31st secondary center of gravity at altitude H TR The new second noise amplitude H is calculated according to Formula 8 above. NR Based on the new first noise amplitude H NL and the new second noise amplitude H NR This process determines whether the electronic device is worn on the user's left or right wrist. This process is repeated until it can be determined whether the electronic device is worn on the user's left or right wrist.

[0128] In other words, in this implementation, the processor of the electronic device can determine whether the electronic device is worn on the user's left or right wrist as soon as the user has worn it for a preset period of time. This application does not impose any limitations on this aspect.

[0129] It should be noted that when the user has worn the electronic device for a preset duration, and it is still unclear whether the device is worn on the user's left or right wrist, the distance can be determined based on the altitude of the first center of gravity, H. TL Second center of gravity altitude H TR Further calculations will be performed; please refer to the relevant descriptions below for details.

[0130] It should also be noted that, when it is uncertain whether the electronic device is worn on the user's left or right wrist, in addition to determining whether the electronic device is worn on the user's left or right wrist based on the above-mentioned methods, it can also determine whether the electronic device is worn on the user's left or right wrist based on currently known methods for determining whether the electronic device is worn on the user's left or right wrist. As an example, and not a limitation, one currently known method is based on the tilt angle of the electronic device's panel to determine whether the electronic device is worn on the user's left or right wrist. More specifically, the above A... X A Y and A Z The combined acceleration is related to A. X and A Y The angle formed by the plane (i.e., A above) X A Y and A Z The combined acceleration and A X Or A Y The angle formed is determined as the tilt angle of the electronic device's panel. Therefore, if the panel tilt angle remains within [0, a1] (e.g., a1 = 45°) for a preset time (e.g., 2 seconds), it can be determined that the electronic device is worn on the user's left wrist; if the panel tilt angle remains within [a2, 180] (e.g., a2 = 135°) for a preset time (e.g., 2 seconds), it can be determined that the electronic device is worn on the user's right wrist; if the panel tilt angle remains within (a1, a2) (e.g., a1 = 45°, a2 = 135°) for a preset time (e.g., 2 seconds), it is impossible to determine whether the electronic device is worn on the user's left or right wrist. This application does not impose any limitations on this aspect.

[0131] In step 430, based on the changes in center of gravity altitude and heart rate within a preset time period, it is determined whether the user has changed posture.

[0132] As mentioned above, the preset time period can be 10 seconds, 20 seconds, 30 seconds, 1 minute, etc., and this application embodiment does not impose any limitation on it. The change in center of gravity altitude within the preset time period is the difference between the average center of gravity altitude within the current preset time period and the average center of gravity altitude within the previous preset time period; the change in heart rate within the preset time period is the difference between the average heart rate within the current preset time period and the average heart rate within the previous preset time period.

[0133] For example, taking a preset time period of 1 minute as an example, when the user wears the electronic device for 1 minute, the average value of the center of gravity altitude and the average value of the heart rate during the first preset time period can be calculated. When the user wears the electronic device for 2 minutes, the average value of the center of gravity altitude and the average value of the heart rate during the second preset time period can be calculated. Based on the average values ​​of the center of gravity altitude in the first and second preset time periods, the change in the first center of gravity altitude and the change in the first heart rate can be calculated. After this, one change in center of gravity altitude and one change in heart rate can be calculated every minute. Therefore, after the user wears the electronic device for 2 minutes, it can be determined every minute whether the user has changed posture.

[0134] In one possible implementation (for ease of description, this possible implementation is referred to as implementation method one), determining whether a user has changed posture based on the changes in center of gravity altitude and heart rate within a preset time period includes: determining that the user has changed posture if the changes in center of gravity altitude are greater than a preset first altitude change threshold and the changes in heart rate are greater than a preset first heart rate change threshold; or, determining that the user has changed posture if the changes in center of gravity altitude are less than a preset second altitude change threshold and the changes in heart rate are less than a preset second heart rate change threshold; or, determining that the user has not changed posture if the changes in center of gravity altitude are greater than or equal to the second altitude change threshold and less than or equal to the first altitude change threshold, and / or the changes in heart rate are greater than or equal to the second heart rate change threshold and less than or equal to the first heart rate change threshold.

[0135] As an example and not a limitation, when the processor of an electronic device determines whether a user has changed posture based on the changes in center of gravity altitude and heart rate over a preset time period, it specifically determines that the user has changed posture if the changes in center of gravity altitude are greater than a preset first altitude change threshold and the changes in heart rate are greater than a preset first heart rate change threshold; or, if the changes in center of gravity altitude are less than a preset second altitude change threshold and the changes in heart rate are less than a preset second heart rate change threshold; or, if the changes in center of gravity altitude are greater than or equal to the second altitude change threshold and less than or equal to the first altitude change threshold, and / or the changes in heart rate are greater than or equal to the second heart rate change threshold and less than or equal to the first heart rate change threshold, the user has not changed posture.

[0136] Optionally, the first altitude change threshold is greater than the second altitude change threshold, and the first altitude change threshold and the second altitude change threshold are opposite numbers; the first heart rate change threshold is greater than the second heart rate change threshold, and the first heart rate change threshold and the second heart rate change threshold are opposite numbers.

[0137] As an example, and not a limitation, the absolute values ​​of the first and second altitude change thresholds can be related to the user's height. If the user has pre-entered their height, the absolute values ​​of the first and second altitude change thresholds can be determined based on that height. For example, the absolute values ​​of the first and second altitude change thresholds can be pre-set to x times the user's height, where 0 < x < 1, and x is a rational number. As an example, and not a limitation, for instance, x = 0.18.

[0138] If the user has not pre-entered their height, it can be determined based on the default values ​​of the absolute values ​​of a first altitude change threshold and a second altitude change threshold. For example, the default value of the absolute values ​​of the first altitude change threshold and the second altitude change threshold is 0.3 meters. This application embodiment does not impose any limitations on this.

[0139] For example, Figure 5 This is a flowchart illustrating how to determine whether a user has changed their posture, as provided in an embodiment of this application. Figure 5 As shown, determining whether the user has changed their posture may include steps 501 to 506. Steps 501 to 506 are described in detail below.

[0140] In step 501, it is determined whether the change in the center of gravity altitude is greater than the first altitude change threshold.

[0141] If the electronic device (or the processor of the electronic device) determines that the change in the center of gravity altitude is greater than the first altitude change threshold, it executes step 502; if the electronic device (or the processor of the electronic device) determines that the change in the center of gravity altitude is not greater than (i.e. less than or equal to) the first altitude change threshold, it executes step 503.

[0142] In step 502, it is determined whether the change in heart rate is greater than the first heart rate change threshold.

[0143] If the electronic device (or the processor of the electronic device) determines that the change in heart rate is greater than the first heart rate change threshold, it executes step 504; if the electronic device (or the processor of the electronic device) determines that the change in heart rate is not greater than (i.e. less than or equal to) the first heart rate change threshold, it executes step 505.

[0144] In step 503, it is determined whether the change in the center of gravity altitude is less than the second altitude change threshold.

[0145] If the electronic device (or the processor of the electronic device) determines that the change in the center of gravity altitude is less than the second altitude change threshold, it executes step 506; if the electronic device (or the processor of the electronic device) determines that the change in the center of gravity altitude is not less than (i.e., greater than or equal to) the second altitude change threshold, it executes step 505.

[0146] In step 504, it is determined that the user has changed their posture.

[0147] In step 505, it is determined that the user has not changed their posture.

[0148] The user not changing their posture can also be understood as the user maintaining their original posture.

[0149] In step 506, it is determined whether the change in heart rate is less than the second heart rate change threshold.

[0150] If the electronic device (or the processor of the electronic device) determines that the change in heart rate is less than the second heart rate change threshold, it executes step 504; if the electronic device (or the processor of the electronic device) determines that the change in heart rate is not less than (i.e., greater than or equal to) the second heart rate change threshold, it executes step 505.

[0151] In another possible implementation (referred to as implementation two for ease of description), the user's posture is determined based on the changes in center of gravity altitude and heart rate over a preset time period. This includes: determining whether the user has changed posture if both the changes in center of gravity altitude and heart rate are greater than 0 or less than 0, and the absolute value of the change in center of gravity altitude is greater than a preset first altitude change threshold, and the absolute value of the change in heart rate is greater than a preset first heart rate change threshold; or, determining whether the user has changed posture if both the changes in center of gravity altitude and heart rate are greater than 0, and at least one of the following conditions is met. The user has not changed posture if: the absolute value of the change in center of gravity altitude is less than or equal to a first altitude change threshold, or the absolute value of the change in heart rate is less than or equal to a first heart rate change threshold; or, if both the change in center of gravity altitude and the change in heart rate are less than 0, and at least one of the following conditions is met, the user has not changed posture.

[0152] In other words, when the processor of an electronic device determines whether a user has changed posture based on changes in center of gravity altitude and heart rate over a preset time period, it specifically determines that the user has changed posture if both the changes in center of gravity altitude and heart rate are greater than 0 or both are less than 0, and the absolute value of the change in center of gravity altitude is greater than a preset first altitude change threshold, and the absolute value of the change in heart rate is greater than a preset first heart rate change threshold; or, if both the changes in center of gravity altitude and heart rate are greater than 0, and at least one of the following conditions is met, it determines that the user has not changed posture: The user is determined not to have changed posture if the absolute value of the change in center of gravity altitude is less than or equal to a first altitude change threshold, or the absolute value of the change in heart rate is less than or equal to a first heart rate change threshold; or, if both the change in center of gravity altitude and the change in heart rate are less than 0, and at least one of the following conditions is met: the absolute value of the change in center of gravity altitude is less than or equal to a first altitude change threshold, or the absolute value of the change in heart rate is less than or equal to a first heart rate change threshold; or, if neither the change in center of gravity altitude nor the change in heart rate is simultaneously greater than 0, or simultaneously less than 0, the user is determined not to have changed posture.

[0153] As an example, and not a limitation, the absolute value of the first altitude change threshold can be related to the user's height. If the user has pre-entered their height, the absolute value of the first altitude change threshold can be determined based on that height. For example, the absolute value of the first altitude change threshold can be pre-set to x times the user's height, where 0 < x < 1, and x is a rational number. As an example, and not a limitation, for instance, x = 0.18.

[0154] If the user has not pre-entered their height, it can be determined based on the default value of the absolute value of a pre-set first altitude change threshold. For example, the default value of the absolute value of the first altitude change threshold is 0.3 meters. This application embodiment does not impose any limitations on this.

[0155] For example, Figure 6 This is another flowchart provided in an embodiment of this application for determining whether a user has changed their posture. For example... Figure 6 As shown, determining whether the user has changed their posture may include steps 601 to 605. Steps 601 to 605 are described in detail below.

[0156] In step 601, it is determined whether the change in center of gravity altitude and the change in heart rate are both greater than 0 or both less than 0.

[0157] If the electronic device (or its processor) determines that the change in center of gravity altitude and the change in heart rate are both greater than 0 or both less than 0, it executes step 602; if the electronic device (or its processor) determines that the change in center of gravity altitude is greater than 0 and the change in heart rate is less than or equal to 0, or the change in center of gravity altitude is less than or equal to 0 and the change in heart rate is greater than 0, or the change in center of gravity altitude and the change in heart rate are both equal to 0, it executes step 605.

[0158] In step 602, it is determined whether the absolute value of the change in the center of gravity altitude is greater than the first altitude change threshold.

[0159] If the electronic device (or the processor of the electronic device) determines that the absolute value of the change in the center of gravity altitude is greater than the first altitude change threshold, it executes step 603; if the electronic device (or the processor of the electronic device) determines that the absolute value of the change in the center of gravity altitude is not greater than (that is, less than or equal to) the first altitude change threshold, it executes step 605.

[0160] In step 603, it is determined whether the absolute value of the change in heart rate is greater than the first heart rate change threshold.

[0161] If the electronic device (or the processor of the electronic device) determines that the absolute value of the change in heart rate is greater than the first heart rate change threshold, it executes step 604; if the electronic device (or the processor of the electronic device) determines that the absolute value of the change in heart rate is not greater than (i.e. less than or equal to) the first heart rate change threshold, it executes step 605.

[0162] In step 604, it is determined that the user has changed their posture.

[0163] In step 605, it is determined that the user has not changed their posture.

[0164] As mentioned above, the user not changing their posture can also be understood as the user maintaining their original posture.

[0165] In practical application scenarios, step 605 is an optional step. That is, step 605 can be executed or not, and this application embodiment does not limit it in any way.

[0166] If, after a preset duration of wear, it is still unclear whether the electronic device is worn on the user's left or right wrist, the wearer can determine the position based on the elevation H of the first center of gravity. TL Second center of gravity altitude H TR Perform the process described in either implementation method one or implementation method two to determine whether the user has changed their posture. This is based on the altitude H of the first center of gravity within a preset time period. TLThe changes in the magnitude of the change in heart rate and the magnitude of the change in heart rate determine when the user has changed posture, and / or, based on the second center of gravity altitude H within a preset time period. TR If the changes in heart rate and the changes in heart rate indicate that the user has changed posture, then the user has changed posture; otherwise, the user has changed posture.

[0167] In one possible implementation, the posture includes sitting and standing postures, and method 400 may further include: determining the posture of the user after the posture change based on the change in center of gravity elevation and the change in heart rate, if it is determined that the user has changed posture.

[0168] As an example and not a limitation, posture includes sitting and standing postures. The processor of an electronic device can also be used to determine the user's posture after the posture change based on the change in center of gravity altitude and the change in heart rate, if it is determined that the user has changed posture.

[0169] In other words, given that the user has changed their posture, the electronic device can also determine whether the user is standing or sitting after changing their posture.

[0170] Optionally, based on the changes in center of gravity elevation and heart rate, the user's posture after changing posture is determined, including: if the changes in center of gravity elevation and heart rate are both greater than 0, the user's posture after changing posture is determined to be a standing posture; if the changes in center of gravity elevation and heart rate are both less than 0, the user's posture after changing posture is determined to be a sitting posture.

[0171] As an example and not a limitation, when the processor of an electronic device determines the user's posture after changing posture based on the changes in center of gravity altitude and heart rate, it specifically determines that the user's posture after changing posture is a standing posture when both the changes in center of gravity altitude and heart rate are greater than 0; and determines that the user's posture after changing posture is a sitting posture when both the changes in center of gravity altitude and heart rate are less than 0.

[0172] In other words, if both the change in center of gravity (elevation) and the change in heart rate are greater than 0, the processor of the electronic device can determine that the user's posture after changing posture is standing; if both the change in center of gravity (elevation) and the change in heart rate are less than 0, the processor can determine that the user's posture after changing posture is sitting. It is understandable that, as mentioned above, if the change in center of gravity (elevation) is greater than 0 and the change in heart rate is less than 0, or if the change in center of gravity (elevation) is less than 0 and the change in heart rate is greater than 0, it is determined that the user has not changed posture. Therefore, if the change in center of gravity (elevation) is greater than 0 and the change in heart rate is less than 0, or if the change in center of gravity (elevation) is less than 0 and the change in heart rate is greater than 0, the user maintains their original posture, and there is no need to determine the user's posture after changing posture.

[0173] For example, Figure 7 This is a flowchart illustrating how to determine a user's posture after switching postures, as provided in an embodiment of this application. Figure 7 As shown, the process of determining whether a user has changed their posture may include steps 701 to 705. Steps 701 to 705 are described in detail below.

[0174] In step 701, it is determined whether the change in center of gravity altitude and the change in heart rate are both greater than 0.

[0175] If the electronic device (or its processor) determines that both the change in center of gravity altitude and the change in heart rate are greater than 0, it executes step 703; otherwise, it executes step 702.

[0176] In step 702, it is determined whether the change in center of gravity altitude and the change in heart rate are both less than 0.

[0177] If the electronic device (or its processor) determines that both the change in center of gravity altitude and the change in heart rate are less than 0, it executes step 704; otherwise, it executes step 705.

[0178] In step 703, it is determined that the user's posture after changing posture is a standing posture.

[0179] In step 704, it is determined that the user's posture after changing posture is a sitting posture.

[0180] In step 705, it is determined that the user maintains the original posture.

[0181] In practical application scenarios, step 705 is an optional step. That is, step 705 can be executed or not, and this application embodiment does not limit it in any way.

[0182] In another possible implementation, the posture includes lying, sitting and standing, and method 400 may further include: determining the posture of the user after the posture has been switched based on the change in center of gravity altitude, the change in heart rate, the reserve heart rate and the posture before the switch, wherein the reserve heart rate is the difference between the user's current heart rate and the user's resting heart rate.

[0183] As an example and not a limitation, posture includes sitting, standing and lying positions. The processor of an electronic device can also be used to determine the user's posture after the posture change based on the change in center of gravity altitude, the change in heart rate, heart rate reserve, and the posture before the change, when it is determined that the user has changed posture. Heart rate reserve is the difference between the user's current heart rate and the user's resting heart rate.

[0184] In other words, given that the user has changed their posture, the electronic device can also determine whether the user is standing, sitting, or lying down after changing their posture.

[0185] Resting heart rate refers to the heart rate at rest, with a normal heart rate ranging from 60 to 100 beats per minute. In this embodiment, the user's resting heart rate is defined as the heart rate during a stable phase of sleep at night. It is understood that different users may have different resting heart rates.

[0186] If the user's heart rate during a stable phase of sleep at night is not available, the resting heart rate can be a preset default value. As an example rather than a limitation, the preset default resting heart rate can be 60 beats per minute.

[0187] Heart reserve is the difference between a user's current heart rate and their resting heart rate, i.e., HR. S =HR - HR0, where HR S HR represents the user's reserve heart rate, HR represents the user's current heart rate, and HR0 represents the user's resting heart rate.

[0188] The posture before switching can be the posture the user was in after the previous posture change, or it can be the default initial posture. As an example and not a limitation, the default initial posture can be a sitting, standing, or lying posture, and this application embodiment does not impose any limitation on this. It is understood that when the user has just put on the electronic device, the posture before switching can be the default initial posture.

[0189] Optionally, based on the change in center of gravity altitude, the change in heart rate, the reserve heart rate, and the posture before the switch, the user's posture after the posture change is determined, including (or, when the processor determines the user's posture after the posture change based on the change in center of gravity altitude, the change in heart rate, the reserve heart rate, and the posture before the switch, specifically for): if the posture before the switch was lying down, and both the change in center of gravity altitude and the change in heart rate were greater than 0, and the change in center of gravity altitude was greater than a preset third altitude change threshold, the change in heart rate was greater than a preset third heart rate change threshold, and the reserve heart rate was within a preset first range, then the user's posture after the posture change is determined to be standing; or, if the posture before the switch was lying down, and both the change in center of gravity altitude and the change in heart rate were greater than 0, and the change in center of gravity altitude was less than or equal to a preset third altitude change threshold, or the change in heart rate was less than or equal to a preset third heart rate change threshold, or the reserve heart rate was not within a first range, then the user's posture after the posture change is determined to be sitting; if the posture before the switch was sitting... If the user's posture before the change is a standing posture, and both the change in center of gravity (elevation) and the change in heart rate are greater than 0, then the user's posture after the change is determined to be a lying posture. Alternatively, if the user's posture before the change is a sitting posture, and the change in center of gravity (elevation) is less than or equal to 0, or the change in heart rate is less than or equal to 0, then the user's posture after the change is determined to be a lying posture. If the user's posture before the change is a standing posture, and both the change in center of gravity (elevation) and the change in heart rate are less than 0, and the absolute value of the change in center of gravity (elevation) is greater than a preset third altitude change threshold, the absolute value of the change in heart rate is greater than a preset third heart rate change threshold, and the reserve heart rate is within a preset second range, then the user's posture after the change is determined to be a lying posture. Alternatively, if the user's posture before the change is a standing posture, and both the change in center of gravity (elevation) and the change in heart rate are less than 0, and the absolute value of the change in center of gravity (elevation) is less than or equal to a preset third altitude change threshold, or the absolute value of the change in heart rate is less than or equal to a preset third heart rate change threshold, or the reserve heart rate is not within a second range, then the user's posture after the change is determined to be a sitting posture.

[0190] The following combination Figures 8 to 10 The process of determining the user's posture after switching postures is explained in detail above.

[0191] For example, Figure 8 This is a flowchart illustrating how to determine the user's posture after switching postures, given that the user's posture before switching was a lying position. (Example provided in this application embodiment.) Figure 8 As shown, the process of determining the user's posture after switching postures when the user's posture before switching is a lying position can include steps 801 to 807. Steps 801 to 807 are described in detail below.

[0192] In step 801, it is determined whether the change in center of gravity altitude and the change in heart rate are both greater than 0.

[0193] If the electronic device (or its processor) determines that both the change in center of gravity altitude and the change in heart rate are greater than 0, it executes step 802; otherwise, the electronic device (or its processor) executes step 807, that is, if the electronic device (or its processor) determines that both the change in center of gravity altitude and the change in heart rate are less than or equal to 0, it executes step 807.

[0194] In step 802, it is determined whether the change in the center of gravity altitude is greater than the preset third altitude change threshold.

[0195] In practical applications, the value of the third altitude change threshold can be preset according to specific circumstances. As an example and not a limitation, the preset third altitude change threshold can be 0.7 meters, 0.8 meters, etc., and this application embodiment does not impose any limitation on it.

[0196] If the electronic device (or the processor of the electronic device) determines that the change in the center of gravity altitude is greater than a preset third altitude change threshold, it executes step 803; otherwise, the electronic device (or the processor of the electronic device) executes step 805, that is, if the electronic device (or the processor of the electronic device) determines that the change in the center of gravity altitude is less than or equal to the third altitude change threshold, it executes step 805.

[0197] In step 803, it is determined whether the change in heart rate is greater than a preset third heart rate change threshold.

[0198] In practical applications, the value of the third heart rate change threshold can be preset according to specific circumstances. As an example and not a limitation, the preset third heart rate change threshold can be 15 beats / minute, 18 beats / minute, etc., and this application embodiment does not impose any limitation on it.

[0199] If the electronic device (or the processor of the electronic device) determines that the change in heart rate is greater than a preset third heart rate change threshold, it executes step 804; otherwise, the electronic device (or the processor of the electronic device) executes step 805, that is, if the electronic device (or the processor of the electronic device) determines that the change in heart rate is less than or equal to the third heart rate change threshold, it executes step 805.

[0200] In step 804, it is determined whether the reserve heart rate is within a preset first range.

[0201] In practical applications, values ​​within a first range can be preset according to specific circumstances. The first range can be understood as the standing posture interval corresponding to the reserve heart rate. As an example and not a limitation, the preset first range can be [22, 50] (beats / minute), etc., and this application embodiment does not impose any limitation on it.

[0202] If the electronic device (or the processor of the electronic device) determines that the reserve heart rate is within the first range, it executes step 806; otherwise, the electronic device (or the processor of the electronic device) executes step 805, that is, if the electronic device (or the processor of the electronic device) determines that the reserve heart rate is not within the first range, it executes step 805.

[0203] In step 805, it is determined that the user's posture after changing posture is a sitting posture.

[0204] In step 806, it is determined that the user's posture after changing posture is a standing posture.

[0205] In step 807, it is determined that the user maintains the original posture.

[0206] In practical application scenarios, step 807 is an optional step. That is, step 807 can be executed or not, and this application embodiment does not limit it in any way.

[0207] Figure 9 This is a flowchart illustrating how to determine the user's posture after switching postures, given that the user's posture before switching was a sitting posture. (Example provided in this application embodiment.) Figure 9 As shown, the process of determining the user's posture after the posture change, when the user's posture was sitting before the change, can include steps 901 to 905. Steps 901 to 905 are described in detail below.

[0208] In step 901, it is determined whether the change in center of gravity altitude and the change in heart rate are both greater than 0.

[0209] If the electronic device (or its processor) determines that both the change in center of gravity altitude and the change in heart rate are greater than 0, it executes step 902; otherwise, it executes step 903.

[0210] In step 902, it is determined whether the change in center of gravity altitude and the change in heart rate are both less than 0.

[0211] If the electronic device (or its processor) determines that both the change in center of gravity altitude and the change in heart rate are less than 0, it executes step 904; otherwise, it executes step 905.

[0212] In step 903, it is determined that the user's posture after changing posture is a standing posture.

[0213] In step 904, it is determined that the user's posture after changing posture is a lying position.

[0214] In step 905, it is determined that the user maintains the original posture.

[0215] In practical application scenarios, step 905 is an optional step. That is, step 905 can be executed or not, and this application embodiment does not limit it in any way.

[0216] Figure 10 This is a flowchart illustrating how to determine the user's posture after switching postures, given that the user's posture before switching was standing. (Example provided in this application embodiment.) Figure 10 As shown, the process of determining the user's posture after the posture change, when the user's posture was standing before the change, can include steps 1001 to 1007. Steps 1001 to 1007 are described in detail below.

[0217] In step 1001, it is determined whether the change in center of gravity altitude and the change in heart rate are both less than 0.

[0218] If the electronic device (or its processor) determines that the change in center of gravity altitude and the change in heart rate are both less than 0, it executes step 1002; otherwise, the electronic device (or its processor) executes step 1007, that is, if the electronic device (or its processor) determines that the change in center of gravity altitude and the change in heart rate are both greater than or equal to 0, it executes step 1007.

[0219] In step 1002, it is determined whether the absolute value of the change in the center of gravity altitude is greater than the preset third altitude change threshold.

[0220] As mentioned above, in practical applications, the value of the third altitude change threshold can be preset according to specific circumstances. As an example and not a limitation, the preset third altitude change threshold can be 0.7 meters, 0.8 meters, etc., and this application embodiment does not impose any limitation on it.

[0221] If the electronic device (or the processor of the electronic device) determines that the absolute value of the change in center of gravity altitude is greater than the preset third altitude change threshold, it executes step 1003; otherwise, the electronic device (or the processor of the electronic device) executes step 1005, that is, if the electronic device (or the processor of the electronic device) determines that the absolute value of the change in center of gravity altitude is less than or equal to the third altitude change threshold, it executes step 1005.

[0222] In step 1003, it is determined whether the absolute value of the change in heart rate is greater than a preset third heart rate change threshold.

[0223] As mentioned above, in practical applications, the value of the third heart rate change threshold can be preset according to specific circumstances. As an example and not a limitation, the preset third heart rate change threshold can be 15 beats / minute, 18 beats / minute, etc., and this application embodiment does not impose any limitation on it.

[0224] If the electronic device (or the processor of the electronic device) determines that the absolute value of the change in heart rate is greater than a preset third heart rate change threshold, it executes step 1004; otherwise, the electronic device (or the processor of the electronic device) executes step 1005, that is, if the electronic device (or the processor of the electronic device) determines that the absolute value of the change in heart rate is less than or equal to the third heart rate change threshold, it executes step 1005.

[0225] In step 1004, it is determined whether the reserve heart rate is within a preset second range.

[0226] In practical applications, a second range of values ​​can be preset according to specific circumstances. The second range can be understood as the lying position interval corresponding to the reserve heart rate. As an example and not a limitation, the preset second range can be [0, 22) (beats / minute), etc., and this application embodiment does not impose any limitation on it.

[0227] If the electronic device (or the processor of the electronic device) determines that the reserve heart rate is within the second range, it executes step 1006; otherwise, the electronic device (or the processor of the electronic device) executes step 1005, that is, if the electronic device (or the processor of the electronic device) determines that the reserve heart rate is not within the second range, it executes step 1005.

[0228] In step 1005, it is determined that the user's posture after changing posture is a sitting posture.

[0229] In step 1006, it is determined that the user's posture after changing posture is a lying position.

[0230] In step 1007, it is determined that the user maintains the original posture.

[0231] In practical application scenarios, step 1007 is an optional step. That is, step 1007 can be executed or not, and this application embodiment does not impose any limitations on this.

[0232] Figure 11 This is a schematic diagram of the center of gravity elevation and heart rate curves of a user switching from a sitting to a standing posture, provided in an embodiment of this application.

[0233] like Figure 11As shown in a), the solid line represents the user's center of gravity altitude calculated assuming the electronic device is worn on the user's left wrist, and the dashed line represents the user's center of gravity altitude calculated assuming the electronic device is worn on the user's right wrist. Figure 11 b) shows the user's heart rate.

[0234] As mentioned above, when it is uncertain whether the electronic device is worn on the user's left or right wrist, the electronic device, in addition to being based on the first center of gravity altitude H as described above, TL (Corresponding to the center of gravity elevation of the electronic device worn on the user's left wrist) and the second center of gravity elevation H TR (Corresponding to the center of gravity elevation of the electronic device on the user's right wrist) In addition to determining whether the electronic device is worn on the user's left or right wrist, it can also be determined based on currently known methods for determining whether the electronic device is worn on the user's left or right wrist. For the sake of brevity, this will not be elaborated here.

[0235] For example, once it is determined that the electronic device is worn on the user's left wrist, it can then be used to determine the altitude H of the first center of gravity within a preset time period. TL The changes in the center of gravity (corresponding to the elevation of the electronic device's center of gravity on the user's left wrist) and heart rate are used to determine whether the user has changed posture, and after determining that the user has changed posture, the user's current posture can be determined. For example, after determining that the user has changed posture, based on... Figure 9 The logic shown determines that the user's posture after switching postures is a standing posture.

[0236] Figure 12 This is a schematic diagram of the center of gravity elevation and heart rate curves of a user switching from a lying position to a sitting position and then to a standing position, as provided in the embodiments of this application.

[0237] like Figure 12 As shown in a), the solid line can represent the user's center of gravity altitude calculated when the electronic device is worn on the user's left wrist. Figure 12 b) shows the user's heart rate.

[0238] Assuming the electronic device is worn on the user's left wrist, the device can be positioned based on the altitude H of the first center of gravity within a preset time period. TL The changes in the center of gravity (corresponding to the elevation of the electronic device worn on the user's left wrist) and the changes in heart rate can be used to determine whether the user has changed posture, and after determining that the user has changed posture, the user's posture after changing posture can be determined.

[0239] For example, a user's resting heart rate is 60 beats / minute. When the user changes from a lying to a sitting position, their heart rate reserve reaches 20 beats / minute, the change in center of gravity elevation is +0.32 meters (meaning the average elevation of the center of gravity during the preset time period increases by 0.32 meters), and the change in heart rate is +8 beats / minute (meaning the average heart rate during the preset time period increases by 8 beats / minute). Therefore, it can be determined that the user's posture after changing positions is a sitting position. Subsequently, when the user changes from a sitting to a standing position, their heart rate reserve reaches 28 beats / minute, the change in center of gravity elevation is +0.39 meters (meaning the average elevation of the center of gravity during the preset time period increases by 0.39 meters), and the increase in heart rate is 8 beats / minute (meaning the average heart rate during the preset time period increases by 8 beats / minute). Therefore, it can be determined that the user's posture after changing positions is a standing position.

[0240] In one possible implementation, method 400 may further include: counting at least one of the following durations: the duration the user remains in a lying position, the duration the user remains in a sitting position, or the duration the user remains in a standing position.

[0241] As an example and not a limitation, the processor of an electronic device can also be used to count at least one of the following durations: the duration a user remains in a lying position, the duration a user remains in a sitting position, or the duration a user remains in a standing position.

[0242] In other words, once the electronic device determines the user's posture after switching postures, it can begin to count the duration the user maintains that posture.

[0243] Optionally, the processor is specifically used to count the duration of the user's sitting posture and the duration of the user's standing posture; and the electronic device further includes an audio output module controlled by the processor, which emits a first prompt audio when the duration of the user's standing posture exceeds a preset first time threshold, the first prompt audio being used to remind the user that the user has been standing for a long time; and / or, emits a second prompt audio when the duration of the user's sitting posture exceeds a preset second time threshold, the second prompt audio being used to remind the user that the user has been sitting for a long time.

[0244] In practical applications, the values ​​of the first and second time thresholds can be preset according to specific circumstances. The first and second time thresholds can be default factory initial values, or they can be modified by the user according to their individual needs. The first and second time thresholds can be the same or different. As an example and not a limitation, the default factory initial values ​​of the first and second time thresholds can be 30 minutes, 60 minutes (i.e., 1 hour), 1.5 hours, etc., and this application embodiment does not impose any limitations on this.

[0245] like Figure 2As shown, the electronic device 200 may further include an audio output module 205, which is controlled by the processor 201. When the user maintains a standing posture for a duration exceeding a preset first time threshold, the module can emit a first alert audio to remind the user that they have been standing for an extended period. When the user maintains a sitting posture for a duration exceeding a preset second time threshold, the module can emit a second alert audio to remind the user that they have been sitting for an extended period. This method reminds the user to engage in appropriate exercise or change their posture to help improve their health.

[0246] Taking a first time threshold of 60 minutes as an example, when the processor 201 detects that the user has maintained a sitting posture for 60 minutes, the processor 201 can control the audio output module 205 to emit a first prompt audio to remind the user that they have maintained a standing posture for an extended period of time, or that they have maintained a sitting posture for 60 minutes. This may include, but is not limited to, continuing to count the time the user has maintained a sitting posture after reminding them that they have maintained a standing posture for an extended period of time, and reminding them again that they have maintained a standing posture for an extended period of time when the user has maintained a sitting posture for another 60 minutes, or that they have maintained a sitting posture for 120 minutes (i.e., 2 hours), and so on. This embodiment of the application does not impose any limitations on this. A detailed description of reminding the user that they have maintained a standing posture for an extended period of time can be found in the above description of reminding the user that they have maintained a sitting posture for an extended period of time; for the sake of brevity, it will not be repeated here.

[0247] Optionally, the electronic device may also include a display module controlled by a processor, which displays the duration counted by the processor.

[0248] like Figure 2 As shown, the electronic device 200 may further include a display module 206, which can be controlled by the processor 201 to display the duration counted by the processor 201. For example, when the processor 201 counts that the user has maintained a sitting posture for 60 minutes, the display module 206 can display that the user has maintained a sitting posture for 60 minutes. The display module 206 can continuously display that the user has maintained a sitting posture for 60 minutes within a preset duration (e.g., 5 seconds), or it can continuously display and update the duration of the user's sitting posture. This embodiment of the application does not limit this in any way.

[0249] In addition to reminding users of prolonged sitting and / or prolonged standing postures through the audio output module and / or display module as described above, the system can also remind users of prolonged sitting and / or prolonged standing postures through vibration, audio output module, and display module in combination. This application embodiment does not limit this in any way.

[0250] The electronic device adapted to the human posture switching recognition method provided in the embodiments of this application may include, in addition to a processor, an altitude sensing module, a motion sensing module, a heart rate sensing module, an audio output module, and a display module, other modules as well.

[0251] Alternatively, the electronic device may also include a memory.

[0252] As an example rather than a limitation, such as Figure 2 As shown, the electronic device 200 may also include a memory 207. The processor 201 communicates with the altitude sensing module 202, motion sensing module 203, heart rate sensing module 204, audio output module 205, display module 206, and memory 207 via internal connection pathways, transmitting control and / or data signals. The memory 207 can store computer programs, and the processor 201 can retrieve and run these programs from the memory 207 to control the altitude sensing module 202, motion sensing module 203, heart rate sensing module 204, audio output module 205, and display module 206 to perform corresponding operations.

[0253] Optionally, the processor 201 and the memory 207 can be combined into a control device. The processor 201 can be used to execute the program code stored in the memory 207 to implement the functions of the processor in the above embodiment.

[0254] In a specific implementation, the memory 207 may be integrated into the processor 201 or independent of the processor 201. This application embodiment does not impose any limitations on this.

[0255] In addition, to further enhance the functionality of the electronic device, the electronic device 200 may include one or more of the following: a power supply 208, a Bluetooth module 209, and a Wi-Fi module 210. This application embodiment does not impose any limitations on these aspects.

[0256] It should be understood that Figure 2 The electronic device 200 shown is only an example. In actual application scenarios, electronic devices may include more or fewer components, units or modules, and the embodiments of this application do not limit this in any way.

[0257] Based on the above scheme, considering that the user's center of gravity elevation varies depending on their posture, the change in the user's center of gravity elevation is used as a crucial factor in determining whether the user has changed posture. The system determines whether the user has changed posture based on the changes in the user's center of gravity elevation and heart rate over a preset time period, thereby improving the accuracy of posture recognition. Furthermore, after determining that the user has changed posture, the system can also determine the user's current posture and the duration of that posture. If the user maintains a sitting and / or standing posture for an extended period, the system can remind the user to engage in appropriate exercise or change posture to help improve their health.

[0258] This application also provides a chip system, the chip system including at least one processor for implementing the above. Figures 4 to 10 The functions involved in the method performed by the electronic device in any of the illustrated embodiments.

[0259] In one possible design, the chip system also includes a memory for storing program instructions and data, which may be located within or outside the processor.

[0260] The chip system can consist of chips or include chips and other discrete components.

[0261] This application also provides a computer program product, which includes a computer program (also referred to as code or instructions) that, when run, causes the computer to perform actions such as... Figures 4 to 10 Any of the methods shown in the text.

[0262] This application also provides a computer-readable storage medium storing a computer program (also referred to as code or instructions). When the computer program is run, it causes the computer to perform actions such as... Figures 4 to 10 Any of the methods shown in the text.

[0263] It should be understood that the processor in the embodiments of this application can be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method embodiments can be completed by the integrated logic circuitry in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.

[0264] It should also be understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may 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). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0265] The terms “unit”, “module”, etc., used in this specification may be used to refer to computer-related entities, hardware, firmware, combinations of hardware and software, software, or software in execution.

[0266] Those skilled in the art will recognize that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application. In the several embodiments provided in this application, it should be understood that the disclosed apparatus, devices, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interface; the indirect coupling or communication connection of apparatus or modules may be electrical, mechanical, or other forms.

[0267] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0268] In addition, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more units can be integrated into one module.

[0269] In the above embodiments, the functions of each functional module can be implemented entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When the computer program instructions (programs) are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs, DVDs), or semiconductor media (e.g., solid-state disks, SSDs), etc.

[0270] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0271] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An electronic device, characterized in that, include: An altitude sensing module is used to acquire the user's wrist altitude, which is the altitude of the user's wrist when wearing the electronic device. The motion sensing module is used to acquire the user's arm angle, which is the angle between the forearm connected to the wrist and the horizontal plane where the user's center of gravity is located. A heart rate sensing module is used to acquire the user's heart rate; The processor is configured to determine the user's center of gravity altitude based on the wrist altitude and the arm angle, wherein the center of gravity altitude is the altitude of the user's torso center of gravity. And it is used to determine whether the user has changed posture based on the change in the center of gravity altitude and the change in the heart rate within a preset time period; When the processor determines whether the user has changed posture based on the change in center of gravity altitude and the change in heart rate within a preset time period, it is specifically configured to: determine that the user has changed posture if the change in center of gravity altitude is greater than a preset first altitude change threshold and the change in heart rate is greater than a preset first heart rate change threshold. or, If the change in the center of gravity altitude is less than a preset second altitude change threshold and the change in heart rate is less than a preset second heart rate change threshold, it is determined that the user has switched postures. or, If the change in the center of gravity altitude is greater than or equal to the second altitude change threshold and less than or equal to the first altitude change threshold, and / or the change in heart rate is greater than or equal to the second heart rate change threshold and less than or equal to the first heart rate change threshold, it is determined that the user has not changed posture.

2. The electronic device as claimed in claim 1, characterized in that, When the processor determines whether the user has changed posture based on the change in center of gravity altitude and the change in heart rate over a preset time period, it is further specifically used for: If the change in center of gravity altitude and the change in heart rate are both greater than 0 or both less than 0, and the absolute value of the change in center of gravity altitude is greater than a preset first altitude change threshold, and the absolute value of the change in heart rate is greater than a preset first heart rate change threshold, then it is determined that the user has changed posture; or, If both the change in center of gravity altitude and the change in heart rate are greater than 0, and at least one of the following conditions is met, it is determined that the user has not changed posture: the absolute value of the change in center of gravity altitude is less than or equal to the first altitude change threshold; or, the absolute value of the change in heart rate is less than or equal to the first heart rate change threshold; or... If both the change in center of gravity altitude and the change in heart rate are less than 0, and at least one of the following conditions is met, it is determined that the user has not changed posture: the absolute value of the change in center of gravity altitude is less than or equal to the first altitude change threshold; or, the absolute value of the change in heart rate is less than or equal to the first heart rate change threshold. If the change in the center of gravity altitude and the change in the heart rate are not both greater than 0 or not both less than 0, it is determined that the user has not changed posture.

3. The electronic device as described in claim 1 or 2, characterized in that, The altitude sensing module includes a barometer, which is used to collect the air pressure value at the location of the wrist, and the wrist altitude is obtained based on the air pressure value.

4. The electronic device as described in claim 1 or 2, characterized in that, The motion sensing module includes an accelerometer, which is used to collect the acceleration in the left-right direction, the acceleration in the forward-backward direction, and the acceleration in the up-down direction of the electronic device. The arm angle is obtained based on the acceleration in the left-right direction, the acceleration in the forward-backward direction, and the acceleration in the up-down direction.

5. The electronic device as described in claim 1 or 2, characterized in that, When the electronic device is worn on the user's left wrist, the center of gravity altitude is the first center of gravity altitude. The satisfy: , This indicates the relative height of the user's left wrist to the user's center of gravity. satisfy: , This indicates the length of the user's left forearm; When the electronic device is worn on the user's right wrist, the center of gravity altitude is the second center of gravity altitude. The satisfy: , This indicates the relative height of the user's right wrist to the user's center of gravity. satisfy: , This indicates the length of the user's right forearm; in, This indicates the wrist elevation. This indicates the angle of the arm.

6. The electronic device as claimed in claim 5, characterized in that, The processor is also used to determine whether the electronic device is worn on the user's left or right wrist.

7. The electronic device as claimed in claim 6, characterized in that, When determining whether the electronic device is worn on the user's left or right wrist, the processor specifically performs the following functions: Based on N elevations of the first centroid obtained within a preset time period Determine the first noise amplitude N≥3, where N is an integer; Based on the N second centroid elevations obtained within the preset time period Determine the second noise amplitude ; exist If the value exceeds a preset threshold, it is determined that the electronic device is worn on the user's left wrist; exist If the value exceeds the preset threshold, it is determined that the electronic device is worn on the user's right wrist; Wherein, the first noise amplitude satisfy: , Represents the altitude of the N first centroids The nth first centroid elevation , Represents the altitude of the N first centroids The (n-1)th elevation of the first centroid , Represents the altitude of the N first centroids The Nth first centroid elevation , Represents the altitude of the N first centroids The first centroid elevation in the first centroid , 2≤n≤N, where n is an integer; Second noise amplitude satisfy: , Represents the altitude of the N second centroids The nth second centroid elevation , Represents the altitude of the N second centroids The (n-1)th elevation of the second centroid , Represents the altitude of the N second centroids The Nth second centroid elevation , Represents the altitude of the N second centroids The first and second centroid elevations in .

8. The electronic device as described in any one of claims 1-2 and 6-7, characterized in that, The posture includes sitting and standing postures. The processor is also used to determine the posture of the user after the posture has been changed, based on the change in the center of gravity altitude and the change in the heart rate, when it is determined that the user has changed posture.

9. The electronic device as claimed in claim 8, characterized in that, When the processor determines the user's posture after the posture change based on the change in center of gravity altitude and the change in heart rate, it specifically performs the following functions: If both the change in the center of gravity altitude and the change in the heart rate are greater than 0, the user's posture after switching postures is determined to be a standing posture. If the change in the center of gravity altitude and the change in the heart rate are both less than 0, the user's posture after switching postures is determined to be a sitting posture.

10. The electronic device as described in any one of claims 1-2 and 6-7, characterized in that, The postures include sitting, standing, and lying down. The processor is also used to determine the posture of the user after the posture change based on the change in center of gravity altitude, the change in heart rate, the reserve heart rate, and the posture before the change, when it is determined that the user has changed posture. The reserve heart rate is the difference between the user's current heart rate and the user's resting heart rate.

11. The electronic device as claimed in claim 8, characterized in that, The processor is also used to count at least one of the following durations: the duration the user remains in a lying position, the duration the user remains in a sitting position, or the duration the user remains in a standing position.

12. The electronic device as claimed in claim 11, characterized in that, The processor is specifically used to count the duration of the user's sitting posture and the duration of the user's standing posture; the electronic device also includes an audio output module, which is controlled by the processor. When the duration of the user's standing posture exceeds a preset first time threshold, the audio output module emits a first prompt audio to remind the user that the user has been standing for a long time; and / or, when the duration of the user's sitting posture exceeds a preset second time threshold, the audio output module emits a second prompt audio to remind the user that the user has been sitting for a long time.

13. The electronic device as claimed in claim 11 or 12, characterized in that, The electronic device also includes a display module, which is controlled by the processor and displays the duration counted by the processor.

14. The electronic device as described in any one of claims 1-2, 6-7, 9, and 11-12, characterized in that, The heart rate sensing module includes a photoplethysmography sensor, which is used to collect the heart rate.

15. A method for recognizing human posture switching, characterized in that, Applied to electronic devices, the method includes: The system acquires the user's wrist elevation, arm angle, and heart rate. The wrist elevation is the elevation of the user's wrist when wearing the electronic device, and the arm angle is the angle between the forearm connected to the wrist and the horizontal plane where the user's center of gravity is located. Based on the wrist elevation and the arm angle, the user's center of gravity elevation is determined, which is the elevation of the user's torso center of gravity. Based on the changes in the center of gravity altitude and the changes in the heart rate within a preset time period, it is determined whether the user has changed posture. Specifically, if the change in the center of gravity altitude is greater than a preset first altitude change threshold, and the change in heart rate is greater than a preset first heart rate change threshold, then it is determined that the user has changed posture; or... If the change in the center of gravity altitude is less than a preset second altitude change threshold, and the change in heart rate is less than a preset second heart rate change threshold, then it is determined that the user has changed posture; or, If the change in the center of gravity altitude is greater than or equal to the second altitude change threshold and less than or equal to the first altitude change threshold, and / or the change in heart rate is greater than or equal to the second heart rate change threshold and less than or equal to the first heart rate change threshold, it is determined that the user has not changed posture.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed, it causes the computer to perform the method as described in claim 15.

17. A computer program product, characterized in that, Includes a computer program that, when run, causes the computer to perform the method as described in claim 15.

Citation Information

Patent Citations

  • Method and device for monitoring health conditions by intelligent waistband

    CN106491135A

  • User status monitoring method, user status monitoring device and wearable device

    CN109907747A

  • Blood oxygen data processing method, related device and medium

    CN114847942A

  • Simple and easy height above sea level tester

    CN204902824U