Motion data processing method, electronic equipment and computer readable storage medium

By displaying the original and transformed physical parameters of motion in electronic devices, combining with wearable sensors to obtain harsh environment parameters, and providing equivalent exercise intensity indicators, it solves the problem of insufficient exercise intensity guidance in harsh environments, and achieves user somatosensory matching and scientific The effect of training.

CN118737375APending Publication Date: 2024-10-01HUAWEI DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310332684.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing technology cannot effectively provide exercise intensity guidance in a harsh running environment, and it is difficult to accurately estimate exercise intensity indicators that are consistent with the user's body feeling.

Method used

By displaying the original and transformed physical parameters of sports in electronic devices, the data transformation model is used to perform parameter transformation based on harsh environment parameters, providing equivalent exercise intensity indicators, such as equivalent pace, and combining wearable sensors to obtain environmental parameters in real time. , conduct exercise assessment and training plan development.

Benefits of technology

It achieves the goal of providing accurate and consistent exercise intensity indicators in harsh environments that are in line with the user's body feel, helping users to train scientifically and improve sports performance and targeted training effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737375A_ABST
    Figure CN118737375A_ABST
Patent Text Reader

Abstract

The invention discloses a motion data processing method, electronic equipment and a computer readable storage medium. The method comprises the following steps: displaying a first motion physical parameter in a display interface; the first motion physical parameter is used for representing the motion speed of the motion object; under the condition that the parameters of the M environment types of the motion environment parameters meet the transformation condition, displaying a second motion physical parameter; the second exercise physical parameter is a parameter obtained by transforming the first exercise physical parameter through a data transformation model based on the parameters of the M environment types, and can provide an accurate exercise intensity index (such as transformed speed) which conforms to the body feeling of the user and can be mapped with the exercise physical parameter (such as speed) for the user; the technical problem that in the prior art, due to the fact that influences of severe environment factors are not considered, exercise intensity guidance cannot be provided for the user is solved, and the technical problem that high user somatosensory conformity is difficult to estimate when acting consumption is adopted as a criterion is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a method for processing motion data, an electronic device, and a computer-readable storage medium. Background Art

[0002] Life lies in exercise. In modern society, people pay more and more attention to physical exercise, such as running and fitness. Pace is an important measurement indicator for running. It is often used as an important data on the data homepage of wearable running applications. It can give users intuitive intensity reminders, help users measure their physical condition, and develop training plans.

[0003] During daily running, there are relatively harsh running scenarios such as steep slopes, high temperatures, strong winds, and plateaus. In these scenarios, the flat ground pace often loses its guiding significance and cannot provide users with exercise intensity guidance. How to provide users with exercise intensity guidance more intelligently and reasonably is a technical issue that people are concerned about. Summary of the invention

[0004] The present application provides a motion data processing method, an electronic device, and a computer-readable storage medium.

[0005] In a first aspect, a method for processing motion data is provided, the method comprising:

[0006] The electronic device displays a first motion physical parameter in a display interface; the first motion physical parameter is used to characterize the motion speed of the motion object;

[0007] When the parameters of the M types of environment parameters of the motion environment parameters meet the transformation conditions, the electronic device displays a second motion physical parameter; the second motion physical parameter is a parameter obtained by transforming the first motion physical parameter through a data transformation model based on the parameters of the M types of environment parameters.

[0008] By implementing the motion data processing method provided by the first solution, the electronic device can provide the user with an accurate motion intensity index (such as the transformed pace) that conforms to the user's body sensation and can be mapped to the physical parameters of the motion (such as the pace), thereby solving the technical problem in the prior art of failing to take into account the influence of harsh environmental factors and thus being unable to provide the user with exercise intensity guidance, as well as the technical problem of being difficult to estimate the high degree of conformity with the user's body sensation when using work consumption as a criterion.

[0009] In combination with the first aspect, in some embodiments, displaying the second motion physical parameter includes displaying the second motion physical parameter while displaying the first motion physical parameter on the display interface.

[0010] Through the above implementation, the second sports physical parameter and the first sports physical parameter can be displayed simultaneously in one display interface, which improves the intuitiveness of the exercise intensity index mapped with the sports physical parameter and makes it easier for the user to understand his or her exercise intensity in real time.

[0011] In combination with the first aspect, in some embodiments, before displaying the second sports physical parameter, the method further includes:

[0012] Acquire current motion data, where the current motion data includes motion physical parameters and motion environment parameters of the motion object; the motion physical parameters represent the motion speed of the motion object; the motion environment parameters include parameters of N types of environments; N is an integer greater than or equal to 1;

[0013] When the parameters of the M types of environment of the motion environment parameter meet the transformation conditions, the motion physical parameter is transformed through a data transformation model based on the parameters of the M types of environment to obtain the transformed motion physical parameter; the M is less than or equal to the N.

[0014] In combination with the first aspect, in some embodiments, the sports physical parameter includes the pace of the sports object during the exercise; the parameters of the N types of environment types include the slope parameter, temperature parameter, wind speed parameter, and altitude parameter of the environment in which the sports object is located during the exercise.

[0015] By the previous implementation, the surrounding sports environment can be automatically detected during the user's exercise process, and the sports physical parameters are transformed when encountering a harsh environment (meeting the transformation conditions), and the intensity index of the user's current exercise is promptly informed. Due to encountering a harsh running condition compared to an ideal running environment, more work is required by oneself, and more efforts are required to maintain the same original sports physical parameters (such as pace), but this will produce a greater load on its own body (including heart and muscle), and a more effective training method or a more scientific strategy is to maintain the same exercise intensity, especially for the scene of endurance sports, requiring the user to maintain a relatively uniform sports physical parameter as much as possible. Therefore, the sports physical parameters are transformed by the present application, and the sports physical parameters (such as equivalent pace) after the transformation are obtained as a guide to the intensity of exercise, so that the user has a good perception of his own exercise intensity during the exercise, which can help the user to exercise reasonably and distribute physical strength, and also allow the user to obtain better sports performance and targeted training effects.

[0016] In conjunction with the first aspect, in some implementations, the data transformation model includes a correspondence between the motion environment parameter and a conversion ratio; the conversion ratio represents the degree of influence of the motion environment parameter on the motion speed of the motion object;

[0017] The parameters based on the M types of environments are used to transform the motion physical parameters through a data transformation model, and the transformed motion physical parameters include:

