WO2023185105A1 - Exercise guidance method and apparatus, terminal device, and storage medium - Google Patents

Exercise guidance method and apparatus, terminal device, and storage medium Download PDF

Info

Publication number
WO2023185105A1
WO2023185105A1 PCT/CN2022/139448 CN2022139448W WO2023185105A1 WO 2023185105 A1 WO2023185105 A1 WO 2023185105A1 CN 2022139448 W CN2022139448 W CN 2022139448W WO 2023185105 A1 WO2023185105 A1 WO 2023185105A1
Authority
WO
WIPO (PCT)
Prior art keywords
exercise
user
heart rate
data
guidance
Prior art date
Application number
PCT/CN2022/139448
Other languages
French (fr)
Chinese (zh)
Inventor
陈佳洲
李茂栋
赵威
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023185105A1 publication Critical patent/WO2023185105A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/30ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to physical therapies or activities, e.g. physiotherapy, acupressure or exercising

Definitions

  • the present application relates to the technical field of electronic equipment, and in particular, to a movement guidance method and device, terminal equipment, and storage media.
  • terminal devices such as smart wearable devices, smartphones, etc.
  • terminal devices can often be used to record the user's exercise status, and thereby meet the user's growing needs for sports and health.
  • the terminal device can often only simply record the motion-related data it detects.
  • Embodiments of the present application disclose an exercise guidance method and device, terminal equipment, and storage medium, which can provide corresponding guidance to the user's actual exercise process based on the exercise data recorded by the terminal equipment, thereby helping the user to reasonably adjust the exercise state, and effectively Improve the user's athletic ability.
  • the first aspect of the embodiments of this application discloses a motion guidance method, which is applied to terminal equipment.
  • the method includes:
  • first motion data corresponding to the terminal device where the first motion data at least includes the first heart rate and the first motion speed detected by the terminal device when the user moves;
  • Target speed change data corresponding to the first motion data is determined through a motion guidance model, wherein the motion guidance model is trained based on historical motion data recorded by the terminal device, and the historical motion data includes the The historical heart rate and historical movement speed detected by the terminal device when the user is exercising;
  • Motion guidance information is generated based on the target speed change data, and the motion guidance information is output.
  • the second aspect of the embodiment of the present application discloses a motion guidance device, which is applied to terminal equipment.
  • the motion guidance device includes:
  • a data acquisition unit configured to acquire first motion data corresponding to the terminal device, where the first motion data at least includes the first heart rate and the first motion speed detected by the terminal device when the user is exercising;
  • a target determination unit configured to determine the target speed change data corresponding to the first motion data through a motion guidance model, wherein the motion guidance model is trained based on historical motion data recorded by the terminal device, and the Historical motion data includes historical heart rate and historical motion speed detected by the terminal device when the user is exercising;
  • a motion guidance unit is configured to generate motion guidance information according to the target speed change data and output the motion guidance information.
  • the third aspect of the embodiment of the present application discloses a terminal device, which includes a memory and a processor.
  • a computer program is stored in the memory.
  • the processor implements the application as described in the present application. All or part of the steps in any exercise guidance method disclosed in the first aspect of the embodiment.
  • the fourth aspect of the embodiment of the present application discloses a computer-readable storage medium that stores a computer program, wherein when the computer program is executed by a processor, any one of the exercise guidance methods disclosed in the first aspect of the embodiment of the present application is implemented. all or part of the steps.
  • Figure 1 is a schematic diagram of an application scenario of a sports guidance method disclosed in the embodiment of the present application
  • FIG. 2 is a schematic flowchart of an exercise guidance method disclosed in the embodiment of the present application.
  • Figure 3 is a schematic flow chart of another exercise guidance method disclosed in the embodiment of the present application.
  • FIG. 4 is a schematic flowchart of yet another exercise guidance method disclosed in the embodiment of the present application.
  • Figure 5A is a modular schematic diagram of a terminal device disclosed in an embodiment of the present application.
  • Figure 5B is a modular schematic diagram of another terminal device disclosed in the embodiment of the present application.
  • Figure 6A is a schematic spectrum diagram of the first detection signal disclosed in the embodiment of the present application.
  • Figure 6B is a schematic diagram of performing noise reduction processing on the first detection signal through the spectrum characteristics of the second detection signal disclosed in the embodiment of the present application;
  • Figure 7A is a schematic diagram of a graphical user interface disclosed in an embodiment of the present application.
  • Figure 7B is a schematic diagram of another graphical user interface disclosed in the embodiment of the present application.
  • Figure 7C is a schematic diagram of yet another graphical user interface disclosed in the embodiment of the present application.
  • Figure 8 is a modular schematic diagram of a sports guidance device disclosed in the embodiment of the present application.
  • Figure 9 is a modular schematic diagram of yet another terminal device disclosed in the embodiment of the present application.
  • Embodiments of the present application disclose an exercise guidance method and device, terminal equipment, and storage medium, which can provide corresponding guidance to the user's actual exercise process based on the exercise data recorded by the terminal equipment, thereby helping the user to reasonably adjust the exercise state, and effectively Improve the user's athletic ability.
  • Figure 1 is a schematic diagram of an application scenario of a sports guidance method disclosed in an embodiment of the present application.
  • the terminal device 200 carried or worn by the user 100 can record corresponding exercise data.
  • the above-mentioned motion data may include the corresponding heart rate, motion speed, acceleration, etc. of the user 100 during the motion.
  • the above motion data can be directly detected by the built-in sensor of the terminal device 200; in other embodiments, the above mentioned motion data can also be further calculated based on the detection results of the built-in sensor of the terminal device 200. Analyze what you get.
  • the terminal device 200 may include various devices or systems equipped with sensors for recording motion-related data (such as photoplethysmogram PPG modules, acceleration sensors, etc.), such as smart phones, smart watches, smart bracelets, etc. , there is no specific limitation in the embodiments of this application.
  • the terminal device 200 can be equipped with an operating system, such as Android operating system, iOS operating system, Symbian operating system, Windows operating system, etc., for installing sports and health-related applications, or Implement system functions related to sports and health.
  • the terminal device 200 shown in FIG. 1 is a smart watch. This is only an example and should not be regarded as a limitation on the device type of the terminal device 200 in the embodiment of the present application.
  • the user 100 can perform various forms of exercise such as running.
  • the terminal device 200 can record corresponding exercise data in real time through its built-in sensor.
  • the terminal device 200 can obtain the first movement corresponding to the terminal device 200 data.
  • the above-mentioned first motion data may at least include the first heart rate and the first motion speed detected by the terminal device 200 when the user 100 moves.
  • the terminal device 200 can determine the target speed change data corresponding to the above-mentioned first movement data through the pre-trained movement guidance model, and generate corresponding movement guidance information based on the target speed change data, and then output the movement guidance information to provide users 100 with targeted exercise guidance.
  • the above-mentioned exercise guidance model may be trained based on the historical exercise data recorded by the terminal device 200 .
  • the historical exercise data may include the historical heart rate detected by the terminal device 200 when the user 100 performed exercise in the past. Historical movement speed, so that the trained movement guidance model can accurately match the movement ability of the user 100, thereby helping to improve the accuracy and reliability of movement guidance by the terminal device 200.
  • the terminal device 200 can use the historical exercise data of the user 100 to train the exercise guidance model, thereby accurately determining the exercise ability of the user 100, and then during the actual exercise process of the user 100, based on the training
  • the motion guidance model and the currently recorded user motion data are used to provide targeted motion guidance for the user 100 to assist the user 100 to reasonably adjust his motion state.
  • Such an exercise guidance method can provide real-time feedback and guidance on the actual exercise process of the user 100, and try to avoid the heart rate of the user 100 being too high or too low during exercise, which is conducive to ensuring the exercise health of the user 100, and thus helping the user 100 achieve the established exercise goals and effectively improve the user's 100 exercise ability.
  • Figure 2 is a schematic flowchart of a movement guidance method disclosed in an embodiment of the present application.
  • the movement guidance method can be applied to the above-mentioned terminal device.
  • the motion guidance method may include the following steps:
  • the first motion data at least includes the first heart rate and the first motion speed detected by the terminal device when the user moves.
  • the terminal device can record the user's first motion data during the exercise through its built-in sensor, and can then perform the following steps based on the first motion data. Compute and analyze to determine the corresponding target speed data for adaptive adjustment of the user's motion state (specifically, it may include the user's motion speed, acceleration, etc.).
  • the above-mentioned first motion data may at least include the first heart rate and the first motion speed detected by the terminal device when the user moves.
  • the terminal device may include a photoplethysmograph (PPG) module, an acceleration sensor, a positioning module (such as a Beidou module, a GPS module, etc.), a gyroscope, and other sensors, and may be acquired through designated sensors.
  • PPG photoplethysmograph
  • the user's pulse wave can be detected through the PPG module to obtain the corresponding user's heart rate, and use it as the condition of the user's exercise.
  • the terminal device can also perform noise reduction on the pulse wave signal based on the detection results of sensors such as acceleration sensors and gyroscopes to improve the performance of the terminal. The device obtains the accuracy of the user's first heart rate during exercise.
  • the terminal device when the terminal device needs to obtain the user's first movement speed during exercise, the user's acceleration can be detected through an acceleration sensor.
  • the terminal device can analyze and determine the corresponding response based on the detection results of the above acceleration sensor.
  • the movement speed is used as the first movement speed detected when the user moves.
  • the terminal device can further obtain the user's own height information, and combine the detection results of the above-mentioned acceleration sensor and the user's height information to estimate the user's real-time movement speed as the first detected speed when the user is moving. Movement speed.
  • the terminal device may also obtain the first movement speed of the user during movement through the positioning module. For example, the terminal device can determine the user's movement distance within the first time period based on the positioning data detected by the positioning module within the first time period (such as 3 seconds, 5 seconds, etc.), and then divide the movement distance by For the first duration, the average speed of the user in the first duration is obtained. If the first duration is short enough, the terminal device may use the average speed as the first movement speed detected in real time when the user moves.
  • the above motion guidance model is trained based on the historical motion data recorded by the terminal device.
  • the historical motion data includes the movements of the terminal device during the user's motion.
  • the terminal device in order to adaptively adjust the user's motion status, after acquiring the above-mentioned first motion data, the terminal device can determine the target corresponding to the first motion data through a pre-trained motion guidance model.
  • Variable speed data may include target movement speed, target acceleration, etc., to guide the user to adjust the current movement speed to achieve the set exercise target.
  • the above-mentioned exercise training target may include a target heart rate that the user needs to achieve during exercise.
  • the target heart rate may include a heart rate that the user is expected to achieve during exercise (for example, 70% of the user's maximum heart rate, 70% of the user's maximum heart rate, 70% of the difference from the resting heart rate, etc.), that is, after the user performs shifting corresponding to the target shifting data within a certain period of time, the user needs to change from the current first heart rate to the target heart rate, in order to promote the improvement of the user's exercise ability.
  • the above-mentioned motion guidance model can take the first motion data and the target heart rate as input, and output the corresponding target speed change data.
  • the terminal device may first determine the target acceleration according to the first motion data.
  • the first heart rate included in the exercise data, and the preset target heart rate may include 70% of the user's maximum heart rate, the difference between the user's maximum heart rate and the resting heart rate 70%, etc.
  • the corresponding target heart rate change rate is calculated.
  • the target heart rate change rate can represent the user's change from the current first heart rate to the target heart rate within a second period of time (such as 3 seconds, 5 seconds, 1 minute, etc.).
  • the desired heart rate variability can be determined.
  • the terminal device can determine the output target acceleration according to the above-mentioned first heart rate, first movement speed and target heart rate change through the exercise guidance model. In subsequent steps, the terminal device can guide the user to adjust the movement speed based on the target acceleration so that the user's heart rate reaches the above target heart rate.
  • the training of the above-mentioned motion guidance model can also be implemented based on the user's historical motion data such as motion speed, acceleration, user heart rate, heart rate change rate, etc., which have corresponding relationships.
  • the terminal device can record historical motion data including historical heart rate and historical motion speed when the user carries or wears the terminal device for exercise for the first time, and then the historical motion data can be used as a training sample. , to train the motion guidance model to be trained.
  • the terminal device can calculate the corresponding historical heart rate change rate and historical acceleration based on the historical heart rate and historical movement speed detected by the terminal device when the user moves in each time period.
  • the terminal device can use the above-mentioned historical heart rate, historical movement speed, historical acceleration and historical heart rate change rate as sample data, and train the exercise guidance model through the sample data to obtain a trained exercise guidance model.
  • the above training process can be implemented using the recursive least squares method of memory elimination (Eliminate to remember gradually of pass and push minimum two multiplications), or other supervised or unsupervised training algorithms.
  • the above training process can be performed locally on the terminal device, or the terminal device can upload the above historical heart rate, historical movement speed, historical acceleration and historical heart rate change rate to the cloud or other smart devices connected to the terminal device, and upload them to the cloud or other smart devices connected to the terminal device.
  • the corresponding sample model training process is performed on the cloud or the smart device.
  • the corresponding movement guidance information can be determined based on the target speed change data.
  • the target speed change data may include target acceleration, and the terminal device may generate and output motion guidance information corresponding to the target acceleration to guide the user to maintain the target acceleration within a certain period of time.
  • the target speed change data may also include a target movement speed, and the terminal device may generate and output movement guidance information corresponding to the target movement speed to guide the user to accelerate or decelerate within a certain period of time to get from the current The first movement speed is converted into the target movement speed.
  • the above-mentioned exercise guidance information may include various forms, such as voice information (output through the speaker of the terminal device), vibration information (corresponding output through the vibration motor of the terminal device), graphic information (displayed through the screen of the terminal device) output), etc., are not specifically limited in the embodiments of this application.
  • the terminal device can use the user's historical motion data to train the motion guidance model, thereby accurately determining the user's motion ability, and then based on the user's actual motion process.
  • the trained motion guidance model and the currently recorded user motion data provide targeted motion guidance for the user to assist the user in rationally adjusting his motion status.
  • Such an exercise guidance method can provide real-time feedback and guidance on the user's actual exercise process, and try to avoid the user's heart rate being too high or too low during exercise, which is conducive to ensuring the user's exercise health and helping the user achieve the established goals.
  • Sports training goals can effectively improve the user's sports ability.
  • Figure 3 is a schematic flowchart of another exercise guidance method disclosed in an embodiment of the present application. This exercise guidance method can be applied to the above-mentioned terminal device. As shown in Figure 3, the motion guidance method may include the following steps:
  • the first motion data at least includes the first heart rate and the first motion speed detected by the terminal device when the user moves.
  • the above motion guidance model is trained based on the historical motion data recorded by the terminal device.
  • the historical motion data includes the movements of the terminal device during the user's movements.
  • step 302 step 304 and step 306 are similar to the above-mentioned step 202, step 204 and step 206, and will not be described again here.
  • the second motion data at least includes the second heart rate and the second motion speed detected by the terminal device when the user exercises based on the above motion guidance information.
  • step 308 is similar to the above-mentioned step 302.
  • the terminal device determines the corresponding target speed change data based on the first motion data, and generates motion guidance information accordingly to guide the user to adjust his or her own motion state (specifically, it may include the user's motion speed.
  • the second motion data detected by the terminal device can be obtained, and the above-mentioned motion guidance model can be updated synchronously based on the second motion data.
  • the above-mentioned second exercise data may at least include the second heart rate and the second exercise speed detected by the terminal device after the user has changed speed based on the above-mentioned exercise guidance information.
  • the terminal device can obtain the second heart rate and the second movement speed detected by its built-in sensor within a third period of time (such as 3 seconds, 5 seconds, 1 minute, etc.), and then can calculate the corresponding The updated heart rate change rate and updated acceleration are used to update the motion guidance model in subsequent steps.
  • a third period of time such as 3 seconds, 5 seconds, 1 minute, etc.
  • the terminal device may calculate corresponding model update parameters based on the second heart rate, second exercise speed, updated heart rate change rate, and updated acceleration, and adjust the exercise guidance model based on the model update parameters.
  • the process of updating the above-mentioned exercise guidance model may also be similar to the process of initial training of the exercise guidance model, that is, the terminal device may update the above-mentioned second heart rate, second exercise speed, and updated heart rate change.
  • the rate and updated acceleration are used as new sample data, and the motion guidance model is retrained through the sample data to obtain an updated motion guidance model.
  • the above-mentioned update process can be performed locally on the terminal device, or the terminal device can upload the above-mentioned second heart rate, second movement speed, updated heart rate change rate, and updated acceleration to the cloud or other smart devices connected to the terminal device, And perform the corresponding model update process in the cloud or on the smart device.
  • the terminal device can use the user's historical motion data to train the motion guidance model, thereby accurately determining the user's motion ability, which is conducive to improving the accuracy of the terminal device's motion guidance. and reliability.
  • Such an exercise guidance method can provide real-time feedback and guidance on the user's actual exercise process to assist the user in rationally adjusting his or her exercise status, and try to avoid the user's heart rate being too high or too low during exercise, which is conducive to protecting the user's health. sports health, thereby helping users achieve established exercise goals and effectively improving users’ exercise abilities.
  • the terminal device can also continue to collect corresponding motion data during the user's subsequent exercise, and synchronously update the above-mentioned motion guidance model based on the new motion data, thereby ensuring the reliability of the motion guidance model and further improving the terminal Accuracy of equipment for exercise guidance.
  • Figure 4 is a schematic flow chart of yet another exercise guidance method disclosed in an embodiment of the present application.
  • This exercise guidance method can be applied to the above-mentioned terminal equipment.
  • the terminal equipment can include a photoplethysmograph PPG module and an acceleration sensor.
  • the terminal device may also include a positioning module.
  • the motion guidance method may include the following steps:
  • FIG. 5A is a modular schematic diagram of a terminal device disclosed in an embodiment of the present application.
  • the terminal device 50 may include a control processing module 51 , a PPG module 52 and an acceleration sensor 53 .
  • the control processing module 51 may be electrically connected to the PPG module 52 and the acceleration sensor 53 respectively to obtain the values collected by the corresponding sensors. detection signal.
  • the above-mentioned control processing module 51 may include a unit with control and data processing capabilities such as an MCU (Microcontroller Unit), which is not specifically limited in the embodiments of this application.
  • MCU Microcontroller Unit
  • the terminal device can detect the user's pulse wave through its built-in PPG module and collect the corresponding first detection signal.
  • the first detection signal can correspond to the user's first pulse wave during exercise. One heartbeat.
  • the terminal device can also detect the user's acceleration during running through its built-in acceleration sensor, and collect a corresponding second detection signal.
  • the second detection signal can be used to further determine the user's acceleration during exercise. First movement speed.
  • both the above-mentioned first detection signal and the second detection signal can be processed by the DFT (Discrete Fourier Transform) algorithm to convert them from the time domain to the frequency domain to facilitate the processing in the terminal equipment.
  • the control processing module analyzes and processes it.
  • the first detection signal and the second detection signal obtain the corresponding first heart rate when the user is exercising.
  • the terminal device can perform noise reduction processing on the above-mentioned first detection signal based on the detection results of other built-in sensors (such as acceleration sensor, gyroscope, etc.) to improve the terminal device's ability to obtain the user's first heart rate during exercise. accuracy.
  • other built-in sensors such as acceleration sensor, gyroscope, etc.
  • the terminal device can perform corresponding noise reduction processing on the above-mentioned first detection signal according to the second detection signal collected by the acceleration sensor, so as to reduce or eliminate motion noise in the first detection signal.
  • the control processing module in the terminal device may first acquire the spectrum characteristics of the second detection signal, and the spectrum characteristics may represent the actual movement frequency of the user.
  • the terminal device may perform noise reduction processing on the above-mentioned first detection signal according to the spectrum characteristics, and determine based on the first detection signal after the noise reduction processing in the case of user movement. The corresponding first heart rate.
  • Figure 6A is a schematic spectrum diagram of the first detection signal disclosed in the embodiment of the present application
  • Figure 6B is a spectrum analysis of the first detection signal based on the spectrum characteristics of the second detection signal disclosed in the embodiment of the present application.
  • Schematic diagram of noise reduction processing the component corresponding to the user's pulse wave signal in the first detection signal can be shown as a solid line A1
  • the motion noise component deviating from the pulse wave signal can be shown as a solid line A2. It can be seen that the motion noise in Figure 6A has been shown in Figure 6B is effectively cleared, leaving a clearer pulse wave signal, which can correspond to the user's first heart rate during exercise.
  • the terminal device can use the LMS (Least Mean Square) algorithm to use the spectrum characteristics of the second detection signal as a reference for the motion noise in the first detection signal to eliminate the above-mentioned motion from the first detection signal. noise.
  • LMS Least Mean Square
  • the terminal device before the terminal device performs noise reduction processing on the above-mentioned first detection signal, it can also determine whether the user is currently exercising through the second detection signal to avoid misjudgment of the first detection when the user is not actually exercising. Motion noise in the signal. For example, the terminal device can determine the corresponding acceleration data based on the above-mentioned second detection signal, and then can determine the actual motion state of the user based on the acceleration data, and perform the above-mentioned noise reduction processing when the user is moving to ensure that the second detection signal is correct. 1. The accuracy and effectiveness of noise reduction processing of detection signals.
  • the terminal device can collect the second detection value based on the acceleration sensor.
  • the signal determines the corresponding acceleration data, and based on this, the user's first movement speed during exercise is estimated.
  • the terminal device can also combine the user's height information to further improve the accuracy of estimating the above-mentioned first movement speed. and reliability. For example, the terminal device may first obtain the spectrum characteristics of the second detection signal, and then determine the corresponding first movement speed when the user moves based on the spectrum characteristics and the pre-acquired user height data.
  • the terminal device may also be provided with a positioning module, and determine the first movement speed of the user during movement through the positioning data detected by the positioning module.
  • a positioning module determines the first movement speed of the user during movement through the positioning data detected by the positioning module.
  • the terminal device 50 may further include a positioning module 54.
  • the positioning module 54 may also be electrically connected to the control processing module 51 to The positioning data collected is transmitted to the control processing module 51 .
  • the terminal device may combine the second detection signal collected by the acceleration sensor and the positioning data collected by the positioning module to jointly determine the corresponding first movement speed when the user moves. For example, when the user is moving, the terminal device can obtain corresponding positioning data through the positioning module, and after obtaining the above-mentioned second detection signal through the acceleration sensor, further obtain the spectrum characteristics of the second detection signal. On this basis, the terminal device can obtain the corresponding first movement speed when the user moves based on the spectrum characteristics and positioning data.
  • the above-mentioned positioning data can be used to correct the spectral characteristics of the second detection signal to indirectly improve the accuracy of determining the first movement speed; it can also be used to pre-acquire the positioning data based on the spectral characteristics of the second detection signal and After the first movement speed is determined based on the user's height data, the first movement speed is corrected to directly improve the accuracy of determining the first movement speed.
  • the target acceleration is used to guide the user to adjust the exercise speed so that the user's heart rate reaches the above target heart rate.
  • step 408 and step 410 are similar to the above-mentioned step 204 and will not be described again here.
  • the terminal device can determine the speed change guidance information corresponding to the target speed change data based on the target speed change data output by the motion guidance model.
  • the target speed change data may include target acceleration
  • the motion guidance information determined based on the target acceleration may at least include corresponding speed change guidance information.
  • the terminal device can generate corresponding speed change guidance information according to the above target acceleration, and output the speed change guidance information in subsequent steps to guide the user to maintain the above target acceleration within a certain period of time, so as to adapt to the user's movement speed. Adjustments can be made to achieve the set exercise goals.
  • the terminal device Based on the above-mentioned speed change guidance information, generate a corresponding guidance output signal, and control the terminal device to output the guidance output signal, wherein the above-mentioned guidance output signal includes one or more of a voice signal, a vibration signal, and a screen display signal.
  • the terminal device can generate a corresponding voice signal based on the above-mentioned speed change guidance information, and then can output the voice signal through a built-in microphone of the terminal device to prompt the user to perform the corresponding speed change.
  • the terminal device can also send the voice data corresponding to the above-mentioned voice signal to a headset device that is communicatively connected to the terminal device, and play the corresponding voice signal through the headset device.
  • the terminal device can generate a corresponding vibration signal based on the above-mentioned speed change guidance information, and then can drive the vibration motor built in the terminal device to perform vibration output corresponding to the above-mentioned vibration signal to prompt the user to perform the corresponding speed change.
  • the intensity and frequency of vibration output by the vibration motor can be related to the specific speed change situation represented by the above speed change guidance information. For example, when the speed change guidance information indicates that the user should speed up, the vibration motor can perform vibration output according to the specified first intensity; when the speed change guidance information indicates that the user should slow down, the vibration motor can vibrate according to the specified second intensity (difference). Perform vibration output at the above-mentioned first intensity). For example, if the speed change guidance information indicates that the absolute value of the acceleration that the user should accelerate or decelerate is larger, the vibration motor can perform corresponding vibration output at a higher frequency.
  • the terminal device can generate a corresponding screen display signal based on the above-mentioned speed change guidance information, and then can drive the screen of the terminal device to output the corresponding speed change guidance information.
  • the speed change guidance information indicates that the user should accelerate
  • an upward arrow can be displayed on the screen as shown in Figure 7A, and the corresponding target acceleration can be displayed through graphics and text
  • the speed change guidance information indicates that the user should slow down
  • a downward arrow can be displayed on the screen
  • the corresponding target acceleration can also be displayed through graphics and text.
  • the terminal device can perform the above exercise guidance in a certain exercise mode.
  • a sports mode may include "indoor running", "outdoor running”, etc., and collect the data of this movement. Complete training of the motion guidance model.
  • the terminal device can enter the "comfortable running” mode and, based on the first motion data collected, output corresponding motion guidance information (such as speed change) through the trained motion guidance model. guidance information, etc.).
  • the user before entering the "comfortable running” mode, the user can set the target heart rate for this running exercise, so that after starting this running exercise, the user can use the target heart rate and perform real-time monitoring during this running exercise.
  • the corresponding target speed change data (such as target acceleration, etc.) is determined through the above-mentioned motion guidance model, and motion guidance information corresponding to the target speed change data is output in real time.
  • the first exercise period is the period during which the user moves.
  • the second exercise period is the time period from the start of exercise until the user's heart rate reaches the above-mentioned target heart rate during the user's last exercise.
  • the terminal device can obtain the target heart rate that the user needs to achieve during running (for example, set by the user, or use a specified reference value), and convert the current first heart rate to the target heart rate according to the user's current first heart rate.
  • the corresponding moving distance and the time spent during the movement are calculated to obtain the user's average movement speed within that time period.
  • the terminal device can obtain the user's average movement speed in different time periods and further calculate it in subsequent steps.
  • the user's athletic ability data For example, the terminal device can obtain the first average speed of the user during the first exercise period during this exercise (that is, the time period from the start of the user's exercise until the user's heart rate reaches the target heart rate during this exercise), And the second average speed in the second exercise period during the last exercise (that is, the time period from the start of exercise until the user's heart rate reaches the above target heart rate during the user's last exercise), and in subsequent steps based on the The first average speed and the second average speed are used to calculate corresponding athletic ability data.
  • the target heart rate may be the same as the target heart rate set in step 408, or may be different.
  • the athletic ability data is used to represent changes in athletic ability when the user exercises based on the exercise guidance information.
  • the terminal device can assist the user in understanding whether his or her actual athletic ability has improved by calculating the user's athletic ability data. For example, after acquiring the above-mentioned first average speed v m1 and second average speed v m2 , the terminal device can calculate the corresponding athletic ability data through the following formula 1.
  • the athletic ability data p can be used to represent changes in athletic ability when the user exercises based on the above-mentioned exercise guidance information.
  • the improvement effect of terminal equipment on sports ability after providing exercise guidance is conducive to improving the interactivity of terminal equipment and further optimizing user experience.
  • the terminal device can use the user's historical motion data to train the motion guidance model, thereby accurately determining the user's motion ability, which is conducive to improving the accuracy of the terminal device's motion guidance. and reliability.
  • Such an exercise guidance method can provide real-time feedback and guidance on the user's actual exercise process to assist the user in rationally adjusting his or her exercise status, and try to avoid the user's heart rate being too high or too low during exercise, which is conducive to protecting the user's health. sports health, thereby helping users achieve established exercise goals and effectively improving users’ exercise abilities.
  • cross-validation of the user's motion data through the detection results of multiple sensors can help eliminate the impact of motion noise as much as possible and further improve the accuracy of motion guidance by terminal devices.
  • by outputting the above-mentioned sports guidance information it is also helpful to improve the interactivity of the terminal device to optimize the user experience and better assist users to improve their own sports abilities.
  • FIG. 8 is a modular schematic diagram of a motion guidance device disclosed in an embodiment of the present application.
  • the motion guidance device can be applied to the above-mentioned terminal equipment.
  • the exercise guidance device may include data acquisition 801, target determination 802 and exercise guidance unit 803, wherein:
  • the data acquisition unit 801 is used to acquire the first motion data corresponding to the terminal device.
  • the first motion data at least includes the first heart rate and the first motion speed detected by the terminal device when the user moves;
  • the target determination unit 802 is configured to determine the target speed change data corresponding to the first motion data through a motion guidance model, wherein the above motion guidance model is obtained by training based on historical motion data recorded by the terminal device, and the historical motion data includes the terminal The historical heart rate and historical movement speed detected by the device when the user is exercising;
  • the exercise guidance unit 803 is configured to generate exercise guidance information according to the target speed change data and output the exercise guidance information.
  • the terminal device can use the user's historical motion data to train the motion guidance model, thereby accurately determining the user's motion ability, and then based on the user's actual motion process.
  • the trained motion guidance model and the currently recorded user motion data provide targeted motion guidance for the user to assist the user in rationally adjusting his motion status.
  • Such an exercise guidance method can provide real-time feedback and guidance on the user's actual exercise process, and try to avoid the user's heart rate being too high or too low during exercise, which is conducive to ensuring the user's exercise health and helping the user achieve the established goals.
  • Sports training goals can effectively improve the user's sports ability.
  • the target speed change data may include target acceleration
  • the target determination unit 802 may be used to:
  • the output target acceleration is determined based on the first heart rate, the first exercise speed, and the target heart rate change.
  • the target acceleration is used to guide the user to adjust the exercise speed so that the user's heart rate reaches the target heart rate.
  • the training method of the motion guidance model may specifically include:
  • the exercise guidance model is trained through the sample data to obtain the trained exercise guidance model.
  • the motion guidance device may further include a first calculation unit and a model update unit (not shown), wherein:
  • the above-mentioned data acquisition unit 801 can also be used to acquire second motion data corresponding to the terminal device.
  • the second motion data can at least include the second heart rate and the third heart rate detected by the terminal device when the user performs exercise based on the motion guidance information. 2. Movement speed;
  • the first calculation unit is used to calculate and update the heart rate change rate and update the acceleration according to the second heart rate and the second movement speed respectively;
  • the model update unit is used to update the exercise guidance model according to the second heart rate, the second exercise speed, the updated heart rate change rate, and the updated acceleration.
  • the terminal device may include a photoplethysmogram PPG module and an acceleration sensor.
  • the above-mentioned data acquisition unit 801 may be specifically used to:
  • the first detection signal is collected through the PPG module, and the second detection signal is collected through the acceleration sensor;
  • the first detection signal and the second detection signal obtain the corresponding first heart rate when the user is moving.
  • the corresponding first movement speed in the case of user movement is obtained.
  • the data acquisition unit 801 when the data acquisition unit 801 obtains the first heart rate corresponding to the user's movement according to the first detection signal and the second detection signal, it may specifically include:
  • the first detection signal is subjected to noise reduction processing according to the spectrum characteristics, and the first heart rate corresponding to the user's movement is determined based on the first detection signal after the noise reduction processing.
  • the data acquisition unit 801 when the data acquisition unit 801 acquires the first motion speed corresponding to the user's motion according to the second detection signal, it may specifically include:
  • the first movement speed corresponding to the user's movement is determined.
  • the terminal device may also include a positioning module
  • the motion guidance device may also include a positioning unit (not shown).
  • the positioning unit may be used to obtain, in the above-mentioned data acquisition unit 801, according to the second detection signal. Obtain positioning data through the positioning module before the corresponding first movement speed when the user is moving;
  • the above data acquisition unit 801 can be specifically used for:
  • the corresponding first movement speed when the user moves is obtained.
  • the above-mentioned motion guidance information may at least include speed change guidance information, and the above-mentioned motion guidance unit 803 may be specifically used to:
  • the target shifting data determine the shifting guidance information corresponding to the target shifting data
  • a corresponding guidance output signal is generated, and the terminal device is controlled to output the guidance output signal, where the guidance output signal includes one or more of a voice signal, a vibration signal, and a screen display signal.
  • the exercise guidance device may further include a second computing unit (not shown), wherein:
  • the above-mentioned data acquisition unit 801 can also be used to obtain the first average speed detected by the terminal device during the first exercise period, and the second average speed detected during the second exercise period, wherein the first exercise period It is the time period from when the user starts exercising until the user's heart rate reaches the target heart rate during this exercise; the second exercise period is the time period from when the user starts exercising until the user's heart rate reaches the target heart rate during the last exercise;
  • the second calculation unit is configured to calculate athletic ability data based on the first average speed and the second average speed.
  • the athletic ability data is used to represent changes in athletic ability when the user performs exercise based on the exercise guidance information.
  • the terminal device can use the user's historical motion data to train the motion guidance model, thereby accurately determining the user's motion ability, which is beneficial to improving the accuracy of the terminal device's motion guidance. and reliability.
  • Such an exercise guidance method can provide real-time feedback and guidance on the user's actual exercise process to assist the user in rationally adjusting his or her exercise status, and try to avoid the user's heart rate being too high or too low during exercise, which is conducive to protecting the user's health. sports health, thereby helping users achieve established exercise goals and effectively improving users’ exercise abilities.
  • the terminal device can also continue to collect corresponding motion data during the user's subsequent exercise, and synchronously update the above-mentioned motion guidance model based on the new motion data, thereby ensuring the reliability of the motion guidance model and further improving the terminal Accuracy of equipment for exercise guidance.
  • cross-validating the user's motion data through the detection results of multiple sensors can also help eliminate the impact of motion noise as much as possible, and further improve the accuracy of motion guidance by terminal devices.
  • by outputting the above-mentioned sports guidance information it is also helpful to improve the interactivity of the terminal device to optimize the user experience and better assist users to improve their own sports abilities.
  • FIG. 9 is a modular schematic diagram of yet another terminal device disclosed in an embodiment of the present application.
  • the terminal device may include:
  • Memory 901 storing executable program code
  • processor 902 coupled to memory 901;
  • the processor 902 calls the executable program code stored in the memory 901 to execute all or part of the steps in any of the exercise guidance methods described in the above embodiments.
  • embodiments of the present application further disclose a computer-readable storage medium that stores a computer program for electronic data exchange, wherein the computer program enables the computer to perform any of the exercise guidance methods described in the above embodiments. all or part of the steps.
  • the embodiment of the present application further discloses a computer program product.
  • the computer program product When the computer program product is run on a computer, the computer can perform all or part of the steps in any of the exercise guidance methods described in the above embodiments.
  • the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only storage medium.
  • Memory Read-Only Memory, ROM), Random Access Memory (RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
  • Memory Read-Only Memory, ROM
  • RAM Random Access Memory
  • PROM Programmable Read-only Memory
  • EPROM Erasable Programmable Read Only Memory
  • OTPROM One-time Programmable Read-Only Memory
  • EEPROM Electronically Erasable Programmable Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biophysics (AREA)
  • Physical Education & Sports Medicine (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

An exercise guidance method and apparatus, a terminal device, and a storage medium. The method is applied to a terminal device, and may comprise: acquiring first exercise data corresponding to a terminal device, wherein the first exercise data at least comprises a first heart rate and a first exercise speed measured by the terminal device during user exercise; determining target speed variation data corresponding to the first exercise data by means of an exercise guidance model, wherein the described exercise guidance model is obtained by performing training on the basis of historical exercise data recorded by the terminal device, and the historical exercise data comprises a historical heart rate and a historical exercise speed measured by the terminal device during user exercise; and generating exercise guidance information according to the target speed variation data, and outputting the exercise guidance information. By implementing embodiments of the present application, corresponding guidance can be performed on an actual exercise process of a user on the basis of exercise data recorded by a terminal device, thereby facilitating the assistance in reasonably adjusting an exercise state of a user and effectively improving the exercise capability of a user.

Description

运动指导方法及装置、终端设备、存储介质Exercise guidance method and device, terminal equipment, storage medium
本申请要求于2022年3月31日提交、申请号为202210345461.7、发明名称为“运动指导方法及装置、终端设备、存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted on March 31, 2022, with the application number 202210345461.7 and the invention title "Exercise Guidance Method and Device, Terminal Equipment, Storage Medium", the entire content of which is incorporated into this application by reference. middle.
技术领域Technical field
本申请涉及电子设备技术领域,尤其涉及一种运动指导方法及装置、终端设备、存储介质。The present application relates to the technical field of electronic equipment, and in particular, to a movement guidance method and device, terminal equipment, and storage media.
背景技术Background technique
当前,终端设备(例如智能可穿戴设备、智能手机等)常常可以用于对用户的运动情况进行记录,并据此满足用户对于运动健康日益增长的需求。然而,在实践中发现,终端设备往往也只能对其检测到的运动相关数据进行简单记录。Currently, terminal devices (such as smart wearable devices, smartphones, etc.) can often be used to record the user's exercise status, and thereby meet the user's growing needs for sports and health. However, in practice, it is found that the terminal device can often only simply record the motion-related data it detects.
发明内容Contents of the invention
本申请实施例公开了一种运动指导方法及装置、终端设备、存储介质,能够基于终端设备所记录的运动数据对用户的实际运动过程进行相应指导,从而有利于辅助用户合理调整运动状态,有效提升用户的运动能力。Embodiments of the present application disclose an exercise guidance method and device, terminal equipment, and storage medium, which can provide corresponding guidance to the user's actual exercise process based on the exercise data recorded by the terminal equipment, thereby helping the user to reasonably adjust the exercise state, and effectively Improve the user's athletic ability.
本申请实施例第一方面公开一种运动指导方法,应用于终端设备,所述方法包括:The first aspect of the embodiments of this application discloses a motion guidance method, which is applied to terminal equipment. The method includes:
获取所述终端设备对应的第一运动数据,所述第一运动数据至少包括所述终端设备在用户运动的情况下所检测到的第一心率以及第一运动速度;Obtain first motion data corresponding to the terminal device, where the first motion data at least includes the first heart rate and the first motion speed detected by the terminal device when the user moves;
通过运动指导模型,确定与所述第一运动数据对应的目标变速数据,其中,所述运动指导模型是基于所述终端设备记录的历史运动数据进行训练得到的,所述历史运动数据包括所述终端设备在用户运动的情况下所检测到的历史心率以及历史运动速度;Target speed change data corresponding to the first motion data is determined through a motion guidance model, wherein the motion guidance model is trained based on historical motion data recorded by the terminal device, and the historical motion data includes the The historical heart rate and historical movement speed detected by the terminal device when the user is exercising;
根据所述目标变速数据生成运动指导信息,并输出所述运动指导信息。Motion guidance information is generated based on the target speed change data, and the motion guidance information is output.
本申请实施例第二方面公开一种运动指导装置,应用于终端设备,所述运动指导装置包括:The second aspect of the embodiment of the present application discloses a motion guidance device, which is applied to terminal equipment. The motion guidance device includes:
数据获取单元,用于获取所述终端设备对应的第一运动数据,所述第一运动数据至少包括所述终端设备在用户运动的情况下所检测到的第一心率以及第一运动速度;A data acquisition unit configured to acquire first motion data corresponding to the terminal device, where the first motion data at least includes the first heart rate and the first motion speed detected by the terminal device when the user is exercising;
目标确定单元,用于通过运动指导模型,确定与所述第一运动数据对应的目标变速数据,其中,所述运动指导模型是基于所述终端设备记录的历史运动数据进行训练得到的,所述历史运动数据包括所述终端设备在用户运动的情况下所检测到的历史心率以及历史运动速度;A target determination unit configured to determine the target speed change data corresponding to the first motion data through a motion guidance model, wherein the motion guidance model is trained based on historical motion data recorded by the terminal device, and the Historical motion data includes historical heart rate and historical motion speed detected by the terminal device when the user is exercising;
运动指导单元,用于根据所述目标变速数据生成运动指导信息,并输出所述运动指导信息。A motion guidance unit is configured to generate motion guidance information according to the target speed change data and output the motion guidance information.
本申请实施例第三方面公开了一种终端设备,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如本申请实施例第一方面公开的任意一种运动指导方法中的全部或部分步骤。The third aspect of the embodiment of the present application discloses a terminal device, which includes a memory and a processor. A computer program is stored in the memory. When the computer program is executed by the processor, the processor implements the application as described in the present application. All or part of the steps in any exercise guidance method disclosed in the first aspect of the embodiment.
本申请实施例第四方面公开了一种计算机可读存储介质,其存储计算机程序,其中,所述计算机程序被处理器执行时实现如本申请实施例第一方面公开的任意一种运动指导方法中的全部或部分步骤。The fourth aspect of the embodiment of the present application discloses a computer-readable storage medium that stores a computer program, wherein when the computer program is executed by a processor, any one of the exercise guidance methods disclosed in the first aspect of the embodiment of the present application is implemented. all or part of the steps.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和 有益效果将从说明书、附图以及权利要求书中体现。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features and beneficial effects of the application will be apparent from the description, drawings and claims.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图进行简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.
图1是本申请实施例公开的一种运动指导方法的应用场景示意图;Figure 1 is a schematic diagram of an application scenario of a sports guidance method disclosed in the embodiment of the present application;
图2是本申请实施例公开的一种运动指导方法的流程示意图;Figure 2 is a schematic flowchart of an exercise guidance method disclosed in the embodiment of the present application;
图3是本申请实施例公开的另一种运动指导方法的流程示意图;Figure 3 is a schematic flow chart of another exercise guidance method disclosed in the embodiment of the present application;
图4是本申请实施例公开的又一种运动指导方法的流程示意图;Figure 4 is a schematic flowchart of yet another exercise guidance method disclosed in the embodiment of the present application;
图5A是本申请实施例公开的一种终端设备的模块化示意图;Figure 5A is a modular schematic diagram of a terminal device disclosed in an embodiment of the present application;
图5B是本申请实施例公开的另一种终端设备的模块化示意图;Figure 5B is a modular schematic diagram of another terminal device disclosed in the embodiment of the present application;
图6A是本申请实施例公开的第一检测信号的频谱示意图;Figure 6A is a schematic spectrum diagram of the first detection signal disclosed in the embodiment of the present application;
图6B是本申请实施例公开的通过第二检测信号的频谱特征对第一检测信号进行降噪处理的示意图;Figure 6B is a schematic diagram of performing noise reduction processing on the first detection signal through the spectrum characteristics of the second detection signal disclosed in the embodiment of the present application;
图7A是本申请实施例公开的一种图形用户界面的示意图;Figure 7A is a schematic diagram of a graphical user interface disclosed in an embodiment of the present application;
图7B是本申请实施例公开的另一种图形用户界面的示意图;Figure 7B is a schematic diagram of another graphical user interface disclosed in the embodiment of the present application;
图7C是本申请实施例公开的又一种图形用户界面的示意图;Figure 7C is a schematic diagram of yet another graphical user interface disclosed in the embodiment of the present application;
图8是本申请实施例公开的一种运动指导装置的模块化示意图;Figure 8 is a modular schematic diagram of a sports guidance device disclosed in the embodiment of the present application;
图9是本申请实施例公开的又一种终端设备的模块化示意图。Figure 9 is a modular schematic diagram of yet another terminal device disclosed in the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
需要说明的是,本申请实施例的术语“包括”和“具有”及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of this application are intended to cover non-exclusive inclusions, for example, processes, methods, systems, products or products that include a series of steps or units. Apparatus are not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such processes, methods, products or devices.
本申请实施例公开了一种运动指导方法及装置、终端设备、存储介质,能够基于终端设备所记录的运动数据对用户的实际运动过程进行相应指导,从而有利于辅助用户合理调整运动状态,有效提升用户的运动能力。Embodiments of the present application disclose an exercise guidance method and device, terminal equipment, and storage medium, which can provide corresponding guidance to the user's actual exercise process based on the exercise data recorded by the terminal equipment, thereby helping the user to reasonably adjust the exercise state, and effectively Improve the user's athletic ability.
以下将结合附图进行详细描述。A detailed description will be given below with reference to the accompanying drawings.
请参阅图1,图1是本申请实施例公开的一种运动指导方法的应用场景示意图。如图1所示,在用户100进行运动的过程中,其随身携带或佩戴的终端设备200可以对相应的运动数据进行记录。示例性地,上述运动数据可以包括用户100在运动过程中对应的心率、运动速度、加速度等。在一些实施例中,上述运动数据可以是由终端设备200内置的传感器直接检测得到的;在另一些实施例中,上述运动数据也可以是基于终端设备200内置的传感器的检测结果,作进一步计算分析所得到的。Please refer to Figure 1. Figure 1 is a schematic diagram of an application scenario of a sports guidance method disclosed in an embodiment of the present application. As shown in FIG. 1 , when the user 100 performs exercise, the terminal device 200 carried or worn by the user 100 can record corresponding exercise data. For example, the above-mentioned motion data may include the corresponding heart rate, motion speed, acceleration, etc. of the user 100 during the motion. In some embodiments, the above motion data can be directly detected by the built-in sensor of the terminal device 200; in other embodiments, the above mentioned motion data can also be further calculated based on the detection results of the built-in sensor of the terminal device 200. Analyze what you get.
示例性地,上述终端设备200可以包括设有用于记录运动相关数据的传感器(例如光电 容积脉搏标记PPG模块、加速度传感器等)的各类设备或系统,如智能手机、智能手表、智能手环等,本申请实施例中不作具体限定。进一步地,该终端设备200可以搭载有操作系统,如安卓(Android)操作系统、iOS操作系统、塞班(Symbian)操作系统、Windows操作系统等,以用于安装运动健康相关的应用程序,或者实现运动健康相关的系统功能。可以理解,图1所示的终端设备200为智能手表,这仅仅是一种示例,不应被视为对本申请实施例中终端设备200的设备类型的限制。For example, the terminal device 200 may include various devices or systems equipped with sensors for recording motion-related data (such as photoplethysmogram PPG modules, acceleration sensors, etc.), such as smart phones, smart watches, smart bracelets, etc. , there is no specific limitation in the embodiments of this application. Further, the terminal device 200 can be equipped with an operating system, such as Android operating system, iOS operating system, Symbian operating system, Windows operating system, etc., for installing sports and health-related applications, or Implement system functions related to sports and health. It can be understood that the terminal device 200 shown in FIG. 1 is a smart watch. This is only an example and should not be regarded as a limitation on the device type of the terminal device 200 in the embodiment of the present application.
在本申请实施例中,用户100可以进行跑步等多种形式的运动,在此过程中终端设备200可以通过其内置的传感器实时记录相应的运动数据。以跑步运动为例,为了对用户100的运动状态进行适应性的调整,以匹配该用户100的实际运动能力,达成既定的运动锻炼目标,终端设备200可以获取该终端设备200对应的第一运动数据。其中,上述第一运动数据至少可以包括该终端设备200在用户100运动的情况下所检测到的第一心率以及第一运动速度。在此基础上,终端设备200可以通过预先训练好的运动指导模型,确定与上述第一运动数据对应的目标变速数据,并根据该目标变速数据生成相应的运动指导信息,进而可以输出该运动指导信息,为用户100提供针对性的运动指导。In this embodiment of the present application, the user 100 can perform various forms of exercise such as running. During this process, the terminal device 200 can record corresponding exercise data in real time through its built-in sensor. Taking running as an example, in order to adaptively adjust the movement state of the user 100 to match the actual movement ability of the user 100 and achieve the established exercise goal, the terminal device 200 can obtain the first movement corresponding to the terminal device 200 data. The above-mentioned first motion data may at least include the first heart rate and the first motion speed detected by the terminal device 200 when the user 100 moves. On this basis, the terminal device 200 can determine the target speed change data corresponding to the above-mentioned first movement data through the pre-trained movement guidance model, and generate corresponding movement guidance information based on the target speed change data, and then output the movement guidance information to provide users 100 with targeted exercise guidance.
其中,上述运动指导模型可以是基于该终端设备200所记录的历史运动数据进行训练得到的,该历史运动数据可以包括该终端设备200在用户100过往进行运动的情况下所检测到的历史心率以及历史运动速度,以使训练好的运动指导模型能够准确匹配该用户100的运动能力,从而有利于提升终端设备200进行运动指导的准确性及可靠性。The above-mentioned exercise guidance model may be trained based on the historical exercise data recorded by the terminal device 200 . The historical exercise data may include the historical heart rate detected by the terminal device 200 when the user 100 performed exercise in the past. Historical movement speed, so that the trained movement guidance model can accurately match the movement ability of the user 100, thereby helping to improve the accuracy and reliability of movement guidance by the terminal device 200.
通过实施上述运动指导方法,终端设备200能够利用用户100的历史运动数据来对运动指导模型进行训练,从而能够准确确定用户100的运动能力,继而可以在用户100的实际运动过程中,基于训练好的运动指导模型以及当前所记录的用户运动数据,为该用户100提供针对性的运动指导,以辅助该用户100合理调整其运动状态。这样的运动指导方法,能够对用户100的实际运动过程进行实时的反馈及指导,尽可能避免在运动过程中用户100的心率过高或过低,有利于保障用户100的运动健康,进而帮助用户100实现既定的运动锻炼目标,有效提升用户100的运动能力。By implementing the above exercise guidance method, the terminal device 200 can use the historical exercise data of the user 100 to train the exercise guidance model, thereby accurately determining the exercise ability of the user 100, and then during the actual exercise process of the user 100, based on the training The motion guidance model and the currently recorded user motion data are used to provide targeted motion guidance for the user 100 to assist the user 100 to reasonably adjust his motion state. Such an exercise guidance method can provide real-time feedback and guidance on the actual exercise process of the user 100, and try to avoid the heart rate of the user 100 being too high or too low during exercise, which is conducive to ensuring the exercise health of the user 100, and thus helping the user 100 achieve the established exercise goals and effectively improve the user's 100 exercise ability.
请参阅图2,图2是本申请实施例公开的一种运动指导方法的流程示意图,该运动指导方法可以应用于上述的终端设备。如图2所示,该运动指导方法可以包括以下步骤:Please refer to Figure 2. Figure 2 is a schematic flowchart of a movement guidance method disclosed in an embodiment of the present application. The movement guidance method can be applied to the above-mentioned terminal device. As shown in Figure 2, the motion guidance method may include the following steps:
202、获取终端设备对应的第一运动数据,该第一运动数据至少包括终端设备在用户运动的情况下所检测到的第一心率以及第一运动速度。202. Obtain the first motion data corresponding to the terminal device. The first motion data at least includes the first heart rate and the first motion speed detected by the terminal device when the user moves.
在本申请实施例中,以用户进行跑步运动为例,终端设备可以通过其内置的传感器对用户在运动过程中的第一运动数据进行记录,进而可以在后续步骤中基于该第一运动数据进行计算分析,确定出相应的目标变速数据,以用于对用户的运动状态(具体可以包括该用户的运动速度、加速度等)进行适应性的调整。In the embodiment of this application, taking the user's running exercise as an example, the terminal device can record the user's first motion data during the exercise through its built-in sensor, and can then perform the following steps based on the first motion data. Compute and analyze to determine the corresponding target speed data for adaptive adjustment of the user's motion state (specifically, it may include the user's motion speed, acceleration, etc.).
其中,上述第一运动数据至少可以包括终端设备在用户运动的情况下所检测到的第一心率以及第一运动速度。示例性地,该终端设备可以包括光电容积脉搏标记PPG(Photoplethysmograph)模块、加速度传感器、定位模块(例如北斗模块、GPS模块等)、陀螺仪等各种传感器,并且可以通过指定的传感器来分别获取上述第一运动数据。Wherein, the above-mentioned first motion data may at least include the first heart rate and the first motion speed detected by the terminal device when the user moves. For example, the terminal device may include a photoplethysmograph (PPG) module, an acceleration sensor, a positioning module (such as a Beidou module, a GPS module, etc.), a gyroscope, and other sensors, and may be acquired through designated sensors. The above first motion data.
在一些实施例中,当终端设备需要获取用户在运动过程中的第一心率时,可以通过PPG模块对用户的脉搏波进行检测,以获取对应的用户心率,并将其作为在用户运动的情况下所检测到的第一心率。可选地,由于通过PPG模块所检测到的脉搏波信号通常存在一定的运动噪声,终端设备还可以基于加速度传感器、陀螺仪等传感器的检测结果,对上述脉搏波信号进行降噪,以提升终端设备获取用户在运动过程中的第一心率的准确性。In some embodiments, when the terminal device needs to obtain the user's first heart rate during exercise, the user's pulse wave can be detected through the PPG module to obtain the corresponding user's heart rate, and use it as the condition of the user's exercise. The first heart rate detected. Optionally, since the pulse wave signal detected by the PPG module usually contains a certain amount of motion noise, the terminal device can also perform noise reduction on the pulse wave signal based on the detection results of sensors such as acceleration sensors and gyroscopes to improve the performance of the terminal. The device obtains the accuracy of the user's first heart rate during exercise.
在一些实施例中,当终端设备需要获取用户在运动过程中的第一运动速度时,可以通 过加速度传感器对用户的加速度进行检测。在此基础上,由于用户在不同运动速度下的合加速度特征(例如各个方向轴上加速度分量对应的合加速度值等)通常存在一定差异,终端设备可以基于上述加速度传感器的检测结果,分析确定对应的运动速度,并将其作为在用户运动的情况下所检测到的第一运动速度。可选地,终端设备还可以进一步获取用户自身的身高信息,并结合上述加速度传感器的检测结果以及该用户身高信息,估算用户的实时运动速度,作为在用户运动的情况下所检测到的第一运动速度。In some embodiments, when the terminal device needs to obtain the user's first movement speed during exercise, the user's acceleration can be detected through an acceleration sensor. On this basis, since there are usually certain differences in the total acceleration characteristics of users at different movement speeds (such as the total acceleration values corresponding to the acceleration components on each direction axis, etc.), the terminal device can analyze and determine the corresponding response based on the detection results of the above acceleration sensor. The movement speed is used as the first movement speed detected when the user moves. Optionally, the terminal device can further obtain the user's own height information, and combine the detection results of the above-mentioned acceleration sensor and the user's height information to estimate the user's real-time movement speed as the first detected speed when the user is moving. Movement speed.
还有一些实施例中,终端设备也可以通过定位模块获取用户在运动过程中的第一运动速度。示例性地,终端设备可以根据定位模块在第一时长(例如3秒、5秒等)内所检测到的定位数据,确定用户在第一时长内的移动路程,进而可以将该移动路程除以第一时长,得到该用户在第一时长内的平均速度。在上述第一时长足够短的情况下,终端设备可以将上述平均速度作为在用户运动的情况下所实时检测到的第一运动速度。In some embodiments, the terminal device may also obtain the first movement speed of the user during movement through the positioning module. For example, the terminal device can determine the user's movement distance within the first time period based on the positioning data detected by the positioning module within the first time period (such as 3 seconds, 5 seconds, etc.), and then divide the movement distance by For the first duration, the average speed of the user in the first duration is obtained. If the first duration is short enough, the terminal device may use the average speed as the first movement speed detected in real time when the user moves.
204、通过运动指导模型,确定与第一运动数据对应的目标变速数据,其中,上述运动指导模型是基于终端设备记录的历史运动数据进行训练得到的,该历史运动数据包括终端设备在用户运动的情况下所检测到的历史心率以及历史运动速度。204. Determine the target speed change data corresponding to the first motion data through the motion guidance model. The above motion guidance model is trained based on the historical motion data recorded by the terminal device. The historical motion data includes the movements of the terminal device during the user's motion. The historical heart rate and historical movement speed detected under the condition.
在本申请实施例中,为了对用户的运动状态进行适应性的调整,终端设备在获取上述第一运动数据之后,可以通过预先训练好的运动指导模型,确定与该第一运动数据对应的目标变速数据。示例性地,上述目标变速数据可以包括目标运动速度、目标加速度等,以用于指导用户对当前的运动速度进行调整,实现设定的运动锻炼目标。In this embodiment of the present application, in order to adaptively adjust the user's motion status, after acquiring the above-mentioned first motion data, the terminal device can determine the target corresponding to the first motion data through a pre-trained motion guidance model. Variable speed data. For example, the target speed change data may include target movement speed, target acceleration, etc., to guide the user to adjust the current movement speed to achieve the set exercise target.
在一些实施例中,上述运动锻炼目标可以包括用户在运动过程中所需达到的目标心率,该目标心率可以包括用户在运动过程中预期达到的心率(例如用户最大心率的70%、用户最大心率与静息心率之差的70%等),即用户在一定时长内进行与目标变速数据对应的变速之后,需要从当前的第一心率转变为目标心率,以此促进用户运动能力的提升。在此过程中,上述运动指导模型可以将第一运动数据以及目标心率作为输入,并输出相应的目标变速数据。In some embodiments, the above-mentioned exercise training target may include a target heart rate that the user needs to achieve during exercise. The target heart rate may include a heart rate that the user is expected to achieve during exercise (for example, 70% of the user's maximum heart rate, 70% of the user's maximum heart rate, 70% of the difference from the resting heart rate, etc.), that is, after the user performs shifting corresponding to the target shifting data within a certain period of time, the user needs to change from the current first heart rate to the target heart rate, in order to promote the improvement of the user's exercise ability. In this process, the above-mentioned motion guidance model can take the first motion data and the target heart rate as input, and output the corresponding target speed change data.
示例性地,以目标变速数据包括目标加速度为例(即终端设备指导用户在一定时长内保持该目标加速度),终端设备为了确定与上述第一运动数据对应的目标加速度,可以先根据该第一运动数据中所包括的第一心率,以及预设的目标心率(例如由用户自行设定,或者采用指定的参考值,可包括用户最大心率的70%、用户最大心率与静息心率之差的70%等),计算得到相应的目标心率变化率,该目标心率变化率可以表示用户在第二时长(例如3秒、5秒、1分钟等)内从当前的第一心率转变为目标心率所需达到的心率变化率。在此基础上,终端设备可以通过运动指导模型,根据上述第一心率、第一运动速度以及目标心率变化确定输出的目标加速度。在后续步骤中,终端设备可以基于该目标加速度指导用户调整运动速度,以使用户心率达到上述目标心率。For example, taking the target speed change data including target acceleration as an example (that is, the terminal device instructs the user to maintain the target acceleration within a certain period of time), in order to determine the target acceleration corresponding to the above-mentioned first motion data, the terminal device may first determine the target acceleration according to the first motion data. The first heart rate included in the exercise data, and the preset target heart rate (for example, set by the user, or using a specified reference value, may include 70% of the user's maximum heart rate, the difference between the user's maximum heart rate and the resting heart rate 70%, etc.), the corresponding target heart rate change rate is calculated. The target heart rate change rate can represent the user's change from the current first heart rate to the target heart rate within a second period of time (such as 3 seconds, 5 seconds, 1 minute, etc.). The desired heart rate variability. On this basis, the terminal device can determine the output target acceleration according to the above-mentioned first heart rate, first movement speed and target heart rate change through the exercise guidance model. In subsequent steps, the terminal device can guide the user to adjust the movement speed based on the target acceleration so that the user's heart rate reaches the above target heart rate.
其中,对上述运动指导模型的训练也可以基于具备对应关系的运动速度、加速度、用户心率、心率变化率等用户的历史运动数据来实现。在本申请实施例中,终端设备可以在用户首次携带或佩戴该终端设备进行运动的过程中,记录包括历史心率、历史运动速度在内的历史运动数据,进而可以将该历史运动数据作为训练样本,对待训练的运动指导模型进行训练。Among them, the training of the above-mentioned motion guidance model can also be implemented based on the user's historical motion data such as motion speed, acceleration, user heart rate, heart rate change rate, etc., which have corresponding relationships. In the embodiment of this application, the terminal device can record historical motion data including historical heart rate and historical motion speed when the user carries or wears the terminal device for exercise for the first time, and then the historical motion data can be used as a training sample. , to train the motion guidance model to be trained.
示例性地,终端设备可以分别根据该终端设备在用户各时间段内运动的情况下所检测到的历史心率以及历史运动速度,计算得到相应的历史心率变化率以及历史加速度。在此基础上,终端设备可以将上述历史心率、历史运动速度、历史加速度以及历史心率变化率作为样本数据,通过该样本数据对运动指导模型进行训练,得到训练好的运动指导模型。可选地,上述训练过程可以采用记忆渐消的递推最小二乘法(Eliminate to remember  gradually of pass and push minimum two multiplications)实现,也可以采用其它有监督或无监督的训练算法实现。For example, the terminal device can calculate the corresponding historical heart rate change rate and historical acceleration based on the historical heart rate and historical movement speed detected by the terminal device when the user moves in each time period. On this basis, the terminal device can use the above-mentioned historical heart rate, historical movement speed, historical acceleration and historical heart rate change rate as sample data, and train the exercise guidance model through the sample data to obtain a trained exercise guidance model. Optionally, the above training process can be implemented using the recursive least squares method of memory elimination (Eliminate to remember gradually of pass and push minimum two multiplications), or other supervised or unsupervised training algorithms.
可选地,上述训练过程可以在终端设备本地进行,也可以由终端设备将上述历史心率、历史运动速度、历史加速度以及历史心率变化率上传至云端或者与终端设备连接的其他智能设备,并在云端或者该智能设备上进行相应的样本模型训练过程。Optionally, the above training process can be performed locally on the terminal device, or the terminal device can upload the above historical heart rate, historical movement speed, historical acceleration and historical heart rate change rate to the cloud or other smart devices connected to the terminal device, and upload them to the cloud or other smart devices connected to the terminal device. The corresponding sample model training process is performed on the cloud or the smart device.
206、根据目标变速数据生成运动指导信息,并输出该运动指导信息。206. Generate motion guidance information according to the target speed change data, and output the motion guidance information.
在本申请实施例中,终端设备通过运动指导模型输出与上述第一运动数据对应的目标变速数据之后,可以基于该目标变速数据确定出相应的运动指导信息。在一些实施例中,目标变速数据可以包括目标加速度,则终端设备可以生成并输出与该目标加速度对应的运动指导信息,以指导用户在一定时长内保持该目标加速度。在另一些实施例中,目标变速数据也可以包括目标运动速度,则终端设备可以生成并输出与该目标运动速度对应的运动指导信息,以指导用户在一定时长内进行加速或减速,以从当前的第一运动速度转变为目标运动速度。In this embodiment of the present application, after the terminal device outputs the target speed change data corresponding to the above-mentioned first movement data through the movement guidance model, the corresponding movement guidance information can be determined based on the target speed change data. In some embodiments, the target speed change data may include target acceleration, and the terminal device may generate and output motion guidance information corresponding to the target acceleration to guide the user to maintain the target acceleration within a certain period of time. In other embodiments, the target speed change data may also include a target movement speed, and the terminal device may generate and output movement guidance information corresponding to the target movement speed to guide the user to accelerate or decelerate within a certain period of time to get from the current The first movement speed is converted into the target movement speed.
示例性地,上述运动指导信息可以包括多种形式,例如语音信息(通过终端设备的扬声器输出)、震动信息(通过终端设备的震动电机实现相应输出)、图文信息(通过终端设备的屏幕显示输出)等,本申请实施例中不作具体限定。For example, the above-mentioned exercise guidance information may include various forms, such as voice information (output through the speaker of the terminal device), vibration information (corresponding output through the vibration motor of the terminal device), graphic information (displayed through the screen of the terminal device) output), etc., are not specifically limited in the embodiments of this application.
可见,实施上述实施例所描述的运动指导方法,终端设备能够利用用户的历史运动数据来对运动指导模型进行训练,从而能够准确确定用户的运动能力,继而可以在用户的实际运动过程中,基于训练好的运动指导模型以及当前所记录的用户运动数据,为该用户提供针对性的运动指导,以辅助该用户合理调整其运动状态。这样的运动指导方法,能够对用户的实际运动过程进行实时的反馈及指导,尽可能避免在运动过程中用户的心率过高或过低,有利于保障用户的运动健康,进而帮助用户实现既定的运动锻炼目标,有效提升用户的运动能力。It can be seen that by implementing the sports guidance method described in the above embodiment, the terminal device can use the user's historical motion data to train the motion guidance model, thereby accurately determining the user's motion ability, and then based on the user's actual motion process. The trained motion guidance model and the currently recorded user motion data provide targeted motion guidance for the user to assist the user in rationally adjusting his motion status. Such an exercise guidance method can provide real-time feedback and guidance on the user's actual exercise process, and try to avoid the user's heart rate being too high or too low during exercise, which is conducive to ensuring the user's exercise health and helping the user achieve the established goals. Sports training goals can effectively improve the user's sports ability.
请参阅图3,图3是本申请实施例公开的另一种运动指导方法的流程示意图,该运动指导方法可以应用于上述的终端设备。如图3所示,该运动指导方法可以包括以下步骤:Please refer to Figure 3. Figure 3 is a schematic flowchart of another exercise guidance method disclosed in an embodiment of the present application. This exercise guidance method can be applied to the above-mentioned terminal device. As shown in Figure 3, the motion guidance method may include the following steps:
302、获取终端设备对应的第一运动数据,该第一运动数据至少包括终端设备在用户运动的情况下所检测到的第一心率以及第一运动速度。302. Obtain the first motion data corresponding to the terminal device. The first motion data at least includes the first heart rate and the first motion speed detected by the terminal device when the user moves.
304、通过运动指导模型,确定与第一运动数据对应的目标变速数据,其中,上述运动指导模型是基于终端设备记录的历史运动数据进行训练得到的,该历史运动数据包括终端设备在用户运动的情况下所检测到的历史心率以及历史运动速度。304. Determine the target speed change data corresponding to the first motion data through the motion guidance model. The above motion guidance model is trained based on the historical motion data recorded by the terminal device. The historical motion data includes the movements of the terminal device during the user's movements. The historical heart rate and historical movement speed detected under the condition.
306、根据目标变速数据生成运动指导信息,并输出该运动指导信息。306. Generate motion guidance information according to the target speed change data, and output the motion guidance information.
其中,步骤302、步骤304以及步骤306,与上述步骤202、步骤204以及步骤206类似,此处不再赘述。Among them, step 302, step 304 and step 306 are similar to the above-mentioned step 202, step 204 and step 206, and will not be described again here.
308、获取终端设备对应的第二运动数据,该第二运动数据至少包括终端设备在用户基于上述运动指导信息进行运动的情况下所检测到的第二心率以及第二运动速度。308. Obtain second motion data corresponding to the terminal device. The second motion data at least includes the second heart rate and the second motion speed detected by the terminal device when the user exercises based on the above motion guidance information.
其中,步骤308与上述步骤302类似。在本申请实施例中,终端设备在基于第一运动数据确定出相应的目标变速数据,并据此生成运动指导信息,以指导用户调整其自身的运动状态(具体可以包括该用户的运动速度、加速度等)之后,可以在用户继续运动或者下一次进行运动的情况下,获取该终端设备所检测到的第二运动数据,并基于该第二运动数据对上述运动指导模型进行同步更新。其中,上述第二运动数据至少可以包括终端设备在用户已基于上述运动指导信息进行变速之后,所检测到的第二心率以及第二运动速度。Among them, step 308 is similar to the above-mentioned step 302. In this embodiment of the present application, the terminal device determines the corresponding target speed change data based on the first motion data, and generates motion guidance information accordingly to guide the user to adjust his or her own motion state (specifically, it may include the user's motion speed, After the user continues to exercise or performs exercise next time, the second motion data detected by the terminal device can be obtained, and the above-mentioned motion guidance model can be updated synchronously based on the second motion data. Wherein, the above-mentioned second exercise data may at least include the second heart rate and the second exercise speed detected by the terminal device after the user has changed speed based on the above-mentioned exercise guidance information.
310、分别根据上述第二心率以及第二运动速度,计算更新心率变化率以及更新加速度。310. Calculate the updated heart rate change rate and the updated acceleration according to the above-mentioned second heart rate and second movement speed respectively.
在本申请实施例中,终端设备可以获取其内置的传感器在第三时长(例如3秒、5秒、1 分钟等)内所检测到的第二心率以及第二运动速度,进而可以计算出相应的更新心率变化率以及更新加速度,以在后续步骤中用于对运动指导模型进行更新。In this embodiment of the present application, the terminal device can obtain the second heart rate and the second movement speed detected by its built-in sensor within a third period of time (such as 3 seconds, 5 seconds, 1 minute, etc.), and then can calculate the corresponding The updated heart rate change rate and updated acceleration are used to update the motion guidance model in subsequent steps.
312、根据第二心率、第二运动速度、更新心率变化率以及更新加速度,对上述运动指导模型进行更新。312. Update the above-mentioned exercise guidance model according to the second heart rate, the second movement speed, the updated heart rate change rate, and the updated acceleration.
在一些实施例中,终端设备可以根据上述第二心率、第二运动速度、更新心率变化率以及更新加速度计算得到相应的模型更新参数,并基于该模型更新参数对上述运动指导模型进行调整。In some embodiments, the terminal device may calculate corresponding model update parameters based on the second heart rate, second exercise speed, updated heart rate change rate, and updated acceleration, and adjust the exercise guidance model based on the model update parameters.
在另一些实施例中,对上述运动指导模型进行更新的过程,也可以与对该运动指导模型进行初次训练的过程类似,即终端设备可以将上述第二心率、第二运动速度、更新心率变化率以及更新加速度作为新的样本数据,通过该样本数据重新对运动指导模型进行训练,以得到更新后的运动指导模型。In other embodiments, the process of updating the above-mentioned exercise guidance model may also be similar to the process of initial training of the exercise guidance model, that is, the terminal device may update the above-mentioned second heart rate, second exercise speed, and updated heart rate change. The rate and updated acceleration are used as new sample data, and the motion guidance model is retrained through the sample data to obtain an updated motion guidance model.
可选地,上述更新过程可以在终端设备本地进行,也可以由终端设备将上述第二心率、第二运动速度、更新心率变化率以及更新加速度上传至云端或者与终端设备连接的其他智能设备,并在云端或者该智能设备上进行相应的模型更新过程。Optionally, the above-mentioned update process can be performed locally on the terminal device, or the terminal device can upload the above-mentioned second heart rate, second movement speed, updated heart rate change rate, and updated acceleration to the cloud or other smart devices connected to the terminal device, And perform the corresponding model update process in the cloud or on the smart device.
可见,实施上述实施例所描述的运动指导方法,终端设备能够利用用户的历史运动数据来对运动指导模型进行训练,从而能够准确确定用户的运动能力,有利于提升终端设备进行运动指导的准确性及可靠性。这样的运动指导方法,能够对用户的实际运动过程进行实时的反馈及指导,以辅助该用户合理调整其运动状态,尽可能避免在运动过程中用户的心率过高或过低,有利于保障用户的运动健康,进而帮助用户实现既定的运动锻炼目标,有效提升用户的运动能力。此外,终端设备还可以在用户后续的运动过程中持续采集相应的运动数据,并基于新的运动数据对上述运动指导模型进行同步更新,从而有利于确保运动指导模型的可靠性,以进一步提升终端设备进行运动指导的准确性。It can be seen that by implementing the sports guidance method described in the above embodiment, the terminal device can use the user's historical motion data to train the motion guidance model, thereby accurately determining the user's motion ability, which is conducive to improving the accuracy of the terminal device's motion guidance. and reliability. Such an exercise guidance method can provide real-time feedback and guidance on the user's actual exercise process to assist the user in rationally adjusting his or her exercise status, and try to avoid the user's heart rate being too high or too low during exercise, which is conducive to protecting the user's health. sports health, thereby helping users achieve established exercise goals and effectively improving users’ exercise abilities. In addition, the terminal device can also continue to collect corresponding motion data during the user's subsequent exercise, and synchronously update the above-mentioned motion guidance model based on the new motion data, thereby ensuring the reliability of the motion guidance model and further improving the terminal Accuracy of equipment for exercise guidance.
请参阅图4,图4是本申请实施例公开的又一种运动指导方法的流程示意图,该运动指导方法可以应用于上述的终端设备,该终端设备可以包括光电容积脉搏标记PPG模块以及加速度传感器。可选地,该终端设备还可以包括定位模块。如图4所示,该运动指导方法可以包括以下步骤:Please refer to Figure 4. Figure 4 is a schematic flow chart of yet another exercise guidance method disclosed in an embodiment of the present application. This exercise guidance method can be applied to the above-mentioned terminal equipment. The terminal equipment can include a photoplethysmograph PPG module and an acceleration sensor. . Optionally, the terminal device may also include a positioning module. As shown in Figure 4, the motion guidance method may include the following steps:
402、通过PPG模块采集第一检测信号,以及通过加速度传感器采集第二检测信号。402. Collect the first detection signal through the PPG module, and collect the second detection signal through the acceleration sensor.
示例性地,请参阅图5A,图5A是本申请实施例公开的一种终端设备的模块化示意图。如图5A所示,终端设备50可以包括控制处理模块51、PPG模块52以及加速度传感器53,控制处理模块51可以分别与PPG模块52以及加速度传感器53电连接,以分别获取相应传感器所采集到的检测信号。其中,上述控制处理模块51可以包括MCU(Microcontroller Unit,微控制单元)等具备控制及数据处理能力的单元,本申请实施例中不作具体限定。For example, please refer to FIG. 5A , which is a modular schematic diagram of a terminal device disclosed in an embodiment of the present application. As shown in FIG. 5A , the terminal device 50 may include a control processing module 51 , a PPG module 52 and an acceleration sensor 53 . The control processing module 51 may be electrically connected to the PPG module 52 and the acceleration sensor 53 respectively to obtain the values collected by the corresponding sensors. detection signal. The above-mentioned control processing module 51 may include a unit with control and data processing capabilities such as an MCU (Microcontroller Unit), which is not specifically limited in the embodiments of this application.
在本申请实施例中,终端设备可以通过其内置的PPG模块来对用户的脉搏波进行检测,并采集得到相应的第一检测信号,该第一检测信号可以对应于用户在运动过程中的第一心率。同时,终端设备也可以通过其内置的加速度传感器来对用户进行跑步运动时的加速度进行检测,并采集得到相应的第二检测信号,该第二检测信号可以用于进一步确定用户在运动过程中的第一运动速度。需要说明的是,上述第一检测信号及第二检测信号均可通过DFT(Discrete Fourier Transform,离散傅里叶变换)算法进行处理,以将其从时域转换为频域,便于终端设备中的控制处理模块对其进行分析处理。In this embodiment of the present application, the terminal device can detect the user's pulse wave through its built-in PPG module and collect the corresponding first detection signal. The first detection signal can correspond to the user's first pulse wave during exercise. One heartbeat. At the same time, the terminal device can also detect the user's acceleration during running through its built-in acceleration sensor, and collect a corresponding second detection signal. The second detection signal can be used to further determine the user's acceleration during exercise. First movement speed. It should be noted that both the above-mentioned first detection signal and the second detection signal can be processed by the DFT (Discrete Fourier Transform) algorithm to convert them from the time domain to the frequency domain to facilitate the processing in the terminal equipment. The control processing module analyzes and processes it.
404、根据上述第一检测信号以及第二检测信号,获取在用户运动的情况下对应的第一心率。404. According to the first detection signal and the second detection signal, obtain the corresponding first heart rate when the user is exercising.
在本申请实施例中,由于在用户进行跑步运动时,通过PPG模块检测脉搏波信号容易受到运动噪声的干扰,导致该PPG模块所输出的第一检测信号可能无法如实反映用户在运 动过程中的第一心率。对此,终端设备可以基于其内置的其他传感器(例如加速度传感器、陀螺仪等)的检测结果,对上述第一检测信号进行降噪处理,以提升终端设备获取用户在运动过程中的第一心率的准确性。In this embodiment of the present application, since the pulse wave signal detected by the PPG module is easily interfered by motion noise when the user is running, the first detection signal output by the PPG module may not faithfully reflect the user's movements during exercise. First heart rate. In this regard, the terminal device can perform noise reduction processing on the above-mentioned first detection signal based on the detection results of other built-in sensors (such as acceleration sensor, gyroscope, etc.) to improve the terminal device's ability to obtain the user's first heart rate during exercise. accuracy.
在一些实施例中,终端设备可以根据加速度传感器所采集的第二检测信号,对上述第一检测信号进行相应的降噪处理,以消减或消除第一检测信号中的运动噪声。示例性地,终端设备中的控制处理模块在分别获取上述第一检测信号以及第二检测信号之后,可以先获取第二检测信号的频谱特征,该频谱特征可以表征用户实际的运动频率。进一步地,在上述频谱特征表示用户运动的情况下,终端设备可以根据该频谱特征对上述第一检测信号进行降噪处理,并根据降噪处理后的第一检测信号确定在用户运动的情况下对应的第一心率。如图6A及图6B所示,图6A是本申请实施例公开的第一检测信号的频谱示意图,图6B则是本申请实施例公开的通过第二检测信号的频谱特征对第一检测信号进行降噪处理的示意图。其中,第一检测信号中对应用户脉搏波信号的分量可以如实线A1所示,偏离脉搏波信号的运动噪声分量则可以如实线A2所示,可见,图6A中的运动噪声在图6B中已被有效清除,留下较为清晰的脉搏波信号,从而可以对应于用户在运动过程中的第一心率。In some embodiments, the terminal device can perform corresponding noise reduction processing on the above-mentioned first detection signal according to the second detection signal collected by the acceleration sensor, so as to reduce or eliminate motion noise in the first detection signal. For example, after acquiring the first detection signal and the second detection signal respectively, the control processing module in the terminal device may first acquire the spectrum characteristics of the second detection signal, and the spectrum characteristics may represent the actual movement frequency of the user. Further, in the case where the above-mentioned spectrum characteristics represent user movement, the terminal device may perform noise reduction processing on the above-mentioned first detection signal according to the spectrum characteristics, and determine based on the first detection signal after the noise reduction processing in the case of user movement. The corresponding first heart rate. As shown in Figures 6A and 6B, Figure 6A is a schematic spectrum diagram of the first detection signal disclosed in the embodiment of the present application, and Figure 6B is a spectrum analysis of the first detection signal based on the spectrum characteristics of the second detection signal disclosed in the embodiment of the present application. Schematic diagram of noise reduction processing. Among them, the component corresponding to the user's pulse wave signal in the first detection signal can be shown as a solid line A1, and the motion noise component deviating from the pulse wave signal can be shown as a solid line A2. It can be seen that the motion noise in Figure 6A has been shown in Figure 6B is effectively cleared, leaving a clearer pulse wave signal, which can correspond to the user's first heart rate during exercise.
可选地,终端设备可以采用LMS(Least Mean Square,最小均方)算法,将第二检测信号的频谱特征作为第一检测信号中的运动噪声的参考,以从第一检测信号中消除上述运动噪声。Optionally, the terminal device can use the LMS (Least Mean Square) algorithm to use the spectrum characteristics of the second detection signal as a reference for the motion noise in the first detection signal to eliminate the above-mentioned motion from the first detection signal. noise.
可选地,在终端设备对上述第一检测信号进行降噪处理之前,还可以通过第二检测信号判断用户当前是否处于运动中,以避免在用户未实际进行运动的情况下误判第一检测信号中的运动噪声。示例性地,终端设备可以根据上述第二检测信号确定出相应的加速度数据,进而可以基于该加速度数据判断用户的实际运动状态,并在用户运动的情况下执行上述降噪处理,以确保对第一检测信号进行降噪处理的准确性及有效性。Optionally, before the terminal device performs noise reduction processing on the above-mentioned first detection signal, it can also determine whether the user is currently exercising through the second detection signal to avoid misjudgment of the first detection when the user is not actually exercising. Motion noise in the signal. For example, the terminal device can determine the corresponding acceleration data based on the above-mentioned second detection signal, and then can determine the actual motion state of the user based on the acceleration data, and perform the above-mentioned noise reduction processing when the user is moving to ensure that the second detection signal is correct. 1. The accuracy and effectiveness of noise reduction processing of detection signals.
406、根据上述第二检测信号,获取在用户运动的情况下对应的第一运动速度。406. According to the above-mentioned second detection signal, obtain the corresponding first movement speed when the user moves.
在本申请实施例中,由于用户在不同运动速度下的合加速度特征(例如各个方向轴上加速度分量对应的合加速度值等)通常存在一定差异,终端设备可以根据加速度传感器所采集的第二检测信号确定出相应的加速度数据,并据此估算用户在运动过程中的第一运动速度。In the embodiment of the present application, since there are usually certain differences in the total acceleration characteristics of the user at different movement speeds (such as the total acceleration values corresponding to the acceleration components on each direction axis, etc.), the terminal device can collect the second detection value based on the acceleration sensor. The signal determines the corresponding acceleration data, and based on this, the user's first movement speed during exercise is estimated.
在一些实施例中,考虑到用户的身高信息也会对该用户在运动过程中的运动速度、加速度造成影响,终端设备还可以结合用户的身高信息,进一步提升估算上述第一运动速度的准确性及可靠性。示例性地,终端设备可以先获取第二检测信号的频谱特征,进而可以根据该频谱特征以及预先获取的用户身高数据,确定在用户运动的情况下对应的第一运动速度。In some embodiments, considering that the user's height information will also affect the user's movement speed and acceleration during exercise, the terminal device can also combine the user's height information to further improve the accuracy of estimating the above-mentioned first movement speed. and reliability. For example, the terminal device may first obtain the spectrum characteristics of the second detection signal, and then determine the corresponding first movement speed when the user moves based on the spectrum characteristics and the pre-acquired user height data.
可选地,终端设备还可以设有定位模块,并通过该定位模块所检测到的定位数据,确定用户在运动过程中的第一运动速度。示例性地,请参阅图5B,终端设备50除了包括控制处理模块51、PPG模块52以及加速度传感器53,还可以进一步包括定位模块54,该定位模块54也可以与控制处理模块51电连接,以向该控制处理模块51传输其所采集的定位数据。Optionally, the terminal device may also be provided with a positioning module, and determine the first movement speed of the user during movement through the positioning data detected by the positioning module. For example, please refer to FIG. 5B. In addition to the control processing module 51, the PPG module 52 and the acceleration sensor 53, the terminal device 50 may further include a positioning module 54. The positioning module 54 may also be electrically connected to the control processing module 51 to The positioning data collected is transmitted to the control processing module 51 .
在一些实施例中,终端设备可以结合上述加速度传感器所采集的第二检测信号,以及定位模块所采集的定位数据,共同确定在用户运动的情况下对应的第一运动速度。示例性地,在用户进行运动的情况下,终端设备可以通过定位模块获取相应的定位数据,并在通过加速度传感器获取上述第二检测信号之后,进一步获取该第二检测信号的频谱特征。在此基础上,终端设备可以根据该频谱特征以及定位数据,获取在用户运动的情况下对应的第一运动速度。可选地,上述定位数据可以用于对第二检测信号的频谱特征进行校正,以间接提升确定第一运动速度的准确性;也可以用于在根据该第二检测信号的频谱特征以及 预先获取的用户身高数据确定出上述第一运动速度之后,对该第一运动速度进行校正,以直接提升确定第一运动速度的准确性。In some embodiments, the terminal device may combine the second detection signal collected by the acceleration sensor and the positioning data collected by the positioning module to jointly determine the corresponding first movement speed when the user moves. For example, when the user is moving, the terminal device can obtain corresponding positioning data through the positioning module, and after obtaining the above-mentioned second detection signal through the acceleration sensor, further obtain the spectrum characteristics of the second detection signal. On this basis, the terminal device can obtain the corresponding first movement speed when the user moves based on the spectrum characteristics and positioning data. Optionally, the above-mentioned positioning data can be used to correct the spectral characteristics of the second detection signal to indirectly improve the accuracy of determining the first movement speed; it can also be used to pre-acquire the positioning data based on the spectral characteristics of the second detection signal and After the first movement speed is determined based on the user's height data, the first movement speed is corrected to directly improve the accuracy of determining the first movement speed.
408、根据上述第一心率以及目标心率,计算目标心率变化率。408. Calculate the target heart rate change rate based on the above-mentioned first heart rate and target heart rate.
410、通过运动指导模型,根据第一心率、第一运动速度以及目标心率变化确定输出的目标加速度,该目标加速度用于指导用户调整运动速度,以使用户心率达到上述目标心率。410. Through the exercise guidance model, determine the output target acceleration according to the first heart rate, the first exercise speed and the target heart rate change. The target acceleration is used to guide the user to adjust the exercise speed so that the user's heart rate reaches the above target heart rate.
其中,步骤408以及步骤410与上述步骤204类似,此处不再赘述。Among them, step 408 and step 410 are similar to the above-mentioned step 204 and will not be described again here.
412、根据上述目标加速度,确定与该目标加速度对应的变速指导信息。412. Based on the above target acceleration, determine the speed change guidance information corresponding to the target acceleration.
在本申请实施例中,终端设备可以根据运动指导模型所输出的目标变速数据,确定与该目标变速数据对应的变速指导信息。其中,上述目标变速数据可以包括目标加速度,则根据该目标加速度所确定的运动指导信息至少可以包括相应的变速指导信息。示例性地,终端设备可以根据上述目标加速度生成相应的变速指导信息,并在后续步骤中输出该变速指导信息,以指导用户在一定时长内保持上述目标加速度,从而可以对用户的运动速度进行适应性的调整,实现设定的运动锻炼目标。In this embodiment of the present application, the terminal device can determine the speed change guidance information corresponding to the target speed change data based on the target speed change data output by the motion guidance model. Wherein, the target speed change data may include target acceleration, and the motion guidance information determined based on the target acceleration may at least include corresponding speed change guidance information. For example, the terminal device can generate corresponding speed change guidance information according to the above target acceleration, and output the speed change guidance information in subsequent steps to guide the user to maintain the above target acceleration within a certain period of time, so as to adapt to the user's movement speed. Adjustments can be made to achieve the set exercise goals.
414、基于上述变速指导信息,生成相应的指导输出信号,并控制终端设备输出该指导输出信号,其中,上述指导输出信号包括语音信号、震动信号、屏幕显示信号中的一种或多种。414. Based on the above-mentioned speed change guidance information, generate a corresponding guidance output signal, and control the terminal device to output the guidance output signal, wherein the above-mentioned guidance output signal includes one or more of a voice signal, a vibration signal, and a screen display signal.
在一些实施例中,终端设备可以基于上述变速指导信息生成相应的语音信号,继而可以通过终端设备内置的麦克风输出该语音信号,以提示用户进行相应的变速。可选地,终端设备也可以将上述语音信号对应的语音数据发送至与该终端设备通信连接的耳机设备,并通过该耳机设备播放相应的语音信号。In some embodiments, the terminal device can generate a corresponding voice signal based on the above-mentioned speed change guidance information, and then can output the voice signal through a built-in microphone of the terminal device to prompt the user to perform the corresponding speed change. Optionally, the terminal device can also send the voice data corresponding to the above-mentioned voice signal to a headset device that is communicatively connected to the terminal device, and play the corresponding voice signal through the headset device.
在另一些实施例中,终端设备可以基于上述变速指导信息生成相应的震动信号,继而可以驱动该终端设备内置的震动电机进行与上述震动信号对应的震动输出,以提示用户进行相应的变速。可选地,震动电机进行震动输出的强度以及频率可以与上述变速指导信息所表示的具体变速情况相关。示例性地,当变速指导信息表示用户应当加速时,震动电机可以按照指定的第一强度进行震动输出;当变速指导信息表示用户应当减速时,则该震动电机可以按照指定的第二强度(区别于上述第一强度)进行震动输出。示例性地,若变速指导信息表示用户应当加速或减速的加速度绝对值越大,则震动电机可以按照越高的频率进行相应的震动输出。In other embodiments, the terminal device can generate a corresponding vibration signal based on the above-mentioned speed change guidance information, and then can drive the vibration motor built in the terminal device to perform vibration output corresponding to the above-mentioned vibration signal to prompt the user to perform the corresponding speed change. Optionally, the intensity and frequency of vibration output by the vibration motor can be related to the specific speed change situation represented by the above speed change guidance information. For example, when the speed change guidance information indicates that the user should speed up, the vibration motor can perform vibration output according to the specified first intensity; when the speed change guidance information indicates that the user should slow down, the vibration motor can vibrate according to the specified second intensity (difference). Perform vibration output at the above-mentioned first intensity). For example, if the speed change guidance information indicates that the absolute value of the acceleration that the user should accelerate or decelerate is larger, the vibration motor can perform corresponding vibration output at a higher frequency.
还有一些实施例中,终端设备可以基于上述变速指导信息生成相应的屏幕显示信号,继而可以驱动该终端设备的屏幕输出相应的变速指导信息。示例性地,当变速指导信息表示用户应当加速时,可以如图7A所示,在屏幕上显示朝上的箭头,同时可以通过图文展示相应的目标加速度;当变速指导信息表示用户应当减速时,可以如图7B所示,在屏幕上显示朝下的箭头,同时也可以通过图文展示相应的目标加速度。In some embodiments, the terminal device can generate a corresponding screen display signal based on the above-mentioned speed change guidance information, and then can drive the screen of the terminal device to output the corresponding speed change guidance information. For example, when the speed change guidance information indicates that the user should accelerate, an upward arrow can be displayed on the screen as shown in Figure 7A, and the corresponding target acceleration can be displayed through graphics and text; when the speed change guidance information indicates that the user should slow down , as shown in Figure 7B, a downward arrow can be displayed on the screen, and the corresponding target acceleration can also be displayed through graphics and text.
可选地,终端设备可以在一定的运动模式下执行上述运动指导。示例性地,在用户首次携带或佩戴终端设备进行运动,可以在终端设备上进行运动模式的选择,示例性的运动模式可以包括“室内跑步”、“户外跑步”等,并收集此次运动数据完成对运动指导模型的训练。当用户再次携带或佩戴该终端设备进行运动时,终端设备可以进入“舒适跑步”模式,并基于其所采集的第一运动数据,通过训练好的运动指导模型输出相应的运动指导信息(例如变速指导信息等)。如图7C所示,用户在进入“舒适跑步”模式之前,可以设置本次跑步运动的目标心率,从而在开始本次跑步运动后,可以利用该目标心率以及在本次跑步运动的过程中实时采集到的第一运动数据,通过上述运动指导模型确定相应的目标变速数据(例如目标加速度等),并实时地输出与该目标变速数据对应的运动指导信息。Optionally, the terminal device can perform the above exercise guidance in a certain exercise mode. For example, when the user carries or wears the terminal device for exercise for the first time, the user can select a sports mode on the terminal device. Exemplary sports modes may include "indoor running", "outdoor running", etc., and collect the data of this movement. Complete training of the motion guidance model. When the user carries or wears the terminal device for exercise again, the terminal device can enter the "comfortable running" mode and, based on the first motion data collected, output corresponding motion guidance information (such as speed change) through the trained motion guidance model. guidance information, etc.). As shown in Figure 7C, before entering the "comfortable running" mode, the user can set the target heart rate for this running exercise, so that after starting this running exercise, the user can use the target heart rate and perform real-time monitoring during this running exercise. For the collected first motion data, the corresponding target speed change data (such as target acceleration, etc.) is determined through the above-mentioned motion guidance model, and motion guidance information corresponding to the target speed change data is output in real time.
416、获取终端设备在第一运动时段内所检测到的第一平均速度,以及在第二运动时段 内所检测到的第二平均速度,其中,第一运动时段为用户在本次运动过程中,从开始运动直至用户心率达到目标心率的时间段;第二运动时段为用户在上一次运动过程中,从开始运动直至用户心率达到上述目标心率的时间段。416. Obtain the first average speed detected by the terminal device during the first exercise period, and the second average speed detected during the second exercise period, where the first exercise period is the period during which the user moves. , the time period from the start of exercise until the user's heart rate reaches the target heart rate; the second exercise period is the time period from the start of exercise until the user's heart rate reaches the above-mentioned target heart rate during the user's last exercise.
在本申请实施例中,终端设备可以获取用户在跑步过程需要达成的目标心率(例如由用户自行设定,或者采用指定的参考值),并根据用户在从当前的第一心率转换为目标心率的运动过程中对应的移动路程以及所耗费的时长,计算得到该时长内用户的平均运动速度。In this embodiment of the present application, the terminal device can obtain the target heart rate that the user needs to achieve during running (for example, set by the user, or use a specified reference value), and convert the current first heart rate to the target heart rate according to the user's current first heart rate. The corresponding moving distance and the time spent during the movement are calculated to obtain the user's average movement speed within that time period.
在此基础上,为了确定用户在利用终端设备进行运动指导的情况下,其自身的运动能力是否有所提升,终端设备可以分别获取不同时段内用户的平均运动速度,并在后续步骤中进一步计算该用户的运动能力数据。示例性地,终端设备可以获取用户在本次运动过程中的第一运动时段(即用户在本次运动过程中,从开始运动直至用户心率达到目标心率的时间段)内的第一平均速度,以及在上一次运动过程中的第二运动时段(即用户在上一次运动过程中,从开始运动直至用户心率达到上述目标心率的时间段)内的第二平均速度,并在后续步骤中根据该第一平均速度以及第二平均速度计算出相应的运动能力数据。其中,上述目标心率可以与步骤408中所设定的目标心率相同,也可以不相同。On this basis, in order to determine whether the user's own exercise ability has improved when using the terminal device for exercise guidance, the terminal device can obtain the user's average movement speed in different time periods and further calculate it in subsequent steps. The user's athletic ability data. For example, the terminal device can obtain the first average speed of the user during the first exercise period during this exercise (that is, the time period from the start of the user's exercise until the user's heart rate reaches the target heart rate during this exercise), And the second average speed in the second exercise period during the last exercise (that is, the time period from the start of exercise until the user's heart rate reaches the above target heart rate during the user's last exercise), and in subsequent steps based on the The first average speed and the second average speed are used to calculate corresponding athletic ability data. The target heart rate may be the same as the target heart rate set in step 408, or may be different.
418、根据上述第一平均速度以及第二平均速度,计算运动能力数据,该运动能力数据用于表征在用户基于上述运动指导信息进行运动的情况下的运动能力变化。418. Calculate athletic ability data based on the first average speed and the second average speed. The athletic ability data is used to represent changes in athletic ability when the user exercises based on the exercise guidance information.
在本申请实施例中,终端设备可以通过计算用户的运动能力数据,辅助用户了解自身实际的运动能力是否有所提升。示例性地,终端设备在获取上述第一平均速度v m1以及第二平均速度v m2之后,可以通过如下公式1计算得到相应的运动能力数据。 In this embodiment of the present application, the terminal device can assist the user in understanding whether his or her actual athletic ability has improved by calculating the user's athletic ability data. For example, after acquiring the above-mentioned first average speed v m1 and second average speed v m2 , the terminal device can calculate the corresponding athletic ability data through the following formula 1.
公式1:Formula 1:
Figure PCTCN2022139448-appb-000001
Figure PCTCN2022139448-appb-000001
其中,运动能力数据p可以用于表征在用户基于上述运动指导信息进行运动的情况下的运动能力变化,p的值越大,则可以表示用户的运动能力提升越高,从而能够及时向用户反馈终端设备在提供运动指导后的运动能力提升效果,有利于提升终端设备的可交互性,进一步优化用户体验。Among them, the athletic ability data p can be used to represent changes in athletic ability when the user exercises based on the above-mentioned exercise guidance information. The larger the value of p, the higher the improvement in the user's athletic ability, so that timely feedback can be provided to the user. The improvement effect of terminal equipment on sports ability after providing exercise guidance is conducive to improving the interactivity of terminal equipment and further optimizing user experience.
可见,实施上述实施例所描述的运动指导方法,终端设备能够利用用户的历史运动数据来对运动指导模型进行训练,从而能够准确确定用户的运动能力,有利于提升终端设备进行运动指导的准确性及可靠性。这样的运动指导方法,能够对用户的实际运动过程进行实时的反馈及指导,以辅助该用户合理调整其运动状态,尽可能避免在运动过程中用户的心率过高或过低,有利于保障用户的运动健康,进而帮助用户实现既定的运动锻炼目标,有效提升用户的运动能力。此外,通过多种传感器的检测结果对用户的运动数据进行交叉验证,有利于尽可能消除运动噪声的影响,进一步提升终端设备进行运动指导的准确性。此外,通过输出上述运动指导信息,还有利于提升终端设备的可交互性,以优化用户体验,更好地辅助用户提升自身的运动能力。It can be seen that by implementing the sports guidance method described in the above embodiment, the terminal device can use the user's historical motion data to train the motion guidance model, thereby accurately determining the user's motion ability, which is conducive to improving the accuracy of the terminal device's motion guidance. and reliability. Such an exercise guidance method can provide real-time feedback and guidance on the user's actual exercise process to assist the user in rationally adjusting his or her exercise status, and try to avoid the user's heart rate being too high or too low during exercise, which is conducive to protecting the user's health. sports health, thereby helping users achieve established exercise goals and effectively improving users’ exercise abilities. In addition, cross-validation of the user's motion data through the detection results of multiple sensors can help eliminate the impact of motion noise as much as possible and further improve the accuracy of motion guidance by terminal devices. In addition, by outputting the above-mentioned sports guidance information, it is also helpful to improve the interactivity of the terminal device to optimize the user experience and better assist users to improve their own sports abilities.
请参阅图8,图8是本申请实施例公开的一种运动指导装置的模块化示意图,该运动指导装置可以应用于上述的终端设备。如图8所示,该运动指导装置可以包括数据获取801、 目标确定802以及运动指导单元803,其中:Please refer to FIG. 8 , which is a modular schematic diagram of a motion guidance device disclosed in an embodiment of the present application. The motion guidance device can be applied to the above-mentioned terminal equipment. As shown in Figure 8, the exercise guidance device may include data acquisition 801, target determination 802 and exercise guidance unit 803, wherein:
数据获取单元801,用于获取终端设备对应的第一运动数据,该第一运动数据至少包括终端设备在用户运动的情况下所检测到的第一心率以及第一运动速度;The data acquisition unit 801 is used to acquire the first motion data corresponding to the terminal device. The first motion data at least includes the first heart rate and the first motion speed detected by the terminal device when the user moves;
目标确定单元802,用于通过运动指导模型,确定与第一运动数据对应的目标变速数据,其中,上述运动指导模型是基于终端设备记录的历史运动数据进行训练得到的,该历史运动数据包括终端设备在用户运动的情况下所检测到的历史心率以及历史运动速度;The target determination unit 802 is configured to determine the target speed change data corresponding to the first motion data through a motion guidance model, wherein the above motion guidance model is obtained by training based on historical motion data recorded by the terminal device, and the historical motion data includes the terminal The historical heart rate and historical movement speed detected by the device when the user is exercising;
运动指导单元803,用于根据目标变速数据生成运动指导信息,并输出该运动指导信息。The exercise guidance unit 803 is configured to generate exercise guidance information according to the target speed change data and output the exercise guidance information.
可见,采用上述实施例所描述的运动指导装置,终端设备能够利用用户的历史运动数据来对运动指导模型进行训练,从而能够准确确定用户的运动能力,继而可以在用户的实际运动过程中,基于训练好的运动指导模型以及当前所记录的用户运动数据,为该用户提供针对性的运动指导,以辅助该用户合理调整其运动状态。这样的运动指导方法,能够对用户的实际运动过程进行实时的反馈及指导,尽可能避免在运动过程中用户的心率过高或过低,有利于保障用户的运动健康,进而帮助用户实现既定的运动锻炼目标,有效提升用户的运动能力。It can be seen that using the sports guidance device described in the above embodiments, the terminal device can use the user's historical motion data to train the motion guidance model, thereby accurately determining the user's motion ability, and then based on the user's actual motion process. The trained motion guidance model and the currently recorded user motion data provide targeted motion guidance for the user to assist the user in rationally adjusting his motion status. Such an exercise guidance method can provide real-time feedback and guidance on the user's actual exercise process, and try to avoid the user's heart rate being too high or too low during exercise, which is conducive to ensuring the user's exercise health and helping the user achieve the established goals. Sports training goals can effectively improve the user's sports ability.
在一种实施例中,上述目标变速数据可以包括目标加速度,则上述目标确定单元802具体可以用于:In one embodiment, the target speed change data may include target acceleration, and the target determination unit 802 may be used to:
根据第一心率以及目标心率,计算目标心率变化率;Calculate the target heart rate change rate based on the first heart rate and the target heart rate;
通过运动指导模型,根据第一心率、第一运动速度以及目标心率变化确定输出的目标加速度,目标加速度用于指导用户调整运动速度,以使用户心率达到目标心率。Through the exercise guidance model, the output target acceleration is determined based on the first heart rate, the first exercise speed, and the target heart rate change. The target acceleration is used to guide the user to adjust the exercise speed so that the user's heart rate reaches the target heart rate.
在一种实施例中,在上述目标确定单元802通过运动指导模型,确定与第一运动数据对应的目标变速数据之前,该运动指导模型的训练方法具体可以包括:In one embodiment, before the target determination unit 802 determines the target speed change data corresponding to the first motion data through the motion guidance model, the training method of the motion guidance model may specifically include:
分别根据终端设备在用户运动的情况下所检测到的历史心率以及历史运动速度,计算历史心率变化率以及历史加速度;Calculate the historical heart rate change rate and historical acceleration based on the historical heart rate and historical movement speed detected by the terminal device when the user is exercising;
将历史心率、历史运动速度、历史加速度以及历史心率变化率作为样本数据,通过样本数据对运动指导模型进行训练,得到训练好的运动指导模型。Taking the historical heart rate, historical movement speed, historical acceleration and historical heart rate change rate as sample data, the exercise guidance model is trained through the sample data to obtain the trained exercise guidance model.
在一种实施例中,该运动指导装置还可以包括未图示的第一计算单元以及模型更新单元,其中:In one embodiment, the motion guidance device may further include a first calculation unit and a model update unit (not shown), wherein:
上述数据获取单元801,还可以用于获取终端设备对应的第二运动数据,该第二运动数据至少可以包括终端设备在用户基于运动指导信息进行运动的情况下所检测到的第二心率以及第二运动速度;The above-mentioned data acquisition unit 801 can also be used to acquire second motion data corresponding to the terminal device. The second motion data can at least include the second heart rate and the third heart rate detected by the terminal device when the user performs exercise based on the motion guidance information. 2. Movement speed;
第一计算单元,用于分别根据第二心率以及第二运动速度,计算更新心率变化率以及更新加速度;The first calculation unit is used to calculate and update the heart rate change rate and update the acceleration according to the second heart rate and the second movement speed respectively;
模型更新单元,用于根据第二心率、第二运动速度、更新心率变化率以及更新加速度,对运动指导模型进行更新。The model update unit is used to update the exercise guidance model according to the second heart rate, the second exercise speed, the updated heart rate change rate, and the updated acceleration.
在一种实施例中,该终端设备可以包括光电容积脉搏标记PPG模块以及加速度传感器,则上述数据获取单元801在获取终端设备对应的第一运动数据时,具体可以用于:In one embodiment, the terminal device may include a photoplethysmogram PPG module and an acceleration sensor. When acquiring the first motion data corresponding to the terminal device, the above-mentioned data acquisition unit 801 may be specifically used to:
通过PPG模块采集第一检测信号,以及通过加速度传感器采集第二检测信号;The first detection signal is collected through the PPG module, and the second detection signal is collected through the acceleration sensor;
根据第一检测信号以及第二检测信号,获取在用户运动的情况下对应的第一心率;以及,According to the first detection signal and the second detection signal, obtain the corresponding first heart rate when the user is moving; and,
根据第二检测信号,获取在用户运动的情况下对应的第一运动速度。According to the second detection signal, the corresponding first movement speed in the case of user movement is obtained.
其中,该数据获取单元801在根据第一检测信号以及第二检测信号,获取在用户运动的情况下对应的第一心率时,具体可以包括:Wherein, when the data acquisition unit 801 obtains the first heart rate corresponding to the user's movement according to the first detection signal and the second detection signal, it may specifically include:
获取第二检测信号的频谱特征;Obtain the spectrum characteristics of the second detection signal;
在频谱特征表示用户运动的情况下,根据频谱特征对第一检测信号进行降噪处理,并根据降噪处理后的第一检测信号确定在用户运动的情况下对应的第一心率。When the spectral features represent the user's movement, the first detection signal is subjected to noise reduction processing according to the spectrum characteristics, and the first heart rate corresponding to the user's movement is determined based on the first detection signal after the noise reduction processing.
其中,该数据获取单元801在根据第二检测信号,获取在用户运动的情况下对应的第一运动速度时,具体可以包括:Wherein, when the data acquisition unit 801 acquires the first motion speed corresponding to the user's motion according to the second detection signal, it may specifically include:
获取第二检测信号的频谱特征;Obtain the spectrum characteristics of the second detection signal;
根据频谱特征以及用户身高数据,确定在用户运动的情况下对应的第一运动速度。According to the spectrum characteristics and the user's height data, the first movement speed corresponding to the user's movement is determined.
在一种实施例中,该终端设备还可以包括定位模块,则该运动指导装置还可以包括未图示的定位单元,该定位单元可以用于在上述数据获取单元801根据第二检测信号,获取在用户运动的情况下对应的第一运动速度之前,通过定位模块获取定位数据;In one embodiment, the terminal device may also include a positioning module, and the motion guidance device may also include a positioning unit (not shown). The positioning unit may be used to obtain, in the above-mentioned data acquisition unit 801, according to the second detection signal. Obtain positioning data through the positioning module before the corresponding first movement speed when the user is moving;
上述数据获取单元801,具体可以用于:The above data acquisition unit 801 can be specifically used for:
根据第二检测信号以及定位数据,获取在用户运动的情况下对应的第一运动速度。According to the second detection signal and positioning data, the corresponding first movement speed when the user moves is obtained.
在一种实施例中,上述运动指导信息至少可以包括变速指导信息,则上述运动指导单元803具体可以用于:In one embodiment, the above-mentioned motion guidance information may at least include speed change guidance information, and the above-mentioned motion guidance unit 803 may be specifically used to:
根据目标变速数据,确定与目标变速数据对应的变速指导信息;According to the target shifting data, determine the shifting guidance information corresponding to the target shifting data;
基于变速指导信息,生成相应的指导输出信号,并控制终端设备输出指导输出信号,其中,指导输出信号包括语音信号、震动信号、屏幕显示信号中的一种或多种。Based on the speed change guidance information, a corresponding guidance output signal is generated, and the terminal device is controlled to output the guidance output signal, where the guidance output signal includes one or more of a voice signal, a vibration signal, and a screen display signal.
在一种实施例中,该运动指导装置还可以包括未图示的第二计算单元,其中:In one embodiment, the exercise guidance device may further include a second computing unit (not shown), wherein:
上述数据获取单元801,还可以用于获取终端设备在第一运动时段内所检测到的第一平均速度,以及在第二运动时段内所检测到的第二平均速度,其中,第一运动时段为用户在本次运动过程中,从开始运动直至用户心率达到目标心率的时间段;第二运动时段为用户在上一次运动过程中,从开始运动直至用户心率达到目标心率的时间段;The above-mentioned data acquisition unit 801 can also be used to obtain the first average speed detected by the terminal device during the first exercise period, and the second average speed detected during the second exercise period, wherein the first exercise period It is the time period from when the user starts exercising until the user's heart rate reaches the target heart rate during this exercise; the second exercise period is the time period from when the user starts exercising until the user's heart rate reaches the target heart rate during the last exercise;
第二计算单元,用于根据第一平均速度以及第二平均速度,计算运动能力数据,运动能力数据用于表征在用户基于运动指导信息进行运动的情况下的运动能力变化。The second calculation unit is configured to calculate athletic ability data based on the first average speed and the second average speed. The athletic ability data is used to represent changes in athletic ability when the user performs exercise based on the exercise guidance information.
可见,采用上述实施例所描述的运动指导装置,终端设备能够利用用户的历史运动数据来对运动指导模型进行训练,从而能够准确确定用户的运动能力,有利于提升终端设备进行运动指导的准确性及可靠性。这样的运动指导方法,能够对用户的实际运动过程进行实时的反馈及指导,以辅助该用户合理调整其运动状态,尽可能避免在运动过程中用户的心率过高或过低,有利于保障用户的运动健康,进而帮助用户实现既定的运动锻炼目标,有效提升用户的运动能力。此外,终端设备还可以在用户后续的运动过程中持续采集相应的运动数据,并基于新的运动数据对上述运动指导模型进行同步更新,从而有利于确保运动指导模型的可靠性,以进一步提升终端设备进行运动指导的准确性。此外,通过多种传感器的检测结果对用户的运动数据进行交叉验证,还有利于尽可能消除运动噪声的影响,再进一步提升终端设备进行运动指导的准确性。此外,通过输出上述运动指导信息,还有利于提升终端设备的可交互性,以优化用户体验,更好地辅助用户提升自身的运动能力。It can be seen that by using the sports guidance device described in the above embodiments, the terminal device can use the user's historical motion data to train the motion guidance model, thereby accurately determining the user's motion ability, which is beneficial to improving the accuracy of the terminal device's motion guidance. and reliability. Such an exercise guidance method can provide real-time feedback and guidance on the user's actual exercise process to assist the user in rationally adjusting his or her exercise status, and try to avoid the user's heart rate being too high or too low during exercise, which is conducive to protecting the user's health. sports health, thereby helping users achieve established exercise goals and effectively improving users’ exercise abilities. In addition, the terminal device can also continue to collect corresponding motion data during the user's subsequent exercise, and synchronously update the above-mentioned motion guidance model based on the new motion data, thereby ensuring the reliability of the motion guidance model and further improving the terminal Accuracy of equipment for exercise guidance. In addition, cross-validating the user's motion data through the detection results of multiple sensors can also help eliminate the impact of motion noise as much as possible, and further improve the accuracy of motion guidance by terminal devices. In addition, by outputting the above-mentioned sports guidance information, it is also helpful to improve the interactivity of the terminal device to optimize the user experience and better assist users to improve their own sports abilities.
请参阅图9,图9是本申请实施例公开的又一种终端设备的模块化示意图。如图9所示,该终端设备可以包括:Please refer to FIG. 9 , which is a modular schematic diagram of yet another terminal device disclosed in an embodiment of the present application. As shown in Figure 9, the terminal device may include:
存储有可执行程序代码的存储器901; Memory 901 storing executable program code;
与存储器901耦合的处理器902; processor 902 coupled to memory 901;
其中,处理器902调用存储器901中存储的可执行程序代码,可以执行上述实施例所描述的任意一种运动指导方法中的全部或部分步骤。The processor 902 calls the executable program code stored in the memory 901 to execute all or part of the steps in any of the exercise guidance methods described in the above embodiments.
此外,本申请实施例进一步公开了一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,该计算机程序使得计算机可以执行上述实施例所描述的任意一种 运动指导方法中的全部或部分步骤。In addition, embodiments of the present application further disclose a computer-readable storage medium that stores a computer program for electronic data exchange, wherein the computer program enables the computer to perform any of the exercise guidance methods described in the above embodiments. all or part of the steps.
此外,本申请实施例进一步公开一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机可以执行上述实施例所描述的任意一种运动指导方法中的全部或部分步骤。In addition, the embodiment of the present application further discloses a computer program product. When the computer program product is run on a computer, the computer can perform all or part of the steps in any of the exercise guidance methods described in the above embodiments.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其它光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其它介质。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium, and the storage medium includes a read-only storage medium. Memory (Read-Only Memory, ROM), Random Access Memory (RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
以上对本申请实施例公开的一种运动指导方法及装置、终端设备、存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction to a sports guidance method and device, terminal equipment, and storage medium disclosed in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only for To help understand the methods and core ideas of this application; at the same time, for those of ordinary skill in the field, there will be changes in the specific implementation methods and application scope based on the ideas of this application. In summary, this specification The contents should not be construed as limitations on this application.

Claims (22)

  1. 一种运动指导方法,其特征在于,应用于终端设备,所述方法包括:A motion guidance method, characterized in that it is applied to terminal equipment, and the method includes:
    获取所述终端设备对应的第一运动数据,所述第一运动数据至少包括所述终端设备在用户运动的情况下所检测到的第一心率以及第一运动速度;Obtain first motion data corresponding to the terminal device, where the first motion data at least includes the first heart rate and the first motion speed detected by the terminal device when the user moves;
    通过运动指导模型,确定与所述第一运动数据对应的目标变速数据,其中,所述运动指导模型是基于所述终端设备记录的历史运动数据进行训练得到的,所述历史运动数据包括所述终端设备在用户运动的情况下所检测到的历史心率以及历史运动速度;Target speed change data corresponding to the first motion data is determined through a motion guidance model, wherein the motion guidance model is trained based on historical motion data recorded by the terminal device, and the historical motion data includes the The historical heart rate and historical movement speed detected by the terminal device when the user is exercising;
    根据所述目标变速数据生成运动指导信息,并输出所述运动指导信息。Motion guidance information is generated based on the target speed change data, and the motion guidance information is output.
  2. 根据权利要求1所述的方法,其特征在于,所述目标变速数据包括目标加速度,所述通过运动指导模型,确定与所述第一运动数据对应的目标变速数据,包括:The method according to claim 1, wherein the target speed change data includes target acceleration, and determining the target speed change data corresponding to the first motion data through a motion guidance model includes:
    根据所述第一心率以及目标心率,计算目标心率变化率,其中,所述目标心率包括在用户运动的情况下预期达到的心率;Calculate a target heart rate change rate according to the first heart rate and a target heart rate, wherein the target heart rate includes a heart rate expected to be reached when the user exercises;
    通过运动指导模型,根据所述第一心率、所述第一运动速度以及所述目标心率变化确定输出的目标加速度,所述目标加速度用于指导用户调整运动速度,以使用户心率达到所述目标心率。Through the exercise guidance model, the output target acceleration is determined according to the first heart rate, the first exercise speed and the target heart rate change. The target acceleration is used to guide the user to adjust the exercise speed so that the user's heart rate reaches the target. Heart rate.
  3. 根据权利要求1所述的方法,其特征在于,在所述通过运动指导模型,确定与所述第一运动数据对应的目标变速数据之前,所述方法还包括:The method according to claim 1, characterized in that, before determining the target speed change data corresponding to the first motion data through the motion guidance model, the method further includes:
    分别根据所述终端设备在用户运动的情况下所检测到的历史心率以及历史运动速度,计算历史心率变化率以及历史加速度;Calculate the historical heart rate change rate and historical acceleration respectively based on the historical heart rate and historical movement speed detected by the terminal device when the user is exercising;
    将所述历史心率、所述历史运动速度、所述历史加速度以及所述历史心率变化率作为样本数据,通过所述样本数据对运动指导模型进行训练,得到训练好的运动指导模型。The historical heart rate, the historical movement speed, the historical acceleration and the historical heart rate change rate are used as sample data, and the exercise guidance model is trained through the sample data to obtain a trained exercise guidance model.
  4. 根据权利要求1所述的方法,其特征在于,在所述根据所述目标变速数据生成运动指导信息,并输出所述运动指导信息之后,所述方法还包括:The method according to claim 1, characterized in that after generating motion guidance information according to the target speed change data and outputting the motion guidance information, the method further includes:
    获取所述终端设备对应的第二运动数据,所述第二运动数据至少包括所述终端设备在用户基于所述运动指导信息进行运动的情况下所检测到的第二心率以及第二运动速度;Obtain second motion data corresponding to the terminal device, where the second motion data at least includes a second heart rate and a second motion speed detected by the terminal device when the user exercises based on the motion guidance information;
    分别根据所述第二心率以及所述第二运动速度,计算更新心率变化率以及更新加速度;Calculate updated heart rate change rate and updated acceleration according to the second heart rate and the second movement speed respectively;
    根据所述第二心率、所述第二运动速度、所述更新心率变化率以及所述更新加速度,对所述运动指导模型进行更新。The exercise guidance model is updated according to the second heart rate, the second movement speed, the updated heart rate change rate, and the updated acceleration.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述终端设备包括光电容积脉搏标记PPG模块以及加速度传感器,所述获取所述终端设备对应的第一运动数据,包括:The method according to any one of claims 1 to 4, wherein the terminal device includes a photoplethysmogram PPG module and an acceleration sensor, and obtaining the first motion data corresponding to the terminal device includes:
    通过所述PPG模块采集第一检测信号,以及通过所述加速度传感器采集第二检测信号;The first detection signal is collected through the PPG module, and the second detection signal is collected through the acceleration sensor;
    根据所述第一检测信号以及所述第二检测信号,获取在用户运动的情况下对应的第一心率;以及,According to the first detection signal and the second detection signal, obtain the corresponding first heart rate when the user is moving; and,
    根据所述第二检测信号,获取在用户运动的情况下对应的第一运动速度。According to the second detection signal, the corresponding first movement speed in the case of user movement is obtained.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述第一检测信号以及所述第二检测信号,获取在用户运动的情况下对应的第一心率,包括:The method of claim 5, wherein obtaining the first heart rate corresponding to the user's movement according to the first detection signal and the second detection signal includes:
    获取所述第二检测信号的频谱特征;Obtain the spectrum characteristics of the second detection signal;
    在所述频谱特征表示用户运动的情况下,根据所述频谱特征对所述第一检测信号进行降噪处理,并根据降噪处理后的第一检测信号确定在用户运动的情况下对应的第一心率。In the case where the spectral characteristics represent user movement, the first detection signal is subjected to noise reduction processing according to the spectrum characteristics, and the corresponding third detection signal in the case of user movement is determined based on the first detection signal after the noise reduction processing. One heart rate.
  7. 根据权利要求5所述的方法,其特征在于,所述根据所述第二检测信号,获取在 用户运动的情况下对应的第一运动速度,包括:The method according to claim 5, characterized in that, according to the second detection signal, obtaining the corresponding first movement speed when the user moves includes:
    获取所述第二检测信号的频谱特征;Obtain the spectrum characteristics of the second detection signal;
    根据所述频谱特征以及用户身高数据,确定在用户运动的情况下对应的第一运动速度。According to the spectrum characteristics and the user's height data, the corresponding first movement speed when the user moves is determined.
  8. 根据权利要求5所述的方法,其特征在于,所述终端设备还包括定位模块,在所述根据所述第二检测信号,获取在用户运动的情况下对应的第一运动速度之前,所述方法还包括:The method of claim 5, wherein the terminal device further includes a positioning module, and before obtaining the first movement speed corresponding to the user's movement according to the second detection signal, the Methods also include:
    通过所述定位模块获取定位数据;Obtain positioning data through the positioning module;
    所述根据所述第二检测信号,获取在用户运动的情况下对应的第一运动速度,包括:Obtaining the first movement speed corresponding to the user's movement according to the second detection signal includes:
    根据所述第二检测信号以及所述定位数据,获取在用户运动的情况下对应的第一运动速度。According to the second detection signal and the positioning data, the corresponding first movement speed when the user moves is obtained.
  9. 根据权利要求1至4任一项所述的方法,其特征在于,所述运动指导信息至少包括变速指导信息,所述根据所述目标变速数据生成运动指导信息,并输出所述运动指导信息,包括:The method according to any one of claims 1 to 4, characterized in that the movement guidance information at least includes speed change guidance information, the movement guidance information is generated according to the target speed change data, and the movement guidance information is output, include:
    根据所述目标变速数据,确定与所述目标变速数据对应的变速指导信息;According to the target shifting data, determine shifting guidance information corresponding to the target shifting data;
    基于所述变速指导信息,生成相应的指导输出信号,并控制所述终端设备输出所述指导输出信号,其中,所述指导输出信号包括语音信号、震动信号、屏幕显示信号中的一种或多种。Based on the gear shifting guidance information, a corresponding guidance output signal is generated, and the terminal device is controlled to output the guidance output signal, wherein the guidance output signal includes one or more of a voice signal, a vibration signal, and a screen display signal. kind.
  10. 根据权利要求1至4任一项所述的方法,其特征在于,在所述根据所述目标变速数据生成运动指导信息,并输出所述运动指导信息之后,所述方法还包括:The method according to any one of claims 1 to 4, characterized in that after generating movement guidance information according to the target speed change data and outputting the movement guidance information, the method further includes:
    获取所述终端设备在第一运动时段内所检测到的第一平均速度,以及在第二运动时段内所检测到的第二平均速度,其中,所述第一运动时段为用户在本次运动过程中,从开始运动直至用户心率达到目标心率的时间段;所述第二运动时段为用户在上一次运动过程中,从开始运动直至用户心率达到所述目标心率的时间段;Obtain the first average speed detected by the terminal device during the first exercise period, and the second average speed detected during the second exercise period, where the first exercise period is the user's current exercise period. During the process, the time period from the start of exercise until the user's heart rate reaches the target heart rate; the second exercise period is the time period from the start of exercise until the user's heart rate reaches the target heart rate during the user's last exercise process;
    根据所述第一平均速度以及所述第二平均速度,计算运动能力数据,所述运动能力数据用于表征在用户基于所述运动指导信息进行运动的情况下的运动能力变化。According to the first average speed and the second average speed, athletic ability data is calculated, and the athletic ability data is used to characterize changes in athletic ability when the user performs exercise based on the exercise guidance information.
  11. 一种运动指导装置,其特征在于,应用于终端设备,所述运动指导装置包括:A sports guidance device, characterized in that it is applied to terminal equipment, and the motion guidance device includes:
    数据获取单元,用于获取所述终端设备对应的第一运动数据,所述第一运动数据至少包括所述终端设备在用户运动的情况下所检测到的第一心率以及第一运动速度;A data acquisition unit configured to acquire first motion data corresponding to the terminal device, where the first motion data at least includes the first heart rate and the first motion speed detected by the terminal device when the user is exercising;
    目标确定单元,用于通过运动指导模型,确定与所述第一运动数据对应的目标变速数据,其中,所述运动指导模型是基于所述终端设备记录的历史运动数据进行训练得到的,所述历史运动数据包括所述终端设备在用户运动的情况下所检测到的历史心率以及历史运动速度;A target determination unit configured to determine the target speed change data corresponding to the first motion data through a motion guidance model, wherein the motion guidance model is trained based on historical motion data recorded by the terminal device, and the Historical motion data includes historical heart rate and historical motion speed detected by the terminal device when the user is exercising;
    运动指导单元,用于根据所述目标变速数据生成运动指导信息,并输出所述运动指导信息。A motion guidance unit is configured to generate motion guidance information according to the target speed change data and output the motion guidance information.
  12. 根据权利要求11所述的运动指导装置,其特征在于,所述目标变速数据包括目标加速度,所述目标确定单元在用于通过运动指导模型,确定与所述第一运动数据对应的目标变速数据时,包括:The motion guidance device according to claim 11, wherein the target speed change data includes a target acceleration, and the target determination unit is configured to determine the target speed change data corresponding to the first motion data through a motion guidance model. when, including:
    根据所述第一心率以及目标心率,计算目标心率变化率,其中,所述目标心率包括在用户运动的情况下预期达到的心率;Calculate a target heart rate change rate according to the first heart rate and a target heart rate, wherein the target heart rate includes a heart rate expected to be reached when the user exercises;
    通过运动指导模型,根据所述第一心率、所述第一运动速度以及所述目标心率变化确定输出的目标加速度,所述目标加速度用于指导用户调整运动速度,以使用户心率达到所述目标心率。Through the exercise guidance model, the output target acceleration is determined according to the first heart rate, the first exercise speed and the target heart rate change. The target acceleration is used to guide the user to adjust the exercise speed so that the user's heart rate reaches the target. Heart rate.
  13. 根据权利要求11所述的运动指导装置,其特征在于,所述目标确定单元在用于通过运动指导模型,确定与所述第一运动数据对应的目标变速数据之前,还用于分别根据所述终端设备在用户运动的情况下所检测到的历史心率以及历史运动速度,计算历史心率变化率以及历史加速度;以及,The sports guidance device according to claim 11, characterized in that, before the target determination unit is used to determine the target speed change data corresponding to the first motion data through a sports guidance model, the target determination unit is also used to determine the target speed data corresponding to the first motion data according to the motion guidance model. The terminal device detects the historical heart rate and historical movement speed when the user is exercising, and calculates the historical heart rate change rate and historical acceleration; and,
    将所述历史心率、所述历史运动速度、所述历史加速度以及所述历史心率变化率作为样本数据,通过所述样本数据对运动指导模型进行训练,得到训练好的运动指导模型。The historical heart rate, the historical movement speed, the historical acceleration and the historical heart rate change rate are used as sample data, and the exercise guidance model is trained through the sample data to obtain a trained exercise guidance model.
  14. 根据权利要求11所述的运动指导装置,其特征在于,所述数据获取单元还用于获取所述终端设备对应的第二运动数据,所述第二运动数据至少包括所述终端设备在用户基于所述运动指导信息进行运动的情况下所检测到的第二心率以及第二运动速度;The sports guidance device according to claim 11, characterized in that the data acquisition unit is further configured to obtain second sports data corresponding to the terminal device, the second motion data at least includes the user-based motion data of the terminal device. The second heart rate and second movement speed detected when exercising with the exercise guidance information;
    所述运动指导装置还包括:The sports guidance device also includes:
    第一计算单元,用于分别根据所述第二心率以及所述第二运动速度,计算更新心率变化率以及更新加速度;A first calculation unit configured to calculate an updated heart rate change rate and an updated acceleration according to the second heart rate and the second movement speed respectively;
    模型更新单元,用于根据所述第二心率、所述第二运动速度、所述更新心率变化率以及所述更新加速度,对所述运动指导模型进行更新。A model updating unit, configured to update the exercise guidance model according to the second heart rate, the second movement speed, the updated heart rate change rate, and the updated acceleration.
  15. 根据权利要求11至14任一项所述的运动指导装置,其特征在于,所述终端设备包括光电容积脉搏标记PPG模块以及加速度传感器,所述数据获取单元在用于获取所述终端设备对应的第一运动数据时,包括:The exercise guidance device according to any one of claims 11 to 14, wherein the terminal device includes a photoplethysmogram PPG module and an acceleration sensor, and the data acquisition unit is used to acquire the data corresponding to the terminal device. The first movement data includes:
    通过所述PPG模块采集第一检测信号,以及通过所述加速度传感器采集第二检测信号;The first detection signal is collected through the PPG module, and the second detection signal is collected through the acceleration sensor;
    根据所述第一检测信号以及所述第二检测信号,获取在用户运动的情况下对应的第一心率;以及,According to the first detection signal and the second detection signal, obtain the corresponding first heart rate when the user is moving; and,
    根据所述第二检测信号,获取在用户运动的情况下对应的第一运动速度。According to the second detection signal, the corresponding first movement speed in the case of user movement is obtained.
  16. 根据权利要求15所述的运动指导装置,其特征在于,所述数据获取单元在用于根据所述第一检测信号以及所述第二检测信号,获取在用户运动的情况下对应的第一心率时,包括:The exercise guidance device according to claim 15, wherein the data acquisition unit is configured to acquire the first heart rate corresponding to the user's movement based on the first detection signal and the second detection signal. when, including:
    获取所述第二检测信号的频谱特征;Obtain the spectrum characteristics of the second detection signal;
    在所述频谱特征表示用户运动的情况下,根据所述频谱特征对所述第一检测信号进行降噪处理,并根据降噪处理后的第一检测信号确定在用户运动的情况下对应的第一心率。In the case where the spectral characteristics represent user movement, the first detection signal is subjected to noise reduction processing according to the spectrum characteristics, and the corresponding third detection signal in the case of user movement is determined based on the first detection signal after the noise reduction processing. One heart rate.
  17. 根据权利要求15所述的运动指导装置,其特征在于,所述数据获取单元在用于根据所述第二检测信号,获取在用户运动的情况下对应的第一运动速度时,包括:The exercise guidance device according to claim 15, wherein the data acquisition unit, when used to acquire the first movement speed corresponding to the user's movement according to the second detection signal, includes:
    获取所述第二检测信号的频谱特征;Obtain the spectrum characteristics of the second detection signal;
    根据所述频谱特征以及用户身高数据,确定在用户运动的情况下对应的第一运动速度。According to the spectrum characteristics and the user's height data, the corresponding first movement speed when the user moves is determined.
  18. 根据权利要求15所述的运动指导装置,其特征在于,所述终端设备还包括定位模块,所述运动指导装置还包括:The motion guidance device according to claim 15, characterized in that the terminal device further includes a positioning module, and the motion guidance device further includes:
    定位单元,用于在所述数据获取单元根据所述第二检测信号,获取在用户运动的情况下对应的第一运动速度之前,通过所述定位模块获取定位数据;A positioning unit configured to obtain positioning data through the positioning module before the data acquisition unit acquires the first movement speed corresponding to the user's movement according to the second detection signal;
    所述数据获取单元,还用于根据所述第二检测信号以及所述定位数据,获取在用户运动的情况下对应的第一运动速度。The data acquisition unit is also configured to acquire the corresponding first movement speed when the user moves based on the second detection signal and the positioning data.
  19. 根据权利要求11至14任一项所述的运动指导装置,其特征在于,所述运动指导信息至少包括变速指导信息,所述运动指导单元在用于根据所述目标变速数据生成运动指导信息,并输出所述运动指导信息时,包括:The exercise guidance device according to any one of claims 11 to 14, wherein the exercise guidance information at least includes speed change guidance information, and the exercise guidance unit is configured to generate exercise guidance information according to the target speed change data, And when outputting the sports guidance information, it includes:
    根据所述目标变速数据,确定与所述目标变速数据对应的变速指导信息;According to the target shifting data, determine shifting guidance information corresponding to the target shifting data;
    基于所述变速指导信息,生成相应的指导输出信号,并控制所述终端设备输出所述指导输出信号,其中,所述指导输出信号包括语音信号、震动信号、屏幕显示信号中的一种或多种。Based on the gear shifting guidance information, a corresponding guidance output signal is generated, and the terminal device is controlled to output the guidance output signal, wherein the guidance output signal includes one or more of a voice signal, a vibration signal, and a screen display signal. kind.
  20. 根据权利要求11至14任一项所述的运动指导装置,其特征在于,所述数据获取单元还用于获取所述终端设备在第一运动时段内所检测到的第一平均速度,以及在第二运动时段内所检测到的第二平均速度,其中,所述第一运动时段为用户在本次运动过程中,从开始运动直至用户心率达到目标心率的时间段;所述第二运动时段为用户在上一次运动过程中,从开始运动直至用户心率达到所述目标心率的时间段;The exercise guidance device according to any one of claims 11 to 14, wherein the data acquisition unit is further configured to acquire the first average speed detected by the terminal device during the first exercise period, and The second average speed detected during the second exercise period, wherein the first exercise period is the time period from the start of the user's exercise until the user's heart rate reaches the target heart rate during this exercise; the second exercise period It is the time period from the start of exercise until the user's heart rate reaches the target heart rate during the user's last exercise;
    所述运动指导装置还包括:The sports guidance device also includes:
    第二计算单元,用于根据所述第一平均速度以及所述第二平均速度,计算运动能力数据,所述运动能力数据用于表征在用户基于所述运动指导信息进行运动的情况下的运动能力变化。A second calculation unit, configured to calculate athletic ability data according to the first average speed and the second average speed, where the athletic ability data is used to characterize exercise when the user performs exercise based on the exercise guidance information. Ability changes.
  21. 一种终端设备,其特征在于,所述终端设备包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如权利要求1至10任一项所述的运动指导方法。A terminal device, characterized in that the terminal device includes a memory and a processor, a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method of claim 1 to the exercise guidance method described in any one of 10.
  22. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至10任一项所述的运动指导方法。A computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the exercise guidance method according to any one of claims 1 to 10 is implemented.
PCT/CN2022/139448 2022-03-31 2022-12-16 Exercise guidance method and apparatus, terminal device, and storage medium WO2023185105A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210345461.7 2022-03-31
CN202210345461.7A CN116936027A (en) 2022-03-31 2022-03-31 Exercise guidance method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023185105A1 true WO2023185105A1 (en) 2023-10-05

Family

ID=88198936

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/139448 WO2023185105A1 (en) 2022-03-31 2022-12-16 Exercise guidance method and apparatus, terminal device, and storage medium

Country Status (2)

Country Link
CN (1) CN116936027A (en)
WO (1) WO2023185105A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160089086A1 (en) * 2014-09-26 2016-03-31 Pixart Imaging Inc. Heart rate detection module, and detection and denoising method thereof
CN111202955A (en) * 2019-12-11 2020-05-29 华为技术有限公司 Motion data processing method and electronic equipment
CN113303777A (en) * 2021-05-27 2021-08-27 维沃移动通信有限公司 Heart rate value determination method and device, electronic equipment and medium
CN113762336A (en) * 2021-07-28 2021-12-07 南京慕白科技有限公司 Fitness guidance method and system
CN114176573A (en) * 2021-11-23 2022-03-15 深圳市爱都科技有限公司 Intelligent exercise recommendation method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160089086A1 (en) * 2014-09-26 2016-03-31 Pixart Imaging Inc. Heart rate detection module, and detection and denoising method thereof
CN111202955A (en) * 2019-12-11 2020-05-29 华为技术有限公司 Motion data processing method and electronic equipment
CN113303777A (en) * 2021-05-27 2021-08-27 维沃移动通信有限公司 Heart rate value determination method and device, electronic equipment and medium
CN113762336A (en) * 2021-07-28 2021-12-07 南京慕白科技有限公司 Fitness guidance method and system
CN114176573A (en) * 2021-11-23 2022-03-15 深圳市爱都科技有限公司 Intelligent exercise recommendation method and device and electronic equipment

Also Published As

Publication number Publication date
CN116936027A (en) 2023-10-24

Similar Documents

Publication Publication Date Title
US9161719B2 (en) Sleep evaluation device
US10685092B2 (en) Equipment for providing a rehabilitation exercise
US10885800B2 (en) Human performance optimization and training methods and systems
US20190381396A1 (en) Information processing device, information processing method, and program
CN108419096B (en) Intelligent voice playing method and system
EP3476282B1 (en) Heart rate measuring method and apparatus, and electronic terminal
JP6637693B2 (en) Exercise management method and exercise management device
US11504068B2 (en) Methods, systems, and media for predicting sensor measurement quality
CN102670206A (en) Mastication detection device and mastication detection method
WO2014070303A1 (en) Measuring psychological stress from cardiovascular and activity signals
CN110853605B (en) Music generation method and device and electronic equipment
US20150051721A1 (en) Exercise assistive device
US20150258415A1 (en) Physiological rate coaching by modifying media content based on sensor data
EP4282327A1 (en) Deep learning-based heart rate measurement method and wearable device
US20190122577A1 (en) System and method for synchronizing audio, movement, and patterns
CN101950495A (en) Novel video educational technology
WO2023185105A1 (en) Exercise guidance method and apparatus, terminal device, and storage medium
US20200074880A1 (en) Output control device, output controlling method and program
CN116339509A (en) Control method and control device of intelligent terminal equipment
CN115349841A (en) Heart rate correction method and device, electronic equipment and storage medium
CN108399061A (en) The control method and system of playout of voice
JP6524697B2 (en) Exercise effect presentation device, exercise effect presentation system, and exercise effect information generation method
CN114488841A (en) Data collection processing method of intelligent wearable device
KR20230078376A (en) Method and device for processing audio signal using ai model
CN113569776A (en) Rope skipping posture detection method and device, electronic equipment and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22934921

Country of ref document: EP

Kind code of ref document: A1