Energy determination method and device, electronic device, and computer-readable storage medium
By acquiring and analyzing the user's physiological parameters in electronic devices and combining them with historical data, it solves the problem that existing devices cannot measure the user's energy, realizes energy monitoring and consumption tracking, and provides accuracy and real-time performance in energy assessment.
Patent Information
- Application Number
- CN202210420705.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-04-20
AI Technical Summary
Existing electronic devices cannot effectively measure the user's energy status, and cannot track and evaluate the user's energy consumption and recovery in real time.
By obtaining the user's physiological parameters, such as heart rate, blood pressure and other data, combined with historical energy data, the user's energy consumption from historical time points to the current time is calculated, and the user's remaining energy is determined based on these data, and energy determination methods and devices are provided for Implementing energy monitoring in electronic devices.
It achieves accurate monitoring and evaluation of the user's energy, fills the gap where existing equipment cannot measure the user's remaining energy, and provides real-time tracking capabilities for the user's energy consumption and recovery.
Smart Images

Figure CN115120192B
Abstract
Description
Technical Field
[0001] The present application relates to the field of health care technology, and in particular to a method and device for determining energy, an electronic device, and a computer-readable storage medium. Background Art
[0002] As people's living standards gradually improve, they pay more and more attention to whether their physical indicators are normal. As a result, various electronic devices have also developed the function of detecting various physiological parameters.
[0003] However, in practice, it is found that today's electronic devices can only detect some common physiological parameters such as heart rate and blood pressure, but there is no effective means to measure the user's energy status. Summary of the invention
[0004] The embodiments of the present application disclose a method and device for determining energy, an electronic device, and a computer-readable storage medium, which can determine the current remaining energy of a user.
[0005] A first aspect of an embodiment of the present application discloses a method for determining energy, including:
[0006] Obtain the first remaining energy of the user before the first historical time point;
[0007] Acquire the physiological parameters corresponding to the user currently collected by the physiological parameter sensor, and determine the first consumed energy consumed by the user from the first historical time point to the present according to the physiological parameters;
[0008] A second remaining energy currently remaining of the user is determined according to the first remaining energy and the first consumed energy.
[0009] As an optional implementation manner, in the first aspect of the embodiment of the present application, the obtaining of the first remaining energy of the user before the first historical time point includes:
[0010] Acquire a third remaining energy of the user before a second historical time point, and acquire a first restored energy of the user restored between the second historical time point and a first historical time point, wherein the second historical time point is earlier than the first historical time point;
[0011] The sum of the third remaining energy and the first restored energy is calculated, and the sum is used as the first remaining energy of the user before the first historical time point.
[0012] As an optional implementation manner, in the first aspect of the embodiment of the present application, the obtaining of the third remaining energy of the user before the second historical time point includes:
[0013] If the historical energy data can be queried, determining the third remaining energy of the user before the second historical time point according to the historical energy data;
[0014] If no historical energy data is found, the first preset energy is used as the third remaining energy of the user before the second historical time point.
[0015] As an optional implementation manner, in the first aspect of the embodiment of the present application, the obtaining of the first restored energy of the user restored from the second historical time point to the first historical time point includes:
[0016] If the sleep quality information can be queried, determining the first restored energy of the user during the period from the second historical time point to the first historical time point according to the sleep quality information, wherein the sleep quality information is determined according to the sleep duration of the user during the period from the second historical time point to the first historical time point;
[0017] If the sleep quality information cannot be found, the second preset energy is used as the first recovery energy recovered by the user from the second historical time point to the first historical time point.
[0018] As an optional implementation, in the first aspect of the embodiment of the present application, determining the first consumed energy consumed by the user from the historical first time point to the current time according to the physiological parameter includes:
[0019] If the user is currently in motion, the motion consumption of the user during motion is determined according to the physiological parameters, and the motion consumption is used as the first energy consumption consumed by the user from the first historical time point to the present.
[0020] As an optional implementation, in the first aspect of the embodiment of the present application, the physiological parameter includes a heart rate, and determining the exercise consumption of the user during exercise according to the physiological parameter includes:
[0021] Determine a first average heart rate of the user in the current first time period according to multiple heart rates acquired in the current first time period, and determine a first maximum oxygen uptake according to the first average heart rate;
[0022] Determine a second average heart rate of the user in the next first time period according to the multiple heart rates obtained in the next first time period, and determine a second maximum oxygen uptake according to the second average heart rate;
[0023] A change in maximum oxygen uptake is determined according to the first maximum oxygen uptake and the second maximum oxygen uptake, and exercise consumption consumed by the user during exercise is determined according to the change in maximum oxygen uptake and the first maximum oxygen uptake.
[0024] As an optional implementation, in the first aspect of the embodiment of the present application, determining the first consumed energy consumed by the user from the historical first time point to the current time according to the physiological parameter includes:
[0025] If the user is not currently in motion, the user's mental consumption is determined according to the physiological parameters, and the mental consumption is used as the first consumed energy consumed by the user from the first historical time point to the present.
[0026] As an optional implementation, in the first aspect of the embodiment of the present application, the physiological parameter includes a heartbeat interval time series, and the heartbeat interval time series is used to represent the interval length between each two adjacent heartbeats in a plurality of heartbeats; and determining the mental consumption of the user according to the physiological parameter includes:
[0027] Determine a power spectrum corresponding to the heartbeat interval time series, wherein the power spectrum is used to represent the difference between each two adjacent heartbeats in a plurality of heartbeats;
[0028] Determine a first energy value corresponding to a high-frequency part and a second energy value corresponding to a low-frequency part corresponding to the power spectrum, wherein the high-frequency part is a part of the power spectrum with a frequency greater than a first frequency threshold, and the low-frequency part is a part of the power spectrum with a frequency less than a second frequency threshold;
[0029] The user's mental expenditure is determined according to the first energy value and the second energy value.
[0030] A second aspect of an embodiment of the present application discloses a device for determining energy, including:
[0031] A first acquisition unit, used to acquire a first remaining energy of the user before a first historical time point;
[0032] A second acquisition unit is used to acquire the physiological parameters corresponding to the user currently collected by the physiological parameter sensor, and determine the first consumed energy consumed by the user from the first historical time point to the present according to the physiological parameters;
[0033] A determining unit is used to determine a second remaining energy currently remaining of the user according to the first remaining energy and the first consumed energy.
[0034] A third aspect of the present application discloses an electronic device, including:
[0035] A memory storing executable program code;
[0036] a processor coupled to the memory;
[0037] The processor calls the executable program code stored in the memory to execute the energy determination method disclosed in the first aspect of the embodiment of the present application.
[0038] The fourth aspect of the embodiments of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the energy determination method disclosed in the first aspect of the embodiments of the present application.
[0039] The fifth aspect of the embodiments of the present application discloses a computer program product. When the computer program product runs on a computer, the computer executes part or all of the steps of any one of the methods of the first aspect of the embodiments of the present application.
[0040] A sixth aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes part or all of the steps of any one of the methods of the first aspect of the embodiment of the present application.
[0041] Compared with the related art, the embodiments of the present application have the following beneficial effects:
[0042] In the embodiment of the present application, the first remaining energy of the user before the first historical time point can be obtained, and the corresponding physiological parameters of the user collected by the physiological parameter sensor can be obtained, and then the first consumed energy consumed by the user from the first historical time point to the present can be determined based on the collected physiological parameters, and then the second remaining energy currently remaining by the user can be determined based on the first remaining energy and the first consumed energy. Among them, the embodiment of the present application can determine the energy consumed by the user based on the physiological parameters collected by the physiological sensor, and further accurately determine the current remaining energy of the user in combination with the historical energy data of the user, making up for the gap that the current electronic device cannot measure the remaining energy of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 It is a schematic diagram of an application scenario disclosed in an embodiment of the present application;
[0045] Figure 2 It is a flowchart of a method for determining energy disclosed in an embodiment of the present application;
[0046] Figure 3It is a flowchart of another energy determination method disclosed in an embodiment of the present application;
[0047] Figure 4 It is a flowchart of another method for determining energy disclosed in an embodiment of the present application;
[0048] Figure 5 is a structural schematic diagram of a device for determining energy disclosed in an embodiment of the present application;
[0049] Figure 6 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0051] It should be noted that the terms "first", "second", "third" and "fourth" in the specification and claims of the present application are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present application and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0052] The embodiments of the present application disclose a method and device for determining energy, an electronic device, and a computer-readable storage medium, which can determine the current remaining energy of a user.
[0053] The technical solution of the present application will be described in detail below in conjunction with specific embodiments.
[0054] In order to more clearly illustrate the energy determination method and device, electronic device, and computer-readable storage medium disclosed in the embodiments of the present application, an application scenario applicable to the method is first introduced. Optionally, the method can be applied to various electronic devices, including but not limited to wearable devices such as smart watches and smart bracelets, or portable electronic devices such as mobile phones and tablet computers, which are not limited here. The embodiments of the present application are introduced with wearable devices as the execution subject, which should not constitute a limitation on the embodiments of the present application.
[0055] See also Figure 1 , Figure 1: is a schematic diagram of an application scenario disclosed in an embodiment of the present application. Among them, the wearable device 110 may include a physiological parameter sensor (including but not limited to a heart rate sensor, a blood pressure sensor, etc.); when the wearable device 110 is worn on the user 120, the physiological parameter sensor can collect the physiological parameters of the user 120, and then the wearable device 110 can determine the first consumed energy consumed by the user 120 from the first historical time point to the current time according to the physiological parameters collected by the physiological parameter sensor; further, the wearable device 110 can obtain the first remaining energy of the user 120 before the first historical time point, and then determine the second remaining energy currently remaining of the user 120 according to the first remaining energy and the first consumed energy.
[0056] Based on this, the energy determination method disclosed in the embodiment of the present application is introduced below.
[0057] See also Figure 2 , Figure 2 : is a flowchart of a method for determining energy disclosed in an embodiment of the present application. The method can be applied to wearable devices such as smart watches, smart bracelets, or other electronic devices, which are not limited here. The method may include the following steps:
[0058] 202. Obtain a first remaining energy of the user before a first historical time point.
[0059] In the embodiment of the present application, the historical first time point may be a time point before the second time length (e.g., 1 hour, 3 hours, 5 hours, etc.) of the current time point. For example, if the current time point is 12:00 and the second time length is 5 hours, the historical first time point may be 7:00.
[0060] Optionally, the wearable device can obtain the first remaining energy of the user before the first historical time point from the local storage medium of the wearable device; the wearable device can also obtain the first remaining energy of the user before the first historical time point from a cloud server; the wearable device can also obtain the first remaining energy of the user before the first historical time point from other electronic devices, which is not limited here.
[0061] It is understandable that the user's remaining energy may be detected multiple times before the first historical time point, so there may be multiple historical remaining energy describing the user's remaining energy before the first historical time point. Optionally, the first remaining energy may be the historical remaining energy with the latest detection time point among the multiple historical remaining energy describing the user's remaining energy.
[0062] For example, before the first historical time point, there are three historical remaining energy describing the user's remaining energy, namely the first historical remaining energy, the second historical remaining energy and the third historical remaining energy, and the detection time point of the third historical remaining energy is the latest. Then the wearable device can use the third historical remaining energy as the first remaining energy of the user before the first historical time point.
[0063] 204 . Acquire the physiological parameters corresponding to the user currently collected by the physiological parameter sensor, and determine the first consumed energy consumed by the user from the first historical time point to the present according to the physiological parameters.
[0064] In the embodiment of the present application, the physiological parameter sensor may include but is not limited to a heart rate sensor (for example: a PPG (photoplethysmography) sensor, a MW-PPG (multi-wavelength photoplethysmography) sensor), a blood pressure sensor, etc.; the collected physiological parameters corresponding to the user may include but are not limited to a heart rate, a PPG signal, a heart beat interval time series (RR Interals), etc.
[0065] In one embodiment, the physiological parameter sensor can be set on the wearable device, and then when the wearable device is worn on the user, the physiological parameter sensor can collect the physiological parameters corresponding to the user; in another embodiment, the physiological parameter sensor can also be independently set on the outside of the wearable device, and then when the physiological parameter sensor collects the physiological parameters corresponding to the user, the collected physiological parameters can be sent to the wearable device, which is not limited here.
[0066] Furthermore, the wearable device can determine the first consumed energy consumed by the user from the first historical time point to the present according to the energy algorithm model and the physiological parameters.
[0067] 206. Determine second remaining energy currently remaining of the user according to the first remaining energy and the first consumed energy.
[0068] In an embodiment of the present application, the wearable device can calculate the first remaining energy of the user before the first historical time point, and the second sum of the first consumed energy consumed by the user from the first historical time point to the current time, and use the second sum as the second remaining energy currently remaining by the user.
[0069] By implementing the methods disclosed in the above embodiments, it is possible to obtain the first remaining energy of the user before the first historical time point, and obtain the corresponding physiological parameters of the user collected by the physiological parameter sensor, and then determine the first consumed energy of the user from the first historical time point to the present according to the collected physiological parameters, and then determine the second remaining energy of the user currently according to the first remaining energy and the first consumed energy. Among them, the embodiments of the present application can determine the energy consumed by the user according to the physiological parameters collected by the physiological sensor, and further accurately determine the current remaining energy of the user in combination with the historical energy data of the user, making up for the gap that the current electronic device cannot measure the remaining energy of the user.
[0070] See also Figure 3 , Figure 3 : is a flowchart of another method for determining energy disclosed in an embodiment of the present application. The method can be applied to wearable devices such as smart watches, smart bracelets, or other electronic devices, which are not limited here. The method may include the following steps:
[0071] 302. Obtain a third remaining energy of the user before a second historical time point, and obtain a first restored energy of the user restored from the second historical time point to a first historical time point, wherein the second historical time point is earlier than the first historical time point.
[0072] In the embodiment of the present application, the second historical time point may be a time point before the third time length (e.g., 6 hours, 7 hours, or 8 hours, etc.) of the first historical time point. For example, if the first historical time point is 14:00 and the third time length is 6 hours, the second historical time point may be 8:00.
[0073] In one embodiment, the second historical time point may be the time point at which the user last took a break, or a time point before the time point at which the user last took a break. For example, if the time point at which the user last took a break was 22:00, the second historical time point may be 22:00, 21:00 or 20:00, which is not limited here. Optionally, the first historical time point may be the time point at which the user last took a break.
[0074] Optionally, the wearable device can determine the user's remaining energy before the second historical time point, and store the user's remaining energy determined before the second historical time point in the historical energy data; further, if the wearable device can query the historical energy data, the wearable device can directly determine the user's third remaining energy before the second historical time point based on the historical energy data.
[0075] Optionally, the wearable device can determine the historical energy data before the second historical time point according to the energy determination method disclosed in the embodiment of the present application; optionally, the wearable device can also obtain historical energy data from other devices (including other user terminals or cloud servers), which is not limited here.
[0076] In another embodiment, if the wearable device does not query the historical energy data, the wearable device may use the first preset energy as the third remaining energy of the user before the second historical time point.
[0077] Optionally, the first preset energy may be set by a developer based on a large amount of development experience, or may be set by the wearable device based on historical energy information corresponding to the user. Typical values may include 10%, 15%, etc., which are not limited here.
[0078] Optionally, the first preset energy may be determined by one or more historical energy information, each of which is used to describe the remaining energy of the user before the second time point of each day in history. Optionally, the first preset energy may be an average value of one or more historical energy information; or a median of one or more historical energy information; or a mode of one or more historical energy information, which is not limited here.
[0079] For example, if the second time point is 22:00, the wearable device can obtain the user's remaining energy before 22:00 on each day in history; for example, the remaining energy at 22:00 yesterday was 10%, and the remaining energy at 22:00 the day before yesterday was 20%, then the first preset energy can be (10%+20%) / 2=15%.
[0080] By implementing the above method, the wearable device can query the historical energy data used to describe the user's remaining energy before the second historical time point, and directly determine the third remaining energy of the user before the second historical time point based on the historical energy data; in addition, if the historical energy data cannot be queried, the first preset energy can be used as the third remaining energy of the user before the second historical time point, thereby improving the flexibility of the energy determination method and ensuring that the energy determination method can be smoothly implemented.
[0081] In one embodiment, the first restored energy of the user restored from the historical second time point to the historical first time point may be energy restored by the user through sleep.
[0082] Optionally, the wearable device can score the user's sleep condition through a preset sleep monitoring algorithm to obtain sleep quality information while the user is restoring energy through sleep. Optionally, the sleep quality information can be determined based on the user's sleep duration from the second historical time point to the first historical time point.
[0083] Optionally, when the wearable device is able to query the sleep quality information, it can determine the first recovery energy of the user recovered from the historical second time point to the historical first time point according to the sleep quality information.
[0084] Optionally, the first restored energy of the user restored from the second historical time point to the first historical time point may be positively correlated with the sleep quality information (eg, positively proportional). That is, the higher the score corresponding to the sleep quality information, the higher the first restored energy.
[0085] In another embodiment, when the wearable device is unable to query the sleep quality information, the second preset energy may be used as the first recovery energy recovered by the user from the second historical time point to the first historical time point.
[0086] Among them, the second preset energy can be set by the developer based on a lot of development experience, or it can be set by the wearable device according to the user's corresponding historical sleep score. Typical values may include 80%, 85%, etc., which are not limited here.
[0087] Optionally, the wearable device can determine the second preset energy based on multiple historical sleep scores. The multiple historical sleep scores are obtained by the wearable device based on the sleep monitoring algorithm and the user's historical sleep duration. Optionally, the wearable device can use the recovery energy corresponding to the average of the multiple historical sleep scores as the second preset energy; or use the recovery energy corresponding to the median of the multiple historical sleep scores as the second preset energy; or use the recovery energy corresponding to the mode of the multiple historical sleep scores as the second preset energy, which is not limited here.
[0088] By implementing the above method, when the wearable device queries the sleep quality information used to describe the energy recovery status of the user, it can directly determine the first recovery energy recovered by the user from the second historical time point to the first historical time point based on the sleep quality information; in addition, if the sleep quality information cannot be queried, the wearable device can use the second preset energy as the first recovery energy recovered by the user from the second historical time point to the first historical time point, thereby improving the flexibility of the energy determination method and ensuring that the energy determination method can be smoothly implemented.
[0089] 304. Calculate a first sum of the third remaining energy and the first restored energy, and use the first sum as the first remaining energy of the user before the first historical time point.
[0090] 306 . Acquire the physiological parameters corresponding to the user currently collected by the physiological parameter sensor, and determine the first consumed energy consumed by the user from the first historical time point to the present according to the physiological parameters.
[0091] 308. Determine second remaining energy currently remaining of the user according to the first remaining energy and the first consumed energy.
[0092] By implementing the methods disclosed in the above embodiments, the energy consumed by the user can be determined according to the physiological parameters collected by the physiological sensor, and the current remaining energy of the user can be accurately determined in combination with the historical energy data of the user, which makes up for the blank that the current electronic device cannot measure the remaining energy of the user; and, when the historical energy data used to describe the remaining energy of the user before the second historical time point is queried, the third remaining energy of the user before the second historical time point can be directly determined according to the historical energy data; in addition, if the historical energy data cannot be queried, the first preset energy can be used as the third remaining energy of the user before the second historical time point, thereby improving the flexibility of the energy determination method and ensuring that the energy determination method can be smoothly implemented; and, when the sleep quality information used to describe the energy recovery of the user is queried, the first restored energy of the user recovered from the second historical time point to the first historical time point can be directly determined according to the sleep quality information; in addition, if the sleep quality information cannot be queried, the wearable device can use the second preset energy as the first restored energy of the user recovered from the second historical time point to the first historical time point, thereby improving the flexibility of the energy determination method and ensuring that the energy determination method can be smoothly implemented.
[0093] See also Figure 4 , Figure 4 : is a flowchart of another method for determining energy disclosed in an embodiment of the present application. The method can be applied to wearable devices such as smart watches, smart bracelets, or other electronic devices, which are not limited here. The method may include the following steps:
[0094] 402. Obtain the first remaining energy of the user before the first historical time point.
[0095] 404. Obtain the physiological parameters corresponding to the user currently collected by the physiological parameter sensor.
[0096] 406. If it is determined that the user is currently in a state of exercise, the exercise consumption generated by the user during this exercise is determined according to the physiological parameters, and the exercise consumption is used as the first energy consumption consumed by the user from the first historical time point to the present.
[0097] In the embodiment of the present application, when the wearable device determines that the user is currently in a state of motion, it determines that the first energy consumption of the user from the first historical time point to the current time point may be consumed due to motion. To this end, the wearable device can determine the motion consumption of the user during motion according to the corresponding physiological parameters of the user, and use the motion consumption as the first energy consumption.
[0098] When the above method is implemented, if the user is currently in a state of exercise, it means that the energy consumed by the user from the first historical time point to the present is mainly due to exercise. For this, the wearable device can determine the exercise consumption of the user during exercise based on the collected heart rate, so that the subsequently determined first consumption of energy consumed by the user from the first historical time point to the present is more accurate.
[0099] In one embodiment, the physiological parameter sensor may include a heart rate sensor, and the physiological parameters corresponding to the user currently collected by the physiological parameter sensor may include heart rate; optionally, the wearable device may determine a first average heart rate of the user within the previous first time period based on multiple heart rates acquired within the previous first time period, and determine a first maximum oxygen uptake based on the first average heart rate.
[0100] Among them, the first duration can be set by the developer based on a lot of development experience or development requirements, or can be set by the wearable device according to actual measurement requirements. Typical values may include 1 minute, 2 minutes, etc., which are not limited here.
[0101] Optionally, the wearable device may determine the first maximum oxygen uptake according to the first average heart rate in the previous first period of time and the following formula 1, that is:
[0102] Formula 1:
[0103]
[0104] in, Indicates the first maximum oxygen uptake, HR1 Average Indicates the first average heart rate.
[0105] Furthermore, the wearable device can determine a second average heart rate of the user during the first time period based on multiple heart rates obtained during the first time period, and determine a second maximum oxygen uptake based on the second average heart rate.
[0106] Optionally, the wearable device may determine the second maximum oxygen uptake according to the second average heart rate within the first time period and the following formula 2, that is:
[0107] Formula 2:
[0108]
[0109] in, Indicates the second maximum oxygen uptake, HR2 Average Indicates the second average heart rate.
[0110] Furthermore, the wearable device can determine a change in maximum oxygen uptake based on the first maximum oxygen uptake and the second maximum oxygen uptake, and determine the exercise consumption consumed by the user during exercise based on the change in maximum oxygen uptake and the first maximum oxygen uptake.
[0111] Optionally, the wearable device can calculate the quotient of the change in maximum oxygen uptake and the first maximum oxygen uptake, and use the quotient of the change in maximum oxygen uptake and the first maximum oxygen uptake as the exercise consumption generated by the user during exercise.
[0112] By implementing the above method, the maximum oxygen uptake can represent the user's aerobic exercise situation. The wearable device can accurately determine the energy consumed by the user during exercise through the ratio of the change in the maximum oxygen uptake and the first maximum oxygen uptake. The data acquisition and calculation processes of this method are relatively simple, thereby reducing the difficulty of implementing the energy determination method.
[0113] In one embodiment, the wearable device can determine whether the user is currently in motion; further, if it is determined that the user is currently in motion, the wearable device can determine the exercise consumption of the user during exercise based on physiological parameters, and use the exercise consumption as the first energy consumption consumed by the user from the first historical time point to the present.
[0114] In another embodiment, when the wearable device determines that the user is not currently in motion, it means that the energy consumed by the user from the first historical time point to the current time is most likely mental consumption. Optionally, the wearable device can determine the mental consumption of the user based on physiological parameters, and use the mental consumption of the user as the first consumed energy consumed by the user from the first historical time point to the current time.
[0115] Optionally, the physiological parameter sensor may include a PPG sensor, and the physiological parameter may include a heartbeat interval time series collected by the PPG sensor, and the heartbeat interval time series is used to represent the interval duration between each adjacent two heartbeats in a plurality of heartbeats; further optionally, the wearable device may determine a power spectrum corresponding to the heartbeat interval time series, and the power spectrum is used to represent the difference between each adjacent two heartbeats in a plurality of heartbeats.
[0116] Optionally, the wearable device may analyze the heartbeat interval time series according to a preset analysis method to obtain a power spectrum corresponding to the heartbeat interval time series. The preset analysis method may include but is not limited to the Lomb's Estimator Periodogram analysis method.
[0117] Further, the wearable device can determine a first value corresponding to a high frequency portion (i.e., HF) of the power spectrum and a second value corresponding to a low frequency portion (i.e., LF), wherein the high frequency portion is a portion of the power spectrum having a frequency greater than a first frequency threshold, and the low frequency portion is a portion of the power spectrum having a frequency less than a second frequency threshold;
[0118] Furthermore, the wearable device can determine the user's mental exertion based on the first value and the second value.
[0119] Optionally, the wearable device can input the first value and the second value into a Sigmoid model to obtain the user's mental consumption.
[0120] Optionally, the wearable device may determine the user's mental consumption according to the first value, the second value and the following formula 3, that is:
[0121] Formula 3:
[0122]
[0123] Among them, Stress consume Indicates the user's mental consumption, HF represents the first value, and LF represents the second value.
[0124] It should be noted that LF represents the combined effect of the sympathetic nerve and the vagus nerve, with the sympathetic nerve being the main one, and HF represents the activity of the vagus nerve. In this regard, LF / HF is used to represent the balance between the sympathetic and vagus nerves. In this regard, LF / HF can be used as a parameter to evaluate the user's mental exhaustion level.
[0125] By implementing the above method, the wearable device can evaluate the user's mental exertion through the heartbeat interval time series collected by the PPG sensor. The data acquisition and calculation processes of this method are relatively simple, thereby reducing the difficulty of implementing the energy determination method.
[0126] 408. Determine second remaining energy currently remaining of the user according to the first remaining energy and the first consumed energy.
[0127] As an optional implementation, after determining the second remaining energy currently remaining of the user, the wearable device may send the second remaining energy to a management device, which is a device that establishes a communication connection with the wearable device.
[0128] Optionally, when the wearable device determines that the second remaining energy is less than the energy threshold, it can send an alarm message to the management device, where the alarm message at least includes the second remaining energy. The alarm message is used to remind the management user corresponding to the management device to remind the user corresponding to the wearable device to take a rest.
[0129] In another embodiment, after determining the user's current second remaining energy, the wearable device can obtain the current real-time location of the wearable device, and based on the real-time location corresponding to the real scene; if the energy consumption value corresponding to the real scene is greater than or equal to the second remaining energy, an alarm message is sent to the management device, so that the management user corresponding to the management device reminds the user corresponding to the wearable device to rest.
[0130] For example, the real-time location of the wearable device corresponds to a table tennis hall, the energy consumption value corresponding to the table tennis hall is 30%, and the user's current second remaining energy is 20%, then the wearable device can send an alarm message to the management device.
[0131] By implementing the above method, when it is determined that the user's remaining energy is low, an alarm message can be sent to the management device, so that the management user corresponding to the management device reminds the user corresponding to the wearable device to rest, thereby avoiding overwork of the wearable device user.
[0132] By implementing the methods disclosed in the above embodiments, it is possible to determine the energy consumed by the user based on the physiological parameters collected by the physiological sensors, and further accurately determine the current remaining energy of the user in combination with the historical energy data of the user, thus filling the gap that current electronic devices cannot measure the remaining energy of the user; and, the energy consumed by the user during exercise can be accurately determined by the ratio of the change in maximum oxygen uptake and the first maximum oxygen uptake. The data acquisition and calculation processes of this method are relatively simple, thereby reducing the difficulty of implementing the energy determination method; and, the mental consumption of the user can be evaluated through the heartbeat interval time series collected by the PPG sensor. The data acquisition and calculation processes of this method are relatively simple, thereby reducing the difficulty of implementing the energy determination method.
[0133] See also Figure 5 , Figure 5 5 is a schematic diagram of a structure of a device for determining energy disclosed in an embodiment of the present application. The device can be applied to wearable devices such as smart watches and smart bracelets, or other electronic devices, which are not limited here. The device may include a first acquisition unit 502, a second acquisition unit 504 and a determination unit 506, wherein:
[0134] A first acquisition unit 502 is used to acquire a first remaining energy of the user before a first historical time point;
[0135] The second acquisition unit 504 is used to acquire the physiological parameters corresponding to the user currently collected by the physiological parameter sensor, and determine the first consumed energy consumed by the user from the first historical time point to the current time according to the physiological parameters;
[0136] The determination unit 506 is configured to determine the second remaining energy currently remaining of the user according to the first remaining energy and the first consumed energy.
[0137] By implementing the above device, it is possible to obtain the first remaining energy of the user before the first historical time point, and obtain the corresponding physiological parameters of the user collected by the physiological parameter sensor, and then determine the first consumed energy of the user from the first historical time point to the present according to the collected physiological parameters, and then determine the second remaining energy of the user currently according to the first remaining energy and the first consumed energy. Among them, the embodiment of the present application can determine the energy consumed by the user according to the physiological parameters collected by the physiological sensor, and further accurately determine the current remaining energy of the user in combination with the historical energy data of the user, making up for the gap that the current electronic device cannot measure the remaining energy of the user.
[0138] As an optional implementation, the first acquisition unit 502 is also used to obtain the third remaining energy of the user before the second historical time point, and to obtain the first restored energy of the user from the second historical time point to the first historical time point, where the second historical time point is earlier than the first historical time point; and, to calculate the first sum of the third remaining energy and the first restored energy, and to use the first sum as the first remaining energy of the user before the first historical time point.
[0139] By implementing the above device, the energy consumed by the user can be determined based on the physiological parameters collected by the physiological sensor, and the user's current remaining energy can be accurately determined in combination with the user's historical energy data, thus filling the gap that current electronic devices cannot measure the user's remaining energy.
[0140] As an optional implementation, the first acquisition unit 502 is also used to determine the third remaining energy of the user before the second historical time point based on the historical energy data when the historical energy data can be queried, and the historical energy data is used to describe the remaining energy of the user before the second historical time point; and if the historical energy data is not queried, then the first preset energy is used as the third remaining energy of the user before the second historical time point.
[0141] By implementing the above-mentioned device, it is possible to query the historical energy data used to describe the remaining energy of the user before the second historical time point, and directly determine the third remaining energy of the user before the second historical time point based on the historical energy data; in addition, if the historical energy data cannot be queried, the first preset energy can be used as the third remaining energy of the user before the second historical time point, thereby improving the flexibility of the energy determination method and ensuring that the energy determination method can be smoothly implemented.
[0142] As an optional implementation, the first acquisition unit 502 is also used to determine, when the sleep quality information can be queried, the first recovery energy recovered by the user from the second historical time point to the first historical time point based on the sleep quality information, and the sleep quality information is determined based on the sleep duration of the user from the second historical time point to the first historical time point; and, if the sleep quality information cannot be queried, using the second preset energy as the first recovery energy recovered by the user from the second historical time point to the first historical time point.
[0143] By implementing the above-mentioned device, when the sleep quality information used to describe the energy recovery status of the user is queried, the first recovery energy recovered by the user between the second historical time point and the first historical time point can be determined directly according to the sleep quality information; in addition, if the sleep quality information cannot be queried, the wearable device can use the second preset energy as the first recovery energy recovered by the user between the second historical time point and the first historical time point, thereby improving the flexibility of the energy determination method and ensuring that the energy determination method can be smoothly implemented.
[0144] As an optional implementation, the second acquisition unit 504 is also used to determine the exercise consumption of the user during exercise based on physiological parameters when it is determined that the user is currently in a motion state, and use the exercise consumption as the first energy consumption consumed by the user from the first historical time point to the present.
[0145] By implementing the above device, if the user is currently in a state of exercise, it means that the energy consumed by the user from the first historical time point to the present is mainly due to exercise. For this, the wearable device can determine the exercise consumption of the user during exercise based on the collected heart rate, so that the subsequently determined first consumption of energy consumed by the user from the first historical time point to the present is more accurate.
[0146] As an optional embodiment, the physiological parameters include heart rate, and the second acquisition unit 504 is further used to determine the first average heart rate of the user in the current first time period based on multiple heart rates obtained in the current first time period, and determine the first maximum oxygen uptake based on the first average heart rate; and, determine the second average heart rate of the user in the next first time period based on multiple heart rates obtained in the next first time period, and determine the second maximum oxygen uptake based on the second average heart rate; and, determine the change in maximum oxygen uptake based on the first maximum oxygen uptake and the second maximum oxygen uptake, and determine the exercise consumption consumed by the user during exercise based on the change in maximum oxygen uptake and the first maximum oxygen uptake.
[0147] By implementing the above device, the maximum oxygen uptake can indicate the user's aerobic exercise situation. The wearable device can accurately determine the energy consumed by the user during exercise through the ratio of the change in the maximum oxygen uptake and the first maximum oxygen uptake. The data acquisition and calculation processes of this method are relatively simple, thereby reducing the difficulty of implementing the energy determination method.
[0148] As an optional implementation, the second acquisition unit 504 is also used to determine the user's mental consumption based on physiological parameters when it is determined that the user is not currently in motion, and use the mental consumption as the first consumed energy consumed by the user from the first historical time point to the present.
[0149] By implementing the above device, it can be determined that when the user is not currently in a state of motion, it is determined that the energy consumption from the first historical time point to the present is most likely mental consumption, and then the user's mental consumption can be determined based on physiological parameters, and the user's mental consumption can be used as the first consumed energy of the user from the first historical time point to the present.
[0150] As an optional implementation, the physiological parameters include a heartbeat interval time series, and the heartbeat interval time series is used to represent the interval duration between each two adjacent heartbeats in a plurality of heartbeats. The second acquisition unit 504 is further used to determine a power spectrum corresponding to the heartbeat interval time series, and the power spectrum is used to represent the difference between each two adjacent heartbeats in a plurality of heartbeats; and, determine a first energy value corresponding to a high-frequency part and a second energy value corresponding to a low-frequency part corresponding to the power spectrum, the high-frequency part being a part of the power spectrum whose frequency is greater than a first frequency threshold, and the low-frequency part being a part of the power spectrum whose frequency is less than a second frequency threshold; and, determine the user's mental consumption based on the first energy value and the second energy value.
[0151] By implementing the above device, the user's mental exertion can be evaluated through the heartbeat interval time series collected by the PPG sensor. The data acquisition and calculation processes of this method are relatively simple, thereby reducing the difficulty of implementing the energy determination method.
[0152] See also Figure 6 , Figure 6 Schematic diagram of the structure of an electronic device disclosed in the embodiment of the present application. Figure 6 As shown, the electronic device may include:
[0153] A memory 601 storing executable program codes;
[0154] a processor 602 coupled to the memory 601;
[0155] The processor 602 calls the executable program code stored in the memory 601 to execute the energy determination method disclosed in the above embodiments.
[0156] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the energy determination method disclosed in the above embodiments.
[0157] The embodiments of the present application also disclose an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps of the method in the above method embodiments.
[0158] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.
[0159] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0160] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0161] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0162] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.
[0163] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0164] The energy determination method and device, electronic device, and computer-readable storage medium disclosed in the embodiments of the present application are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for determining energy, characterized in that: The method comprises: Obtain the first remaining energy of the user before the first historical time point; Acquire the physiological parameters corresponding to the user currently collected by the physiological parameter sensor, and determine the first consumed energy consumed by the user from the first historical time point to the present according to the physiological parameters; Determining a second remaining energy currently remaining of the user according to the first remaining energy and the first consumed energy; The determining, according to the physiological parameter, a first consumed energy amount consumed by the user from the first historical time point to the current time point includes: If it is determined that the user is not currently in a state of motion, determining the user's mental consumption according to the physiological parameter, and using the mental consumption as the first consumed energy consumed by the user from the first historical time point to the present; The physiological parameter includes a heartbeat interval time series, and the heartbeat interval time series is used to represent the interval length between each two adjacent heartbeats in a plurality of heartbeats. The determining the mental consumption of the user according to the physiological parameter includes: Determine a power spectrum corresponding to the heartbeat interval time series, wherein the power spectrum is used to represent the difference between each two adjacent heartbeats in a plurality of heartbeats; Determine a first value corresponding to a high-frequency part and a second value corresponding to a low-frequency part corresponding to the power spectrum, wherein the high-frequency part is a part of the power spectrum with a frequency greater than a first frequency threshold, and the low-frequency part is a part of the power spectrum with a frequency less than a second frequency threshold; The first value and the second value are input into the Sigmoid model to obtain the mental consumption of the user, and the mental consumption of the user is calculated by the following formula: ; in, is the mental consumption of the user, HF is the first value, and LF is the second value.
2. The method according to claim 1, characterized in that The obtaining of the first remaining energy of the user before the first historical time point includes: Acquire a third remaining energy of the user before a second historical time point, and acquire a first restored energy of the user restored from the second historical time point to a first historical time point, wherein the second historical time point is earlier than the first historical time point; A first sum of the third remaining energy and the first restored energy is calculated, and the first sum is used as a first remaining energy remaining of the user before a first historical time point.
3. The method according to claim 2, characterized in that The obtaining of the third remaining energy of the user before the second historical time point includes: If the historical energy data can be queried, determining the third remaining energy of the user before the second historical time point according to the historical energy data, wherein the historical energy data is used to describe the remaining energy of the user before the second historical time point; If no historical energy data is found, the first preset energy is used as the third remaining energy of the user before the second historical time point.
4. The method according to claim 2 or 3, characterized in that: The obtaining of the first restored energy of the user restored from the second historical time point to the first historical time point includes: If the sleep quality information can be queried, determining the first restored energy of the user during the period from the second historical time point to the first historical time point according to the sleep quality information, wherein the sleep quality information is determined according to the sleep duration of the user during the period from the second historical time point to the first historical time point; If the sleep quality information cannot be found, the second preset energy is used as the first recovery energy recovered by the user from the second historical time point to the first historical time point.
5. The method according to claim 1, characterized in that The determining, according to the physiological parameter, a first consumed energy amount consumed by the user from the first historical time point to the present time further includes: If it is determined that the user is currently in motion, the motion consumption generated by the user during this motion is determined according to the physiological parameters, and the motion consumption is used as the first energy consumption consumed by the user from the first historical time point to the present.
6. The method according to claim 5, characterized in that The physiological parameter includes a heart rate, and determining the exercise consumption of the user during exercise according to the physiological parameter includes: Determine a first average heart rate of the user in the previous first period of time according to a plurality of heart rates acquired in the previous first period of time, and determine a first maximum oxygen uptake according to the first average heart rate; Determine a second average heart rate of the user during the first time period according to the multiple heart rates obtained during the first time period, and determine a second maximum oxygen uptake according to the second average heart rate; A change in maximum oxygen uptake is determined according to the first maximum oxygen uptake and the second maximum oxygen uptake, and exercise consumption consumed by the user during exercise is determined according to the change in maximum oxygen uptake and the first maximum oxygen uptake.
7. An energy determination device, characterized in that The device comprises: A first acquisition unit, used to acquire a first remaining energy of the user before a first historical time point; A second acquisition unit is used to acquire the physiological parameters corresponding to the user currently collected by the physiological parameter sensor, and determine the first consumed energy consumed by the user from the first historical time point to the present according to the physiological parameters; A determining unit, configured to determine a second remaining energy currently remaining of the user according to the first remaining energy and the first consumed energy; The second acquisition unit is further configured to determine the user's mental consumption according to the physiological parameter when it is determined that the user is not currently in a motion state, and use the mental consumption as the first consumed energy consumed by the user from the first historical time point to the present; The physiological parameters include a heartbeat interval time series, the heartbeat interval time series is used to represent the interval duration between each two adjacent heartbeats in a plurality of heartbeats, the second acquisition unit is further used to determine a power spectrum corresponding to the heartbeat interval time series, the power spectrum is used to represent the difference between each two adjacent heartbeats in a plurality of heartbeats; and, determine a first value corresponding to a high-frequency part and a second value corresponding to a low-frequency part corresponding to the power spectrum, the high-frequency part is a part of the power spectrum with a frequency greater than a first frequency threshold, and the low-frequency part is a part of the power spectrum with a frequency less than a second frequency threshold; and, input the first value and the second value into a Sigmoid model to obtain the user's mental consumption, the user's mental consumption is calculated by the following formula: ; in, is the mental consumption of the user, HF is the first value, and LF is the second value.
8. An electronic device, characterized in that: It comprises a memory storing executable program code, and a processor coupled to the memory; wherein the processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