[0018] Based on the conversion ratios corresponding to the parameters of the M types of environments, the motion physical parameters are transformed to obtain transformed motion physical parameters.

[0019] In combination with the first aspect, in some implementations, the conversion ratios corresponding to the parameters of the M types of environments are used to transform the motion physical parameters, and the transformed motion physical parameters include:

[0020] By formula Calculate and obtain the transformed motion physical parameters;

[0021] Among them, γ is the physical parameter of the moving object, and α(x i ) is the conversion ratio corresponding to the parameters of the ith environment type, and γ′ is the motion physical parameter after the transformation.

[0022] In combination with the first aspect, in some implementations, before obtaining the current motion data, the method further includes:

[0023] A univariate linear regression model corresponding to each environment type is constructed based on the motion sample data of at least one environment type; wherein the same motion environment parameter in the motion sample data is used as an independent variable, and the motion physiological parameters and motion physical parameters corresponding to the same motion environment parameter are used as dependent variables;

[0024] The data transformation model is constructed based on the univariate linear regression model.

[0025] In combination with the first aspect, in some embodiments, constructing a univariate linear regression model corresponding to each environment type based on the motion sample data of at least one environment type includes: i )=k1x i +b1 constructs a univariate linear regression model and obtains the regression coefficient k1 and constant b1; where x i is the motion environment parameter; the β(x i ) is the x i The first function is the ratio of the sports physiological parameter to the sports physical parameter in the sports sample data;

[0026] The data transformation model is constructed based on the univariate linear regression model, including: Calculate the conversion ratio α(x i ).

[0027] Through the above implementation, by simulating sports under various adverse environmental factors, the conversion ratio under various sports environment parameters is constructed based on the user's sports physiological parameters (such as the user's heart rate steady-state value), that is, the data conversion model can be constructed based on massive data by analyzing the running pace and heart rate of runners in different environments (steep slopes, high temperatures, strong winds, plateaus, etc.). Not only can the conversion of sports physical parameters be completed quickly and efficiently based on the detected sports environment parameters during specific application implementation, but also the sports intensity index mapped to the sports physical parameters can be obtained more accurately and reasonably.

[0028] In combination with the first aspect, in some implementations, the transformation condition includes a parameter of at least one environment type reaching a corresponding transformation threshold.

[0029] According to the above embodiment, when a significant change in the external running environment is detected (indicating the presence of a harsh environment), the display may automatically switch to displaying the second sports physical parameter.

[0030] In conjunction with the first aspect, in some implementations, obtaining current motion data includes:

[0031] Receive at least one parameter of an environment type sent by an external sensor.

[0032] Through the above implementation, the electronic device can combine with external sensors (such as wearable sensors) to obtain motion environment parameters, and can obtain various types of motion environment parameters in a more real-time and accurate manner.

[0033] In combination with the first aspect, in some implementations, when the parameters of the M types of environment types of the motion environment parameters meet the transformation conditions, the method further includes:

[0034] Output a motion evaluation result; the motion evaluation result is an evaluation result obtained by performing motion evaluation based on the transformed motion physical parameters.

[0035] Through the above implementation, exercise evaluation is performed based on the transformed physical parameters of the exercise to obtain evaluation results, including but not limited to pace range, maximum oxygen uptake estimation, maximum lactate threshold estimation and other evaluation results, which can enable users to have a good perception of their own exercise intensity, thereby helping users to exercise reasonably in a more scientific and accurate manner and achieve better exercise performance and targeted training effects.

[0036] In combination with the first aspect, in some implementations, when the parameters of the M types of environment types of the motion environment parameters meet the transformation conditions, the method further includes:

[0037] Output a training plan or a training schedule; the training plan or the training schedule is a plan or a schedule obtained by performing sports evaluation based on the transformed sports physical parameters.

[0038] Through the previous implementation method, a training plan or training schedule is obtained by performing sports evaluation based on the transformed sports physical parameters, which can assist users in scientific training. By using the transformed sports physical parameters as the algorithm input of the sports science training system, a more scientific, objective and reasonable training plan or training schedule can be obtained, further helping users achieve better sports performance and targeted training effects.

[0039] In the second aspect, an embodiment of the present application provides an electronic device, comprising: a memory, and one or more processors; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, the one or more processors call the computer instructions to enable the electronic device to execute displaying a first motion physical parameter in a display interface; the first motion physical parameter is used to characterize the motion speed of the motion object; when the parameters of M types of environmental types of the motion environment parameters meet the transformation conditions, the second motion physical parameter is displayed; the second motion physical parameter is a parameter obtained by transforming the first motion physical parameter through a data transformation model based on the parameters of the M types of environmental types.

[0040] In conjunction with the second aspect, in some embodiments, the one or more processors displaying the second motion physical parameter includes displaying the second motion physical parameter while the display interface displays the first motion physical parameter.

[0041] In conjunction with the second aspect, in some implementations, before displaying the second motion physical parameter, one or more processors may further execute:

[0042] Acquire current motion data, where the current motion data includes motion physical parameters and motion environment parameters of the motion object; the motion physical parameters represent the motion speed of the motion object; the motion environment parameters include parameters of N types of environments; N is an integer greater than or equal to 1;

[0043] When the parameters of the M types of environment of the motion environment parameter meet the transformation conditions, the motion physical parameter is transformed through a data transformation model based on the parameters of the M types of environment to obtain the transformed motion physical parameter; the M is less than or equal to the N.

[0044] In combination with the second aspect, in some embodiments, the sports physical parameter includes the pace of the sports object during the exercise; the parameters of the N types of environment types include the slope parameter, temperature parameter, wind speed parameter, and altitude parameter of the environment in which the sports object is located during the exercise.

[0045] In conjunction with the second aspect, in some implementations, the data transformation model includes a correspondence between the motion environment parameter and a conversion ratio; the conversion ratio represents the degree of influence of the motion environment parameter on the motion speed of the motion object;

[0046] One or more processors transform the motion physical parameters through a data transformation model based on the parameters of the M types of environments, and the transformed motion physical parameters include:

[0047] Based on the conversion ratios corresponding to the parameters of the M types of environments, the motion physical parameters are transformed to obtain transformed motion physical parameters.

[0048] In conjunction with the second aspect, in some implementations, one or more processors transform the motion physical parameter based on the conversion ratios corresponding to the parameters of the M types of environments, and the transformed motion physical parameter includes:

[0049] By formula Calculate and obtain the transformed motion physical parameters;

