WO2023216266A1 - Heat consumption estimation method and device and storage medium - Google Patents
Heat consumption estimation method and device and storage medium Download PDFInfo
- Publication number
- WO2023216266A1 WO2023216266A1 PCT/CN2022/092873 CN2022092873W WO2023216266A1 WO 2023216266 A1 WO2023216266 A1 WO 2023216266A1 CN 2022092873 W CN2022092873 W CN 2022092873W WO 2023216266 A1 WO2023216266 A1 WO 2023216266A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- current moment
- exercise
- target user
- heart rate
- current
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000033001 locomotion Effects 0.000 claims abstract description 99
- 238000011084 recovery Methods 0.000 claims abstract description 95
- 230000036387 respiratory rate Effects 0.000 claims abstract description 49
- 230000008569 process Effects 0.000 claims abstract description 16
- 235000019577 caloric intake Nutrition 0.000 claims description 75
- 238000013135 deep learning Methods 0.000 claims description 28
- 230000002503 metabolic effect Effects 0.000 claims description 26
- 230000036391 respiratory frequency Effects 0.000 claims description 18
- 230000015654 memory Effects 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 7
- 238000012549 training Methods 0.000 description 34
- 239000011159 matrix material Substances 0.000 description 11
- 230000009183 running Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 230000009194 climbing Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 230000004060 metabolic process Effects 0.000 description 8
- ORILYTVJVMAKLC-UHFFFAOYSA-N Adamantane Natural products C1C(C2)CC3CC1CC2C3 ORILYTVJVMAKLC-UHFFFAOYSA-N 0.000 description 5
- 230000035565 breathing frequency Effects 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 238000012417 linear regression Methods 0.000 description 4
- 230000005291 magnetic effect Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000006403 short-term memory Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 3
- 210000004027 cell Anatomy 0.000 description 3
- 238000013136 deep learning model Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000007787 long-term memory Effects 0.000 description 3
- 238000010801 machine learning Methods 0.000 description 3
- 230000000306 recurrent effect Effects 0.000 description 3
- 238000013475 authorization Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005265 energy consumption Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000029058 respiratory gaseous exchange Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 235000019787 caloric expenditure Nutrition 0.000 description 1
- 230000002612 cardiopulmonary effect Effects 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000001351 cycling effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000037149 energy metabolism Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000037323 metabolic rate Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009182 swimming Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000009184 walking Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
Definitions
- the present disclosure relates to the field of human-computer interaction, and in particular, to a method, device and storage medium for estimating heat consumption.
- a wearable device is a portable device that is worn directly on the body or integrated into the user's clothes. Its product forms are diverse, such as smart watches, smart bracelets, smart glasses, smart helmets, etc.
- sensors in wearable devices that can collect physiological signals of the human body, such as heart rate and other signals, to monitor the user's health indicators.
- the user's caloric consumption during exercise is the calorie consumption.
- the calculation of calorie consumption in related technologies is not accurate enough.
- the present disclosure provides a method, device and storage medium for estimating heat consumption.
- a caloric consumption estimation method including:
- the heart rate and respiratory rate of the target user at the current moment determine the motion state feature information of the target user at the current moment based on the heart rate at the current moment, wherein the motion state feature information is used to characterize the target Whether the user is in the steady state stage of exercise or the recovery stage of exercise at the current moment; according to the heart rate at the current moment, the respiratory frequency at the current moment, and the heat estimation model corresponding to the motion state characteristic information at the current moment, the result is obtained Calorie consumption increment of the target user in the current period, wherein the caloric estimation models corresponding to different motion state characteristic information are different, and the current period is the period from the previous moment of the current moment to the current moment. ; According to the calorie consumption increment, determine the total calorie consumption information of the target user during exercise, wherein the exercise process includes the process from the start time of exercise to the current time.
- the increase in calorie consumption of the target user in the current period is obtained.
- the quantity includes: if the target user is in the steady-state stage of exercise at the current moment, then according to the heart rate at the current moment, the respiratory frequency at the current moment and the steady-state stage caloric estimation model, the target user is obtained in the steady-state stage.
- Calorie consumption increment in the current period if the target user is in the exercise recovery stage at the current moment, then based on the heart rate at the current moment, the respiratory frequency at the current moment and the recovery stage caloric estimation model, the The incremental calorie consumption of the target user during the current period.
- the method further includes: obtaining the physiological characteristic information of the target user; and obtaining the target user based on the heart rate at the current moment, the respiratory frequency at the current moment and the steady-state stage heat estimation model.
- the increment of caloric consumption in the current period includes: inputting the heart rate at the current moment, the respiratory rate at the current moment, and the physiological characteristic information of the target user into the steady-state stage caloric estimation model to obtain the The caloric consumption increment output by the caloric estimation model in the steady-state phase; the heat consumption increment of the target user in the current period is obtained based on the heart rate at the current moment, the respiratory rate at the current moment and the caloric estimation model in the recovery phase.
- the increment of caloric consumption within the period includes: inputting the heart rate at the current moment, the respiratory rate at the current moment, and the physiological characteristic information of the target user into the recovery phase caloric estimation model to obtain the recovery phase caloric value. Estimate the incremental caloric expenditure output from the model.
- the steady-state stage caloric estimation model is trained by: obtaining the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the steady-state stage of exercise;
- the heart rate, respiratory rate, actual calorie consumption and physiological characteristic information are input into the deep learning network model, and the deep learning network model is trained to obtain the steady-state stage heat estimation model.
- the recovery phase caloric estimation model is trained in the following manner: obtaining the heart rate, breathing frequency, actual caloric consumption and physiological characteristic information of the user in the exercise recovery phase; Respiratory frequency, actual caloric consumption and physiological characteristic information are input into the deep learning network model, and the deep learning network model is trained to obtain the recovery stage caloric estimation model.
- determining the motion state characteristic information of the target user at the current moment according to the heart rate at the current moment includes: inputting the heart rate at the current moment into a motion state recognition model to obtain the The motion state feature information output by the motion state recognition model.
- the movement state recognition model is trained in the following manner: the heart rate when the user is in the steady state stage of movement and the label used to characterize that the heart rate corresponds to the steady state stage of movement, and when the user is in the recovery stage of movement.
- the heart rate and the label used to characterize the correspondence between the heart rate and the exercise recovery stage are used as the input of the classifier, and the classifier is trained to obtain the movement state recognition model.
- both the steady-state stage heat estimation model and the recovery stage heat estimation model are gated cycle unit models.
- the method further includes: after the target user finishes exercising, determine the current basal metabolic information of the target user based on the caloric consumption of the target user during this exercise, and display the current basal metabolic information. , wherein the current basal metabolic information is greater than the basal metabolic information of the target user before this exercise.
- a heat consumption estimating device including:
- the frequency acquisition module is used to obtain the heart rate and respiratory frequency of the target user at the current moment; the state determination module is used to determine the motion state characteristic information of the target user at the current moment according to the heart rate at the current moment, wherein, The motion state characteristic information is used to characterize whether the target user is in a steady state phase or a recovery phase of motion at the current moment; an increment determination module is used to determine whether the target user is in a steady state phase or a recovery phase based on the heart rate at the current moment and the respiration at the current moment.
- the frequency and the caloric estimation model corresponding to the motion state characteristic information at the current moment are used to obtain the caloric consumption increment of the target user in the current period.
- the caloric estimation models corresponding to different motion state characteristic information are different.
- the current period is the period from the previous moment of the current moment to the current moment; the total calorie determination module is used to determine the total calorie consumption information of the target user during exercise according to the calorie consumption increment,
- the movement process includes the process from the movement start time to the current time.
- the increment determination module includes: a first increment determination sub-module, configured to determine if the target user is in a steady state stage of exercise at the current moment according to the heart rate at the current moment, the current The respiratory frequency and steady-state stage caloric estimation model at each moment are used to obtain the caloric consumption increment of the target user in the current period; the second increment determination sub-module is used to determine if the target user is in exercise recovery at the current moment. stage, then based on the heart rate at the current moment, the respiratory frequency at the current moment and the recovery stage caloric estimation model, the caloric consumption increment of the target user in the current period is obtained.
- the device further includes: an information acquisition module, used to obtain the physiological characteristic information of the target user; and the first increment determination sub-module is used to: combine the heart rate at the current moment, the heart rate at the current moment, The respiratory frequency and the physiological characteristic information of the target user are input into the steady-state stage heat estimation model, and the heat consumption increment output by the steady-state stage heat estimation model is obtained; the second increment determiner The module is configured to: input the heart rate at the current moment, the respiratory rate at the current moment, and the physiological characteristic information of the target user into the recovery phase heat estimation model, and obtain all the values output by the recovery phase heat estimation model. The increase in caloric consumption.
- the steady-state stage caloric estimation model is trained through the following modules: a first acquisition module, used to obtain the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the steady-state stage of exercise; A training module for inputting the heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of the user in the steady state stage of exercise into the deep learning network model, and training the deep learning network model to obtain the stable state.
- a first acquisition module used to obtain the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the steady-state stage of exercise
- a training module for inputting the heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of the user in the steady state stage of exercise into the deep learning network model, and training the deep learning network model to obtain the stable state.
- State stage heat estimation model used to obtain the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the steady-state stage of exercise.
- the recovery phase caloric estimation model is obtained by training through the following modules: a second acquisition module, used to acquire the heart rate, breathing frequency, actual caloric consumption and physiological characteristic information of the user in the exercise recovery phase; second training Module, used to input the heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of the user in the exercise recovery stage into the deep learning network model, and train the deep learning network model to obtain the calorie estimate in the recovery stage. Model.
- the state determination module is configured to input the heart rate at the current moment into a motion state recognition model to obtain the motion state feature information output by the motion state recognition model.
- the movement state recognition model is trained through the following modules: a third training module, used to combine the user's heart rate when in the steady state stage of movement and a label used to represent that the heart rate corresponds to the steady state stage of movement; And the heart rate of the user when he is in the exercise recovery stage and the label used to characterize the correspondence between the heart rate and the exercise recovery stage are used as inputs of the classifier, and the classifier is trained to obtain the movement state recognition model.
- the device further includes: a basal metabolism determination module, configured to determine the current basal metabolism information of the target user based on the calorie consumption of the target user's current exercise after the target user finishes exercising, and The current basal metabolic information is displayed, wherein the current basal metabolic information is greater than the target user's basal metabolic information before this exercise.
- a basal metabolism determination module configured to determine the current basal metabolism information of the target user based on the calorie consumption of the target user's current exercise after the target user finishes exercising, and The current basal metabolic information is displayed, wherein the current basal metabolic information is greater than the target user's basal metabolic information before this exercise.
- a device for estimating heat consumption including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: execute the first embodiment of the present disclosure.
- One aspect provides the steps of the method.
- a computer-readable storage medium on which computer program instructions are stored.
- the program instructions are executed by a processor, the steps of the caloric consumption estimation method provided by the first aspect of the present disclosure are implemented. .
- the heart rate of the target user at the current moment is first obtained, and then based on the heart rate, the motion state characteristic information of the target user at the current moment is determined.
- the motion state characteristic information is used to characterize whether the target user is currently in the steady state stage of exercise or recovery. stage.
- the heat estimation model corresponding to the heart rate at the current moment, the respiratory rate at the current moment, and the motion state feature information at the current moment the calorie consumption increment of the target user in the current period is obtained.
- the heat estimation model corresponding to different motion state feature information is Different, considering that the characteristics of calorie consumption are different in the steady-state stage of exercise and the recovery stage of exercise, therefore considering what exercise stage the target user is in, using different models for calorie estimation in different exercise stages can make the estimation of calorie consumption more accurate.
- FIG. 1 is a flow chart of a method for estimating heat consumption according to an exemplary embodiment.
- FIG. 2 is a flow chart of a method for estimating heat consumption according to an exemplary embodiment.
- FIG. 3 is a schematic flowchart of a heat consumption estimation process according to an exemplary embodiment.
- Figure 4 is a schematic diagram of model training according to an exemplary embodiment.
- Figure 5 is a schematic diagram of the internal structure of the gated cycle unit model.
- FIG. 6 is a block diagram of a heat consumption estimating device according to an exemplary embodiment.
- FIG. 7 is a block diagram of a device for estimating heat consumption according to an exemplary embodiment.
- heart rate-based linear regression method based on heart rate
- different models need to be regressed in different sports scenarios (such as walking, running, climbing, cycling, swimming, playing ball, etc.).
- sports scenarios such as walking, running, climbing, cycling, swimming, playing ball, etc.
- the wearable device uses the linear regression model corresponding to outdoor running to estimate the calorie consumption. After the morning run, the user needs to end the running exercise and reopen the mountain climbing option.
- the wearable device uses a linear regression model corresponding to mountain climbing to estimate heat consumption.
- different regression models need to be transformed to estimate heat consumption, and the scene adaptability is poor.
- heart rate-based machine learning models or deep learning models can solve the problem of scene dependence, due to the different calorie consumption characteristics in different exercise stages, it is usually not accurate enough to use a single deep learning model to estimate the calorie consumption in the entire stage.
- the present disclosure provides a caloric consumption estimation method, device and storage medium to improve the accuracy of estimating the user's caloric consumption during exercise. Embodiments of the present disclosure will be described in detail below.
- the caloric consumption estimation method provided by the present disclosure can be applied to wearable devices, such as smart watches, smart bracelets and other devices.
- wearable devices such as smart watches, smart bracelets and other devices.
- the wearable device can calculate the energy consumption in real time. Collect the user's heart rate and calculate the user's calorie consumption during exercise.
- the caloric consumption estimation method provided by the present disclosure can be applied to a terminal that establishes a connection relationship with a wearable device, such as a user's mobile phone, tablet computer, and other devices.
- the wearable device can transmit the collected user heart rate to the device in real time.
- the terminal can obtain the user's heart rate and calculate the user's calorie consumption during exercise.
- FIG. 1 is a flow chart of a method for estimating heat consumption according to an exemplary embodiment. As shown in FIG. 1 , the method may include S101 to S104.
- the target user is a user wearing a wearable device.
- the wearable device can collect the target user's heart rate according to the preset sampling frequency.
- the preset sampling frequency is 1HZ, then the wearable device can collect the target user's heart rate every 1 second. Heart rate.
- the respiratory frequency of the target user is also obtained in this disclosure.
- the respiratory frequency represents the number of breaths per minute, which can reflect the user's exercise intensity to a certain extent.
- the respiratory frequency can be obtained by Detected by sensors in wearable devices.
- the motion state characteristic information of the target user at the current moment is determined. This motion state feature information is used to characterize whether the target user is in the motion steady state phase or the motion recovery phase at the current moment.
- the start-up stage of exercise is the stage when exercise is just beginning. This stage is short and consumes less calories.
- the stationary stage of exercise is the stage where breathing and heart rate fluctuations are small and relatively stable, such as the running stage at a constant speed. Since the start-up stage of exercise takes a long time, It is short and consumes less calories, so the exercise startup phase and the exercise plateau phase are regarded as the exercise steady state phase in this disclosure.
- athletes will frequently run at different speeds and take short breaks to recover their physical strength. This stage when the speed is significantly reduced or exercise is paused to restore physical strength, can be regarded as the exercise recovery stage.
- the characteristic information of the target user's movement status at the current moment can be determined based on the heart rate at the current moment.
- the calorie consumption increment of the target user in the current period is obtained based on the calorie estimation model corresponding to the current heart rate, the current respiratory rate, and the current motion state feature information.
- the heat estimation models corresponding to different motion state characteristic information are different, and the current period is the period from the previous moment to the current moment. For example, take thirty moments t1, t2, t3,..., t28, t29, t30 from front to back as an example. For example, the current moment is t30, and the current period is from t29 to t30. period, the increment of caloric consumption in the current period is the caloric consumption of the target user from time t29 to time t30.
- different motion stages are modeled separately.
- the heat estimation models corresponding to different motion state feature information are different, and the heat estimation models corresponding to different motion state feature information can all be deep learning network models.
- This disclosure takes into account that the characteristics of caloric consumption are different in the steady-state phase of exercise and the recovery phase of exercise. Therefore, considering what phase of exercise the target user is in, different models are used for caloric estimation in different exercise phases, which can make the estimation of caloric consumption more accurate. .
- inputting the target user's breathing frequency into the corresponding heat estimation model at the same time can increase the model's recognition of sports scenes and exercise intensity, and achieve accurate calorie consumption in both sports scenes and non-sports scenes (such as daily office work). Estimate.
- the total calorie consumption information of the target user during exercise is determined based on the calorie consumption increment.
- the movement process includes the process from the start time of the movement to the current time.
- the target user can click the start exercise button on the wearable device or terminal, and can also select the type of exercise he or she is doing, such as jogging, mountain climbing, cross-country running, etc., and the target user triggers the start exercise button.
- the moment of pressing the button can be used as the start moment of exercise.
- the moment when the user wears the wearable device can also be used as the start time of exercise.
- the user's caloric consumption can be estimated regardless of whether the user is in exercise or daily office status.
- the calorie consumption increment and total calorie consumption information may be represented by calories.
- the heart rate of the target user at the current moment is first obtained, and then based on the heart rate, the motion state characteristic information of the target user at the current moment is determined.
- the motion state characteristic information is used to characterize whether the target user is currently in the steady state stage of exercise or recovery. stage.
- the heat estimation model corresponding to the heart rate at the current moment, the respiratory rate at the current moment, and the motion state feature information at the current moment the calorie consumption increment of the target user in the current period is obtained.
- the heat estimation model corresponding to different motion state feature information is Different, considering that the characteristics of calorie consumption are different in the steady-state stage of exercise and the recovery stage of exercise, therefore considering what exercise stage the target user is in, using different models for calorie estimation in different exercise stages can make the estimation of calorie consumption more accurate.
- S103 may include:
- the target user's calorie consumption increment in the current period is obtained based on the heart rate at the current moment, the respiratory rate at the current moment and the steady-state stage calorie estimation model;
- the target user's calorie consumption increment in the current period is obtained based on the heart rate at the current moment, the respiratory rate at the current moment, and the recovery stage calorie estimation model.
- the steady-state stage of exercise and the recovery stage of exercise are modeled separately.
- the steady-state stage caloric estimation model is used to estimate the user's caloric consumption increment when the user is in the steady-state stage of exercise.
- the recovery stage caloric estimation model is used to estimate the user's caloric consumption increment.
- the increase in caloric consumption during the exercise recovery phase where the caloric estimation model in the steady-state phase is different from the caloric estimation model in the recovery phase, and both the caloric estimation model in the steady-state phase and the caloric estimation model in the recovery phase can be deep learning network models.
- This disclosure takes into account that the characteristics of caloric consumption are different in the steady-state phase of exercise and the recovery phase of exercise. Therefore, considering what phase of exercise the target user is in, different models are used for caloric estimation in different exercise phases, which can make the estimation of caloric consumption more accurate. .
- Figure 2 is a flow chart of a method for estimating heat consumption according to an exemplary embodiment. As shown in Figure 2, the method includes S201 to S206.
- step S201 obtain the heart rate and respiratory rate of the target user at the current moment.
- step S202 based on the heart rate at the current moment, the motion state characteristic information of the target user at the current moment is determined. For the implementation of step S202, reference may be made to S102.
- the target user's physiological characteristic information includes, for example, the target user's weight, age, gender and other information. It should be noted that the target user can fill in the physiological characteristic information such as weight and age on the wearable device or terminal. With the user's authorization, the wearable device or terminal can obtain the physiological characteristic information of the target user.
- S203 may also be executed before S201 or S202.
- the execution order shown in Figure 2 is only an example.
- inputting the target user's breathing frequency into the corresponding heat estimation model at the same time can increase the model's recognition of sports scenes and exercise intensity, and achieve accurate calorie consumption in both sports scenes and non-sports scenes (such as daily office work). Estimate.
- the total calorie consumption information of the target user during exercise is determined based on the calorie consumption increment.
- the physiological characteristic information and respiratory frequency of the target user are used as the input of the corresponding calorie estimation model, which can not only reduce the individual differences in calorie consumption estimation, but also increase the model's accuracy in sports scenes,
- the identification of exercise intensity makes the estimation of calorie consumption more accurate.
- the implementation of S102 may be:
- the motion state recognition model can be a classifier, such as a Bayesian classifier.
- FIG. 3 is a schematic flowchart of a heat consumption estimation process according to an exemplary embodiment.
- the heart rate is first input into the exercise state recognition model. If the exercise state recognition model identifies that the target user is currently in the steady state stage of exercise, the heart rate is input into the steady state stage caloric estimation model to obtain the steady state stage. The calorie consumption increment output by the calorie estimation model. If the exercise state recognition model identifies that the target user is currently in the exercise recovery stage, the heart rate is input into the recovery stage calorie estimation model to obtain the calorie consumption increment output by the recovery stage heat estimation model.
- the motion state recognition model can accurately identify the current motion stage of the target user.
- Figure 4 is a schematic diagram of model training according to an exemplary embodiment. The training of the heat estimation model in the steady state phase, the heat estimation model in the recovery phase, and the exercise state recognition model in the present disclosure will be introduced below with reference to Figure 4 .
- the steady-state stage heat estimation model can be trained in the following manner:
- the user's heart rate, respiratory rate, actual calorie consumption and physiological characteristic information in the steady-state stage of exercise are input into the deep learning network model, and the deep learning network model is trained to obtain a heat estimation model in the steady-state stage.
- the recovery phase caloric estimation model can be trained in the following manner:
- the heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of the user in the exercise recovery stage are input into the deep learning network model, and the deep learning network model is trained to obtain a calorie estimation model in the recovery stage.
- exercise data may include steady-state phase exercise data and recovery phase exercise data.
- the steady-state phase exercise data includes the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the steady-state phase of exercise.
- the recovery phase Exercise data includes heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of users in the exercise recovery stage.
- the actual caloric consumption can be calculated through gas exchange through professional cardiopulmonary testing systems.
- the steady-state phase exercise data is used to train the steady-state phase heat estimation model
- the recovery phase exercise data is used to train the recovery phase heat estimation model.
- the motion state recognition model can be trained in the following manner:
- the heart rate when the user is in the steady-state phase of exercise and the label used to characterize the heart rate corresponding to the steady-state phase of exercise, and the heart rate when the user is in the exercise recovery phase and the label used to characterize the heart rate corresponding to the exercise recovery phase are used as a classifier As input, the classifier is trained to obtain the motion state recognition model.
- the heart rate of the user when he is in the exercise recovery stage is obtained from the recovery stage exercise data, and the label of the heart rate is labeled label 1.
- Label 1 is used to indicate that the heart rate corresponds to the exercise recovery stage.
- Label 2 is used to indicate that the heart rate corresponds to the steady-state stage of exercise.
- the classifier can be a Bayesian classifier, for example. By training the classifier, a motion state recognition model can be obtained.
- the steady-state stage heat estimation model and the recovery stage heat estimation model may both be gated recurrent unit models (GRU, gated recurrent unit).
- GRU gated recurrent unit models
- the GRU model has great advantages in dealing with time series problems. It introduces cell state to save long-term memory and improves the defect of RNN (Recurrent Neural Network) that can only save short-term memory.
- RNN Recurrent Neural Network
- the GRU model improves the problem of high computational complexity of the LSTM (Long Short-Term Memory, Long Short-Term Memory Network) deep learning algorithm, making the prediction delay as small as possible.
- Using the GRU model to build a mapping model between heart rate and caloric consumption can improve the estimation accuracy compared to other machine learning, and is better able to handle the problem of switching between different sports scenes.
- the methods of training the heat estimation model in the steady state phase and the training heat estimation model in the recovery phase are similar.
- the training parameters used to train different models such as the number of iterations, loss functions and other parameters, can be the same or different, according to actual needs. Settings are made.
- the following training parameters are only examples and do not constitute a limitation on the implementation of the present disclosure.
- FIG. 5 is a schematic diagram of the internal structure of the gated cyclic unit model.
- update gate and reset gate.
- the input variables only need to undergo vector calculation twice.
- zt represents the update gate, which is used to control the degree to which the state information from the previous moment enters the current state. The larger the value of the update gate, the more state information from the previous moment will be introduced.
- rt represents the reset gate, and the control will come from the previous moment. The information of one state is written into the current temporary cell state. The smaller the reset gate is, the less information is written from the previous state.
- the GRU model can also realize the function of storing long and short-term memory. Its prediction process is as shown in the following formulas (1) to (5):
- ⁇ is the sigmoid layer, including the sigmoid function, and its expression is as shown in formula (6):
- the tanh layer contains the tanh function, whose expression is shown in formula (7):
- e is the Hadamard Product, which means the corresponding elements in the operation matrix are multiplied, so the two multiplication matrices are required to be of the same type.
- Wr is the weight matrix of the reset gate
- Wz is the weight matrix of the update gate
- Wo is the weight matrix of the output.
- ht and ht-1 respectively represent the output of the cell state storing long-term memory at time t and t-1. Represents the output of the candidate state at time t.
- Initialize the parameters of the LSTM deep learning network reset the weight matrix Wr of the gate, update the weight matrix Wz of the gate, and the weight matrix of the candidate state.
- the output weight matrix Wo is initialized to a random number between 0 and 1.
- the GRU model is trained. Taking the training of the steady-state stage heat estimation model as an example, the user's heart rate, respiratory rate, actual heat consumption and physiological characteristic information in the steady-state stage of exercise are input into the deep learning network model.
- the back propagation algorithm can be used to optimize the training of the matrix in the deep learning network model, and when the training is completed, the heat estimation model in the steady state phase is obtained.
- the number of training iterations is set to epoch
- the loss function is loss
- the optimizer is optimizer
- the number of samples selected for one training is batch size.
- the caloric estimation model in the training recovery phase as an example, the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the exercise recovery phase are input into the deep learning network model.
- the back propagation algorithm can be used to The matrix is optimized and trained, and the recovery phase heat estimation model is obtained when the training is completed.
- the number of training iterations is set to epoch
- the loss function is loss
- the optimizer is optimizer
- the number of samples selected for one training is batch size.
- the GRU model needs to learn the reset gate rt, update gate zt and temporary state during training.
- LSTM needs to learn the input gate it, the output gate ot, the forget gate ft and the temporary state.
- GRU model training requires fewer iteration parameters than LSTM.
- GRU model training is faster than LSTM and the number of convergence iterations is fewer than LSTM.
- the electromyographic features input by LSTM during prediction require seven complex vector calculations to obtain the final estimated angle, while the GRU model only requires five vector calculations to obtain the final estimated angle during online prediction.
- the GRU model predicts online
- the timeliness is also better than the LSTM model. Therefore, the timeliness of the GRU model is better than that of the LSTM model in both the training phase and the prediction phase. Therefore, the heat estimation model in the steady state phase and the heat estimation model in the recovery phase in this disclosure can both be the gated cycle unit model, that is, the GRU model.
- the present disclosure can use different models for different movement stages to calculate calorie consumption. Estimation is more effective than using a single model to estimate calories for the entire stage, and can effectively improve the accuracy of energy consumption estimation.
- the caloric consumption estimation method provided by this disclosure may also include:
- the current basal metabolic information of the target user is determined based on the target user's calorie consumption during this exercise, and the current basal metabolic information is displayed.
- the current basal metabolic information is greater than the target user's basal metabolism before this exercise. information.
- basal metabolism refers to the energy metabolism under the basic state of the human body.
- Exercise can improve the basal metabolism of the human body. The greater the intensity of exercise, the higher the calories consumed, and the higher the level of improvement in basal metabolism.
- the method of calculating the basal metabolic information can refer to related technologies, for example, based on the target user's current basal metabolic information. Determine a coefficient for the caloric consumption of each exercise, and multiply the original basal metabolic information by this coefficient to obtain the current basal metabolic information. Since exercise can improve the basal metabolic level of the human body, the current basal metabolic information of the target user after the end of this exercise Greater than the target user’s basal metabolic information before this exercise.
- Figure 6 is a block diagram of a device for estimating heat consumption according to an exemplary embodiment. As shown in Figure 6, the device 600 may include:
- the frequency acquisition module 601 is used to obtain the heart rate and respiratory frequency of the target user at the current moment;
- the state determination module 602 is used to determine the motion state characteristic information of the target user at the current moment based on the heart rate at the current moment, Wherein, the motion state characteristic information is used to characterize whether the target user is in a steady state phase or a recovery phase of motion at the current moment;
- the increment determination module 603 is used to determine whether the target user is in a steady state or recovery phase based on the heart rate at the current moment, the current
- the respiratory frequency at the moment and the caloric estimation model corresponding to the motion state characteristic information at the current moment are used to obtain the caloric consumption increment of the target user in the current period.
- the caloric estimation models corresponding to different motion state characteristic information are different, so
- the current period is the period from the previous moment to the current moment;
- the total calorie determination module 604 is used to determine the total calorie consumption of the target user during exercise according to the calorie consumption increment.
- Calorie consumption information wherein the exercise process includes the process from the start time of the exercise to the current time.
- the increment determination module 603 includes: a first increment determination sub-module, configured to determine if the target user is in the steady state stage of exercise at the current moment according to the heart rate at the current moment, the The respiratory frequency and steady-state stage heat estimation model at the current moment are used to obtain the heat consumption increment of the target user in the current period; the second increment determination sub-module is used to determine if the target user is in motion at the current moment.
- the calorie consumption increment of the target user in the current period is obtained based on the heart rate at the current moment, the respiratory rate at the current moment and the recovery phase calorie estimation model.
- the device 600 further includes: an information acquisition module, configured to acquire the physiological characteristic information of the target user; and the first increment determination sub-module is configured to: obtain the heart rate at the current moment, the current The respiratory frequency at the moment and the physiological characteristic information of the target user are input into the steady-state stage heat estimation model, and the heat consumption increment output by the steady-state stage heat estimation model is obtained; the second increment is determined
- the sub-module is configured to: input the heart rate at the current moment, the respiratory rate at the current moment, and the physiological characteristic information of the target user into the recovery stage heat estimation model, and obtain the heat estimation model output by the recovery stage. The heat consumption increases.
- the steady-state stage caloric estimation model is trained through the following modules: a first acquisition module, used to obtain the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the steady-state stage of exercise; A training module for inputting the heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of the user in the steady state stage of exercise into the deep learning network model, and training the deep learning network model to obtain the stable state.
- a first acquisition module used to obtain the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the steady-state stage of exercise
- a training module for inputting the heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of the user in the steady state stage of exercise into the deep learning network model, and training the deep learning network model to obtain the stable state.
- State stage heat estimation model used to obtain the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the steady-state stage of exercise.
- the recovery phase caloric estimation model is obtained by training through the following modules: a second acquisition module, used to acquire the heart rate, breathing frequency, actual caloric consumption and physiological characteristic information of the user in the exercise recovery phase; second training Module, used to input the heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of the user in the exercise recovery stage into the deep learning network model, and train the deep learning network model to obtain the calorie estimate in the recovery stage. Model.
- the state determination module 602 is configured to input the heart rate at the current moment into a motion state recognition model to obtain the motion state feature information output by the motion state recognition model.
- the movement state recognition model is trained through the following modules: a third training module, used to combine the user's heart rate when in the steady state stage of movement and a label used to represent that the heart rate corresponds to the steady state stage of movement; And the heart rate of the user when he is in the exercise recovery stage and the label used to characterize the correspondence between the heart rate and the exercise recovery stage are used as inputs of the classifier, and the classifier is trained to obtain the movement state recognition model.
- the device 600 further includes: a basal metabolism determination module, configured to determine the current basal metabolism information of the target user based on the calorie consumption of the target user's current exercise after the target user finishes exercising, And display the current basal metabolic information, wherein the current basal metabolic information is greater than the target user's basal metabolic information before this exercise.
- a basal metabolism determination module configured to determine the current basal metabolism information of the target user based on the calorie consumption of the target user's current exercise after the target user finishes exercising, And display the current basal metabolic information, wherein the current basal metabolic information is greater than the target user's basal metabolic information before this exercise.
- the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the heat consumption estimation method provided by the present disclosure are implemented.
- FIG. 7 is a block diagram of a device 800 for caloric consumption estimation according to an exemplary embodiment.
- the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
- the device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and communications component 816.
- a processing component 802 a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and communications component 816.
- Processing component 802 generally controls the overall operations of device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
- the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned caloric consumption estimation method.
- processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components.
- processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
- Memory 804 is configured to store various types of data to support operations at device 800 . Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc.
- Memory 804 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
- SRAM static random access memory
- EEPROM electrically erasable programmable read-only memory
- EEPROM erasable programmable read-only memory
- EPROM Programmable read-only memory
- PROM programmable read-only memory
- ROM read-only memory
- magnetic memory flash memory, magnetic or optical disk.
- Power component 806 provides power to various components of device 800.
- Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 800 .
- Multimedia component 808 includes a screen that provides an output interface between the device 800 and the user.
- the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
- the touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action.
- multimedia component 808 includes a front-facing camera and/or a rear-facing camera.
- the front camera and/or the rear camera may receive external multimedia data.
- Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
- Audio component 810 is configured to output and/or input audio signals.
- audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in operating modes, such as call mode, recording mode, and speech recognition mode. The received audio signal may be further stored in memory 804 or sent via communication component 816 .
- audio component 810 also includes a speaker for outputting audio signals.
- the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
- Sensor component 814 includes one or more sensors that provide various aspects of status assessment for device 800 .
- the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor component 814 can also detect a change in position of the device 800 or a component of the device 800. , the presence or absence of user contact with the device 800 , device 800 orientation or acceleration/deceleration and temperature changes of the device 800 .
- Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
- Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
- the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
- Communication component 816 is configured to facilitate wired or wireless communication between apparatus 800 and other devices.
- Device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
- communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel.
- the communications component 816 also includes a near field communications (NFC) module to facilitate short-range communications.
- NFC near field communications
- the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- apparatus 800 may be configured by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented for performing the above heat consumption estimation method.
- ASICs application specific integrated circuits
- DSPs digital signal processors
- DSPDs digital signal processing devices
- PLDs programmable logic devices
- FPGA field programmable Gate array
- controller microcontroller, microprocessor or other electronic components are implemented for performing the above heat consumption estimation method.
- a non-transitory computer-readable storage medium including instructions such as a memory 804 including instructions, which can be executed by the processor 820 of the device 800 to complete the above-described heat consumption estimation method is also provided.
- the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
- a computer program product comprising a computer program executable by a programmable device, the computer program having a function for performing the above when executed by the programmable device.
- the code part of the calorie consumption estimation method.
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Medical Informatics (AREA)
- Biophysics (AREA)
- Pathology (AREA)
- Engineering & Computer Science (AREA)
- Biomedical Technology (AREA)
- Heart & Thoracic Surgery (AREA)
- Physics & Mathematics (AREA)
- Molecular Biology (AREA)
- Surgery (AREA)
- Animal Behavior & Ethology (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Cardiology (AREA)
- Physiology (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The present disclosure relates to a heat consumption estimation method and device and a storage medium. The method comprises: acquiring the heart rate and the respiratory rate of a target user at a current moment; according to the heart rate at the current moment, determining motion state feature information of the target user at the current moment, the motion state feature information being used for representing whether the target user is in a motion steady-state stage or a motion recovery stage at the current moment; according to the heart rate at the current moment, the respiratory rate at the current moment and a heat estimation model corresponding to the motion state feature information at the current moment, obtaining a heat consumption increment of the target user in a current time period, wherein heat estimation models corresponding to different motion state feature information are different, and the current time period is a time period from the previous moment of the current moment to the current moment; and according to the heat consumption increment, determining total heat consumption information of the target user in a motion process. By means of the described technical scheme, estimation of heat consumption is more accurate.
Description
本公开涉及人机交互领域,尤其涉及一种热量消耗估算方法、装置及存储介质。The present disclosure relates to the field of human-computer interaction, and in particular, to a method, device and storage medium for estimating heat consumption.
随着科技的不断发展,可穿戴设备渐渐进入到了人们的日常生活中。可穿戴设备即直接穿在身上,或是整合到用户衣服上的一种便携式设备,其产品形态多种多样,例如智能手表、智能手环、智能眼镜、智能头盔等等。可穿戴设备中有许多的传感器,能够采集人体的生理学信号,例如心率等信号,从而对用户的健康指标进行监测,其中在关于运动的指标监测中,用户在运动过程中的热量消耗即卡路里消耗,成为人们日益关注的对象,然而相关技术中对热量消耗的计算不够准确。With the continuous development of technology, wearable devices have gradually entered people's daily lives. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes. Its product forms are diverse, such as smart watches, smart bracelets, smart glasses, smart helmets, etc. There are many sensors in wearable devices that can collect physiological signals of the human body, such as heart rate and other signals, to monitor the user's health indicators. Among them, in the monitoring of exercise indicators, the user's caloric consumption during exercise is the calorie consumption. , has become the object of increasing attention. However, the calculation of calorie consumption in related technologies is not accurate enough.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开提供一种热量消耗估算方法、装置及存储介质。In order to overcome problems existing in related technologies, the present disclosure provides a method, device and storage medium for estimating heat consumption.
根据本公开实施例的第一方面,提供一种热量消耗估算方法,包括:According to a first aspect of an embodiment of the present disclosure, a caloric consumption estimation method is provided, including:
获取目标用户在当前时刻的心率和呼吸频率;根据所述当前时刻的心率,确定所述目标用户在所述当前时刻的运动状态特征信息,其中,所述运动状态特征信息用于表征所述目标用户在所述当前时刻是处于运动稳态阶段还是运动恢复阶段;根据所述当前时刻的心率、所述当前时刻的呼吸频率、所述当前时刻的运动状态特征信息对应的热量估算模型,得到所述目标用户在当前时段内的热量消耗增量,其中,不同运动状态特征信息对应的热量估算模型不同,所述当前时段为从所述当前时刻的上一时刻至所述当前时刻之间的时段;根据所述热量消耗增量,确定所述目标用户在运动过程中的总热量消耗信息,其中,该运动过程包括从运动开始时刻至所述当前时刻的过程。Obtain the heart rate and respiratory rate of the target user at the current moment; determine the motion state feature information of the target user at the current moment based on the heart rate at the current moment, wherein the motion state feature information is used to characterize the target Whether the user is in the steady state stage of exercise or the recovery stage of exercise at the current moment; according to the heart rate at the current moment, the respiratory frequency at the current moment, and the heat estimation model corresponding to the motion state characteristic information at the current moment, the result is obtained Calorie consumption increment of the target user in the current period, wherein the caloric estimation models corresponding to different motion state characteristic information are different, and the current period is the period from the previous moment of the current moment to the current moment. ; According to the calorie consumption increment, determine the total calorie consumption information of the target user during exercise, wherein the exercise process includes the process from the start time of exercise to the current time.
可选地,所述根据所述当前时刻的心率、所述当前时刻的呼吸频率、所述当前时刻的运动状态特征信息对应的热量估算模型,得到所述目标用户在当前时段内的热量消耗增量,包括:若所述目标用户在所述当前时刻处于运动稳态阶段,则根据所述当前时刻的心率、所述当前时刻的呼吸频率和稳态阶段热量估算模型,得到所述目标用户在当前 时段内的热量消耗增量;若所述目标用户在所述当前时刻处于运动恢复阶段,则根据所述当前时刻的心率、所述当前时刻的呼吸频率和恢复阶段热量估算模型,得到所述目标用户在所述当前时段内的热量消耗增量。Optionally, based on the calorie estimation model corresponding to the heart rate at the current moment, the respiratory rate at the current moment, and the motion state feature information at the current moment, the increase in calorie consumption of the target user in the current period is obtained. The quantity includes: if the target user is in the steady-state stage of exercise at the current moment, then according to the heart rate at the current moment, the respiratory frequency at the current moment and the steady-state stage caloric estimation model, the target user is obtained in the steady-state stage. Calorie consumption increment in the current period; if the target user is in the exercise recovery stage at the current moment, then based on the heart rate at the current moment, the respiratory frequency at the current moment and the recovery stage caloric estimation model, the The incremental calorie consumption of the target user during the current period.
可选地,所述方法还包括:获取所述目标用户的生理特征信息;所述根据所述当前时刻的心率、所述当前时刻的呼吸频率和稳态阶段热量估算模型,得到所述目标用户在当前时段内的热量消耗增量,包括:将所述当前时刻的心率、所述当前时刻的呼吸频率、所述目标用户的生理特征信息输入至所述稳态阶段热量估算模型中,得到所述稳态阶段热量估算模型输出的所述热量消耗增量;所述根据所述当前时刻的心率、所述当前时刻的呼吸频率和恢复阶段热量估算模型,得到所述目标用户在所述当前时段内的热量消耗增量,包括:将所述当前时刻的心率、所述当前时刻的呼吸频率、所述目标用户的生理特征信息输入至所述恢复阶段热量估算模型中,得到所述恢复阶段热量估算模型输出的所述热量消耗增量。Optionally, the method further includes: obtaining the physiological characteristic information of the target user; and obtaining the target user based on the heart rate at the current moment, the respiratory frequency at the current moment and the steady-state stage heat estimation model. The increment of caloric consumption in the current period includes: inputting the heart rate at the current moment, the respiratory rate at the current moment, and the physiological characteristic information of the target user into the steady-state stage caloric estimation model to obtain the The caloric consumption increment output by the caloric estimation model in the steady-state phase; the heat consumption increment of the target user in the current period is obtained based on the heart rate at the current moment, the respiratory rate at the current moment and the caloric estimation model in the recovery phase. The increment of caloric consumption within the period includes: inputting the heart rate at the current moment, the respiratory rate at the current moment, and the physiological characteristic information of the target user into the recovery phase caloric estimation model to obtain the recovery phase caloric value. Estimate the incremental caloric expenditure output from the model.
可选地,所述稳态阶段热量估算模型是通过如下方式训练得到的:获取处于运动稳态阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息;将处于运动稳态阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息输入至深度学习网络模型中,对所述深度学习网络模型进行训练,以得到所述稳态阶段热量估算模型。Optionally, the steady-state stage caloric estimation model is trained by: obtaining the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the steady-state stage of exercise; The heart rate, respiratory rate, actual calorie consumption and physiological characteristic information are input into the deep learning network model, and the deep learning network model is trained to obtain the steady-state stage heat estimation model.
可选地,所述恢复阶段热量估算模型是通过如下方式训练得到的:获取处于运动恢复阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息;将处于运动恢复阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息输入至深度学习网络模型中,对所述深度学习网络模型进行训练,以得到所述恢复阶段热量估算模型。Optionally, the recovery phase caloric estimation model is trained in the following manner: obtaining the heart rate, breathing frequency, actual caloric consumption and physiological characteristic information of the user in the exercise recovery phase; Respiratory frequency, actual caloric consumption and physiological characteristic information are input into the deep learning network model, and the deep learning network model is trained to obtain the recovery stage caloric estimation model.
可选地,所述根据所述当前时刻的心率,确定所述目标用户在所述当前时刻的运动状态特征信息,包括:将所述当前时刻的心率输入至运动状态识别模型中,得到所述运动状态识别模型输出的所述运动状态特征信息。Optionally, determining the motion state characteristic information of the target user at the current moment according to the heart rate at the current moment includes: inputting the heart rate at the current moment into a motion state recognition model to obtain the The motion state feature information output by the motion state recognition model.
可选地,所述运动状态识别模型是通过如下方式训练得到的:将用户处于运动稳态阶段时的心率和用于表征该心率对应于运动稳态阶段的标签、以及用户处于运动恢复阶段时的心率和用于表征该心率对应与运动恢复阶段的标签作为分类器的输入,对所述分类器进行训练,以得到所述运动状态识别模型。Optionally, the movement state recognition model is trained in the following manner: the heart rate when the user is in the steady state stage of movement and the label used to characterize that the heart rate corresponds to the steady state stage of movement, and when the user is in the recovery stage of movement. The heart rate and the label used to characterize the correspondence between the heart rate and the exercise recovery stage are used as the input of the classifier, and the classifier is trained to obtain the movement state recognition model.
可选地,所述稳态阶段热量估算模型和所述恢复阶段热量估算模型均为门控循环单元模型。Optionally, both the steady-state stage heat estimation model and the recovery stage heat estimation model are gated cycle unit models.
可选地,所述方法还包括:在所述目标用户结束运动后,根据所述目标用户本次运动的热量消耗量确定所述目标用户的当前基础代谢信息,并展示所述当前基础代谢信息,其中,所述当前基础代谢信息大于所述目标用户在本次运动前的基础代谢信息。Optionally, the method further includes: after the target user finishes exercising, determine the current basal metabolic information of the target user based on the caloric consumption of the target user during this exercise, and display the current basal metabolic information. , wherein the current basal metabolic information is greater than the basal metabolic information of the target user before this exercise.
根据本公开实施例的第二方面,提供一种热量消耗估算装置,包括:According to a second aspect of the embodiment of the present disclosure, a heat consumption estimating device is provided, including:
频率获取模块,用于获取目标用户在当前时刻的心率和呼吸频率;状态确定模块,用于根据所述当前时刻的心率,确定所述目标用户在所述当前时刻的运动状态特征信息,其中,所述运动状态特征信息用于表征所述目标用户在所述当前时刻是处于运动稳态阶段还是运动恢复阶段;增量确定模块,用于根据所述当前时刻的心率、所述当前时刻的呼吸频率、所述当前时刻的运动状态特征信息对应的热量估算模型,得到所述目标用户在当前时段内的热量消耗增量,其中,不同运动状态特征信息对应的热量估算模型不同,所述当前时段为从所述当前时刻的上一时刻至所述当前时刻之间的时段;总热量确定模块,用于根据所述热量消耗增量,确定所述目标用户在运动过程中的总热量消耗信息,其中,该运动过程包括从运动开始时刻至所述当前时刻的过程。The frequency acquisition module is used to obtain the heart rate and respiratory frequency of the target user at the current moment; the state determination module is used to determine the motion state characteristic information of the target user at the current moment according to the heart rate at the current moment, wherein, The motion state characteristic information is used to characterize whether the target user is in a steady state phase or a recovery phase of motion at the current moment; an increment determination module is used to determine whether the target user is in a steady state phase or a recovery phase based on the heart rate at the current moment and the respiration at the current moment. The frequency and the caloric estimation model corresponding to the motion state characteristic information at the current moment are used to obtain the caloric consumption increment of the target user in the current period. The caloric estimation models corresponding to different motion state characteristic information are different. The current period is the period from the previous moment of the current moment to the current moment; the total calorie determination module is used to determine the total calorie consumption information of the target user during exercise according to the calorie consumption increment, Wherein, the movement process includes the process from the movement start time to the current time.
可选地,所述增量确定模块包括:第一增量确定子模块,用于若所述目标用户在所述当前时刻处于运动稳态阶段,则根据所述当前时刻的心率、所述当前时刻的呼吸频率和稳态阶段热量估算模型,得到所述目标用户在当前时段内的热量消耗增量;第二增量确定子模块,用于若所述目标用户在所述当前时刻处于运动恢复阶段,则根据所述当前时刻的心率、所述当前时刻的呼吸频率和恢复阶段热量估算模型,得到所述目标用户在所述当前时段内的热量消耗增量。Optionally, the increment determination module includes: a first increment determination sub-module, configured to determine if the target user is in a steady state stage of exercise at the current moment according to the heart rate at the current moment, the current The respiratory frequency and steady-state stage caloric estimation model at each moment are used to obtain the caloric consumption increment of the target user in the current period; the second increment determination sub-module is used to determine if the target user is in exercise recovery at the current moment. stage, then based on the heart rate at the current moment, the respiratory frequency at the current moment and the recovery stage caloric estimation model, the caloric consumption increment of the target user in the current period is obtained.
可选地,所述装置还包括:信息获取模块,用于获取所述目标用户的生理特征信息;所述第一增量确定子模块用于:将所述当前时刻的心率、所述当前时刻的呼吸频率、所述目标用户的生理特征信息输入至所述稳态阶段热量估算模型中,得到所述稳态阶段热量估算模型输出的所述热量消耗增量;所述第二增量确定子模块用于:将所述当前时刻的心率、所述当前时刻的呼吸频率、所述目标用户的生理特征信息输入至所述恢复阶段热量估算模型中,得到所述恢复阶段热量估算模型输出的所述热量消耗增量。Optionally, the device further includes: an information acquisition module, used to obtain the physiological characteristic information of the target user; and the first increment determination sub-module is used to: combine the heart rate at the current moment, the heart rate at the current moment, The respiratory frequency and the physiological characteristic information of the target user are input into the steady-state stage heat estimation model, and the heat consumption increment output by the steady-state stage heat estimation model is obtained; the second increment determiner The module is configured to: input the heart rate at the current moment, the respiratory rate at the current moment, and the physiological characteristic information of the target user into the recovery phase heat estimation model, and obtain all the values output by the recovery phase heat estimation model. The increase in caloric consumption.
可选地,所述稳态阶段热量估算模型是通过如下模块训练得到的:第一获取模块,用于获取处于运动稳态阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息;第一训练模块,用于将处于运动稳态阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息输入至深度学习网络模型中,对所述深度学习网络模型进行训练,以得到所 述稳态阶段热量估算模型。Optionally, the steady-state stage caloric estimation model is trained through the following modules: a first acquisition module, used to obtain the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the steady-state stage of exercise; A training module for inputting the heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of the user in the steady state stage of exercise into the deep learning network model, and training the deep learning network model to obtain the stable state. State stage heat estimation model.
可选地,所述恢复阶段热量估算模型是通过如下模块训练得到的:第二获取模块,用于获取处于运动恢复阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息;第二训练模块,用于将处于运动恢复阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息输入至深度学习网络模型中,对所述深度学习网络模型进行训练,以得到所述恢复阶段热量估算模型。Optionally, the recovery phase caloric estimation model is obtained by training through the following modules: a second acquisition module, used to acquire the heart rate, breathing frequency, actual caloric consumption and physiological characteristic information of the user in the exercise recovery phase; second training Module, used to input the heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of the user in the exercise recovery stage into the deep learning network model, and train the deep learning network model to obtain the calorie estimate in the recovery stage. Model.
可选地,所述状态确定模块用于:将所述当前时刻的心率输入至运动状态识别模型中,得到所述运动状态识别模型输出的所述运动状态特征信息。Optionally, the state determination module is configured to input the heart rate at the current moment into a motion state recognition model to obtain the motion state feature information output by the motion state recognition model.
可选地,所述运动状态识别模型是通过如下模块训练得到的:第三训练模块,用于将用户处于运动稳态阶段时的心率和用于表征该心率对应于运动稳态阶段的标签、以及用户处于运动恢复阶段时的心率和用于表征该心率对应与运动恢复阶段的标签作为分类器的输入,对所述分类器进行训练,以得到所述运动状态识别模型。Optionally, the movement state recognition model is trained through the following modules: a third training module, used to combine the user's heart rate when in the steady state stage of movement and a label used to represent that the heart rate corresponds to the steady state stage of movement; And the heart rate of the user when he is in the exercise recovery stage and the label used to characterize the correspondence between the heart rate and the exercise recovery stage are used as inputs of the classifier, and the classifier is trained to obtain the movement state recognition model.
可选地,所述装置还包括:基础代谢确定模块,用于在所述目标用户结束运动后,根据所述目标用户本次运动的热量消耗量确定所述目标用户的当前基础代谢信息,并展示所述当前基础代谢信息,其中,所述当前基础代谢信息大于所述目标用户在本次运动前的基础代谢信息。Optionally, the device further includes: a basal metabolism determination module, configured to determine the current basal metabolism information of the target user based on the calorie consumption of the target user's current exercise after the target user finishes exercising, and The current basal metabolic information is displayed, wherein the current basal metabolic information is greater than the target user's basal metabolic information before this exercise.
根据本公开实施例的第三方面,提供一种热量消耗估算装置,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:执行本公开实施例第一方面提供的所述方法的步骤。According to a third aspect of an embodiment of the present disclosure, a device for estimating heat consumption is provided, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: execute the first embodiment of the present disclosure. One aspect provides the steps of the method.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行时实现本公开第一方面所提供的热量消耗估算方法的步骤。According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the caloric consumption estimation method provided by the first aspect of the present disclosure are implemented. .
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
通过上述技术方案,首先获取目标用户在当前时刻的心率,之后根据该心率,确定目标用户在当前时刻的运动状态特征信息,运动状态特征信息用于表征目标用户当前处于运动稳态阶段还是运动恢复阶段。根据当前时刻的心率、当前时刻的呼吸频率、当前时刻的运动状态特征信息对应的热量估算模型,得到目标用户在当前时段内的热量消耗增量,其中,不同运动状态特征信息对应的热量估算模型不同,考虑到在运动稳态阶段和运动恢复阶段,热量消耗的特性不同,因此考虑目标用户处于何种运动阶段,不同运 动阶段采用不同的模型进行热量估算,可以使得热量消耗的估算更加准确。Through the above technical solution, the heart rate of the target user at the current moment is first obtained, and then based on the heart rate, the motion state characteristic information of the target user at the current moment is determined. The motion state characteristic information is used to characterize whether the target user is currently in the steady state stage of exercise or recovery. stage. According to the heat estimation model corresponding to the heart rate at the current moment, the respiratory rate at the current moment, and the motion state feature information at the current moment, the calorie consumption increment of the target user in the current period is obtained. Among them, the heat estimation model corresponding to different motion state feature information is Different, considering that the characteristics of calorie consumption are different in the steady-state stage of exercise and the recovery stage of exercise, therefore considering what exercise stage the target user is in, using different models for calorie estimation in different exercise stages can make the estimation of calorie consumption more accurate.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present disclosure.
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种热量消耗估算方法的流程图。FIG. 1 is a flow chart of a method for estimating heat consumption according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种热量消耗估算方法的流程图。FIG. 2 is a flow chart of a method for estimating heat consumption according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种热量消耗估算流程示意图。FIG. 3 is a schematic flowchart of a heat consumption estimation process according to an exemplary embodiment.
图4是根据一示例性实施例示出的模型训练示意图。Figure 4 is a schematic diagram of model training according to an exemplary embodiment.
图5是门控循环单元模型的内部结构示意图。Figure 5 is a schematic diagram of the internal structure of the gated cycle unit model.
图6是根据一示例性实施例示出的一种热量消耗估算装置的框图。FIG. 6 is a block diagram of a heat consumption estimating device according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种用于热量消耗估算的装置的框图。FIG. 7 is a block diagram of a device for estimating heat consumption according to an exemplary embodiment.
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with aspects of the disclosure as detailed in the appended claims.
需要说明的是,本申请中所有获取信号、信息或数据的动作都是在遵照所在地国家相应的数据保护法规政策的前提下,并获得由相应装置所有者给予授权的情况下进行的。It should be noted that all actions to obtain signals, information or data in this application are performed under the premise of complying with the corresponding data protection regulations and policies of the country where the location is located, and with authorization from the owner of the corresponding device.
目前,估算用户在运动过程中的热量消耗即卡路里消耗的方法主要有以下几种:基于心率的线性回归方法、基于心率的机器学习模型或深度学习模型、基于加速度的热量消耗估计。其中,在基于心率的线性回归方法中,需要在不同的运动场景(如走路、跑步、爬山、骑行、游泳、打球等)下分别回归出不同的模型,例如,当一位用户在晨跑完成之后继续进行爬山锻炼,其需要在晨跑前开启户外跑步选项,可穿戴设备采用户外跑步对应的线性回归模型来进行热量消耗估算,在晨跑结束后用户需要结束跑步运动,重新开启爬山选项,可穿戴设备采用爬山对应的线性回归模型来进行热量消耗估算,如 此,在切换运动场景时,需要变换不同的回归模型来进行热量消耗的估算,场景适应性较差。基于心率的机器学习模型或深度学习模型虽然可以解决场景依赖问题,但是由于在不同运动阶段,热量消耗特性不同,因此采用单一的深度学习模型估算整个阶段的热量消耗,通常不够准确。Currently, there are mainly the following methods for estimating a user's caloric consumption during exercise: heart rate-based linear regression method, heart rate-based machine learning model or deep learning model, and acceleration-based caloric consumption estimation. Among them, in the linear regression method based on heart rate, different models need to be regressed in different sports scenarios (such as walking, running, climbing, cycling, swimming, playing ball, etc.). For example, when a user is running in the morning After completing the mountain climbing exercise, you need to turn on the outdoor running option before the morning run. The wearable device uses the linear regression model corresponding to outdoor running to estimate the calorie consumption. After the morning run, the user needs to end the running exercise and reopen the mountain climbing option. , the wearable device uses a linear regression model corresponding to mountain climbing to estimate heat consumption. In this way, when switching sports scenes, different regression models need to be transformed to estimate heat consumption, and the scene adaptability is poor. Although heart rate-based machine learning models or deep learning models can solve the problem of scene dependence, due to the different calorie consumption characteristics in different exercise stages, it is usually not accurate enough to use a single deep learning model to estimate the calorie consumption in the entire stage.
有鉴于此,本公开提供一种热量消耗估算方法、装置及存储介质,以提高对用户在运动过程中热量消耗估算的准确性。以下对本公开的实施方式进行详细说明。In view of this, the present disclosure provides a caloric consumption estimation method, device and storage medium to improve the accuracy of estimating the user's caloric consumption during exercise. Embodiments of the present disclosure will be described in detail below.
需要说明的是,在一实施例中,本公开提供的热量消耗估算方法可以应用于可穿戴设备,如智能手表、智能手环等设备,用户佩戴可穿戴设备的情况下,可穿戴设备能够实时采集用户的心率,并计算用户在运动过程中的热量消耗。在另一实施例中,本公开提供的热量消耗估算方法可以应用于与可穿戴设备建立连接关系的终端,如用户的手机、平板电脑等设备,可穿戴设备可以将采集的用户心率实时传输给终端,终端可获取到用户的心率并计算用户在运动过程中的热量消耗。It should be noted that, in one embodiment, the caloric consumption estimation method provided by the present disclosure can be applied to wearable devices, such as smart watches, smart bracelets and other devices. When the user wears the wearable device, the wearable device can calculate the energy consumption in real time. Collect the user's heart rate and calculate the user's calorie consumption during exercise. In another embodiment, the caloric consumption estimation method provided by the present disclosure can be applied to a terminal that establishes a connection relationship with a wearable device, such as a user's mobile phone, tablet computer, and other devices. The wearable device can transmit the collected user heart rate to the device in real time. The terminal can obtain the user's heart rate and calculate the user's calorie consumption during exercise.
图1是根据一示例性实施例示出的一种热量消耗估算方法的流程图,如图1所示,该方法可包括S101至S104。FIG. 1 is a flow chart of a method for estimating heat consumption according to an exemplary embodiment. As shown in FIG. 1 , the method may include S101 to S104.
在S101中,获取目标用户在当前时刻的心率和呼吸频率。In S101, obtain the heart rate and respiratory rate of the target user at the current moment.
其中,目标用户为佩戴可穿戴设备的用户,可穿戴设备可按照预设采样频率采集目标用户的心率,例如预设采样频率为1HZ,则可穿戴设备可每隔1秒钟采集一次目标用户的心率。Among them, the target user is a user wearing a wearable device. The wearable device can collect the target user's heart rate according to the preset sampling frequency. For example, the preset sampling frequency is 1HZ, then the wearable device can collect the target user's heart rate every 1 second. Heart rate.
除了如跑步、登山等这类运动场景需要消耗热量之外,像日常办公这样的低强度运动的活动同样会消耗热量。但是低强度运动时,热量消耗的模式与高强度运动时并不一样,表现出更强的非线性关系。为了更加准确的估计低强度运动下热量的消耗,本公开中还获取目标用户的呼吸频率,呼吸频率表示的是每分钟呼吸的次数,可在一定程度上反映用户的运动强度,呼吸频率可通过可穿戴设备中的传感器检测到。In addition to sports scenes such as running and mountain climbing that consume calories, low-intensity sports activities such as daily office work also consume calories. However, during low-intensity exercise, the pattern of calorie consumption is different from that during high-intensity exercise, showing a stronger nonlinear relationship. In order to more accurately estimate the calorie consumption under low-intensity exercise, the respiratory frequency of the target user is also obtained in this disclosure. The respiratory frequency represents the number of breaths per minute, which can reflect the user's exercise intensity to a certain extent. The respiratory frequency can be obtained by Detected by sensors in wearable devices.
在S102中,根据当前时刻的心率,确定目标用户在当前时刻的运动状态特征信息。该运动状态特征信息用于表征目标用户在当前时刻是处于运动稳态阶段还是运动恢复阶段。In S102, based on the heart rate at the current moment, the motion state characteristic information of the target user at the current moment is determined. This motion state feature information is used to characterize whether the target user is in the motion steady state phase or the motion recovery phase at the current moment.
其中,用户在运动时通常经历运动启动阶段、运动平稳阶段、运动恢复阶段。运动启动阶段即刚开始运动的阶段,该阶段时间较短且消耗的热量较少,运动平稳阶段即呼吸和心率波动较小、相对平稳的阶段,例如匀速跑步阶段,由于运动启动阶段的时间较 短且消耗的热量较少,因此本公开中将运动启动阶段和运动平稳阶段作为运动稳态阶段。在户外长跑、越野跑、登山等场景中,运动者会经常性的变速跑以及短暂休息以恢复体力,这种速度大幅降低或者运动暂停以恢复体力的阶段,可作为运动恢复阶段。Among them, users usually go through an exercise startup phase, an exercise plateau phase, and an exercise recovery phase when exercising. The start-up stage of exercise is the stage when exercise is just beginning. This stage is short and consumes less calories. The stationary stage of exercise is the stage where breathing and heart rate fluctuations are small and relatively stable, such as the running stage at a constant speed. Since the start-up stage of exercise takes a long time, It is short and consumes less calories, so the exercise startup phase and the exercise plateau phase are regarded as the exercise steady state phase in this disclosure. In scenes such as outdoor long-distance running, cross-country running, mountain climbing, etc., athletes will frequently run at different speeds and take short breaks to recover their physical strength. This stage when the speed is significantly reduced or exercise is paused to restore physical strength, can be regarded as the exercise recovery stage.
由于在不同运动阶段,用户的心率不同,且心率随运动阶段的变化而变化,因此可根据当前时刻的心率,确定目标用户在当前时刻的运动状态特征信息。Since the user's heart rate is different in different exercise stages, and the heart rate changes with the change of exercise stage, the characteristic information of the target user's movement status at the current moment can be determined based on the heart rate at the current moment.
在S103中,根据当前时刻的心率、当前时刻的呼吸频率、当前时刻的运动状态特征信息对应的热量估算模型,得到目标用户在当前时段内的热量消耗增量。In S103, the calorie consumption increment of the target user in the current period is obtained based on the calorie estimation model corresponding to the current heart rate, the current respiratory rate, and the current motion state feature information.
其中,不同运动状态特征信息对应的热量估算模型不同,当前时段为从当前时刻的上一时刻至当前时刻之间的时段。示例地,以从前到后依次为t1、t2、t3、……、t28、t29、t30三十个时刻为例进行说明,例如当前时刻为t30时刻,当前时段为从t29时刻至t30时刻之间的时段,当前时段内的热量消耗增量即为目标用户从t29时刻至t30时刻的热量消耗量。Among them, the heat estimation models corresponding to different motion state characteristic information are different, and the current period is the period from the previous moment to the current moment. For example, take thirty moments t1, t2, t3,..., t28, t29, t30 from front to back as an example. For example, the current moment is t30, and the current period is from t29 to t30. period, the increment of caloric consumption in the current period is the caloric consumption of the target user from time t29 to time t30.
本公开中对于不同运动阶段分别进行建模,不同运动状态特征信息对应的热量估算模型不同,且不同运动状态特征信息对应的热量估算模型可以均为深度学习网络模型。本公开中考虑到在运动稳态阶段和运动恢复阶段,热量消耗的特性不同,因此考虑目标用户处于何种运动阶段,不同运动阶段采用不同的模型进行热量估算,可以使得热量消耗的估算更加准确。In this disclosure, different motion stages are modeled separately. The heat estimation models corresponding to different motion state feature information are different, and the heat estimation models corresponding to different motion state feature information can all be deep learning network models. This disclosure takes into account that the characteristics of caloric consumption are different in the steady-state phase of exercise and the recovery phase of exercise. Therefore, considering what phase of exercise the target user is in, different models are used for caloric estimation in different exercise phases, which can make the estimation of caloric consumption more accurate. .
而且,将目标用户的呼吸频率同时输入相应的热量估算模型中,能够增加模型对于运动场景、运动强度的识别,实现无论是对于运动场景还是非运动场景(如日常办公)的热量消耗都能够准确估算。Moreover, inputting the target user's breathing frequency into the corresponding heat estimation model at the same time can increase the model's recognition of sports scenes and exercise intensity, and achieve accurate calorie consumption in both sports scenes and non-sports scenes (such as daily office work). Estimate.
在S104中,根据热量消耗增量,确定目标用户在运动过程中的总热量消耗信息。In S104, the total calorie consumption information of the target user during exercise is determined based on the calorie consumption increment.
其中,该运动过程包括从运动开始时刻至当前时刻的过程。示例地,在准备进行运动时,目标用户可在可穿戴设备或终端上点击开始运动按钮,并且还可以选择自己进行的运动的运动类型,如慢跑、登山、越野跑等,目标用户触发开始运动按钮的时刻,可作为运动开始时刻。另外,也可将用户佩戴可穿戴设备的时刻作为运动开始时刻,即使用户没有点击开始运动按钮,无论用户处于运动状态还是日常办公状态,均可对用户的热量消耗进行估算。示例地,热量消耗增量、总热量消耗信息可通过卡路里来进行表示。The movement process includes the process from the start time of the movement to the current time. For example, when preparing to exercise, the target user can click the start exercise button on the wearable device or terminal, and can also select the type of exercise he or she is doing, such as jogging, mountain climbing, cross-country running, etc., and the target user triggers the start exercise button. The moment of pressing the button can be used as the start moment of exercise. In addition, the moment when the user wears the wearable device can also be used as the start time of exercise. Even if the user does not click the start exercise button, the user's caloric consumption can be estimated regardless of whether the user is in exercise or daily office status. For example, the calorie consumption increment and total calorie consumption information may be represented by calories.
通过上述技术方案,首先获取目标用户在当前时刻的心率,之后根据该心率,确定目标用户在当前时刻的运动状态特征信息,运动状态特征信息用于表征目标用户当前处 于运动稳态阶段还是运动恢复阶段。根据当前时刻的心率、当前时刻的呼吸频率、当前时刻的运动状态特征信息对应的热量估算模型,得到目标用户在当前时段内的热量消耗增量,其中,不同运动状态特征信息对应的热量估算模型不同,考虑到在运动稳态阶段和运动恢复阶段,热量消耗的特性不同,因此考虑目标用户处于何种运动阶段,不同运动阶段采用不同的模型进行热量估算,可以使得热量消耗的估算更加准确。Through the above technical solution, the heart rate of the target user at the current moment is first obtained, and then based on the heart rate, the motion state characteristic information of the target user at the current moment is determined. The motion state characteristic information is used to characterize whether the target user is currently in the steady state stage of exercise or recovery. stage. According to the heat estimation model corresponding to the heart rate at the current moment, the respiratory rate at the current moment, and the motion state feature information at the current moment, the calorie consumption increment of the target user in the current period is obtained. Among them, the heat estimation model corresponding to different motion state feature information is Different, considering that the characteristics of calorie consumption are different in the steady-state stage of exercise and the recovery stage of exercise, therefore considering what exercise stage the target user is in, using different models for calorie estimation in different exercise stages can make the estimation of calorie consumption more accurate.
本公开中,S103可包括:In this disclosure, S103 may include:
若目标用户在当前时刻处于运动稳态阶段,则根据当前时刻的心率、当前时刻的呼吸频率和稳态阶段热量估算模型,得到目标用户在当前时段内的热量消耗增量;If the target user is in the steady-state stage of exercise at the current moment, the target user's calorie consumption increment in the current period is obtained based on the heart rate at the current moment, the respiratory rate at the current moment and the steady-state stage calorie estimation model;
若目标用户在当前时刻处于运动恢复阶段,则根据当前时刻的心率、当前时刻的呼吸频率和恢复阶段热量估算模型,得到目标用户在当前时段内的热量消耗增量。If the target user is in the exercise recovery stage at the current moment, the target user's calorie consumption increment in the current period is obtained based on the heart rate at the current moment, the respiratory rate at the current moment, and the recovery stage calorie estimation model.
其中,本公开中对于运动稳态阶段和运动恢复阶段分别进行建模,稳态阶段热量估算模型用于估算用户处于运动稳态阶段时的热量消耗增量,恢复阶段热量估算模型用于估算用户处于运动恢复阶段时的热量消耗增量,其中,稳态阶段热量估算模型与恢复阶段热量估算模型不同,且稳态阶段热量估算模型和恢复阶段热量估算模型可以均为深度学习网络模型。本公开中考虑到在运动稳态阶段和运动恢复阶段,热量消耗的特性不同,因此考虑目标用户处于何种运动阶段,不同运动阶段采用不同的模型进行热量估算,可以使得热量消耗的估算更加准确。Among them, in this disclosure, the steady-state stage of exercise and the recovery stage of exercise are modeled separately. The steady-state stage caloric estimation model is used to estimate the user's caloric consumption increment when the user is in the steady-state stage of exercise. The recovery stage caloric estimation model is used to estimate the user's caloric consumption increment. The increase in caloric consumption during the exercise recovery phase, where the caloric estimation model in the steady-state phase is different from the caloric estimation model in the recovery phase, and both the caloric estimation model in the steady-state phase and the caloric estimation model in the recovery phase can be deep learning network models. This disclosure takes into account that the characteristics of caloric consumption are different in the steady-state phase of exercise and the recovery phase of exercise. Therefore, considering what phase of exercise the target user is in, different models are used for caloric estimation in different exercise phases, which can make the estimation of caloric consumption more accurate. .
图2是根据一示例性实施例示出的一种热量消耗估算方法的流程图,如图2所示,该方法包括S201至S206。Figure 2 is a flow chart of a method for estimating heat consumption according to an exemplary embodiment. As shown in Figure 2, the method includes S201 to S206.
在S201中,获取目标用户在当前时刻的心率和呼吸频率。该步骤S201的实施方式可参照S101。In S201, obtain the heart rate and respiratory rate of the target user at the current moment. For the implementation of step S201, reference may be made to S101.
在S202中,根据当前时刻的心率,确定目标用户在当前时刻的运动状态特征信息。该步骤S202的实施方式可参照S102。In S202, based on the heart rate at the current moment, the motion state characteristic information of the target user at the current moment is determined. For the implementation of step S202, reference may be made to S102.
在S203中,获取目标用户的生理特征信息。In S203, the physiological characteristic information of the target user is obtained.
示例地,目标用户的生理特征信息例如包括目标用户的体重、年龄、性别等信息。需要说明的是,目标用户可以在可穿戴设备或终端上填写自己的体重和年龄等生理特征信息,在经过用户授权的情况下,可穿戴设备或终端可获取到目标用户的生理特征信息。For example, the target user's physiological characteristic information includes, for example, the target user's weight, age, gender and other information. It should be noted that the target user can fill in the physiological characteristic information such as weight and age on the wearable device or terminal. With the user's authorization, the wearable device or terminal can obtain the physiological characteristic information of the target user.
需要说明的是,对于S203的执行顺序不做限制,S203也可在S201或S202之前执行,图2所示的执行顺序仅为示例。It should be noted that there is no restriction on the execution order of S203. S203 may also be executed before S201 or S202. The execution order shown in Figure 2 is only an example.
在S204中,若目标用户在当前时刻处于运动稳态阶段,则将当前时刻的心率、当前时刻的呼吸频率、目标用户的生理特征信息输入至稳态阶段热量估算模型中,得到稳态阶段热量估算模型输出的热量消耗增量。In S204, if the target user is in the steady-state stage of exercise at the current moment, the current heart rate, the current respiratory rate, and the target user's physiological characteristic information are input into the steady-state stage heat estimation model to obtain the steady-state stage heat Estimate the incremental caloric consumption output from the model.
在S205中,若目标用户在当前时刻处于运动恢复阶段,则将当前时刻的心率、当前时刻的呼吸频率、目标用户的生理特征信息输入至恢复阶段热量估算模型中,得到恢复阶段热量估算模型输出的热量消耗增量。In S205, if the target user is in the exercise recovery stage at the current moment, the heart rate at the current moment, the respiratory rate at the current moment, and the target user's physiological characteristic information are input into the recovery stage heat estimation model to obtain the recovery stage heat estimation model output. increase in caloric consumption.
相关技术中在进行热量消耗估算时,并未考虑个体差异的问题,不同的用户,即使在进行相同的运动,他们消耗的热量也可能是不同的。人体在运动时,影响热量消耗的因素有多种,例如,完成同一项运动,体重较重的用户需要对外做更多的功才能完成,体重对于热量消耗的影响很大,另外,年龄会影响身体的新陈代谢速度,也会影响运动时热量的消耗。因此本公开中,在进行热量消耗估算时,将目标用户的生理特征信息作为其中一个特征输入至相应的热量估算模型中,即考虑个体差异问题,能够降低热量消耗估算的个体差异性,使得热量消耗的估算更加准确。In the related art, individual differences are not considered when estimating calorie consumption. Different users may consume different calories even if they perform the same exercise. There are many factors that affect calorie consumption when the human body is exercising. For example, to complete the same exercise, a heavier user needs to do more external work to complete it. Weight has a great impact on calorie consumption. In addition, age will affect The body's metabolic rate will also affect the caloric consumption during exercise. Therefore, in this disclosure, when estimating caloric consumption, the physiological characteristic information of the target user is input into the corresponding caloric estimation model as one of the features, that is, individual differences are taken into account, which can reduce the individual variability of caloric consumption estimation, so that the caloric Consumption estimates are more accurate.
而且,将目标用户的呼吸频率同时输入相应的热量估算模型中,能够增加模型对于运动场景、运动强度的识别,实现无论是对于运动场景还是非运动场景(如日常办公)的热量消耗都能够准确估算。Moreover, inputting the target user's breathing frequency into the corresponding heat estimation model at the same time can increase the model's recognition of sports scenes and exercise intensity, and achieve accurate calorie consumption in both sports scenes and non-sports scenes (such as daily office work). Estimate.
在S206中,根据热量消耗增量,确定目标用户在运动过程中的总热量消耗信息。该步骤S206的实施方式可参照S104。In S206, the total calorie consumption information of the target user during exercise is determined based on the calorie consumption increment. For the implementation of step S206, reference may be made to S104.
通过上述技术方案,在进行热量消耗估算时,将目标用户的生理特征信息和呼吸频率作为相应的热量估算模型的输入,不但能够降低热量消耗估算的个体差异性,且能够增加模型对于运动场景、运动强度的识别,使得热量消耗的估算更加准确。Through the above technical solution, when estimating calorie consumption, the physiological characteristic information and respiratory frequency of the target user are used as the input of the corresponding calorie estimation model, which can not only reduce the individual differences in calorie consumption estimation, but also increase the model's accuracy in sports scenes, The identification of exercise intensity makes the estimation of calorie consumption more accurate.
在一实施例中,S102的实施方式可以为:In an embodiment, the implementation of S102 may be:
将当前时刻的心率输入至运动状态识别模型中,得到运动状态识别模型输出的运动状态特征信息。Input the heart rate at the current moment into the motion state recognition model to obtain the motion state feature information output by the motion state recognition model.
其中,运动状态识别模型可以为分类器,例如贝叶斯分类器。图3是根据一示例性实施例示出的一种热量消耗估算流程示意图。如图3所示,首先将心率输入至运动状态识别模型中,如果运动状态识别模型识别出目标用户当前处于运动稳态阶段,则将心率输入至稳态阶段热量估算模型中,得到稳态阶段热量估算模型输出的热量消耗增量,如果运动状态识别模型识别出目标用户当前处于运动恢复阶段,则将心率输入至恢复阶段 热量估算模型中,得到恢复阶段热量估算模型输出的热量消耗增量。The motion state recognition model can be a classifier, such as a Bayesian classifier. FIG. 3 is a schematic flowchart of a heat consumption estimation process according to an exemplary embodiment. As shown in Figure 3, the heart rate is first input into the exercise state recognition model. If the exercise state recognition model identifies that the target user is currently in the steady state stage of exercise, the heart rate is input into the steady state stage caloric estimation model to obtain the steady state stage. The calorie consumption increment output by the calorie estimation model. If the exercise state recognition model identifies that the target user is currently in the exercise recovery stage, the heart rate is input into the recovery stage calorie estimation model to obtain the calorie consumption increment output by the recovery stage heat estimation model.
这样,通过预先训练一运动状态识别模型,可以由该运动状态识别模型准确识别目标用户当前所处的运动阶段。In this way, by pre-training a motion state recognition model, the motion state recognition model can accurately identify the current motion stage of the target user.
图4是根据一示例性实施例示出的模型训练示意图。下面结合图4分别对本公开中的稳态阶段热量估算模型、恢复阶段热量估算模型、运动状态识别模型的训练进行介绍。Figure 4 is a schematic diagram of model training according to an exemplary embodiment. The training of the heat estimation model in the steady state phase, the heat estimation model in the recovery phase, and the exercise state recognition model in the present disclosure will be introduced below with reference to Figure 4 .
在一实施例中,稳态阶段热量估算模型可以是通过如下方式训练得到的:In one embodiment, the steady-state stage heat estimation model can be trained in the following manner:
获取处于运动稳态阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息;Obtain the heart rate, respiratory rate, actual caloric consumption and physiological characteristics information of the user in the steady state stage of exercise;
将处于运动稳态阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息输入至深度学习网络模型中,对所述深度学习网络模型进行训练,以得到稳态阶段热量估算模型。The user's heart rate, respiratory rate, actual calorie consumption and physiological characteristic information in the steady-state stage of exercise are input into the deep learning network model, and the deep learning network model is trained to obtain a heat estimation model in the steady-state stage.
在一实施例中,恢复阶段热量估算模型可以是通过如下方式训练得到的:In one embodiment, the recovery phase caloric estimation model can be trained in the following manner:
获取处于运动恢复阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息;Obtain the heart rate, respiratory rate, actual calorie consumption and physiological characteristics information of the user in the exercise recovery stage;
将处于运动恢复阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息输入至深度学习网络模型中,对所述深度学习网络模型进行训练,以得到恢复阶段热量估算模型。The heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of the user in the exercise recovery stage are input into the deep learning network model, and the deep learning network model is trained to obtain a calorie estimation model in the recovery stage.
如图4所示,运动数据可包括稳态阶段运动数据和恢复阶段运动数据,稳态阶段运动数据包括处于运动稳态阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息,恢复阶段运动数据包括处于运动恢复阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息。其中实际热量消耗可以是通过专业心肺测试系统通过气体交换计算出的。采用稳态阶段运动数据训练出稳态阶段热量估算模型,采用恢复阶段运动数据训练出恢复阶段热量估算模型。As shown in Figure 4, exercise data may include steady-state phase exercise data and recovery phase exercise data. The steady-state phase exercise data includes the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the steady-state phase of exercise. The recovery phase Exercise data includes heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of users in the exercise recovery stage. The actual caloric consumption can be calculated through gas exchange through professional cardiopulmonary testing systems. The steady-state phase exercise data is used to train the steady-state phase heat estimation model, and the recovery phase exercise data is used to train the recovery phase heat estimation model.
在一实施例中,运动状态识别模型可以是通过如下方式训练得到的:In an embodiment, the motion state recognition model can be trained in the following manner:
将用户处于运动稳态阶段时的心率和用于表征该心率对应于运动稳态阶段的标签、以及用户处于运动恢复阶段时的心率和用于表征该心率对应与运动恢复阶段的标签作为分类器的输入,对分类器进行训练,以得到运动状态识别模型。The heart rate when the user is in the steady-state phase of exercise and the label used to characterize the heart rate corresponding to the steady-state phase of exercise, and the heart rate when the user is in the exercise recovery phase and the label used to characterize the heart rate corresponding to the exercise recovery phase are used as a classifier As input, the classifier is trained to obtain the motion state recognition model.
如图4所示,从恢复阶段运动数据中获取用户处于运动恢复阶段时的心率,并将该心率的标签标注为标签1,标签1用于表征该心率对应于运动恢复阶段。从稳态阶段运动数据中获取用户处于运动稳态阶段时的心率,并将该心率的标签标注为标签2,标签2用于表征该心率对应于运动稳态阶段。分类器例如可以为贝叶斯分类器,对分类器进行 训练,可得到运动状态识别模型。As shown in Figure 4, the heart rate of the user when he is in the exercise recovery stage is obtained from the recovery stage exercise data, and the label of the heart rate is labeled label 1. Label 1 is used to indicate that the heart rate corresponds to the exercise recovery stage. Obtain the heart rate of the user when he is in the steady-state stage of exercise from the steady-state stage exercise data, and label the heart rate label as label 2. Label 2 is used to indicate that the heart rate corresponds to the steady-state stage of exercise. The classifier can be a Bayesian classifier, for example. By training the classifier, a motion state recognition model can be obtained.
本公开中,稳态阶段热量估算模型和恢复阶段热量估算模型可以均为门控循环单元模型(GRU,gated recurrent Unit)。GRU模型在处理时间序列问题上具有很大的优势,引入细胞态保存长期记忆,改进了RNN(Recurrent Neural Network)循环神经网络只能保存短期记忆的缺陷。同时GRU模型改善了LSTM(Long Short-Term Memory,长短期记忆网络)深度学习算法计算复杂度高的问题,使得预测时延迟尽可能的小。使用GRU模型构建心率与热量消耗之间的映射模型,能够相较于其他机器学习提高估计精度,且更能够处理不同运动场景切换的问题。In this disclosure, the steady-state stage heat estimation model and the recovery stage heat estimation model may both be gated recurrent unit models (GRU, gated recurrent unit). The GRU model has great advantages in dealing with time series problems. It introduces cell state to save long-term memory and improves the defect of RNN (Recurrent Neural Network) that can only save short-term memory. At the same time, the GRU model improves the problem of high computational complexity of the LSTM (Long Short-Term Memory, Long Short-Term Memory Network) deep learning algorithm, making the prediction delay as small as possible. Using the GRU model to build a mapping model between heart rate and caloric consumption can improve the estimation accuracy compared to other machine learning, and is better able to handle the problem of switching between different sports scenes.
值得说明的是,训练稳态阶段热量估算模型和训练恢复阶段热量估算模型的方式是类似的,用于训练不同模型的训练参数例如迭代次数、损失函数等参数,可以相同或不同,根据实际需要进行设置,以下训练参数仅作为示例,不构成对本公开实施方式的限制。首先对GRU模型进行初始化,然后对GRU模型进行训练,迭代次数例如取M=256,损失函数loss=mae(平均绝对误差),优化器选择Adam优化器,一次训练所选取的样本数为batch size=16。It is worth mentioning that the methods of training the heat estimation model in the steady state phase and the training heat estimation model in the recovery phase are similar. The training parameters used to train different models, such as the number of iterations, loss functions and other parameters, can be the same or different, according to actual needs. Settings are made. The following training parameters are only examples and do not constitute a limitation on the implementation of the present disclosure. First initialize the GRU model, and then train the GRU model. For example, the number of iterations is M=256, the loss function loss=mae (mean absolute error), the optimizer selects the Adam optimizer, and the number of samples selected for one training is batch size =16.
图5是门控循环单元模型的内部结构示意图,如图5所示,GRU模型中使用两个门:更新门和重置门,输入变量只需要经过两次向量计算。其中zt代表更新门,用于控制从前一刻起的状态信息进入当前状态的程度,更新门的值越大,则引入来自前一时刻的更多状态信息,rt代表重置门,控制将来自前一状态的信息写入当前暂存细胞态,重置门越小,从前一状态写入的信息就越少。GRU模型同样能够实现储存长短期记忆的功能,其预测过程如下公式(1)至(5)所示:Figure 5 is a schematic diagram of the internal structure of the gated cyclic unit model. As shown in Figure 5, two gates are used in the GRU model: update gate and reset gate. The input variables only need to undergo vector calculation twice. Among them, zt represents the update gate, which is used to control the degree to which the state information from the previous moment enters the current state. The larger the value of the update gate, the more state information from the previous moment will be introduced. rt represents the reset gate, and the control will come from the previous moment. The information of one state is written into the current temporary cell state. The smaller the reset gate is, the less information is written from the previous state. The GRU model can also realize the function of storing long and short-term memory. Its prediction process is as shown in the following formulas (1) to (5):
r
t=σ(W
r·[h
t-1,x
t]) (1)
r t =σ(W r ·[h t-1 ,x t ]) (1)
z
t=σ(W
z·[h
t-1,x
t]) (2)
z t =σ(W z ·[h t-1 ,x t ]) (2)
y
t=σ(W
o·h
t) (5)
y t =σ(W o ·h t ) (5)
其中,σ为sigmoid层,包含sigmoid函数,其表达式如公式(6)所示:Among them, σ is the sigmoid layer, including the sigmoid function, and its expression is as shown in formula (6):
tanh层包含tanh函数,其表达式如公式(7)所示:The tanh layer contains the tanh function, whose expression is shown in formula (7):
e是Hadamard Product,也就是操作矩阵中对应的元素相乘,因此要求两个相乘矩阵是同型的。Wr是重置门的权重矩阵,Wz是更新门的权重矩阵,
是候选态的权重矩阵,Wo是输出的权重矩阵。ht、ht-1分别表示储存长期记忆的细胞态在t和t-1时刻的输出。
表示候选态在t时刻的输出。
e is the Hadamard Product, which means the corresponding elements in the operation matrix are multiplied, so the two multiplication matrices are required to be of the same type. Wr is the weight matrix of the reset gate, Wz is the weight matrix of the update gate, is the weight matrix of the candidate state, and Wo is the weight matrix of the output. ht and ht-1 respectively represent the output of the cell state storing long-term memory at time t and t-1. Represents the output of the candidate state at time t.
初始化LSTM深度学习网络的参数:将重置门的权重矩阵Wr、更新门的权重矩阵Wz、候选态的权重矩阵
输出的权重矩阵Wo初始化为0至1之间的随机数。设置GRU深度学习网络的输入层神经元个数为M,层数设置为i,每一层的输出作为下一层的输入。GRU模型初始化完成之后对GRU模型进行训练,以训练稳态阶段热量估算模型为例,将处于运动稳态阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息输入至深度学习网络模型中,可以采用反向传播算法对深度学习网络模型中的矩阵进行优化训练,训练完成时得到稳态阶段热量估算模型。其中设置训练迭代次数为epoch,损失函数为loss,优化器为optimizer,一次训练所选取的样本数为batch size。本实施例中取M=256,i=2,epoch=50,loss=mae(平均绝对误差),optimizer=Adam(Adam优化器),batch size=16。以训练恢复阶段热量估算模型为例,将处于运动恢复阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息输入至深度学习网络模型中,可以采用反向传播算法对深度学习网络模型中的矩阵进行优化训练,训练完成时得到恢复阶段热量估算模型。其中设置训练迭代次数为epoch,损失函数为loss,优化器为optimizer,一次训练所选取的样本数为batch size。本实施例中取M=256,i=2,epoch=50,loss=mae(平均绝对误差),optimizer=Adam(Adam优化器),batch size=16。
Initialize the parameters of the LSTM deep learning network: reset the weight matrix Wr of the gate, update the weight matrix Wz of the gate, and the weight matrix of the candidate state. The output weight matrix Wo is initialized to a random number between 0 and 1. Set the number of neurons in the input layer of the GRU deep learning network to M, the number of layers to i, and the output of each layer is used as the input of the next layer. After the GRU model is initialized, the GRU model is trained. Taking the training of the steady-state stage heat estimation model as an example, the user's heart rate, respiratory rate, actual heat consumption and physiological characteristic information in the steady-state stage of exercise are input into the deep learning network model. , the back propagation algorithm can be used to optimize the training of the matrix in the deep learning network model, and when the training is completed, the heat estimation model in the steady state phase is obtained. Among them, the number of training iterations is set to epoch, the loss function is loss, the optimizer is optimizer, and the number of samples selected for one training is batch size. In this embodiment, M=256, i=2, epoch=50, loss=mae (mean absolute error), optimizer=Adam (Adam optimizer), and batch size=16. Taking the caloric estimation model in the training recovery phase as an example, the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the exercise recovery phase are input into the deep learning network model. The back propagation algorithm can be used to The matrix is optimized and trained, and the recovery phase heat estimation model is obtained when the training is completed. Among them, the number of training iterations is set to epoch, the loss function is loss, the optimizer is optimizer, and the number of samples selected for one training is batch size. In this embodiment, M=256, i=2, epoch=50, loss=mae (mean absolute error), optimizer=Adam (Adam optimizer), and batch size=16.
由上述公式可知,GRU模型在训练时需要学习重置门rt、更新门zt以及暂存态
三套参数,GRU模型总的参数数量公式为:总参数=3*隐藏层参数*(输入层参数+偏置参数+输出层参数)。而LSTM在训练时需要学习输入门it、输出门ot、遗忘门ft以及暂存 态
四套参数,LSTM总的参数数量公式为:总参数=4*隐藏层参数*(输入层参数+偏置参数+输出层参数)。GRU模型训练时需要学习迭代的参数比LSTM少,因此GRU模型训练比LSTM快,收敛迭代次数比LSTM少。LSTM在预测时输入的肌电特征需要经过七次复杂的向量计算才能得出最终的估计角度,而GRU模型在线预测时只需要五次向量计算即可得到最终的估计角度,GRU模型在线预测的时效性也是优于LSTM模型的。因此无论是训练阶段还是预测阶段,GRU模型的时效性均优于LSTM模型,故本公开中稳态阶段热量估算模型和恢复阶段热量估算模型均可以为门控循环单元模型即GRU模型。
It can be seen from the above formula that the GRU model needs to learn the reset gate rt, update gate zt and temporary state during training. There are three sets of parameters. The formula for the total number of parameters of the GRU model is: total parameters = 3 * hidden layer parameters * (input layer parameters + bias parameters + output layer parameters). During training, LSTM needs to learn the input gate it, the output gate ot, the forget gate ft and the temporary state. Four sets of parameters, the formula for the total number of parameters of LSTM is: total parameters = 4 * hidden layer parameters * (input layer parameters + bias parameters + output layer parameters). GRU model training requires fewer iteration parameters than LSTM. Therefore, GRU model training is faster than LSTM and the number of convergence iterations is fewer than LSTM. The electromyographic features input by LSTM during prediction require seven complex vector calculations to obtain the final estimated angle, while the GRU model only requires five vector calculations to obtain the final estimated angle during online prediction. The GRU model predicts online The timeliness is also better than the LSTM model. Therefore, the timeliness of the GRU model is better than that of the LSTM model in both the training phase and the prediction phase. Therefore, the heat estimation model in the steady state phase and the heat estimation model in the recovery phase in this disclosure can both be the gated cycle unit model, that is, the GRU model.
通过上述技术方案,对于像爬山、越野跑这类运动平稳阶段与运动恢复阶段(多次休息)频繁切换的复杂运动状态下,本公开中可以针对不同的运动阶段采用不同的模型进行热量消耗的估算,相比于采用单一的模型进行整个阶段热量估算的效果更优,能够有效提高热量消耗估算的准确度。Through the above technical solution, for complex sports states such as mountain climbing and cross-country running where the steady stage of movement and the movement recovery stage (multiple rests) are frequently switched, the present disclosure can use different models for different movement stages to calculate calorie consumption. Estimation is more effective than using a single model to estimate calories for the entire stage, and can effectively improve the accuracy of energy consumption estimation.
本公开提供的热量消耗估算方法还可包括:The caloric consumption estimation method provided by this disclosure may also include:
在目标用户结束运动后,根据目标用户本次运动的热量消耗量确定目标用户的当前基础代谢信息,并展示当前基础代谢信息,其中,当前基础代谢信息大于目标用户在本次运动前的基础代谢信息。After the target user finishes exercising, the current basal metabolic information of the target user is determined based on the target user's calorie consumption during this exercise, and the current basal metabolic information is displayed. The current basal metabolic information is greater than the target user's basal metabolism before this exercise. information.
其中,基础代谢是指人体基础状态下的能量代谢,运动可以提高人体的基础代谢,运动强度越大,消耗的热量越高,基础代谢提高的水平也越高,在目标用户结束运动后,可根据目标用户本次运动的热量消耗量确定目标用户的当前基础代谢信息,并在可穿戴设备或终端上展示该当前基础代谢信息,计算基础代谢信息的方式可参照相关技术,例如根据目标用户本次运动的热量消耗量确定一个系数,将原基础代谢信息与该系数相乘得到当前基础代谢信息,由于运动可以提高人体的基础代谢水平,因此目标用户在本次运动结束后的当前基础代谢信息大于目标用户在本次运动前的基础代谢信息。Among them, basal metabolism refers to the energy metabolism under the basic state of the human body. Exercise can improve the basal metabolism of the human body. The greater the intensity of exercise, the higher the calories consumed, and the higher the level of improvement in basal metabolism. After the target user finishes exercising, Determine the target user's current basal metabolic information based on the target user's calorie consumption during this exercise, and display the current basal metabolic information on a wearable device or terminal. The method of calculating the basal metabolic information can refer to related technologies, for example, based on the target user's current basal metabolic information. Determine a coefficient for the caloric consumption of each exercise, and multiply the original basal metabolic information by this coefficient to obtain the current basal metabolic information. Since exercise can improve the basal metabolic level of the human body, the current basal metabolic information of the target user after the end of this exercise Greater than the target user’s basal metabolic information before this exercise.
基于同一发明构思,本公开还提供一种热量消耗估算装置,图6是根据一示例性实施例示出的一种热量消耗估算装置的框图,如图6所示,该装置600可包括:Based on the same inventive concept, the present disclosure also provides a device for estimating heat consumption. Figure 6 is a block diagram of a device for estimating heat consumption according to an exemplary embodiment. As shown in Figure 6, the device 600 may include:
频率获取模块601,用于获取目标用户在当前时刻的心率和呼吸频率;状态确定模块602,用于根据所述当前时刻的心率,确定所述目标用户在所述当前时刻的运动状态特征信息,其中,所述运动状态特征信息用于表征所述目标用户在所述当前时刻是处于运动稳态阶段还是运动恢复阶段;增量确定模块603,用于根据所述当前时刻的心率、所述当 前时刻的呼吸频率、所述当前时刻的运动状态特征信息对应的热量估算模型,得到所述目标用户在当前时段内的热量消耗增量,其中,不同运动状态特征信息对应的热量估算模型不同,所述当前时段为从所述当前时刻的上一时刻至所述当前时刻之间的时段;总热量确定模块604,用于根据所述热量消耗增量,确定所述目标用户在运动过程中的总热量消耗信息,其中,该运动过程包括从运动开始时刻至所述当前时刻的过程。The frequency acquisition module 601 is used to obtain the heart rate and respiratory frequency of the target user at the current moment; the state determination module 602 is used to determine the motion state characteristic information of the target user at the current moment based on the heart rate at the current moment, Wherein, the motion state characteristic information is used to characterize whether the target user is in a steady state phase or a recovery phase of motion at the current moment; the increment determination module 603 is used to determine whether the target user is in a steady state or recovery phase based on the heart rate at the current moment, the current The respiratory frequency at the moment and the caloric estimation model corresponding to the motion state characteristic information at the current moment are used to obtain the caloric consumption increment of the target user in the current period. The caloric estimation models corresponding to different motion state characteristic information are different, so The current period is the period from the previous moment to the current moment; the total calorie determination module 604 is used to determine the total calorie consumption of the target user during exercise according to the calorie consumption increment. Calorie consumption information, wherein the exercise process includes the process from the start time of the exercise to the current time.
可选地,所述增量确定模块603包括:第一增量确定子模块,用于若所述目标用户在所述当前时刻处于运动稳态阶段,则根据所述当前时刻的心率、所述当前时刻的呼吸频率和稳态阶段热量估算模型,得到所述目标用户在当前时段内的热量消耗增量;第二增量确定子模块,用于若所述目标用户在所述当前时刻处于运动恢复阶段,则根据所述当前时刻的心率、所述当前时刻的呼吸频率和恢复阶段热量估算模型,得到所述目标用户在所述当前时段内的热量消耗增量。Optionally, the increment determination module 603 includes: a first increment determination sub-module, configured to determine if the target user is in the steady state stage of exercise at the current moment according to the heart rate at the current moment, the The respiratory frequency and steady-state stage heat estimation model at the current moment are used to obtain the heat consumption increment of the target user in the current period; the second increment determination sub-module is used to determine if the target user is in motion at the current moment. In the recovery phase, the calorie consumption increment of the target user in the current period is obtained based on the heart rate at the current moment, the respiratory rate at the current moment and the recovery phase calorie estimation model.
可选地,所述装置600还包括:信息获取模块,用于获取所述目标用户的生理特征信息;所述第一增量确定子模块用于:将所述当前时刻的心率、所述当前时刻的呼吸频率、所述目标用户的生理特征信息输入至所述稳态阶段热量估算模型中,得到所述稳态阶段热量估算模型输出的所述热量消耗增量;所述第二增量确定子模块用于:将所述当前时刻的心率、所述当前时刻的呼吸频率、所述目标用户的生理特征信息输入至所述恢复阶段热量估算模型中,得到所述恢复阶段热量估算模型输出的所述热量消耗增量。Optionally, the device 600 further includes: an information acquisition module, configured to acquire the physiological characteristic information of the target user; and the first increment determination sub-module is configured to: obtain the heart rate at the current moment, the current The respiratory frequency at the moment and the physiological characteristic information of the target user are input into the steady-state stage heat estimation model, and the heat consumption increment output by the steady-state stage heat estimation model is obtained; the second increment is determined The sub-module is configured to: input the heart rate at the current moment, the respiratory rate at the current moment, and the physiological characteristic information of the target user into the recovery stage heat estimation model, and obtain the heat estimation model output by the recovery stage. The heat consumption increases.
可选地,所述稳态阶段热量估算模型是通过如下模块训练得到的:第一获取模块,用于获取处于运动稳态阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息;第一训练模块,用于将处于运动稳态阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息输入至深度学习网络模型中,对所述深度学习网络模型进行训练,以得到所述稳态阶段热量估算模型。Optionally, the steady-state stage caloric estimation model is trained through the following modules: a first acquisition module, used to obtain the heart rate, respiratory rate, actual caloric consumption and physiological characteristic information of the user in the steady-state stage of exercise; A training module for inputting the heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of the user in the steady state stage of exercise into the deep learning network model, and training the deep learning network model to obtain the stable state. State stage heat estimation model.
可选地,所述恢复阶段热量估算模型是通过如下模块训练得到的:第二获取模块,用于获取处于运动恢复阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息;第二训练模块,用于将处于运动恢复阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息输入至深度学习网络模型中,对所述深度学习网络模型进行训练,以得到所述恢复阶段热量估算模型。Optionally, the recovery phase caloric estimation model is obtained by training through the following modules: a second acquisition module, used to acquire the heart rate, breathing frequency, actual caloric consumption and physiological characteristic information of the user in the exercise recovery phase; second training Module, used to input the heart rate, respiratory rate, actual calorie consumption and physiological characteristic information of the user in the exercise recovery stage into the deep learning network model, and train the deep learning network model to obtain the calorie estimate in the recovery stage. Model.
可选地,所述状态确定模块602用于:将所述当前时刻的心率输入至运动状态识别模型中,得到所述运动状态识别模型输出的所述运动状态特征信息。Optionally, the state determination module 602 is configured to input the heart rate at the current moment into a motion state recognition model to obtain the motion state feature information output by the motion state recognition model.
可选地,所述运动状态识别模型是通过如下模块训练得到的:第三训练模块,用于将用户处于运动稳态阶段时的心率和用于表征该心率对应于运动稳态阶段的标签、以及用户处于运动恢复阶段时的心率和用于表征该心率对应与运动恢复阶段的标签作为分类器的输入,对所述分类器进行训练,以得到所述运动状态识别模型。Optionally, the movement state recognition model is trained through the following modules: a third training module, used to combine the user's heart rate when in the steady state stage of movement and a label used to represent that the heart rate corresponds to the steady state stage of movement; And the heart rate of the user when he is in the exercise recovery stage and the label used to characterize the correspondence between the heart rate and the exercise recovery stage are used as inputs of the classifier, and the classifier is trained to obtain the movement state recognition model.
可选地,所述装置600还包括:基础代谢确定模块,用于在所述目标用户结束运动后,根据所述目标用户本次运动的热量消耗量确定所述目标用户的当前基础代谢信息,并展示所述当前基础代谢信息,其中,所述当前基础代谢信息大于所述目标用户在本次运动前的基础代谢信息。Optionally, the device 600 further includes: a basal metabolism determination module, configured to determine the current basal metabolism information of the target user based on the calorie consumption of the target user's current exercise after the target user finishes exercising, And display the current basal metabolic information, wherein the current basal metabolic information is greater than the target user's basal metabolic information before this exercise.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the devices in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
本公开还提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行时实现本公开提供的热量消耗估算方法的步骤。The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the heat consumption estimation method provided by the present disclosure are implemented.
图7是根据一示例性实施例示出的一种用于热量消耗估算的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 7 is a block diagram of a device 800 for caloric consumption estimation according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
参照图7,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电力组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。7, the device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and communications component 816.
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的热量消耗估算方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。 Processing component 802 generally controls the overall operations of device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned caloric consumption estimation method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 804 is configured to store various types of data to support operations at device 800 . Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
电力组件806为装置800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。 Power component 806 provides power to various components of device 800. Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 800 .
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。 Multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。 Audio component 810 is configured to output and/or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in operating modes, such as call mode, recording mode, and speech recognition mode. The received audio signal may be further stored in memory 804 or sent via communication component 816 . In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor component 814 includes one or more sensors that provide various aspects of status assessment for device 800 . For example, the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor component 814 can also detect a change in position of the device 800 or a component of the device 800. , the presence or absence of user contact with the device 800 , device 800 orientation or acceleration/deceleration and temperature changes of the device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示 例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 816 is configured to facilitate wired or wireless communication between apparatus 800 and other devices. Device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communications component 816 also includes a near field communications (NFC) module to facilitate short-range communications. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述热量消耗估算方法。In an exemplary embodiment, apparatus 800 may be configured by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented for performing the above heat consumption estimation method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述热量消耗估算方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, which can be executed by the processor 820 of the device 800 to complete the above-described heat consumption estimation method is also provided. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
在另一示例性实施例中,还提供一种计算机程序产品,该计算机程序产品包含能够由可编程的装置执行的计算机程序,该计算机程序具有当由该可编程的装置执行时用于执行上述的热量消耗估算方法的代码部分。In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable device, the computer program having a function for performing the above when executed by the programmable device. The code part of the calorie consumption estimation method.
本领域技术人员在考虑说明书及实践本公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure that follow the general principles of the disclosure and include common knowledge or customary technical means in the technical field that are not disclosed in the disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the disclosure is limited only by the appended claims.
Claims (12)
- 一种热量消耗估算方法,其特征在于,包括:A method for estimating calorie consumption, which is characterized by including:获取目标用户在当前时刻的心率和呼吸频率;Obtain the heart rate and respiratory rate of the target user at the current moment;根据所述当前时刻的心率,确定所述目标用户在所述当前时刻的运动状态特征信息,其中,所述运动状态特征信息用于表征所述目标用户在所述当前时刻是处于运动稳态阶段还是运动恢复阶段;According to the heart rate at the current moment, the motion state characteristic information of the target user at the current moment is determined, wherein the motion state characteristic information is used to represent that the target user is in a steady state stage of motion at the current moment. Still in the exercise recovery stage;根据所述当前时刻的心率、所述当前时刻的呼吸频率、所述当前时刻的运动状态特征信息对应的热量估算模型,得到所述目标用户在当前时段内的热量消耗增量,其中,不同运动状态特征信息对应的热量估算模型不同,所述当前时段为从所述当前时刻的上一时刻至所述当前时刻之间的时段;According to the heat estimation model corresponding to the heart rate at the current moment, the respiratory rate at the current moment, and the motion state feature information at the current moment, the calorie consumption increment of the target user in the current period is obtained, wherein different movements The heat estimation models corresponding to the state characteristic information are different, and the current period is the period from the previous moment of the current moment to the current moment;根据所述热量消耗增量,确定所述目标用户在运动过程中的总热量消耗信息,其中,该运动过程包括从运动开始时刻至所述当前时刻的过程。According to the calorie consumption increment, the total calorie consumption information of the target user during exercise is determined, wherein the exercise process includes the process from the start time of exercise to the current time.
- 根据权利要求1所述的方法,其特征在于,所述根据所述当前时刻的心率、所述当前时刻的呼吸频率、所述当前时刻的运动状态特征信息对应的热量估算模型,得到所述目标用户在当前时段内的热量消耗增量,包括:The method of claim 1, wherein the target is obtained based on the heat estimation model corresponding to the heart rate at the current moment, the respiratory frequency at the current moment, and the motion state feature information at the current moment. The user's incremental calorie consumption during the current period, including:若所述目标用户在所述当前时刻处于运动稳态阶段,则根据所述当前时刻的心率、所述当前时刻的呼吸频率和稳态阶段热量估算模型,得到所述目标用户在当前时段内的热量消耗增量;If the target user is in the steady-state stage of exercise at the current moment, then based on the heart rate at the current moment, the respiratory rate at the current moment and the steady-state stage caloric estimation model, the target user's energy in the current period is obtained. Increased caloric consumption;若所述目标用户在所述当前时刻处于运动恢复阶段,则根据所述当前时刻的心率、所述当前时刻的呼吸频率和恢复阶段热量估算模型,得到所述目标用户在所述当前时段内的热量消耗增量。If the target user is in the exercise recovery stage at the current moment, then based on the heart rate at the current moment, the respiratory rate at the current moment and the recovery stage caloric estimation model, the target user's fitness in the current period is obtained. Increasing caloric consumption.
- 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, further comprising:获取所述目标用户的生理特征信息;Obtain physiological characteristic information of the target user;所述根据所述当前时刻的心率、所述当前时刻的呼吸频率和稳态阶段热量估算模型,得到所述目标用户在当前时段内的热量消耗增量,包括:Obtaining the incremental calorie consumption of the target user in the current period based on the heart rate at the current moment, the respiratory rate at the current moment and the steady-state stage calorie estimation model includes:将所述当前时刻的心率、所述当前时刻的呼吸频率、所述目标用户的生理特征信息输入至所述稳态阶段热量估算模型中,得到所述稳态阶段热量估算模型输出的所述热量消耗增量;Input the heart rate at the current moment, the respiratory rate at the current moment, and the physiological characteristic information of the target user into the steady-state stage heat estimation model to obtain the heat output from the steady-state stage heat estimation model. consumption increase;所述根据所述当前时刻的心率、所述当前时刻的呼吸频率和恢复阶段热量估算模型, 得到所述目标用户在所述当前时段内的热量消耗增量,包括:Obtaining the incremental calorie consumption of the target user in the current period based on the heart rate at the current moment, the respiratory rate at the current moment and the recovery phase calorie estimation model includes:将所述当前时刻的心率、所述当前时刻的呼吸频率、所述目标用户的生理特征信息输入至所述恢复阶段热量估算模型中,得到所述恢复阶段热量估算模型输出的所述热量消耗增量。The heart rate at the current moment, the respiratory rate at the current moment, and the physiological characteristic information of the target user are input into the recovery phase heat estimation model, and the heat consumption increase output by the recovery phase heat estimation model is obtained. quantity.
- 根据权利要求2所述的方法,其特征在于,所述稳态阶段热量估算模型是通过如下方式训练得到的:The method according to claim 2, characterized in that the steady-state stage heat estimation model is trained in the following manner:获取处于运动稳态阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息;Obtain the heart rate, respiratory rate, actual caloric consumption and physiological characteristics information of the user in the steady state stage of exercise;将处于运动稳态阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息输入至深度学习网络模型中,对所述深度学习网络模型进行训练,以得到所述稳态阶段热量估算模型。The user's heart rate, respiratory rate, actual calorie consumption and physiological characteristic information in the steady-state stage of exercise are input into the deep learning network model, and the deep learning network model is trained to obtain the steady-state stage heat estimation model.
- 根据权利要求2所述的方法,其特征在于,所述恢复阶段热量估算模型是通过如下方式训练得到的:The method according to claim 2, characterized in that the recovery phase heat estimation model is trained in the following manner:获取处于运动恢复阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息;Obtain the heart rate, respiratory rate, actual calorie consumption and physiological characteristics information of the user in the exercise recovery stage;将处于运动恢复阶段的用户的心率、呼吸频率、实际热量消耗和生理特征信息输入至深度学习网络模型中,对所述深度学习网络模型进行训练,以得到所述恢复阶段热量估算模型。The user's heart rate, respiratory rate, actual calorie consumption and physiological characteristic information in the exercise recovery stage are input into the deep learning network model, and the deep learning network model is trained to obtain the recovery stage calorie estimation model.
- 根据权利要求1所述的方法,其特征在于,所述根据所述当前时刻的心率,确定所述目标用户在所述当前时刻的运动状态特征信息,包括:The method according to claim 1, wherein determining the motion state characteristic information of the target user at the current moment based on the heart rate at the current moment includes:将所述当前时刻的心率输入至运动状态识别模型中,得到所述运动状态识别模型输出的所述运动状态特征信息。Input the heart rate at the current moment into the motion state recognition model to obtain the motion state feature information output by the motion state recognition model.
- 根据权利要求6所述的方法,其特征在于,所述运动状态识别模型是通过如下方式训练得到的:The method according to claim 6, characterized in that the motion state recognition model is trained in the following manner:将用户处于运动稳态阶段时的心率和用于表征该心率对应于运动稳态阶段的标签、以及用户处于运动恢复阶段时的心率和用于表征该心率对应与运动恢复阶段的标签作为分类器的输入,对所述分类器进行训练,以得到所述运动状态识别模型。The heart rate when the user is in the steady-state phase of exercise and the label used to characterize the heart rate corresponding to the steady-state phase of exercise, and the heart rate when the user is in the exercise recovery phase and the label used to characterize the heart rate corresponding to the exercise recovery phase are used as a classifier As input, the classifier is trained to obtain the motion state recognition model.
- 根据权利要求1-7中任一项所述的方法,其特征在于,所述稳态阶段热量估算模型和所述恢复阶段热量估算模型均为门控循环单元模型。The method according to any one of claims 1 to 7, characterized in that both the steady-state stage heat estimation model and the recovery stage heat estimation model are gated cycle unit models.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:在所述目标用户结束运动后,根据所述目标用户本次运动的热量消耗量确定所述目 标用户的当前基础代谢信息,并展示所述当前基础代谢信息,其中,所述当前基础代谢信息大于所述目标用户在本次运动前的基础代谢信息。After the target user finishes exercising, the current basal metabolic information of the target user is determined based on the calorie consumption of the current exercise, and the current basal metabolic information is displayed, wherein the current basal metabolic information is greater than The target user's basal metabolic information before this exercise.
- 一种热量消耗估算装置,其特征在于,包括:A heat consumption estimating device, characterized by including:频率获取模块,用于获取目标用户在当前时刻的心率和呼吸频率;The frequency acquisition module is used to obtain the heart rate and respiratory rate of the target user at the current moment;状态确定模块,用于根据所述当前时刻的心率,确定所述目标用户在所述当前时刻的运动状态特征信息,其中,所述运动状态特征信息用于表征所述目标用户在所述当前时刻是处于运动稳态阶段还是运动恢复阶段;A state determination module, configured to determine the motion state characteristic information of the target user at the current moment according to the heart rate at the current moment, wherein the motion state characteristic information is used to characterize the motion state characteristic information of the target user at the current moment. Is it in the steady-state phase of exercise or the recovery phase of exercise?增量确定模块,用于根据所述当前时刻的心率、所述当前时刻的呼吸频率、所述当前时刻的运动状态特征信息对应的热量估算模型,得到所述目标用户在当前时段内的热量消耗增量,其中,不同运动状态特征信息对应的热量估算模型不同,所述当前时段为从所述当前时刻的上一时刻至所述当前时刻之间的时段;Increment determination module, configured to obtain the calorie consumption of the target user in the current period based on the heart rate at the current moment, the respiratory rate at the current moment, and the calorie estimation model corresponding to the motion state feature information at the current moment. Increment, wherein the heat estimation models corresponding to different motion state characteristic information are different, and the current period is the period from the previous moment of the current moment to the current moment;总热量确定模块,用于根据所述热量消耗增量,确定所述目标用户在运动过程中的总热量消耗信息,其中,该运动过程包括从运动开始时刻至所述当前时刻的过程。A total calorie determination module, configured to determine the total calorie consumption information of the target user during exercise according to the calorie consumption increment, wherein the exercise process includes the process from the start time of exercise to the current time.
- 一种热量消耗估算装置,其特征在于,包括:A heat consumption estimating device, characterized by including:处理器;processor;用于存储处理器可执行指令的存储器;Memory used to store instructions executable by the processor;其中,所述处理器被配置为:执行权利要求1至9中任一项所述方法的步骤。Wherein, the processor is configured to perform the steps of the method according to any one of claims 1 to 9.
- 一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,该程序指令被处理器执行时实现权利要求1~9中任一项所述方法的步骤。A computer-readable storage medium on which computer program instructions are stored, characterized in that when the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202280004468.0A CN117412700A (en) | 2022-05-13 | 2022-05-13 | Heat consumption estimation method, device and storage medium |
PCT/CN2022/092873 WO2023216266A1 (en) | 2022-05-13 | 2022-05-13 | Heat consumption estimation method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2022/092873 WO2023216266A1 (en) | 2022-05-13 | 2022-05-13 | Heat consumption estimation method and device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023216266A1 true WO2023216266A1 (en) | 2023-11-16 |
Family
ID=88729473
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/092873 WO2023216266A1 (en) | 2022-05-13 | 2022-05-13 | Heat consumption estimation method and device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117412700A (en) |
WO (1) | WO2023216266A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101147674A (en) * | 2006-09-19 | 2008-03-26 | 株式会社百利达 | Apparatus for measuring calories consumed during sleep |
US7762952B2 (en) * | 2004-10-14 | 2010-07-27 | Samsung Electronics Co., Ltd. | Method, medium, and apparatus for portably measuring calorie consumption |
US9049999B2 (en) * | 2006-12-11 | 2015-06-09 | Seiko Epson Corporation | Biometric information processing device, biometric information processing method, and control program |
KR102039411B1 (en) * | 2018-08-23 | 2019-11-04 | 동국대학교 산학협력단 | Individual customized apparatus for calculating calorie of exercising |
-
2022
- 2022-05-13 WO PCT/CN2022/092873 patent/WO2023216266A1/en active Application Filing
- 2022-05-13 CN CN202280004468.0A patent/CN117412700A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7762952B2 (en) * | 2004-10-14 | 2010-07-27 | Samsung Electronics Co., Ltd. | Method, medium, and apparatus for portably measuring calorie consumption |
CN101147674A (en) * | 2006-09-19 | 2008-03-26 | 株式会社百利达 | Apparatus for measuring calories consumed during sleep |
US9049999B2 (en) * | 2006-12-11 | 2015-06-09 | Seiko Epson Corporation | Biometric information processing device, biometric information processing method, and control program |
KR102039411B1 (en) * | 2018-08-23 | 2019-11-04 | 동국대학교 산학협력단 | Individual customized apparatus for calculating calorie of exercising |
Also Published As
Publication number | Publication date |
---|---|
CN117412700A (en) | 2024-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10960173B2 (en) | Recommendation based on dominant emotion using user-specific baseline emotion and emotion analysis | |
CN109951654A (en) | A kind of method of Video Composition, the method for model training and relevant apparatus | |
KR20190056538A (en) | Server and operating method thereof | |
CN109599161A (en) | Body movement and body-building monitor | |
CN109543066A (en) | Video recommendation method, device and computer readable storage medium | |
CN108633249B (en) | Physiological signal quality judgment method and device | |
CN107997767A (en) | For identifying the method and its electronic equipment of User Activity | |
CN110135497B (en) | Model training method, and method and device for estimating strength of facial action unit | |
EP3933552B1 (en) | Method and device for determining gaze position of user, storage medium, and electronic apparatus | |
CN109410276B (en) | Key point position determining method and device and electronic equipment | |
CN111047526A (en) | Image processing method and device, electronic equipment and storage medium | |
CN110389667A (en) | A kind of input method and device | |
CN109670077A (en) | Video recommendation method, device and computer readable storage medium | |
CN111178298A (en) | Human body key point detection method and device, electronic equipment and storage medium | |
CN114266840A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
CN106774849A (en) | virtual reality device control method and device | |
CN112115894A (en) | Training method and device for hand key point detection model and electronic equipment | |
CN113655935A (en) | User determination method, electronic device and computer readable storage medium | |
CN108717403A (en) | A kind of processing method, device and the device for processing | |
CN112738420A (en) | Special effect implementation method and device, electronic equipment and storage medium | |
CN110706784A (en) | Calorie intake amount calculation method, device, system, apparatus, and storage medium | |
CN112114653A (en) | Terminal device control method, device, equipment and storage medium | |
WO2023216266A1 (en) | Heat consumption estimation method and device and storage medium | |
WO2023216267A1 (en) | Heat consumption estimation method and device and storage medium | |
CN112768064A (en) | Disease prediction device, disease prediction apparatus, symptom information processing method, symptom information processing device, and symptom information processing apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 202280004468.0 Country of ref document: CN |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22941217 Country of ref document: EP Kind code of ref document: A1 |