Heat consumption calculation method and device, electronic equipment, storage medium and program
By obtaining user training status data, calculating power output information and rest normalization power, the existing problems of high cost, poor accuracy and insufficient convenience of calorie consumption calculations are solved, and efficient and accurate calorie consumption calculations are achieved in atypical exercises and daily activities.
Patent Information
- Application Number
- CN202510335318.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2025-07-04
AI Technical Summary
The existing calorie consumption calculation methods rely on wearable devices or personal information, and have problems such as high cost, inconvenient operation, poor accuracy and insufficient convenience. It is especially difficult to accurately identify and calculate calorie consumption during atypical exercises or daily activities.
By obtaining the user's training status correlation data, determining the power output information, and calculating the calorie consumption data based on the power output information, combining MET information and rest normalization power, it is suitable for atypical exercises and daily activities.
It reduces the cost of calorie consumption calculation, improves the scientificity, accuracy and convenience of calculations, and accurately calculates calorie consumption in various exercise and rest states without expensive equipment.
Smart Images

Figure CN120260915A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of data processing, and in particular, to a method, device, electronic device, storage medium and program for calculating calorie consumption. Background Art
[0002] Calorie consumption calculation refers to quantifying the energy consumed by the human body during basal metabolism, physical activity, and food digestion through scientific models, algorithms, or devices, usually measured in kilocalories (kcal). Calorie consumption calculation can convert physiological data into quantifiable health indicators, which has application value in precise health management, sports science optimization, medical and disease management, and the development of related technical products.
[0003] Currently, the calculation of calorie consumption mainly focuses on some specific sports equipment and fitness applications. For example, wearable devices such as sports bracelets and smart watches use built-in sensors, such as PPG (Photoplethysmo Graphy) sensors, gyroscopes, and magnetometers, combined with specific algorithms to estimate the calorie consumption of users during exercises such as running and walking. These devices usually rely on hardware such as acceleration sensors and gyroscopes to detect the intensity and type of exercise, and then calculate the calorie consumption. If the calorie consumption of the device is not required, it is often calculated based on height, weight, age, and gender to calculate the calorie consumption per unit time. In addition, it may also include subjective calculation methods such as direct observation method, activity log method, and questionnaire method mainly based on self-report; and objective calculation methods such as direct calorimetry, indirect calorimetry, doubly labeled water method, pedometer method, heart rate meter method, and accelerometer method.
[0004] In the process of implementing the present invention, the inventor found that the prior art has the following defects: To obtain the user's motion calorie consumption with the help of wearable devices, it is necessary to purchase and wear wearable devices additionally, which is not convenient enough. At the same time, the method of calculating calorie consumption based on wearable devices is mainly applicable to typical exercise modes such as running and walking. For some atypical exercises or daily activities, such as slight limb movements (such as hand movements when operating electronic devices) and short-term posture changes, these devices are difficult to accurately identify and calculate calorie consumption. Because their algorithms are designed based on common exercise modes, there may be no corresponding parameters and models for other uncommon motion modes. In addition, the method of calculating calorie consumption based on wearable devices relies on specific hardware sensors, such as PPG sensors, gyroscopes, and magnetometers. During strenuous exercises such as strength training or HIIT (High-Intensity Interval Training), motion artifacts have strong interference on the signals of PPG sensors, and in scenarios with many metal instruments such as gyms, magnetometers will be affected. Secondly, the method of calculating calorie consumption per unit time simply based on information such as height, weight, age, and gender ignores the influence of exercise intensity, which will cause a large deviation between the calorie consumption and the actual value. Other related subjective and objective methods of calculating calorie consumption basically have defects such as poor accuracy, complex operation, high price, or inconvenient carrying, which bring difficulties to calorie consumption calculation. Summary of the Invention
[0005] The embodiments of the present invention provide a method, device, electronic device, storage medium, and program for calculating calorie consumption, which can improve the scientificity, accuracy, and convenience of calorie consumption calculation on the premise of reducing the cost of calorie consumption calculation.
[0006] According to one aspect of the present invention, there is provided a method for calculating calorie consumption, including:
[0007] Obtaining training status associated data of the current user;
[0008] Determining power output information of the current user in the target training stage according to the training status associated data of the current user;
[0009] Calculating calorie consumption data of the current user in the current training stage according to the power output information of the current user in the target training stage.
[0010] According to another aspect of the present invention, there is provided a device for calculating calorie consumption, including:
[0011] A training status associated data acquisition module, configured to obtain training status associated data of the current user;
[0012] A power output information determination module, configured to determine the power output information of the current user in the target training phase according to the training status association data of the current user;
[0013] A calorie consumption data calculation module, configured to calculate the calorie consumption data of the current user in the current training phase according to the power output information of the current user in the target training phase.
[0014] According to another aspect of the present invention, there is provided an electronic device, which includes:
[0015] At least one processor; and
[0016] A memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor is enabled to execute the calorie consumption calculation method according to any embodiment of the present invention.
[0018] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the calorie consumption calculation method according to any embodiment of the present invention when executed.
[0019] According to another aspect of the present invention, there is also provided a computer program product including a computer program, which implements the calorie consumption calculation method according to any embodiment of the present invention when executed by a processor.
[0020] In the embodiments of the present invention, by determining the power output information of the current user in the target training phase according to the obtained training status association data of the current user, and then calculating the calorie consumption data of the current user in the current training phase according to the power output information of the current user in the target training phase, the problems existing in the existing calorie consumption calculation methods, such as high calculation cost, inconvenient operation, poor accuracy, and poor convenience, are solved. It is possible to improve the scientificity, accuracy, and convenience of calorie consumption calculation on the premise of reducing the cost of calorie consumption calculation.
[0021] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. Description of the Drawings
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0023] Figure 1 is a flowchart of a method for calculating calorie consumption provided in Embodiment 1 of the present invention;
[0024] Figure 2 is a flowchart of a method for calculating calorie consumption provided in Embodiment 2 of the present invention;
[0025] Figure 3 provides a schematic flowchart of a method for calculating calorie consumption applicable to the embodiments of the present invention;
[0026] Figure 4 is a schematic diagram of a device for calculating calorie consumption provided in Embodiment 3 of the present invention;
[0027] Figure 5 is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed Embodiments
[0028] In order to enable those skilled in the art to better understand the solutions of the present invention, the following clearly and completely describes the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0029] It should be noted that the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those clearly listed steps or units, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or devices.
[0030] Embodiment 1
[0031] Figure 1FIG. 0 is a flowchart of a method for calculating calorie consumption provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of calculating the calorie consumption data of a current user in a current training phase by combining the power output information of the user in a relevant training phase. This method can be executed by a calorie consumption calculation device, which can be implemented in software and / or hardware and is generally integrated in an electronic device. The electronic device can be a terminal device or a server device, as long as it can execute the calorie consumption calculation method. The present invention does not limit the specific device type of the electronic device. Correspondingly, as Figure 1 shown, the method includes the following operations:
[0032] S110. Obtain the training status associated data of the current user.
[0033] Among them, the current user can be the user who currently needs to calculate calorie consumption. The training status associated data can be the associated data involved by the current user in each training phase, for example, it can include but is not limited to the training status, power output, and training intensity of the current user in different training phases and other related data. Optionally, the training status associated data can also include preset training data, such as the training plans configured by the current user for different training phases, as long as it is related to the training of the current user. The present invention does not limit the specific data content included in the training status associated data.
[0034] First, the technical solution of this embodiment is mainly applicable to such an application scenario: the current user can execute a series of training exercises based on the training plan configured by a preset training process to achieve a specific exercise goal. Optionally, the training plan configured by the preset training process can be displayed to the user through a relevant APP (Application). At the same time, the APP (hereinafter referred to as the training APP) for displaying the training plan can also obtain the associated data of the user in each training phase in real time as the training status associated data.
[0035] Optionally, the training APP can be installed on an intelligent terminal device worn by the current user, such as a smart phone, a smart watch, or a tablet computer, etc., or can also be installed on the training device or fitness equipment used by the current user during training, such as a digital elastic band and other digital strength devices. Or, the training APP can be installed on both the training device and the intelligent terminal device worn by the current user, and the APPs installed on the training device and the intelligent terminal device worn by the current user can perform real-time data interaction and sharing. That is, as long as the training APP can obtain the training status associated data of the current user to execute the subsequent calorie consumption calculation process, the present invention does not limit the application method of the training APP.
[0036] S120. Determine the power output information of the current user in the target training phase based on the training status association data of the current user.
[0037] Among them, the target training phase can be the training phase referred to for calculating calorie consumption. The power output information can be the power information output by the current user.
[0038] S130. Calculate the calorie consumption data of the current user in the current training phase according to the power output information of the current user in the target training phase.
[0039] Among them, the current training phase is also the training phase currently executed by the current user. Optionally, the current training phase can have power output or no power output, and the embodiments of the present invention do not limit this.
[0040] It can be understood that the training plan displayed by the training APP for the current user can include multiple different training phases. Each training phase is correspondingly configured with specific training actions, training durations, and other related training requirements, etc. During the training process of the current user, the training conditions in different training phases may affect the power output in other training phases. Exemplarily, when the current user is in a resting state in the current training phase but was in a moving state in the previous training phase, there may still be a decaying power output in the current resting state.
[0041] Therefore, when calculating the calorie consumption data of the current user in the current training phase, the associated training phase that can affect the power output in the current training phase can be first determined as the target training phase. After determining the target training phase, the calorie consumption data of the current user in the current training phase can be directly calculated according to the power output information of the current user in the target training phase.
[0042] After calculating the calorie consumption data of the current user in the current training phase, the cumulative value of the calorie consumption data of the current user in each training phase can be calculated. Optionally, the calorie consumption data of the current user's display in the current training phase and the cumulative value of the calorie consumption data of the current user in all training phases can also be provided for reference.
[0043] It can be seen that the above technical solution considers the association relationship of power output between different training phases, uses the power output situation of the current user to calculate its calorie consumption data, without manual calculation and without expensive instrument equipment. At the same time, the influence of exercise intensity on calorie consumption calculation is introduced based on the power output situation of the user, and it is applicable to non - typical exercises or daily activities, which not only reduces the cost of calorie consumption calculation, but also can effectively improve the scientificity, accuracy, and convenience of calorie consumption calculation.
[0044] The embodiment of the present invention determines the power output information of the current user in the target training stage according to the acquired training status associated data of the current user, and thus calculates the calorie consumption data of the current user in the current training stage according to the power output information of the current user in the target training stage, thereby solving the problems of high calculation cost, inconvenient operation, poor accuracy and poor convenience in the existing calorie consumption calculation method, and can improve the scientificity, accuracy and convenience of calorie consumption calculation while reducing the cost of calorie consumption calculation.
[0045] Embodiment 2
[0046] Figure 2 is a flow chart of a calorie consumption calculation method provided in the second embodiment of the present invention. This embodiment is specific based on the above embodiment. In this embodiment, multiple specific optional implementation methods are provided for calculating the calorie consumption data of the current user in the current training stage according to the power output information of the current user in the target training stage. Figure 2 As shown, the method of this embodiment may include:
[0047] S210: Obtain training status associated data of the current user.
[0048] S220. Determine power output information of the current user in a target training phase according to the training status association data of the current user.
[0049] In an optional embodiment of the present invention, before determining the power output information of the current user in the target training stage according to the training state associated data of the current user, it may also include: determining the current state of the current user in the current training stage according to the training state associated data of the current user; wherein the current state includes a motion state or a rest state; when it is determined that the current user is in the motion state in the current training stage, taking the current training stage as the target training stage; when it is determined that the current user is in the rest state in the current training stage, taking the previous training stage of the current training stage as the target training stage.
[0050] Exemplarily, if it is determined according to the training status associated data of the current user that the current user has power output in the current training stage, indicating that the current state of the current user in the current training stage is the exercise state, then the current training stage can be directly used as the target training stage; if it is determined according to the training status associated data of the current user that the current user has no power output in the current training stage, indicating that the current state of the current user in the current training stage is the rest state. At this time, it can be further determined whether the previous training stage of the current training stage has power output. If the previous training stage of the current training stage has power output, since the power output of the previous training stage will continuously affect the current training stage, the previous training stage of the current training stage can be used as the target training stage; if the previous training stage of the current training stage has no power output, indicating that the current user is in the rest state in two consecutive training stages, it can be determined at this time that the current user actually has no power output in the current training stage.
[0051] S230. Determine whether there is power output of the current user in the current training stage. If so, execute S240; otherwise, execute S250.
[0052] In an embodiment of the present invention, different calculation methods are adopted to calculate the heat consumption data of the current user according to the specific power output situation of the current user.
[0053] S240. Calculate the heat consumption data of the current user in the current training stage according to the output power of the current user in the target training stage.
[0054] Specifically, if it is determined that the current user has power output in the current training stage, the heat consumption data of the current user in the current training stage can be calculated according to the output power of the current user in the target training stage.
[0055] In an optional embodiment of the present invention, the calculating the heat consumption data of the current user in the current training stage according to the output power of the current user in the target training stage may include: when the target training stage is the current training stage, determining the power heat consumption association parameter of the current user according to the output power of the current user in the current training stage; calculating the heat consumption data of the current user in the current training stage according to the power heat consumption association parameter of the current user; when the target training stage is the previous training stage of the current training stage, calculating the rest normalization power of the current user in the current training stage according to the output power of the current user in the previous training stage of the current training stage, further calculating the virtual power according to the rest normalization power of the current user in the current training stage, and finally calculating the heat consumption data of the current user in the current training stage according to the virtual power.
[0056] Among them, the power-heat consumption correlation parameter can be a parameter related to power and used to calculate heat consumption data. The rest normalized power can be a type of power used to calculate the user's decaying power in the user's resting state.
[0057] Optionally, if the current user has power output in the current training phase, that is, when the target training phase is the current training phase, power-heat consumption correlation parameters such as the time of the current user's power output, the power value, and the conversion rate of power to heat can be determined according to the output power of the current user in the current training phase. Then, the heat consumption data of the current user in the current training phase can be calculated based on the power-heat consumption correlation parameters of the current user.
[0058] Optionally, if the current user has no power output in the current training phase, but there is power output in the previous training phase of the current training phase, that is, when the target training phase is the previous training phase of the current training phase, the rest normalized power of the current user in the current training phase can be calculated according to the output power of the current user in the previous training phase of the current training phase. Then, the heat consumption data of the current user in the current training phase can be calculated based on the rest normalized power of the current user in the current training phase.
[0059] In an alternative embodiment of the present invention, the power-heat consumption correlation parameter may include the current power value, the power output time, and the efficiency factor.
[0060] Among them, the current power value can be the power value output by the current user when executing the training plan of the current training phase. The power output time can be the time when the current user continuously outputs power. The efficiency factor can be used to characterize the linear relationship between the work done by the human body on an object and the total heat consumption of the human body.
[0061] Specifically, when it is determined that the current user has power output in the current training phase, the heat consumption data of the current user can be calculated using power, that is, the calories consumed. During exercise, in addition to doing work on the device, the human body also generates heat energy. There is a linear relationship between the work done by the human body on an object and the total heat consumption of the human body. Therefore, the above linear relationship can be used as the efficiency factor to calculate the heat consumption data of the current user in the current training phase as a reference.
[0062] Correspondingly, calculating the heat consumption data of the current user in the current training phase according to the power-heat consumption correlation parameters of the current user may include: calculating the heat consumption data of the current user in the current training phase based on the following formula according to the power-heat consumption correlation parameters of the current user:
[0063] M = Pm * h1 * A
[0064] Wherein, M represents the heat consumption data, Pm represents the current power value, h1 represents the power output time, and A represents the efficiency factor.
[0065] Optionally, if the current user's exercise scenario is different, the value of the corresponding efficiency factor may also be different. The more muscles involved in the running project of the current user in the current training stage, the smaller the value of the efficiency factor. That is, the value of the efficiency factor can be determined according to the type of running project of the current user in the current training stage. In a specific example, the machine skiing movement is mainly upper limb movement, and the value of the efficiency factor can be 5; the indoor cycling movement mainly involves lower limb movement, and the value of the efficiency factor can be 4; the indoor aerobic rowing movement involves the whole body movement of the upper and lower limbs, and the value of the efficiency factor can be 3.
[0066] If there is an output power in the previous training stage of the current user in the current training stage, but the current user is in a rest state in the current training stage, it indicates that the current user has transitioned from a sports state to the current rest state. The inventor found in the process of implementing the present invention that during the process of the human body transitioning from a sports state to the current rest state, the human heart rate will gradually decrease, the corresponding oxygen content ingested by the human body will also decrease, and the corresponding heat consumption will show a decaying decrease. Usually, within a few minutes (generally 3 minutes, with individual differences) after exercise and rest, the heart rate will tend to a normal value. Therefore, for the calculation of heat consumption in this stage, the influence of values in different stages should be considered. Specifically, for the training stage of transitioning from a sports state to the current rest state, the rest normalization power of the current user in the current training stage can be calculated according to the output power of the current user in the previous training stage of the current training stage, and the heat consumption data of the current user in the current training stage can be calculated according to the rest normalization power.
[0067] Correspondingly, the calculating the virtual power according to the rest normalization power of the current user in the current training stage may include: calculating the virtual power according to the rest normalization power of the current user in the current training stage based on the following formula:
[0068] Px = Pg / a + Pg / b * EXP(-t / c)
[0069]
[0070] The calculating the heat consumption data of the current user in the current training stage according to the virtual power may include: calculating the heat consumption data of the current user in the current training stage according to the virtual power based on the following formula:
[0071] M = Px * h1 * A
[0072] Wherein, Px represents the virtual power, Pg represents the rest normalized power, t represents the difference between the current time and the end time of the last power action, and the last power action can be the action of the output power executed by the current user before the current rest. Pn represents the action power within the set time before the rest. Optionally, the value of the set time can be 180s. a, b, and c are constants. Optionally, the value of a can be 2, the value of b can be 3, and the value of c is 76. The embodiments of the present invention do not limit the specific values of a, b, and c.
[0073] It should be noted that the rest normalized power is used instead of the average power to calculate the virtual power here because the extreme values such as the maximum value and the minimum value involved in the average power have a greater impact on the calculation of heat consumption, and the average calculation method smooths these extreme values. The calculation method of the rest normalized power can amplify the extreme values such as the maximum value and the minimum value, thereby amplifying the contribution of the extreme values to the power calculation. Therefore, its calculation accuracy is higher than that of the average power, and it can more accurately reflect the intensity during the exercise process, so as to more accurately judge the heat consumption.
[0074] S250. Calculate the heat consumption data of the current user in the current training stage according to the MET information of the current user in the target training stage.
[0075] Among them, MET (Metabolic Equivalent) is an important indicator used to quantify the energy consumption of physical activities in exercise physiology. Met is calculated based on the energy consumption at rest and in a sitting position. Usually, an adult consumes about 3.5 milliliters of oxygen per kilogram of body weight per minute at rest. 1 Met is equivalent to consuming 1.05 kcal of energy per kilogram of body weight per hour.
[0076] Specifically, if it is determined that the current user has no power output in the current training stage, the heat consumption data of the current user in the current training stage can be calculated according to the MET information of the current user in the target training stage.
[0077] In an alternative embodiment of the present invention, calculating the calorie consumption data of the current user in the current training phase based on the MET information of the current user in the target training phase may include: when the target training phase is the current training phase, determining the current training action of the current user in the current training phase and determining the MET value corresponding to the current training action; calculating the calorie consumption data of the current user in the current training phase according to the MET value corresponding to the current training action; when the target training phase is the previous training phase of the current training phase, determining the target training action of the current user in the previous training phase of the current training phase and determining the MET value corresponding to the target training action; calculating a virtual MET value according to the MET value corresponding to the target training action; and calculating the calorie consumption data of the current user in the current training phase according to the virtual MET value.
[0078] Wherein, the target training action may be the exercise action performed by the current user in the previous training phase. The virtual MET value may be the MET value calculated according to the exercise action performed by the current user in the previous training phase.
[0079] Optionally, if the current user is in a moving state in the current training phase, but the current user does not have power output in the current training phase, that is, when there is no power output of the current user in the current training phase, the current training action of the current user in the current training phase may be determined, and the "Compendium of Physical Activities" table (also known as the human activity energy consumption coding table) may be queried according to the current training action to determine the MET value corresponding to the current training action, so as to calculate the calorie consumption data of the current user in the current training phase according to the MET value corresponding to the current training action. Wherein, the current user is in a moving state in the current training phase, but the current user does not have power output in the current training phase, which is usually a scenario where the current user does not strictly execute the training action according to the training plan. For example, the training plan for the current training phase is 3 minutes of chest expansion exercise, but the current user actually rests for 3 minutes and does not execute the relevant training actions according to the plan. Or, it may also be that the training action of the current user in the current training phase itself is an action without power output, such as sitting still.
[0080] In an alternative embodiment of the present invention, calculating the calorie consumption data of the current user in the current training phase according to the MET value corresponding to the current training action may include: calculating the calorie consumption data of the current user in the current training phase according to the MET value corresponding to the current training action based on the following formula:
[0081] M = MET1 * h2 * m
[0082] Wherein, M represents the heat consumption data, MET1 represents the MET value corresponding to the current training action, h2 represents the duration of the current training action, and m represents the weight of the current user. Optionally, the unit of h2 can be hours, and the unit of m can be kilograms.
[0083] That is, when the current state of the current training stage of the current user is the exercise state, it can be continued to determine whether the current user has power output in the current training stage. If there is power output, the heat consumption is calculated using power, otherwise the heat consumption is calculated using MET.
[0084] Optionally, if the current user is in the rest state in the current training stage and there is no power output in the previous training stage of the current training stage of the current user, that is, when there is no power output in both the current training stage and the previous training stage of the current user, the target training action in the previous training stage of the current training stage of the current user can be determined, and the MET value corresponding to the target training action can be determined, so as to calculate the virtual MET value in stages based on the target training action, and finally the heat consumption data of the current user in the current training stage can be calculated according to the virtual MET value in stages.
[0085] Correspondingly, calculating the virtual MET value according to the MET value corresponding to the target training action may include: calculating the virtual MET value based on the following formula:
[0086]
[0087] Calculating the heat consumption data of the current user in the current training stage according to the virtual MET value may include: calculating the heat consumption data of the current user in the current training stage based on the following formula according to the virtual MET value:
[0088] M = MET2 * h3 * m
[0089] Wherein, METP represents the MET value corresponding to the target training action, MET2 represents the virtual MET value, d, e, i, k, and L represent constants, and h3 represents the duration of the rest state. Optionally, the value of d can be 1.5, the value of e can be 4, the value of i can be 2, the value of k can be 3, and the value of L can be 1.
[0090] That is, when the current state of the current training stage of the current user is the rest state, it can be continued to determine whether the current user has power output in the previous training stage of the current training stage. If there is power output, the heat consumption is calculated using the rest normalized power, otherwise the heat consumption is calculated using the virtual MET value.
[0091] In the above technical solution, during the user training process, for actions without power, MET information is configured for the actions; for actions with power, power is used to calculate calorie consumption. In addition, the above technical solution also comprehensively considers the efficiency factors of different training types. At the same time, the calorie consumption during rest is also taken into account. In summary, the embodiments of the present invention provide a way to comprehensively use MET and power during exercise to calculate calorie consumption, without manual calculation. Even if the user does not wear a heart rate belt or other wearable devices and the exercise intensity is relatively high, the calorie consumption data of the user can be accurately calculated.
[0092] Specific application scenario
[0093] To more clearly describe the technical solution provided by the embodiments of the present invention, Figure 3 a flowchart of a calorie consumption calculation method applicable to the embodiments of the present invention is provided. In a specific example, as Figure 3 shown, the calorie consumption calculation method provided by the embodiments of the present invention mainly may include the following operations:
[0094] First, obtain the current training stage of the user, and determine whether the current training stage is rest. If the current training stage is not rest, it is necessary to further determine whether there is power in the current training stage. If there is power in the current training stage, power is used to calculate calorie consumption, otherwise MET is used to calculate calorie consumption.
[0095] Optionally, when using power to calculate calorie consumption, power calorie consumption (kcal) = power (W) × time (min) × efficiency factor.
[0096] Optionally, when using MET to calculate calorie consumption, the MET of the current training action can be first determined. The MET of the current training action can be determined by looking up the Compendium of Physical Activities. After determining the MET of the current training action, the following formula can be used to calculate calorie consumption: calorie consumption (kcal) = MET * time (h) * body weight (kg).
[0097] Correspondingly, if the current training stage is in the rest process, it can be continued to determine whether the previous training stage is a power action or a non-power action. If the previous training stage is a power action, the power rest calorie consumption formula is adopted, otherwise the MET rest calorie consumption formula is adopted.
[0098] During the process of transitioning from activity to rest, the heart rate gradually decreases, and the corresponding oxygen intake by the human body also decreases, along with the corresponding calories. Optionally, the virtual power can be calculated first, and then the calorie consumption can be calculated based on the virtual power. Among them, the formula for virtual power can be: virtual power = rest normalization power / 2 + rest normalization power / 3 * EXP(-t / 76), where t is the time elapsed from the current time to the end time of the previous activity, and the normalization power can be the square root of the average of the squared activity powers in the 180 seconds before rest. For example, it can be Further, according to the formula calorie consumption (kcal) = power (watts) × time (minutes) × efficiency factor, substitute the virtual power as the power value into the formula to calculate the calorie consumption.
[0099] For the MET rest calorie consumption formula, the MET during the rest time can be bound to the previous activity. First, calculate the virtual MET, that is:
[0100] The virtual MET for [0, 60 seconds] = the previous activity MET - (the previous activity MET - 1.5) / 4;
[0101] The virtual MET for (60 seconds, 120 seconds] = the previous activity MET - (the previous activity MET - 1.5) / 4 * 2;
[0102] The virtual MET for (120 seconds, 180 seconds] = the previous activity MET - (the previous activity MET - 1.5) / 4 * 3;
[0103] The virtual MET for (180 seconds, ∞) is 1.
[0104] Further, according to the formula calorie consumption (kcal) = MET * time (hours) * weight (kg), substitute the virtual MET as the MET value into the above formula to calculate the calorie consumption.
[0105] Correspondingly, after calculating the calorie consumption data (i.e., calories) for each training stage, the calorie consumption data for each stage can be accumulated and the calculated calorie consumption data can be displayed in real time.
[0106] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information (such as training status associated data, height, weight, age, and gender, etc.) comply with the provisions of relevant laws and regulations and do not violate public order and good customs.
[0107] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of the relevant data comply with the relevant laws, regulations, and standards of the relevant regions.
[0108] It should be noted that any permutation and combination of the technical features in the above embodiments also fall within the protection scope of the present invention.
[0109] Embodiment III
[0110] Figure 4 is a schematic diagram of a heat consumption calculation device provided by Embodiment III of the present invention. As Figure 4 shown, the device includes: a training state associated data acquisition module 310, a power output information determination module 320, and a heat consumption data calculation module 330, where:
[0111] The training state associated data acquisition module 310 is configured to acquire the training state associated data of the current user;
[0112] The power output information determination module 320 is configured to determine the power output information of the current user in the target training stage according to the training state associated data of the current user;
[0113] The heat consumption data calculation module 330 is configured to calculate the heat consumption data of the current user in the current training stage according to the power output information of the current user in the target training stage.
[0114] By determining the power output information of the current user in the target training stage according to the acquired training state associated data of the current user, and then calculating the heat consumption data of the current user in the current training stage according to the power output information of the current user in the target training stage, the embodiments of the present invention solve the problems existing in the existing heat consumption calculation methods, such as high calculation cost, inconvenient operation, poor accuracy, and poor convenience, and can improve the scientificity, accuracy, and convenience of heat consumption calculation on the premise of reducing the cost of heat consumption calculation.
[0115] Optionally, the power output information determination module 320 is further configured to: determine the current state of the current user in the current training stage according to the training state associated data of the current user; where the current state includes a motion state or a rest state; in the case of determining that the current user is in the motion state in the current training stage, take the current training stage as the target training stage; in the case of determining that the current user is in the rest state in the current training stage, take the previous training stage of the current training stage as the target training stage.
[0116] Optionally, the calorie consumption data calculation module 330 is further configured to: when it is determined that the current user has power output in the current training stage, calculate the calorie consumption data of the current user in the current training stage according to the output power of the current user in the target training stage; when it is determined that the current user has no power output in the current training stage, calculate the calorie consumption data of the current user in the current training stage according to the MET (Metabolic Equivalent of Task) information of the current user in the target training stage.
[0117] Optionally, the calorie consumption data calculation module 330 is further configured to: when the target training stage is the current training stage, determine the power-calorie consumption correlation parameter of the current user according to the output power of the current user in the current training stage; calculate the calorie consumption data of the current user in the current training stage according to the power-calorie consumption correlation parameter of the current user; when the target training stage is the previous training stage of the current training stage, calculate the rest normalized power of the current user in the current training stage according to the output power of the current user in the previous training stage of the current training stage; calculate the virtual power according to the rest normalized power of the current user in the current training stage; calculate the calorie consumption data of the current user in the current training stage according to the virtual power.
[0118] Optionally, the power-calorie consumption correlation parameter includes a current power value, a power output time, and an efficiency factor. The calorie consumption data calculation module 330 is further configured to calculate the calorie consumption data of the current user in the current training stage based on the following formula according to the power-calorie consumption correlation parameter of the current user:
[0119] M = Pm * h1 * A
[0120] where M represents the calorie consumption data, Pm represents the current power value, h1 represents the power output time, and A represents the efficiency factor;
[0121] Calculate the virtual power based on the following formula according to the rest normalized power of the current user in the current training stage;
[0122] Px = Pg / a + Pg / b * EXP(-t / c)
[0123]
[0124] Calculate the calorie consumption data of the current user in the current training stage based on the following formula according to the virtual power:
[0125] M = Px * h1 * A
[0126] Among them, Px represents the virtual power, Pg represents the rest normalization power, t represents the difference between the current time and the end time of the previous power action, Pn represents the action power within the set time before rest, and a, b, and c are constants.
[0127] Optionally, the calorie consumption data calculation module 330 is further configured to: when the target training stage is the current training stage, determine the current training action of the current user in the current training stage, and determine the MET value corresponding to the current training action; calculate the calorie consumption data of the current user in the current training stage according to the MET value corresponding to the current training action; when the target training stage is the previous training stage of the current training stage, determine the target training action of the current user in the previous training stage of the current training stage, and determine the MET value corresponding to the target training action; calculate the virtual MET value according to the MET value corresponding to the target training action; calculate the calorie consumption data of the current user in the current training stage according to the virtual MET value.
[0128] Optionally, the calorie consumption data calculation module 330 is further configured to: calculate the calorie consumption data of the current user in the current training stage based on the following formula according to the MET value corresponding to the current training action:
[0129] M = MET1 * h2 * m
[0130] Among them, M represents the calorie consumption data, MET1 represents the MET value corresponding to the current training action, h2 represents the duration of the current training action, and m represents the weight of the current user;
[0131] Calculate the virtual MET value based on the following formula:
[0132]
[0133] Calculate the calorie consumption data of the current user in the current training stage based on the following formula according to the virtual MET value:
[0134] M = MET2 * h3 * m
[0135] Among them, METP represents the MET value corresponding to the target training action, MET2 represents the virtual MET value, d, e, i, k, and L represent constants, and h3 represents the duration of the rest state.
[0136] The above heat consumption calculation device can execute the heat consumption calculation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method. For the technical details not described in detail in this embodiment, reference may be made to the heat consumption calculation method provided in any embodiment of the present invention.
[0137] Since the above-introduced heat consumption calculation device is a device that can execute the heat consumption calculation method in the embodiment of the present invention, based on the heat consumption calculation method introduced in the embodiment of the present invention, those skilled in the art can understand the specific implementation manner and various variations of the heat consumption calculation device in this embodiment. Therefore, the specific implementation of how the heat consumption calculation device implements the heat consumption calculation method in the embodiment of the present invention will not be described in detail here. As long as the device adopted by those skilled in the art to implement the heat consumption calculation method in the embodiment of the present invention falls within the scope of protection of this application.
[0138] Embodiment 4
[0139] Figure 5 FIG. shows a schematic structural diagram of an electronic device 10 that can be used to implement the embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0140] As Figure 5 shown, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. Among them, the memory stores a computer program executable by the at least one processor. The processor 11 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0141] Multiple components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0142] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the heat consumption calculation method.
[0143] Optionally, the heat consumption calculation method may include: obtaining training status associated data of the current user; determining power output information of the current user in a target training stage according to the training status associated data of the current user; and calculating heat consumption data of the current user in the current training stage according to the power output information of the current user in the target training stage.
[0144] In some embodiments, the heat consumption calculation method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the heat consumption calculation method described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the heat consumption calculation method by any other suitable means (e.g., by means of firmware).
[0145] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems-on-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.
[0146] The computer program for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer program can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
[0147] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0148] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0149] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
[0150] A computing system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship between the client and the server is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0151] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and no limitations are imposed herein.
[0152] The above specific embodiments do not constitute a limitation on the protection scope of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principle of this disclosure shall be included within the protection scope of this disclosure.
Claims
1. A method for calculating calorie consumption, characterized in that, Including: Obtaining training status associated data of the current user; Determining power output information of the current user in a target training stage according to the training status associated data of the current user; Calculating heat consumption data of the current user in the current training stage according to the power output information of the current user in the target training stage.
2. The method according to claim 1, characterized in that, Before determining the power output information of the current user in the target training stage according to the training status associated data of the current user, it further includes: Determining the current state of the current user in the current training stage according to the training status associated data of the current user; wherein, the current state includes a motion state or a rest state; When it is determined that the current user is in the motion state in the current training stage, taking the current training stage as the target training stage; When it is determined that the current user is in the rest state in the current training stage, taking the previous training stage of the current training stage as the target training stage.
3. The method according to claim 1 or 2, characterized in that, Calculating the heat consumption data of the current user in the current training stage according to the power output information of the current user in the target training stage includes: When it is determined that there is power output of the current user in the current training stage, calculating the heat consumption data of the current user in the current training stage according to the output power of the current user in the target training stage; When it is determined that there is no power output of the current user in the current training stage, calculating the heat consumption data of the current user in the current training stage according to the MET (Metabolic Equivalent of Task) information of the current user in the target training stage.
4. The method according to claim 3, wherein Calculating the heat consumption data of the current user in the current training stage according to the output power of the current user in the target training stage includes: When the target training stage is the current training stage, determining a power heat consumption association parameter of the current user according to the output power of the current user in the current training stage; Calculating the heat consumption data of the current user in the current training stage according to the power heat consumption association parameter of the current user; When the target training stage is the previous training stage of the current training stage, calculating the rest normalized power of the current user in the current training stage according to the output power of the current user in the previous training stage of the current training stage; Calculating virtual power according to the rest normalized power of the current user in the current training stage; Calculating the heat consumption data of the current user in the current training stage according to the virtual power.
5. The method according to claim 4, wherein The power heat consumption association parameter includes a current power value, a power output time, and an efficiency factor. Calculating the heat consumption data of the current user in the current training stage according to the power heat consumption association parameter of the current user includes: Calculating the heat consumption data of the current user in the current training stage according to the power heat consumption association parameter of the current user based on the following formula: M = Pm * h1 * A Wherein, M represents the heat consumption data, Pm represents the current power value, h1 represents the power output time, and A represents the efficiency factor; Calculating the virtual power according to the rest normalized power of the current user in the current training phase includes: Calculating the virtual power based on the rest normalized power of the current user in the current training phase according to the following formula; Px = Pg / a + Pg / b * EXP(-t / c) Calculating the heat consumption data of the current user in the current training phase according to the virtual power includes: Calculating the heat consumption data of the current user in the current training phase based on the virtual power according to the following formula: M = Px * h1 * A Wherein, Px represents the virtual power, Pg represents the rest normalized power, t represents the difference between the current time and the end time of the previous power action, Pn represents the action power within the set time before rest, and a, b, and c are constants.
6. The method according to claim 3, characterized in that, Calculating the heat consumption data of the current user in the current training phase according to the MET information of the current user in the target training phase includes: When the target training phase is the current training phase, determining the current training action of the current user in the current training phase and determining the MET value corresponding to the current training action; Calculating the heat consumption data of the current user in the current training phase according to the MET value corresponding to the current training action; When the target training phase is the previous training phase of the current training phase, determining the target training action of the current user in the previous training phase of the current training phase and determining the MET value corresponding to the target training action; Calculating the virtual MET value according to the MET value corresponding to the target training action; Calculating the heat consumption data of the current user in the current training phase according to the virtual MET value.
7. The method according to claim 6, characterized in that Calculating the heat consumption data of the current user in the current training phase according to the MET value corresponding to the current training action includes: Calculating the heat consumption data of the current user in the current training phase based on the MET value corresponding to the current training action according to the following formula: M = MET1 * h2 * m Wherein, M represents the heat consumption data, MET1 represents the MET value corresponding to the current training action, h2 represents the duration of the current training action, and m represents the weight of the current user; Calculating the virtual MET value according to the MET value corresponding to the target training action includes: Calculating the virtual MET value based on the following formula: Calculating the heat consumption data of the current user in the current training phase according to the virtual MET value includes: Calculating the heat consumption data of the current user in the current training phase based on the virtual MET value according to the following formula: M = MET2 * h3 * m Wherein, METP represents the MET value corresponding to the target training action, MET2 represents the virtual MET value, d, e, i, k, and L represent constants, and h3 represents the duration of the rest state.
8. An electronic device, characterized in that, The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the calorie consumption calculation method according to any one of claims 1-7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for implementing the calorie consumption calculation according to any one of claims 1-7 when executed by a processor.
10. A computer program product comprising a computer program / instructions, wherein, When the computer program / instructions are executed by the processor, the calorie consumption calculation according to any one of claims 1-7 is implemented.