[0050] Among them, γ is the physical parameter of the moving object, and α(x i ) is the conversion ratio corresponding to the parameters of the ith environment type, and γ′ is the motion physical parameter after the transformation.

[0051] In combination with the second aspect, in some implementations, the transformation condition includes that a parameter of at least one environment type reaches a corresponding transformation threshold.

[0052] In conjunction with the second aspect, in some implementations, the one or more processors acquiring current motion data includes:

[0053] Receive at least one parameter of an environment type sent by an external sensor.

[0054] Through the above implementation, the electronic device can combine with external sensors (such as wearable sensors) to obtain motion environment parameters, and can obtain various types of motion environment parameters in a more real-time and accurate manner.

[0055] In conjunction with the second aspect, in some implementations, when the parameters of the M types of environment types of the motion environment parameters meet the transformation condition, the one or more processors may further execute:

[0056] Output a motion evaluation result; the motion evaluation result is an evaluation result obtained by performing motion evaluation based on the transformed motion physical parameters.

[0057] In conjunction with the second aspect, in some implementations, when the parameters of the M types of environment types of the motion environment parameters meet the transformation condition, the one or more processors may further execute:

[0058] Output a training plan or a training schedule; the training plan or the training schedule is a plan or a schedule obtained by performing sports evaluation based on the transformed sports physical parameters.

[0059] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on an electronic device, causes the electronic device to execute a method executed by the electronic device in the first aspect or any one of the embodiments of the first aspect.

[0060] In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the method executed by the electronic device in the first aspect or any one of the embodiments of the first aspect.

[0061] In a fifth aspect, an embodiment of the present application provides a chip system, which includes at least one processor for implementing a method executed by an electronic device in the first aspect or any one of the embodiments of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 A schematic diagram of a motion scene provided in an embodiment of the present application;

[0063] Figure 2a A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0064] Figure 2b A schematic structural diagram of another embodiment of the electronic device provided by the present application;

[0065] Figure 2c A software structure block diagram of the electronic device 200 according to an embodiment of the present application;

[0066] Figure 3a A schematic diagram of an application scenario of the method for processing motion data provided in an embodiment of the present application;

[0067] Figure 3b A schematic diagram of the principle of the method for processing motion data provided in an embodiment of the present application;

[0068] Figure 4a A schematic diagram of the display of motion data provided by an embodiment of the present application;

[0069] Figure 4b A schematic diagram of a motion assessment result provided in an embodiment of the present application;

[0070] Figure 4c A schematic diagram of another embodiment of the motion evaluation result provided by the present application;

[0071] Figure 5A schematic diagram of a flow chart of a method for processing motion data according to an embodiment of the present application;

[0072] Figure 6 A schematic diagram of the principle of constructing a conversion ratio corresponding to a slope parameter provided in an embodiment of the present application;

[0073] Figure 7 This is a flow chart of another embodiment of the motion data processing method of the present application. DETAILED DESCRIPTION

[0074] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0075] It should be understood that the terms "first", "second", etc. in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0076] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0077] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.

[0078] With the development of science and technology, users can conveniently use electronic devices to assist in exercise, such as using wearable devices for running, hiking, cycling, etc. Electronic devices can monitor the user's exercise data and display it to the user. Figure 1 In the illustrated scenario embodiment, when the user is running (also in scenarios such as hiking or cycling), the electronic device such as a smart watch worn on the user's hand can display the pace. The electronic devices of the embodiment of the present application may include but are not limited to wearable devices such as smart watches, smart bracelets, smart glasses, and smart phones. That is, Figure 1 Taking smart watches as an example, users can also wear smart phones, smart bracelets, smart glasses and other electronic devices while running.

[0079] Combine the following Figure 2a-2c The electronic device of the embodiment of the present application is described as follows:

[0080] like Figure 2a The schematic diagram of the structure of the electronic device provided by the embodiment of the present application is shown. Figure 2a The smartwatch shown is only an example and the smartwatch may have more Figure 2a The more or less components shown in the figure can be combined with two or more components, or can have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0081] The smart watch may include: a processor 110 , a memory 120 , a power supply 130 , a sensor module 140 , a wireless communication module 150 , an audio module 176 , a motor 170 , a display screen 103 and an interface module 200 .

[0082] It is understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the smart watch. In other embodiments of the present application, the smart watch may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0083] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), and a baseband processor. Different processing units may be independent devices or integrated into one or more processors.

[0084] The controller can be the nerve center and command center of the smart watch. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0085] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0086] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, or a universal serial bus (USB) interface, etc.

[0087] The memory 120 may be used to store computer executable program codes, which may include instructions. The processor 110 executes various functional applications and data processing of the smart watch by running the instructions stored in the memory 120 .

[0088] The power supply 130 may include a charging management module 1301 and a power management module 1302 .

[0089] The charging management module 1301 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 1301 can receive charging input from a wired charger through a USB interface. In some wireless charging embodiments, the charging management module 1301 can receive wireless charging input through a wireless charging coil of a smart watch. While charging the battery, the charging management module 1301 can also power the wearable device through the charging management module 1301.

[0090] The power management module 1302 is used to connect the battery. The power management module 1302 receives input from the battery and / or the charging management module 1301, and supplies power to the processor 110, the memory 120, the wireless communication module 150, the display screen 103, etc. The power management module 1302 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 1302 can also be set in the processor 110. In some other embodiments, the power management module 1302 and the charging management module 1301 can also be set in the same device.

[0091] The sensor module 140 may include a pressure sensor 1401, a gyroscope sensor 1402, an acceleration sensor 1403, a touch sensor 1404, a distance sensor 1405, a proximity light sensor 1406, a light sensor 1407, an inertial measurement unit (IMU) sensor 1408, a temperature sensor 1409, an air pressure sensor 1410, and the like.

[0092] Among them, the pressure sensor 1401 is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 1401 can be set on the display screen 103. There are many types of pressure sensors 1401, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 1401, the capacitance between the electrodes changes. The smart watch determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 103, the smart watch detects the intensity of the touch operation based on the pressure sensor 1401. The smart watch can also calculate the position of the touch based on the detection signal of the pressure sensor 1401. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.

[0093] The gyroscope sensor 1402 can be used to determine the motion posture of the smart watch. In some embodiments, the angular velocity of the smart watch around three axes (i.e., x, y and z axes) can be determined by the gyroscope sensor 1402.

[0094] The acceleration sensor 1403 can detect the magnitude of the acceleration of the smart watch in various directions (generally three axes). When the smart watch is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the wearable device.

[0095] The touch sensor 1404 may also be referred to as a touch panel or a touch-sensitive surface. The touch sensor 1404 may be disposed on the display screen 103, and the touch sensor 1404 and the display screen 103 form a touch screen, also referred to as a "touch screen". The touch sensor 1404 is used to detect a touch operation applied thereto or thereabout. The touch sensor may transmit the detected touch operation to the processor 110 to determine the type of the touch event. A visual output related to the touch operation may be provided through the display screen 103.

[0096] The distance sensor 1405 is used to measure the distance. The smart watch can measure the distance through infrared or laser.

[0097] The proximity light sensor 1406 may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The smart watch emits infrared light outward through the light emitting diode. The smart watch uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the smart watch. When insufficient reflected light is detected, the smart watch can determine that there is no object near the smart watch. The smart watch can use the proximity light sensor 1406 to detect that the wearable device worn on the wrist of the user is away from the user's face (that is, the user is not viewing the smart watch and performing operations), and the smart watch can automatically turn off the screen to save power.

[0098] The optical sensor 1407 can be used to monitor the rotation angle and rotation direction (counterclockwise or clockwise) of the crown.

[0099] The IMU sensor 1408 can be used to monitor the shape of the smart watch, for example, it can identify the lower part of the wrist where the smart watch is worn and whether the smart watch is in a flat position.

[0100] The temperature sensor 1409 is used to measure the temperature of the environment in which the electronic device is located.

[0101] The air pressure sensor 1410 can estimate the altitude based on the measured air pressure value by using the principle of altitude increase and air pressure decrease. Since the altitude is related to air pressure and temperature, and the air pressure value will be different at the same altitude and different temperatures, the temperature measured by the temperature sensor can be used as compensation when measuring the altitude to improve the measurement accuracy of the air pressure. In addition, the altitude can also be estimated by combining factors such as weather changes to further improve the accuracy of the measurement.

[0102] The wireless communication module 150 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to smart watches. The wireless communication module 150 can be one or more devices integrating at least one communication processing module. The wireless communication module 150 receives electromagnetic waves via antenna 1, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 150 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 1. For example, the wireless communication module 150 can be used to interact with other wearable sensors (such as motion sensors that can measure parameters such as wind speed, slope, temperature, altitude, etc.), and smart headphones, for example, receiving a first message sent by a motion sensor carrying parameters such as wind speed, slope, temperature, or altitude.

[0103] Motor 170 can generate vibration prompts. Motor 170 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 103, motor 170 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarms, page switching, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0104] The display screen 103 may be used to display images, videos, etc. The display screen 103 includes a display panel.

[0105] The interface module 200 may be used as an interface with each external device connected to the smart watch. For example, the interface module 200 may receive data sent from an external device, receive power to transmit to each component in the smart watch, or send internal data of the smart watch to an external device. For example, the interface module 200 may include a wired or wireless headset port, an external power supply port, a wired or wireless data port, a port for connecting a device having an identification module, an audio input / output (I / O) port, a video I / O port, etc.

[0106] like Figure 2b FIG. 1 is a schematic diagram showing a structure of another embodiment of an electronic device provided by the present application, Figure 2b The electronic device 200 shown may be a mobile phone, which may have Figure 2b The more or less components shown in the figure can be combined with two or more components, or can have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0107] like Figure 2b As shown, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.

[0108] The structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0109] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0110] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0111] A memory may also be provided in the processor 210 for storing instructions and data, such as an implementation program of the rights management method provided in the embodiment of the present application on the electronic device 200 side. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or circulated. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 210 is reduced, and the efficiency of the system is improved.

[0112] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor.

[0113] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0114] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 250 can be set in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 can be set in the same device as at least some of the modules of the processor 210.

[0115] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through a display screen 294. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be set in the same device as the mobile communication module 250 or other functional modules.

[0116] The wireless communication module 260 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 200. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210. The wireless communication module 260 can also receive the signal to be sent from the processor 210, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0117] In some embodiments, the antenna 1 of the electronic device 200 is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the electronic device 200 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0118] The electronic device 200 implements the display function through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.

[0119] The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be made of an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microled, micro-oled, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 294, where N is a positive integer greater than 1.

[0120] The display screen 294 may be used to display a user interface implemented on the electronic device 200 provided in subsequent embodiments.

[0121] The electronic device 200 can realize the shooting function through ISP, camera 293, video codec, GPU, display screen 294 and application processor.

[0122] The ISP is used to process data fed back by the camera 293 .

[0123] The camera 293 is used to capture still images or videos. In some embodiments, the electronic device 200 may include 1 or N cameras 293, where N is a positive integer greater than 1.

[0124] The internal memory 221 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0125] The random access memory can be directly read and written by the processor 210, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.

[0126] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 210 .

[0127] The electronic device 200 can implement audio functions such as music playing and recording through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone jack 270D, and the application processor.

[0128] The audio module 270 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 270 can also be used to encode and decode audio signals. In some embodiments, the audio module 270 can be arranged in the processor 210, or some functional modules of the audio module 270 can be arranged in the processor 210.

[0129] The speaker 270A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 200 can listen to music or listen to a hands-free call through the speaker 270A.

[0130] The receiver 270B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 200 receives a call or voice message, the voice can be received by placing the receiver 270B close to the human ear.

[0131] Microphone 270C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.

[0132] In the embodiment of the present application, the mobile communication module 250 or the wireless communication module 260 is used to download the application installation package from the platform or other network location. The downloaded application installation package can be stored in the internal memory 221.

[0133] The processor 210 is used to read the application installation package and run the application installation package to complete the installation of the application. Afterwards, the processor 210 is used to run the installed application, and only after the electronic device 200 receives a user operation acting on the system control, the corresponding permission is granted to the application through the calling interface of the system control, and then the corresponding business of the system control is executed through the application. In addition, the processor 210 is also used to refuse or prohibit the corresponding permission from being granted to the application through the calling interface of the system control when the electronic device 200 does not receive a user operation. The processor 210 is also used to reclaim the permission granted to the current application after the business is completed.

[0134] The software system of the electronic device 200 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The present application embodiment takes a mobile operating system with a layered architecture as an example to exemplify the software structure of the electronic device 200.

[0135] Figure 2c It is a software structure block diagram of the electronic device 200 according to an embodiment of the present application.

[0136] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the mobile operating system is divided into four layers, from top to bottom: application layer, application framework layer / core service layer, system library and Android runtime, and kernel layer.

[0137] The system library may include a system database for storing information of applications.

[0138] The application layer can include a series of application packages.

[0139] like Figure 2c As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc., and may also include applications developed by developers. In the subsequent embodiments of this application, the sports-related applications developed by developers are referred to as first applications.

[0140] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0141] like Figure 2c As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.

[0142] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0143] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0144] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0145] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).

[0146] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0147] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0148] Android runtime can refer to all code libraries, frameworks, etc. required for program execution. For example, for C language, Android runtime includes a series of function libraries required for C program execution. For Java language, in addition to the core library, Android runtime also includes the virtual machine required for Java program execution. The above core library may include the function functions that Java language needs to call.

[0149] The database may include multiple functional modules, such as a surface manager, a media library, a 3D graphics processing library (such as OpenGL ES), a 2D graphics engine (such as SGL), etc.

[0150] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0151] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0152] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0153] A two-dimensional (2D) graphics engine is a drawing engine for 2D drawings.

[0154] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0155] Figure 2b The electronic device 200 shown is only one implementation method of the embodiment of the present application. In actual applications, the software architecture of the electronic device 200 may also include more or fewer modules, or some modules may be combined, and the levels of each module may also vary, which is not limited here.

[0156] The following is an example of the workflow of the electronic device software and hardware, combined with a user running scenario.

[0157] When the touch sensor 280K receives the touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, information such as the timestamp of the touch operation). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch single-click operation, the control corresponding to the single-click operation is the control of the sports application (first application) icon as an example, the sports application calls the interface of the application framework layer to start the sports application. When the sports application (first application) is started and enters the running detection state, the sports application can start the sensor drive by calling the kernel layer, and the relevant components in the sensor module 280 collect the user's motion parameters and / or motion environment parameters during the running process.

[0158] During daily running, users may encounter relatively severe running scenarios such as steep slopes, high temperatures, strong winds, plateaus, etc. In these scenarios, the auxiliary or guiding significance of flat ground pacing decreases, and it is impossible to provide users with exercise intensity guidance.

[0159] In one embodiment, the electronic device can help the user guide the intensity of exercise by estimating the effective output running power of the user. However, as an indicator of exercise intensity, it is difficult for users to understand the intensity range of running power, and it is impossible to establish an intuitive mapping with the intensity of flat ground pace running or heart rate range. In addition, the accuracy of running power measurement by electronic devices is very challenging. All measurements are only estimates. Currently, they can only be estimated based on running posture and slope, and other harsh environmental factors are not considered.

[0160] In another embodiment, the slope factor is taken into account during the user's running process, and the pace of slope running is compensated based on the user's work consumption under different slope conditions. However, this method also uses work consumption as a criterion to construct an intensity system, which has technical problems such as inaccurate estimation and low user perception compliance, and also fails to consider other adverse environmental factors (such as high temperature, low temperature or strong wind).

[0161] The following embodiments of the present application provide a method for processing motion data, an electronic device, and a computer-readable storage medium, which can provide a user with an accurate motion intensity index that conforms to the user's body sensation and can be mapped to the pace. The index can be displayed during the user's exercise to assist in scientific training, and can also be used as an algorithm input for a sports science evaluation system to scientifically evaluate running exercises.

[0162] like Figure 3aThe schematic diagram of the application scenario of the method for processing motion data provided by the embodiment of the present application is shown. Figure 2a or Figure 2b The electronic device can be specifically implemented in combination with wearable sensors. Figure 3a Taking the electronic device as a smart watch as an example, the user can wear a smart watch and a wearable sensor while running. The wearable sensor can be bound to the arm, waist or shoe surface. The smart watch and the wearable sensor can establish a wireless connection and transmit data to each other. Figure 3b The schematic diagram of the principle of the method for processing motion data provided by the embodiment of the present application is shown as follows:

[0163] First, the smartwatch can calculate and generate flat ground pace (or real-time pace, normal pace, etc.) through sports applications (such as Huawei Sports Health app) based on sports data obtained from GPS, IMU sensors, etc. On the other hand, Figure 3a The wearable sensor in the smartwatch can monitor some or all of the sports environment parameters during the user's running, such as slope parameters, temperature parameters, wind speed parameters, altitude parameters, etc., and transmit the monitored sports environment parameters to the smartwatch. It is understandable that the smartwatch itself can also collect some or all of the sports environment parameters.

[0164] Then, the sports application of the smart watch can be based on the acquired sports physical parameters (i.e., the flat ground pace generated above), the sports environment parameters collected and / or received by itself and sent from the wearable sensor, and after processing through a pre-trained model, output the processed sports physical parameters (e.g., called equivalent pace). It is understandable that the slope parameters, temperature parameters, wind speed parameters, altitude parameters, etc. in the method for processing sports data provided in the embodiment of the present application can also be collected by the smart watch itself, without the need for environmental parameter collection of other wearable sensors, that is, the method for processing sports data provided in the embodiment of the present application can also be independently completed by the smart watch itself. The embodiment of the present application is described by taking a smart watch in combination with the wearable sensor as an example.

[0165] Finally, the electronic device can display data (including processed physical parameters of the movement), generate movement evaluation results, generate training schedules, etc. Figure 4a , Figure 4b and Figure 4c Take the following as an example to illustrate the exemplary user interface implemented in the embodiment of the present application:

[0166] For example Figure 4aThe schematic diagram of the motion data display provided by the embodiment of the present application is shown. When the parameters of various environmental types in the monitored motion environment parameters do not meet the transformation conditions, for example, the slope does not reach the preset slope threshold, or the temperature does not reach the preset temperature threshold, or the wind speed does not reach the preset wind speed threshold, or the altitude does not reach the preset altitude threshold, then the motion application running on the electronic device can output and display the motion physical parameters that have not been transformed through the display screen, that is, the original motion physical parameters collected by the electronic device (equivalent to the first motion physical parameters, such as Figure 4a When one or more parameters of the monitored sports environment parameters meet the transformation conditions, the electronic device can transform the original sports physical parameters through the data transformation model to obtain the transformed sports physical parameters, and can simultaneously display the original sports physical parameters collected by the electronic device and the transformed sports physical parameters on the display screen (such as Figure 4a The transformed sports physical parameter (equivalent pace) is equivalent to the second sports physical parameter. When one or more parameters of the monitored sports environment parameters meet the transformation conditions, and then the parameters of various environmental types do not meet the transformation conditions, the sports application running on the electronic device can switch back to only outputting the original sports physical parameters (i.e., Figure 4a (the pace of interface 3 is displayed in the middle).

[0167] In one embodiment, Figure 4a The first sports physical parameter and the second sports physical parameter in the display interface 2 may not be displayed in the same interface at the same time. For example, the display interface 2 may only display the second sports physical parameter (i.e., equivalent pace), and the display interface 2 may be switched automatically, or the displayed interface may be switched after inputting a switching instruction according to the needs of the user.

[0168] In one implementation manner, the method for processing motion data in the embodiment of the present application may further include performing motion evaluation based on the transformed motion physical parameters to generate a motion evaluation result. Figure 4b and Figure 4c The schematic diagram of the motion evaluation results provided by the embodiment of the present application is shown, and the generated motion evaluation results may include real-time performance reminders when the user is running and the pace interval after the run. That is, the electronic device of the embodiment of the present application can display real-time performance reminders when the user is running, and display the pace interval after the run.

[0169] Assuming that the user's running route environment has an uphill slope (and the slope reaches the preset slope threshold), when the user runs at his normal flat ground running pace, Figure 4bThe results of the exercise evaluation generated by the original exercise physical parameters in the prior art are shown in the figure. The result of the real-time performance reminder indicates that the physical condition is poor, and the result of the speed interval indicates that the intensity is low. Figure 4c The exercise evaluation result generated by performing exercise evaluation using the transformed exercise physical parameters of the embodiment of the present application is shown in the figure. The result of displaying the real-time performance reminder indicates that the physical condition is normal, and the result of displaying the pace interval indicates that the intensity is high.

[0170] The motion data processing method provided in the embodiment of the present application can provide users with an accurate motion intensity index that conforms to the user's physical sensation and can be mapped to the pace. It can be displayed during the user's exercise to assist in their scientific training. It can also be used as an algorithm input for the sports science evaluation system to scientifically evaluate running exercises.

[0171] based on Figure 2a The schematic diagram of the structure of the electronic device shown in FIG. Figure 3a The application scenario schematic diagram shown and the user interface provided above are described in detail below in terms of the interaction between an electronic device (such as a smart watch) and a wearable sensor to process motion data provided in an embodiment of the present application.

[0172] The method for processing motion data in the embodiment of the present application can transform the motion physical parameters based on parameters of N types of environments (including slope parameters, temperature parameters, wind speed parameters, altitude parameters, etc.) when the transformation conditions are met.

[0173] First, the method for processing motion data of the embodiment of the present application is described by taking running as an example, with reference to the case where only the slope parameter is considered. Figure 5 , Figure 5 The following is a flow chart showing a method for processing motion data according to an embodiment of the present application:

[0174] like Figure 5 As shown, the method may include the following steps:

[0175] S501, the electronic device obtains the motion physical parameters of the motion object;

[0176] Specifically, the sports physical parameters of the embodiment of the present application can characterize the movement speed of the moving object (the user wearing the electronic device), for example, the pace. When the user is running outdoors, the electronic device can collect the running distance and time of the user, and then calculate the pace. The pace obtained by the electronic device in step S501 is the flat ground pace, that is, the pace does not take into account the sports environment parameters of the embodiment of the present application.

[0177] The sports APP running on the electronic device can display the current flat ground pace in real time, as mentioned above Figure 1The pace diagram shown in the figure, or Figure 4a The display interface 1 in FIG. is equivalent to displaying the first motion physical parameter in the display interface.

[0178] S502, the wearable sensor collects slope parameters;

[0179] Specifically, the user can also wear some motion sensors (i.e., wearable sensors) during running, such as Huawei S-Tag, which can collect the motion environment parameters of the user when running. The motion environment parameters of the embodiment of the present application are only illustrated by the slope parameter as an example, that is, the wearable sensor can have an air pressure detection function to detect height change information, and then the slope parameter can be calculated by combining the user's running speed and the running distance measured by GPS.

[0180] S503, the wearable sensor sends the collected slope parameters to the electronic device;

[0181] Specifically, the wearable sensor establishes a communication connection with the electronic device, such as a Bluetooth connection, etc. The wearable sensor can send the collected motion environment parameters to the electronic device. The wearable sensor can periodically (for example, every 5 seconds) send the collected and calculated slope parameters to the electronic device.

[0182] S504, the electronic device receives the slope parameter sent by the wearable sensor;

[0183] S505, judging whether a transformation condition is met based on the slope parameter;

[0184] Specifically, the transformation condition of the embodiment of the present application may be whether the slope parameter reaches a slope threshold, for example, the slope threshold is 3%. Then, when the electronic device determines that the current slope parameter reaches the slope threshold, it indicates that the current sports environment has bad parameters, or the sports environment parameters have factors that affect the user's running, and the transformation condition is met, triggering the execution of step S506. It is understandable that if it is determined that the transformation condition is not met, it can continue to determine whether the transformation condition is met based on the latest slope parameter.

[0185] S506, transforming the motion physical parameters and outputting the transformed motion physical parameters;

[0186] Specifically, the electronic device can transform the sports physical parameters based on the slope parameters through a pre-trained data transformation model, that is, the slope parameters can be input into the data transformation model, and then the transformed sports physical parameters (such as equivalent pace) can be obtained after processing by the data transformation model and displayed as output. Figure 4aAs shown in the middle display interface 2. That is, when the parameters of the M types of environment types of the motion environment parameters meet the transformation conditions, the second motion physical parameter is displayed.

[0187] In one embodiment, the sports APP running on the electronic device may be pre-set with or obtain the data conversion model from the server corresponding to the sports APP. For the slope parameter, the data conversion model may be a conversion ratio α(x) for the slope parameter, that is, α(x) is a function based on the independent variable slope parameter x, then it can be based on Formula 1:

[0188] γ′=(1+α(x))×γ Formula 1

[0189] The transformed motion physical parameter is calculated. The γ is the motion physical parameter of the motion object, for example, the flat ground pace. The γ′ is the transformed motion physical parameter, which can correspond to the equivalent pace.

[0190] S507, performing motion evaluation based on the transformed motion physical parameters to generate a motion evaluation result.

[0191] Specifically, after the user completes the current running exercise, the electronic device can automatically perform a motion evaluation based on the transformed physical parameters of the exercise and generate a motion evaluation result. Alternatively, the electronic device can also execute step S507 according to the user's input operation. That is, after the user completes the current running exercise, when he wants to view the evaluation of the amount of exercise or the effect of the exercise, he can operate the electronic device to display the motion evaluation result. Then, the electronic device can perform a motion evaluation based on the user's input operation and the above-mentioned transformed physical parameters of the exercise, and finally generate a motion evaluation result. Specifically as mentioned above Figure 4c As shown, the exercise evaluation results of the pace interval can be generated based on the equivalent pace.

[0192] In one embodiment, step S507 can be replaced by formulating a training plan or training schedule based on the transformed sports physical parameters, or step S507 can also include formulating a training plan or training schedule based on the transformed sports physical parameters. Specifically, the transformed sports physical parameters can be used as a good input for the training plan or training schedule, so as to formulate a more reasonable training plan or training schedule. For example, the environmental factors of the historical running route (such as the slope parameters of a certain section of the road) can be combined to evaluate the exercise consumption or exercise effect corresponding to a certain sports physical parameter (such as equivalent pace), so that a training plan or training schedule can be formulated according to the user's expected exercise consumption or exercise effect.

[0193] In one embodiment, regarding Figure 5The embodiment can be completed by the electronic device (such as a smart watch) itself, that is, step S502 can be replaced by the electronic device collecting the slope parameters through its own sensor, and steps S503 and S504 are omitted. Then the electronic device can directly execute step S505 to determine whether the transformation condition is met based on the slope parameter, and its subsequent steps.

[0194] In one implementation, the data transformation model in the embodiment of the present application may include conversion ratios corresponding to parameters of N types of environments, that is, it may include conversion ratios corresponding to slope parameters, conversion ratios corresponding to temperature parameters, conversion ratios corresponding to wind speed parameters, conversion ratios corresponding to altitude parameters, etc. Specifically, before step S506, the technician may simulate one or more harsh environment parameters in a laboratory or other environment, thereby pre-building the data transformation model. For example:

[0195] A univariate linear regression model corresponding to each environment type is constructed based on the motion sample data of at least one environment type; wherein the same motion environment parameter is used as an independent variable in the motion sample data, and the motion physiological parameters and motion physical parameters corresponding to the same motion environment parameter are used as dependent variables; and then the data transformation model is constructed based on the univariate linear regression model.

[0196] In one embodiment, the formula 2 can be used: β(x i )=k1x i +b1 constructs a univariate linear regression model and obtains the regression coefficient k1 and constant b1; where x i is the motion environment parameter; the β(x i ) is the x i The first function is the ratio of the sports physiological parameter to the sports physical parameter in the sports sample data;

[0197] Constructing the data transformation model based on the univariate linear regression model may include: using Formula 3: Calculate the conversion ratio α(x i ).

[0198] In one embodiment, the sports physiological parameters in the embodiment of the present application may include but are not limited to the user's steady-state heart rate value. The steady-state heart rate value may be a daytime heart rate (dHR) obtained under the steady-state heart rate condition. For example, if the dHR within the preset time window is less than 5, the average dHR of the entire period may be taken as the steady-state heart rate value.

[0199] Take the slope parameter as an example:

[0200] like Figure 6The schematic diagram of the principle of constructing the conversion ratio corresponding to the slope parameter provided by the embodiment of the present application is shown. After the tester in the laboratory warms up and enters the test stage, it can simulate running at different slopes (i.e., different stages) to obtain the big data of the exercise sample data, including the actual pace corresponding to the different stages and the corresponding heart rate steady-state value, and then obtain the regression coefficient k1 and the constant b1 through the univariate linear regression model constructed by formula 2; at this time, the x i is the slope parameter; the β( i ) is the x i The first function is the ratio of the heart rate steady-state value to the actual pace in the exercise sample data. Finally, the slope parameter conversion ratio α(x) can be obtained by formula 3.

[0201] It is understandable that the conversion ratios corresponding to other sports environment parameters can also be obtained by conducting tests under laboratory simulation of the corresponding environmental parameters and then combining Formula 2 and Formula 3 to obtain the conversion ratios respectively.

[0202] Next, the method for processing the motion data of the embodiment of the present application is described by taking running as an example in the case of multiple sports environment parameters. Figure 7 , Figure 7 The following is a flow chart showing another embodiment of the method for processing motion data of the present application:

[0203] like Figure 7 As shown, the method may include the following steps:

[0204] S701, the electronic device obtains the motion physical parameters of the motion object;

[0205] Specifically, please refer to Figure 5 Step S501 of the embodiment will not be described in detail here.

[0206] S702, the wearable sensor collects sports environment parameters;

[0207] Specifically, in the embodiment of the present application, the wearable sensor can collect slope parameters, altitude parameters, temperature parameters, and wind speed parameters as an example. That is, the wearable sensor can simultaneously have the functions of collecting slope, altitude, temperature, and wind speed.

[0208] S703, the wearable sensor sends the collected sports environment parameters to the electronic device;

[0209] S704, the electronic device receives the sports environment parameters sent by the wearable sensor;

[0210] Specifically, steps S703 and S704 can refer to Figure 5 Steps S503 and S504 of the embodiment are not described in detail here.

[0211] S705, judging whether a transformation condition is met based on the motion environment parameters;

[0212] Specifically, each sports environment parameter can be set with its own corresponding threshold. For example, the slope threshold is 3%; the first temperature threshold is 15 degrees; the second temperature threshold is 22 degrees; the wind speed threshold is 3 meters / second (headwind); the altitude threshold is 1 kilometer. Then the transformation condition of the embodiment of the present application can be the first condition: whether there is at least one sports environment parameter among the multiple sports environment parameters that reaches the corresponding threshold. If there is at least one sports environment parameter that reaches the corresponding threshold, it indicates that the current sports environment is detected to have bad parameters, or that the sports environment parameters have factors that affect the user's running, then the transformation condition is met, triggering the execution of step S706.

[0213] Alternatively, the transformation condition of the embodiment of the present application can also be a second condition, combining multiple motion environment parameters for judgment (the specific combination method remains unchanged), for example, when a certain motion environment parameter reaches a certain threshold, the thresholds corresponding to other motion environment parameters can be set, then after the certain motion environment parameter reaches the certain threshold, as long as at least one of the other motion environment parameters also reaches its corresponding threshold, the transformation condition is satisfied. For another example, a combined threshold can be set, and multiple motion environment parameters can be brought into the calculation of a combined value according to their respective weights to determine whether the combined value reaches the combined threshold, and if so, the transformation condition is satisfied.

[0214] S706, transforming the motion physical parameters and outputting the transformed motion physical parameters;

[0215] Specifically, the electronic device can transform the sports physical parameters based on the slope parameters, altitude parameters, temperature parameters, and wind speed parameters through a pre-trained data transformation model, that is, the slope parameters, altitude parameters, temperature parameters, and wind speed parameters can be input into the data transformation model, and then the transformed sports physical parameters (such as equivalent pace) can be obtained after processing by the data transformation model and displayed as output. Figure 4a As shown in the middle display interface 2. That is, when the parameters of the M types of environment types of the motion environment parameters meet the transformation conditions, the second motion physical parameter is displayed.

[0216] In one embodiment, the sports APP running on the electronic device may be pre-set with or obtain the data conversion model from the server corresponding to the sports APP. For the slope parameter, altitude parameter, temperature parameter, and wind speed parameter, the data conversion model may be a conversion ratio α(x i ), that is, α(x i) is the conversion ratio corresponding to the parameters of the i-th environmental type; for example, the value of i ranges from 1 to 4, respectively, α(x1) is a function based on the independent variable slope parameter x1, α(x2) is a function based on the independent variable altitude parameter x2, α(x3) is a function based on the independent variable temperature parameter x3, α(x4) is a function based on the independent variable wind speed parameter x4, then based on Formula 4:

[0217]

[0218] The transformed motion physical parameter is calculated. m is 4; γ is the motion physical parameter of the motion object, for example, the flat ground pace. γ′ is the transformed motion physical parameter, which can correspond to the equivalent pace.

[0219] The embodiment of the present application uses Formula 4 to linearly superimpose each conversion ratio to calculate the transformed motion physical parameters, which can increase the generalization ability of the model. The embodiment of the present application is not limited to Formula 4, and can further set the influence factor (factor greater than 1) between each motion environment parameter according to the relationship between the motion intensity and the user's body sensation. When at least two motion environment parameters satisfy a strong correlation with each other, the influence factor can be added to the superposition of the conversion ratio. For example, if the slope parameter reaches 8% and the wind speed parameter reaches 5 meters / second (headwind), then based on Formula 5:

[0220] γ′=(1+∈1α(x1)+α(x2)+α(x3)+∈4α(x4))×γ Formula 5

[0221] Among them, ∈1 is the influencing factor for the slope parameter, and ∈4 is the influencing factor for the wind speed parameter, both of which are factors greater than 1.

[0222] S707, performing motion evaluation based on the transformed motion physical parameters to generate a motion evaluation result.

[0223] Specifically, step S707 may refer to the above Figure 5 Step S507 of the embodiment will not be described in detail here.

[0224] It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.

[0225] The present application also provides an electronic device, which may include: a memory and a processor. The memory may be used to store a computer program; the processor may be used to call the computer program in the memory so that the electronic device executes the method executed by the electronic device in any of the above embodiments.

[0226] The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the electronic device in any of the above embodiments.

[0227] In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.

[0228] The chip system may be composed of the chip, or may include the chip and other discrete devices.

[0229] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0230] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.

[0231] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0232] The present application also provides a computer program product, which includes: a computer program (also referred to as code, or instruction), which enables a computer to execute the method executed by the electronic device in any of the above embodiments when the computer program is executed.

[0233] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program (also referred to as code or instruction). When the computer program is executed, the computer executes the method executed by the electronic device in any of the above embodiments.

[0234] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.

[0235] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.

[0236] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

[0237] In short, the above is only an embodiment of the technical solution of this application, and is not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of this application shall be included in the protection scope of this application.

Claims

1. A method for processing motion data, characterized in that: The method comprises: Displaying a first motion physical parameter in a display interface; the first motion physical parameter is used to characterize the motion speed of the motion object; When the parameters of the M types of environment parameters of the motion environment parameters meet the transformation conditions, the second motion physical parameter is displayed; the second motion physical parameter is a parameter obtained by transforming the first motion physical parameter through a data transformation model based on the parameters of the M types of environment parameters.

2. The method according to claim 1, characterized in that The displaying of the second motion physical parameter includes displaying the second motion physical parameter while displaying the first motion physical parameter on the display interface.

3. The method according to claim 1 or 2, characterized in that: Before displaying the second motion physical parameter, the method further includes: Acquire current motion data, wherein the current motion data includes motion physical parameters and motion environment parameters of the motion object; the motion physical parameters represent the motion speed of the motion object; the motion environment parameters include parameters of N types of environments; N is an integer greater than or equal to 1; When the parameters of the M types of environment types of the motion environment parameters meet the transformation conditions, the motion physical parameters are transformed through a data transformation model based on the parameters of the M types of environment types to obtain transformed motion physical parameters; the M is less than or equal to the N.

4. The method according to claim 3, characterized in that The data transformation model includes a correspondence between the motion environment parameters and a conversion ratio; the conversion ratio represents the degree of influence of the motion environment parameters on the motion speed of the motion object; The parameters based on the M types of environments are used to transform the motion physical parameters through a data transformation model to obtain the transformed motion physical parameters, including: Based on the conversion ratios corresponding to the parameters of the M types of environments, the motion physical parameters are transformed to obtain transformed motion physical parameters.

5. The method according to any one of claims 1 to 4, characterized in that: The change condition includes that a parameter of at least one environment type reaches a corresponding change threshold.

6. The method according to any one of claims 1 to 5, characterized in that: The obtaining of current motion data comprises: Receive at least one parameter of an environment type sent by an external sensor.

7. The method according to any one of claims 1 to 6, characterized in that: When the parameters of the M types of environment of the motion environment parameters meet the transformation conditions, the following are also included: Outputting a motion evaluation result; the motion evaluation result is an evaluation result obtained by performing motion evaluation based on the transformed motion physical parameters.

8. The method according to any one of claims 1 to 7, characterized in that: When the parameters of the M types of environment of the motion environment parameters meet the transformation conditions, the following are also included: Output a training plan or a training schedule; the training plan or the training schedule is a plan or a schedule obtained by performing sports evaluation based on the transformed sports physical parameters.

9. An electronic device, characterized in that: include: A memory and one or more processors; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method as described in any one of claims 1-8.

10. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device executes the method as described in any one of claims 1 to 8.