Riding management method, user interface and related device

By recognizing the user's grip during riding and providing safety guidance, it solves the problem of the inability to detect and guide grip in existing technologies, thus improving riding safety and experience.

CN121635666APending Publication Date: 2026-03-10HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411244852.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Existing technologies cannot effectively detect and guide users' grip during riding, affecting riding safety and experience.

Method used

Electronic devices worn on the user's upper limbs use IMU signals and/or PPG signals to identify whether the user is gripping the handle, and output prompts when not gripping the handle, identify gripping methods and provide safety guidance.

Benefits of technology

It improves safety and user experience during cycling by providing timely reminders about gripping the handlebars and recommending appropriate gripping techniques, thereby reducing hand injuries and cycling risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121635666A_ABST
    Figure CN121635666A_ABST
Patent Text Reader

Abstract

The invention discloses a riding management method, a user interface and a related device, in the method, electronic equipment can identify whether a user holds a handle after identifying that the user is in a riding state, and outputs first prompt information when identifying that the user holds the handle, and the first prompt information can be used for prompting the user to hold the handle. Therefore, the user can be reminded to hold the handle in time under the condition that the user does not hold the handle for riding, and the safety of the user in the riding process is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal and computer technology, and in particular to cycling management methods, user interfaces and related devices. Background Technology

[0002] Currently, with continuous technological innovation, using electronic devices for exercise guidance has gradually become a mainstream development trend. Cycling, a popular aerobic exercise, presents a pressing issue: how to utilize electronic devices to enhance the user's cycling experience. Summary of the Invention

[0003] This application provides a cycling management method, user interface, and related devices, which improves the user's cycling experience by taking the user's grip on the handlebars during the cycling process as the starting point.

[0004] In a first aspect, embodiments of this application provide a cycling management method, which is applied to an electronic device worn on a user's upper limb. The method includes: recognizing that the user is in a cycling state; recognizing whether the user is holding the handlebars; and, if the user is not holding the handlebars, outputting a first prompt message to prompt the user to hold the handlebars.

[0005] Implementing the method provided in the first aspect can promptly output prompts when the user is not holding the handlebars, providing safety guidance for the user's riding and guiding the user to ride safely.

[0006] In conjunction with the first aspect, in one possible implementation, identifying that the user is in a cycling state specifically includes: identifying that the user is in a cycling state based on a first operation, the first operation being used to initiate cycling; and / or, identifying that the user is in a cycling state based on the user's state data.

[0007] As can be seen, this method allows users to actively confirm that they are in a cycling state, or it allows electronic devices to automatically identify whether a user is in a cycling state.

[0008] In conjunction with the first aspect, in one possible implementation, when the user is in a cycling state, the user's state data indicates one or more of the following: the user is in a non-stationary state, the user's heart rate is greater than a first threshold, the user is not in an underwater environment, the user's upper limbs are not performing periodic movements, the user's hand movement state is consistent with the hand movement state in cycling, and the user's movement speed is consistent with the movement speed in cycling.

[0009] In other words, electronic devices can identify whether a user is riding by using data on the user's status in one or more aspects, thus achieving accurate identification of the user's riding status.

[0010] In conjunction with the first aspect, in one possible implementation, before outputting the first prompt information, the method further includes: identifying that a first condition is met, the first condition including one or more of the following: the duration of the user not holding the handlebars exceeds a first duration, the cycling route is bumpy, the cycling route has complex road conditions, and the speed of movement is greater than a second threshold.

[0011] In other words, besides detecting that the user is not holding the handlebars, the electronic device will only output the first prompt message if the first condition is met. This reduces the frequency of the electronic device outputting the first prompt message, while also ensuring that the electronic device 100 can promptly remind the user to hold the handlebars when the riding risk is high, thus minimizing the possibility of dangerous accidents.

[0012] In conjunction with the first aspect, in one possible implementation, after outputting the first prompt message, the method further includes: if it is detected that the user has not been holding the handle, outputting the first prompt message again after a second time interval.

[0013] In this way, the electronic devices can continuously detect when the user is not holding the handlebars, further ensuring the user's safe riding.

[0014] In conjunction with the first aspect, in one possible implementation, the second duration is determined based on the user's cycling speed. If the cycling speed is the first speed, the second duration is the first value; if the cycling speed is the second speed, the second duration is the second value. The first speed is greater than the second speed, and the first value is less than the second value.

[0015] In this way, electronic devices can shorten the interval between prompts to grip the handlebars when riding at higher speeds and lengthen the interval when riding at lower speeds.

[0016] In conjunction with the first aspect, in one possible implementation, identifying whether a user is holding the handle specifically includes: identifying whether a user is holding the handle based on a first sensing signal, the first sensing signal including: a first IMU signal, and / or, a first PPG signal.

[0017] In other words, electronic devices can use IMU signals and / or PPG signals to identify whether a user is gripping the handle, thereby improving the accuracy of user grip recognition.

[0018] In conjunction with the first aspect, in one possible implementation, identifying whether a user is gripping the handlebars based on the first sensor signal specifically includes: inputting the first sensor signal into a first model to determine whether the user is gripping the handlebars; wherein, the first model is trained based on the sensor signals of testers who are known to be gripping the handlebars during cycling.

[0019] In other words, electronic devices can use models to identify whether a user is gripping the handle, thus achieving accurate identification of the user's grip.

[0020] In conjunction with the first aspect, in one possible implementation, the method further includes: upon recognizing a user's grip, outputting a second prompt message, the second prompt message indicating the user's first grip method recognized by the electronic device.

[0021] In other words, when the user's grip is detected, the electronic device can output the grip method recognized by the user, so that the user can understand the grip method they are currently using through the electronic device.

[0022] In conjunction with the first aspect, in one possible implementation, the first grip method is obtained based on a first sensing signal, which includes: a first IMU signal, and / or, a first PPG signal.

[0023] It is evident that electronic devices can use IMU signals and / or PPG signals to identify the user's grip style.

[0024] In conjunction with the first aspect, in one possible implementation, the method further includes: inputting a first sensing signal into a second model to determine the user's grip method; wherein the second model is trained based on sensing signals from testers using various grip methods during cycling.

[0025] In other words, electronic devices can use models to recognize how users hold the handle, thus achieving accurate identification of the user's grip style.

[0026] In conjunction with the first aspect, in one possible implementation, after outputting the first prompt information, the method further includes: acquiring a second sensing signal, the second sensing signal including: a second IMU signal, and / or, a second PPG signal; comparing a first feature of the first sensing signal and the second sensing signal; if the first feature of the first sensing signal and the first feature of the second sensing signal are different or the difference is greater than a third threshold, then it is determined that the user is holding the handle; if the first feature of the first sensing signal and the first feature of the second sensing signal are the same or the difference is less than the third threshold, then it is determined that the user is not holding the handle.

[0027] In other words, electronic devices can identify whether a user has changed their grip by comparing whether sensor signals collected at different times have changed. By identifying whether the user is currently gripping the handle, the change in grip status can reduce the power consumption of electronic devices compared to directly using models to identify whether the user is gripping the handle.

[0028] In conjunction with the first aspect, in one possible implementation, the method further includes: if the first feature of the first sensing signal and the first feature of the second sensing signal are different or the gap is greater than a third threshold, identifying the user's second grip method based on the second sensing signal; and outputting prompt information to indicate the second grip method.

[0029] In other words, if the electronic device identifies that the user has switched from a non-grip state to a grip state based on feature comparison, the electronic device can further use sensor signals to identify the specific grip method used by the user.

[0030] In conjunction with the first aspect, in one possible implementation, the method further includes: upon recognizing a user's grip, determining a first vibration index, the first vibration index describing the amplitude of upper limb vibration during cycling; and upon determining that the first vibration index is greater than a fourth threshold, and / or that the duration of the first vibration index being greater than the fourth threshold is greater than a third duration, outputting a third prompt message, the third prompt message being used to prompt the user to change the grip method.

[0031] It is evident that this method can promptly remind users to change their grip style during cycling, allowing their hands to relax slightly during the grip change, or altering the stress points on the user's hands by changing the grip style, thereby reducing hand injuries.

[0032] In conjunction with the first aspect, in one possible implementation, the first vibration index includes one or more of the following: hand-transmitted vibration exposure, variance of the IMU signal, and frequency of the IMU signal.

[0033] In conjunction with the first aspect, in one possible implementation, the third prompt message is used to prompt the user to switch the grip method to the third grip method.

[0034] In other words, this method can remind users to switch to a specified grip method when prompting them to change grip methods, thus preventing users from blindly changing grip methods.

[0035] In conjunction with the first aspect, in one possible implementation, the first prompt message is also used to indicate the recommended third grip method.

[0036] In other words, when the user is not holding the handlebars, the electronic device can not only remind the user to hold the handlebars, but also remind the user of the currently recommended grip method, reducing the difficulty of riding for the user.

[0037] In conjunction with the first aspect, in one possible implementation, the third grip method is determined based on the road conditions of the first riding segment ahead.

[0038] In other words, the grip method recommended by electronic devices can be determined based on the road conditions of the cycling route ahead, thus achieving a scientific recommendation of the user's grip method.

[0039] In conjunction with the first aspect, in one possible implementation, if the first cycling segment is a steep uphill or urban traffic segment, the third grip position is the upper grip position; if the first cycling segment is a high-speed downhill or flat sprint segment, the third grip position is the lower grip position; if the first cycling segment is a long uphill segment, the third grip position is the horizontal grip position.

[0040] Secondly, embodiments of this application provide a cycling management method applied to an electronic device. The method includes: identifying whether a user's state matches the state under cycling conditions; if the user's state matches the state under cycling conditions, identifying whether the user's upper limbs are performing periodic movements; if the user's upper limbs are not performing periodic movements, identifying whether the user's upper limb movement state matches the upper limb movement state under cycling conditions; if the user's upper limb movement state matches the upper limb movement state under cycling conditions, identifying whether the user's movement speed matches the movement speed under cycling conditions; if the user's movement speed matches the movement speed under cycling conditions, outputting a fifth prompt message, the fifth prompt message being used to remind the user whether they are in a cycling state; and determining that the user is in a cycling state if a second user operation is detected or no user operation is received within a fourth time period.

[0041] By implementing the method provided in the second aspect, electronic devices can combine multiple aspects of the user's movement to identify whether the user is in a cycling state, thereby achieving accurate identification of the user's cycling state.

[0042] Thirdly, embodiments of this application provide an electronic device, including: a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method described in the first aspect or any possible implementation of the first aspect, or the method described in the second aspect.

[0043] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect or any possible implementation of the first aspect, or the method described in the second aspect.

[0044] Fifthly, embodiments of this application provide a computer program product, which includes a computer program that, when executed by a processor, implements the method described in the first aspect or any possible implementation of the first aspect, or the method described in the second aspect. Attached Figure Description

[0045] Figure 1 Schematic diagrams illustrating various grip methods provided in embodiments of this application;

[0046] Figure 2 A schematic diagram illustrating various grip methods provided in the embodiments of this application;

[0047] Figure 3 A flowchart illustrating a cycling management method provided in an embodiment of this application;

[0048] Figure 4 User interface 10 for initiating cycling activities provided in this application embodiment;

[0049] Figure 5 The user interface 20 displayed by the electronic device 100 provided in this application embodiment after recognizing that the user is in a riding state;

[0050] Figure 6 The user interface 20 displayed by the electronic device 100 provided in this application embodiment after recognizing that the user is in a riding state using state data;

[0051] Figure 7 The user interface 30 displayed by the electronic device 100 provided in this application embodiment when it detects that the user is not holding the handle;

[0052] Figure 8 The electronic device 100 provided in this application embodiment displays a user interface 40 when it detects that the user is not holding the handle and the first condition is met;

[0053] Figure 9A A schematic diagram of the modules involved in identifying whether a user is riding a bicycle in the electronic device 100 provided in this application embodiment;

[0054] Figure 9B This is a schematic flowchart of a method for identifying a user's riding status provided in an embodiment of this application;

[0055] Figure 10 A flowchart illustrating another cycling management method provided in this application embodiment;

[0056] Figure 11 The user interface 50 displayed by the electronic device 100 provided in this application embodiment after recognizing the user's grip method;

[0057] Figure 12 A flowchart illustrating another cycling management method provided in this application embodiment;

[0058] Figure 13 The user interface 60 displayed by the electronic device 100 provided in this application embodiment when reminding the user to change the grip method;

[0059] Figure 14 A flowchart illustrating another cycling management method provided in this application embodiment;

[0060] Figures 15A-15CUser interface 70 displayed when recommending a grip method for the electronic device 100 provided in this application embodiment;

[0061] Figure 16 The user interface 80 displayed by the electronic device 100 provided in this application embodiment after the cycling exercise ends;

[0062] Figure 17 The user interface 90 displayed by the electronic device 100 provided in this application embodiment after the cycling exercise ends;

[0063] Figure 18 A schematic diagram of the hardware structure of the electronic device 100 provided in the embodiments of this application;

[0064] Figure 19 This is a schematic diagram of the structure of the cycling management device 200 provided in the embodiments of this application. Detailed Implementation

[0065] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings.

[0066] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with the user. It realizes the conversion between the internal form of information and the form that the user can accept. The user interface is source code written in a specific computer language such as Java or Extensible Markup Language (XML). The interface source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of an electronic device.

[0067] Currently, while smart wearable devices can detect a user's heart rate and cycling speed during a ride, they do not detect or provide guidance on whether the user is gripping the handlebars or how they are gripping them. Furthermore, whether a user grips the handlebars is crucial to their safety while cycling, and different grip styles are suitable for different road conditions. Therefore, it is necessary to promptly remind users to grip the handlebars during cycling and to provide guidance on using different grip styles for different scenarios to better ensure user safety.

[0068] For example, Figure 1This is a schematic diagram illustrating various grip methods provided in the embodiments of this application.

[0069] like Figure 1 As shown, common grip positions include: top grip, bottom grip, and side grip. Among them:

[0070] The "top grip" refers to the riding posture where the hands rest on the upward-sloping part of the bicycle handlebars. The top grip is the most common grip method in cycling and is considered the most ergonomic. Because the top grip provides better braking and shifting, it is suitable for use in urban areas, especially in complex traffic conditions. Additionally, the top grip is suitable for climbing hills, as the forward lean and shoulder-width apart hands help maintain better balance. However, the top grip posture results in greater wind resistance and is not suitable for high-speed downhill riding.

[0071] The lower grip position refers to the riding posture where the hands are positioned below the drop handlebars on a bicycle. This position offers the most aerodynamic and aggressive riding posture, suitable for high-speed riding. It is particularly useful for high-speed downhill riding and sprinting, especially on flat roads, as it allows the rider to more easily grip the brakes for easier braking. In short, the lower grip position effectively reduces wind resistance and improves riding efficiency.

[0072] The handlebar position refers to the riding posture with your hands on the handlebars of a bicycle. Because the handlebar position is the least aerodynamic and the most difficult to control, it is generally suitable for long-distance climbing and low-speed riding. Furthermore, the handlebar position is not suitable for use when rocking the bike or in complex traffic conditions.

[0073] It is evident that different grip styles have different application scenarios, and using the correct grip style during cycling is crucial.

[0074] Furthermore, Figure 2 These are schematic diagrams illustrating various grip methods provided in the embodiments of this application.

[0075] in, Figure 2 (a), (b), and (c) in the diagram show the posture diagrams for the upper, lower, and horizontal positions, respectively.

[0076] from Figure 2As can be seen from (a), (b), and (c), the orientation, position, and force application of the user's wrist are different under different grip methods. In addition, the orientation, position, and force application of the wrist are also different when the user is gripping the handlebars versus not gripping them. If the user wears an electronic device 100 on their wrist during cycling, the electronic device 100 can collect the sensing signals transmitted by the user's wrist during cycling through the sensor, and use the sensing signals to identify whether the user is gripping the handlebars or the user's grip method.

[0077] For details on using sensor signals to identify whether a user is gripping the handle and the user's grip style, please refer to the subsequent method flow; it will not be elaborated here.

[0078] This application provides a cycling management method that, after recognizing that a user is in a cycling state, identifies whether the user is holding the handlebars, and then outputs a prompt message when the user is not holding the handlebars to remind the user to hold the handlebars.

[0079] As can be seen, this method can detect whether the user is holding the handlebars and output prompt information in a timely manner when the user is not holding the handlebars, providing safety guidance for the user's riding and guiding the user to ride safely.

[0080] This application also provides a cycling management method, which can identify the user's grip style after recognizing that the user is in a cycling state, and then output prompt information that can be used to instruct the user on the grip style.

[0081] As can be seen, this method can identify the various grip styles used by a user while riding and display them to the user so that the user understands the grip style they are using while riding.

[0082] This application also provides a cycling management method. After recognizing that a user is cycling and that the user is holding the handlebars, the method calculates the user's vibration index, which describes the amplitude of upper limb vibration during cycling. If the vibration index is greater than a threshold and / or the duration of the vibration index being greater than the threshold is greater than a preset duration, the method outputs a prompt message to prompt the user to change the handlebar grip.

[0083] During cycling, uneven road surfaces can cause the user's hands to shake along with the handlebars. Violent or continuous hand shaking can easily lead to hand injuries. Therefore, this method can promptly remind the user to change their grip, allowing their hands to relax slightly during the grip change, or changing the force distribution on the user's hands by changing the grip, thus reducing hand injuries.

[0084] This application also provides a cycling management method. After recognizing that a user is cycling, the method can identify the road conditions of the cycling section ahead and output prompt information based on the road conditions. The prompt information can be used to remind the user of the appropriate grip method for the cycling section.

[0085] Since different grip styles are suitable for different road conditions, using the correct grip style under different road conditions can increase the user's riding speed, improve the user's safety, help the user better master the grip style to use under different road conditions, and improve the user's riding skills.

[0086] Figure 3 This is a flowchart illustrating a cycling management method provided in an embodiment of this application.

[0087] S101. Electronic device 100 recognizes that the user is riding.

[0088] For example, electronic device 100 can refer to devices such as mobile phones, tablets, computers, watches, and wristbands. Preferably, electronic device 100 can refer to wearable devices such as watches, wristbands, and rings, so that during the user's cycling, electronic device 100 can be portablely worn on the user's body, such as on the user's wrist, arm, or fingers, to collect relevant information during the user's cycling process, such as IMU signals, so that electronic device 100 can detect the user's movement status.

[0089] by Figure 2 For example, electronic device 100 can be a watch worn on a user's wrist.

[0090] It is understood that, in addition to devices that can be directly worn on the user's body, electronic device 100 can also be a portable device that can be worn on the body with the help of wearing accessories. For example, electronic device 100 can be a mobile phone, which can be tied to the user's arm with a strap. The embodiments of this application do not limit the form of electronic device 100.

[0091] In this context, "user in cycling state" means that the user is currently engaged in cycling exercise, while "user in non-cycling state" means that the user is not engaged in cycling exercise.

[0092] For example, electronic device 100 can identify that a user is riding a bicycle in any one or more of the following ways:

[0093] 1) Electronic device 100 recognizes that the user is in a riding state based on user operation.

[0094] The user operation (e.g., the first operation) may refer to a touch operation on the touch screen, a physical operation on the button, or a user's voice command, etc. The embodiments of this application do not limit the form of the user operation.

[0095] For example, Figure 4 User interface 10 for initiating cycling activities provided in this application embodiment.

[0096] like Figure 4 As shown, the user interface 10 may include a "Start Cycling" option 101. If the electronic device 100 detects a user action on the "Start Cycling" option 101, it indicates that the user has started cycling, and the electronic device 100 can consider the user to be in a cycling state.

[0097] 2) Electronic device 100 identifies that the user is in a riding state based on the user's status data.

[0098] This status data can be used to indicate the user's physical condition, exercise status, etc. For example, the status data may include, but is not limited to, one or more of the following: heart rate, respiratory rate, body temperature, location, range of motion, frequency of motion, posture of motion, etc.

[0099] Since the user's heart rate, respiratory rate, body temperature, location, and other status data may differ when the user is riding versus when the user is not riding, the electronic device 100 can determine whether the user is riding by identifying whether the collected status data matches the status data of the riding state.

[0100] It is important to note that this status data can be data collected by electronic device 100, data collected and sent to electronic device 100 by other devices, or data collected jointly by electronic device 100 and other devices. For example, if electronic device 100 is a watch and the user is also wearing a ring that can detect the user's heart rate, then electronic device 100 can acquire the heart rate data collected by the ring.

[0101] It is understood that the embodiments of this application do not limit the source of the status data.

[0102] For example, when a user is cycling, the user's status data can be used to indicate one or more of the following: the user is not at rest, the user's heart rate is greater than a threshold (e.g., a first threshold), the user is not in an underwater environment, the user's upper limbs are not performing periodic movements, the user's upper limb movement state is consistent with the upper limb movement state under cycling, and the user's movement speed is consistent with the movement speed under cycling.

[0103] Specifically, this application provides a method for identifying a user's riding status based on user status data, which can be found in subsequent articles. Figure 9A and Figure 9B The relevant descriptions will not be elaborated here.

[0104] In some implementations, if the electronic device 100 identifies that the user is in a cycling state based on the user's status data, the electronic device 100 can output a prompt message after identifying that the user is in a cycling state. The prompt message can be used to indicate that the electronic device 100 has identified that the user is in a cycling state.

[0105] For example, Figure 5 The user interface 20 displayed by the electronic device 100 provided in this application embodiment after recognizing that the user is in a riding state.

[0106] like Figure 5 As shown, the user interface 20 may include a prompt message 201, which can be used to instruct the electronic device 100 to recognize that the user is in a cycling state. For example, the prompt message 201 could be something like, "You have entered outdoor cycling mode. Real-time monitoring of your cycling status has begun..."

[0107] Understandably, the electronic device 100 can also combine user operations and user status data to identify whether the user is in a cycling state. If the user's operation and status data both indicate that the user is in a cycling state, then the user is confirmed to be in a cycling state. This is because after a user initiates a cycling activity, there may be a preparation phase of several minutes before entering the cycling state. Therefore, combining the user's status data can comprehensively determine whether the user is in a cycling state, allowing for more accurate identification of the time when the user enters the cycling state. Alternatively, while the user's status data may identify that the user is in a cycling state, there may be false identifications, or the user may not need the electronic device 100 to assist in cycling, such as not needing the electronic device 100 to remind the user to grip the handlebars when they are not. In this case, combining the user's operation can also comprehensively determine whether the user is in a cycling state. In this way, even if the user is in a cycling state, the electronic device 100 can treat the current state as a non-cycling state based on the user's operation, avoiding the electronic device 100 assisting the user's cycling activity during the ride, such as reminding the user to grip the handlebars when they are not.

[0108] In one example, if the electronic device 100 first uses status data and then identifies whether the user is in a cycling state based on the user's operation, the electronic device 100 can output a prompt message (such as the fifth prompt message) to prompt the user to confirm whether they are currently in a cycling state.

[0109] For example, Figure 6The user interface 20 displayed by the electronic device 100 provided in this application embodiment after recognizing that the user is in a riding state using state data.

[0110] like Figure 6 As shown, the user interface 20 may include: a prompt message 202, a confirmation option 203, and a cancellation option 204. Wherein:

[0111] The prompt message 202 can be used to prompt the user to confirm whether they are currently riding. For example, the prompt message 202 can be "Please confirm whether you are currently riding?".

[0112] Confirmation option 203 can be used to trigger confirmation that the user is in a riding state. If the electronic device 100 detects the user operation on confirmation option 203, the electronic device 100 determines that the user is in a riding state.

[0113] Cancel option 203 can be used to trigger a rejection confirmation that the user is in a riding state. If the electronic device 100 detects a user action on cancel option 204, the electronic device 100 can determine that the user is in a non-riding state.

[0114] For example, the user operation of the electronic device 100 on the confirmation option 203 can take many forms besides touch operation on the display screen or physical operation on the button. For instance, the user operation can be touching the user's body (arm or cheek, etc.) with the electronic device 100, a voice command, a specified body movement (such as vigorous arm shaking, clapping, wrist rotation, etc.), or a specified gesture (such as pinching two fingers together), etc. It is evident that these operation forms do not require the user to directly use their fingers or look at the display screen of the electronic device 100, minimizing the user's distraction from processing the interaction during cycling and improving user safety.

[0115] Alternatively, if no user operation is detected within a specified waiting period, the electronic device 100 may assume that the user is in a cycling state. In this way, the electronic device 100 does not need to detect user operation to complete the recognition of the cycling state. This also avoids distracting the user from processing the interaction event during cycling, thus improving the user's safety during cycling.

[0116] In other words, when the electronic device 100 outputs a prompt message to ask the user to confirm whether they are currently in a riding state, the electronic device 100 can determine that the user is in a riding state if it detects a user operation (e.g., the first operation) or if it does not receive a user operation within a specified time period (e.g., the fourth time period).

[0117] It is understood that, similarly, the user operations mentioned in other places in the embodiments of this application can also exist in the above-mentioned multiple operation forms or be handled by default triggering related events after waiting for a preset time, so as to avoid distracting the user from handling the interactive events on the electronic device 100. You can refer to the following accordingly.

[0118] In some implementations, after the electronic device 100 recognizes that the user is in a cycling state, the electronic device 100 can start detecting relevant data during the user's cycling process, such as detecting the user's cycling speed, heart rate, cycling distance, cycling time, etc.

[0119] In addition, if the electronic device 100 detects that the user is in a cycling state, the electronic device 100 can display a specified user interface, which can be used to indicate that the user is currently in a cycling state. For example, the user interface can be used to display information such as the user's heart rate, cycling speed, cycling distance, cycling time, etc. during the cycling process.

[0120] S102. Electronic device 100 identifies whether the user is holding the handle.

[0121] For example, electronic device 100 can identify whether a user is gripping the handle by sensing signals, which may include: inertial measurement unit (IMU) signals, and / or, photoplethysmography (PPG) signals.

[0122] The IMU signal can be acquired through the IMU, and the PPG signal can be acquired through the PPG module.

[0123] An IMU is a device that measures an object's three-axis attitude angles (or angular rates) and / or acceleration. Typically, an IMU contains three single-axis accelerometers and three single-axis gyroscopes. The accelerometers detect the object's acceleration in three-dimensional space, while the gyroscopes detect the object's angular velocity in three-dimensional space.

[0124] In the embodiments of this application, the IMU signal may include: an acceleration signal acquired by an accelerometer, and / or an angular velocity signal acquired by a gyroscope.

[0125] If the electronic device 100 is a device worn on the user's upper limb, such as a watch, the vibration of the handlebars during riding will not be transmitted to the user's hand when the user is not holding the handlebars. Therefore, the watch will not detect the vibration of the handlebars during riding. Conversely, when the user holds the handlebars, the vibration of the handlebars during riding will be transmitted to the user's hand. Therefore, the watch will detect the vibration transmitted to the user's hand by the handlebars during riding. This makes the fluctuation amplitude of the IMU signal detected by the watch larger when holding the handlebars compared to when not holding them.

[0126] In other words, the electronic device 100 can identify whether the user is holding the handle based on the fluctuation amplitude of the IMU signal waveform. If the fluctuation amplitude of the waveform is small, the probability that the user is not holding the handle is low; if the fluctuation amplitude of the waveform is large, the probability that the user is holding the handle is high.

[0127] For example, if the electronic device 100 identifies whether a user is gripping the handlebars based on IMU signals, the electronic device 100 can identify whether the user is gripping the handlebars by inputting the IMU signals into a cycling classification model (e.g., a first cycling classification model). This cycling classification model can be used to identify whether a user is gripping the handlebars, and it can be trained based on the IMU signals of testers who are known to be gripping the handlebars during cycling.

[0128] In addition, PPG is a technology that uses optical sensors to sense changes in the concentration of hemoglobin flowing inside blood vessels on the human body's surface, thereby obtaining the human pulse. Since muscle relaxation and contraction affect blood flow in blood vessels—for example, when muscles contract, they compress blood vessels, reducing blood flow—this is reflected in the collected PPG signal. Therefore, muscle contraction and relaxation can be identified through PPG signals.

[0129] If the electronic device 100 is a device worn on the user's upper limb, such as a watch, since the hand muscles are usually in a contracted state when the user grips the handle and usually in a relaxed state when the user does not grip the handle, the user can identify whether the user is gripping the handle by recognizing the muscle contraction and relaxation through the PPG signal.

[0130] For example, if the electronic device 100 identifies whether a user is gripping the handlebars based on the PPG signal, the electronic device 100 can also identify whether a user is gripping the handlebars by inputting the PPG signal into a cycling classification model (e.g., a second cycling classification model). This cycling classification model can be used to identify whether a user is gripping the handlebars, and it can be trained based on the PPG signals of testers known to be gripping the handlebars during cycling.

[0131] For example, the electronic device 100 can also combine IMU signals and PPG signals to identify whether the user is gripping the handlebars. Compared to using IMU signals or PPG signals alone, combining IMU signals and PPG signals to identify whether the user is gripping the handlebars can improve the accuracy of the identification. For example, the electronic device 100 can also input IMU signals and PPG signals into a cycling classification model (e.g., a third cycling classification model) to identify whether the user is gripping the handlebars. This cycling classification model can be trained based on the IMU signals and PPG signals of testers known to be gripping the handlebars during cycling.

[0132] In summary, the electronic device 100 can identify whether a user is gripping the handlebars by inputting sensor signals into a cycling classification model. This cycling classification model can be trained based on sensor signals from testers who are known to be gripping the handlebars during cycling. This sensor information may include: IMU signals, and / or, PPG signals.

[0133] If the electronic device 100 detects that the user is not holding the handle, the electronic device 100 can execute step S103.

[0134] In some implementations, when the electronic device 100 detects that the user is not holding the handle, it can specifically indicate which hand the user is not holding. This is because if the electronic device 100 is a watch worn on the user's wrist, the electronic device 100 can identify which hand it is worn on. For example, the electronic device 100 can identify whether the watch is worn on the left or right wrist by the user's hand movement trajectory and direction. Therefore, when the electronic device 100 detects that the user is not holding the handle, it can specifically indicate whether the user is holding the left or right hand.

[0135] In addition, the electronic device 100 can also identify whether a user's hand is gripping the handlebars when the user is not wearing the electronic device 100. This is because the user's balance when gripping the handlebars with one hand on the left, one hand on the right, or neither hand is gripping the handlebars will differ. This will cause the movement trajectory and posture of the user's hand wearing the electronic device 100 during riding to be different. Therefore, the electronic device 100 can also identify whether a user's hand is gripping the handlebars when the user is not wearing the electronic device 100 by the movement of the hand gripping the handlebars with one hand on the left, one hand on the right, or neither hand is gripping the handlebars.

[0136] S103. Electronic device 100 outputs a first prompt message, which is used to prompt the user to grip the handle.

[0137] The electronic device 100 can output the first prompt information through one or more methods, such as vibration, voice, or display screen. This application embodiment does not limit the method by which the electronic device outputs the first prompt information. It should be understood that for prompt information mentioned elsewhere in this application embodiment, the output of the prompt information may also include one or more methods such as vibration, voice, or display screen, which will not be elaborated further hereafter.

[0138] For example, Figure 7 The user interface 30 displayed by the electronic device 100 provided in this application embodiment when it is detected that the user is not holding the handle.

[0139] like Figure 7As shown, the user interface 30 may include a prompt message 301, which can be used to prompt the user to grip the handlebars in a timely manner. For example, the prompt message 301 may be "It has been detected that you are not currently gripping the handlebars, please grip them in time."

[0140] In other words, if the electronic device 100 detects that the user is not holding the handlebars, the electronic device 100 can promptly output a prompt message to remind the user to hold the handlebars, ensuring the user's safety while riding the bicycle.

[0141] In some implementations, if the electronic device 100 can identify whether the user is not holding the handle when it detects that the user is not holding the handle, it can also identify whether the user is holding the handle with their left hand, right hand, or both hands. In this case, the first prompt information can be specifically used to prompt the user to hold the handle with their left hand, right hand, or both hands.

[0142] In some implementations, the electronic device 100 may output a first prompt message when it detects that the user is not holding the handlebars and when it detects that a first condition is met. The first condition may include one or more of the following: the duration for which the user is not holding the handlebars exceeds a preset duration (e.g., a first duration), the riding route is bumpy, the riding route has complex road conditions, or the riding speed is greater than a threshold (e.g., a second threshold).

[0143] The cycling route can refer to the route the user is currently cycling on, or it can refer to the route the user will be cycling on at a specified distance ahead. A bumpy cycling route can refer to an uneven road surface, and complex road conditions can include, but are not limited to, situations with complex traffic, complex terrain, and a large number of pedestrians.

[0144] In other words, in addition to detecting that the user is not holding the handlebars, the electronic device 100 will only output the first prompt information if a first condition is met. For example, if the first condition is that the duration of the user not holding the handlebars exceeds a preset duration, the electronic device 100 may not remind the user to hold the handlebars if it detects that the user is not holding the handlebars. However, if the duration of the user not holding the handlebars is too long, the electronic device 100 will remind the user to hold the handlebars. For another example, if the first condition is that the road ahead is bumpy, the electronic device 100 will only remind the user to hold the handlebars if it detects that the user is not holding the handlebars and the road ahead is bumpy. For yet another example, if the first condition is that the riding speed is greater than a threshold, the electronic device 100 will remind the user to hold the handlebars if it detects that the user is not holding the handlebars and the user is riding too fast.

[0145] This reduces the frequency of the electronic device 100 outputting the first prompt message, while also ensuring that the electronic device 100 can promptly remind the user to grip the handlebars when the user is at high risk of riding, thus minimizing the occurrence of dangerous accidents.

[0146] For example, Figure 8The electronic device 100 provided in this application embodiment displays a user interface 40 when it detects that the user is not holding the handle and a first condition is met.

[0147] in, Figure 8 In example (a), the first condition is that the road ahead is bumpy. Figure 8 As shown in (a), the user interface 40 may include a prompt message 401, which may be "The road ahead is bumpy, please hold the handle firmly". Figure 8 (b) takes the first condition of cycling speed being greater than a threshold as an example, such as... Figure 8 As shown in (b), the user interface 40 may include a prompt message 402, which may be: "The current riding speed is too fast, please grip the handlebars tightly".

[0148] In some implementations, the electronic device 100 can continuously identify whether the user is holding the handle. If it is detected that the user is not holding the handle, the electronic device 100 can output the first prompt message again after a preset time interval (e.g., a second time interval) to remind the user to hold the handle.

[0149] For example, the preset duration can be a duration preset by the electronic device 100, or a duration set by the user, etc.

[0150] In one possible implementation, the preset duration can be a duration determined based on the user's cycling speed. The faster the user's cycling speed, the shorter the preset duration; the slower the user's cycling speed, the longer the preset duration. For example, if the cycling speed is a first speed, the preset duration can be a first value; if the cycling speed is a second speed, the preset duration can be a second value, wherein the first speed is greater than the second speed, and the first value is less than the second value.

[0151] In this way, the electronic device 100 can shorten the interval between prompting the user to grip the handlebars when the riding speed is high, and extend the interval between prompting the user to grip the handlebars when the riding speed is low.

[0152] Additionally, if the electronic device 100 detects the user's grip in step S102, the electronic device 100 can output a prompt message (e.g., a second prompt message), which can be used to indicate the grip method detected by the electronic device 100. In other words, if the electronic device 100 detects the user's grip, it can display the detected grip method to the user so that the user understands the grip method they are using while riding.

[0153] For details regarding the electronic device 100 outputting prompt information when it detects a user's grip, please refer to the following sections. Figure 10 The details will not be elaborated here.

[0154] Furthermore, in addition to identifying whether the user is gripping the handlebars through the cycling classification model mentioned above, the electronic device 100 can also identify whether the user has changed the grip state by comparing whether the sensor signals collected at different times have changed. The change in grip state is used to identify whether the user is currently gripping the handlebars. The sensor signals include: IMU signal and / or PPG signal.

[0155] Understandably, this method of identifying whether a user is gripping the handle by comparing sensor signals requires knowledge of whether the user has gripped the handle in the past. By comparing the previously collected sensor signals with the currently collected sensor signals, the user can deduce whether the user is currently gripping the handle based on whether the grip state has changed.

[0156] For example, if electronic device 100 uses historically acquired first sensor signals to identify that the user is not gripping the handlebars, and then if electronic device 100 acquires a second sensor signal, when using the second sensor signal to identify whether the user is gripping the handlebars, electronic device 100 can compare the first and second sensor signals to determine whether the user's grip state has changed. If the user's grip state has changed, it is determined that the user is gripping the handlebars; if the user's grip state has not changed, it is determined that the user is not gripping the handlebars. In this way, it is possible to quickly identify whether the user is gripping the handlebars without inputting the second sensor signal into the cycling classification model.

[0157] The electronic device 100 identifies whether the user's grip state has changed by comparing sensor signals. Specifically, the electronic device 100 compares whether the features of the sensor signals are the same or whether the difference is less than a threshold (e.g., a third threshold). If the features are the same or the difference is less than the threshold, the user's grip state has not changed. If the features are different or the difference is greater than the threshold, the user's grip state has changed.

[0158] For example, the feature may include one or more of the following: half-wave ratio, variance, peak value, trough value, Euclidean distance of the eigenvalue, etc.

[0159] Taking the first and second sensing signals mentioned above as examples, if the characteristics of the first sensing signal are different from those of the second sensing signal or the difference is greater than a threshold, it is determined that the user is holding the handle. If the characteristics of the first sensing signal are the same as those of the second sensing signal or the difference is less than a threshold, it is determined that the user is not holding the handle.

[0160] Furthermore, if by comparing the first sensor signal and the second sensor signal, it is detected that the user's grip state has changed to a user grip, then the electronic device 100 can identify the user's grip method based on the second sensor signal and output a prompt message to indicate the grip method.

[0161] In other words, if the electronic device 100 identifies that the user is currently riding with the handlebars by comparing the sensor signals, the electronic device 100 can further identify the specific handlebar grip method used by the user during the ride by collecting the sensor signals and display it to the user so that the user can understand the handlebar grip method used when riding.

[0162] As can be seen, compared to directly inputting the second sensor signal into the cycling classification model to identify whether the user is gripping the handlebars, the first sensor signal and the second sensor signal are compared to identify whether the user has changed the gripping method. If the user has not changed the gripping method, the electronic device 100 does not need to go through the cycling classification model for identification, which can reduce the power consumption of the electronic device 100.

[0163] As can be seen from steps S101-S103, the electronic device 100 can identify whether the user is holding the handlebars during the user's ride, and promptly remind the user to hold the handlebars when the user is not holding them, so as to ensure the user's safe riding as much as possible.

[0164] Figure 9A This is a schematic diagram of the modules involved in identifying whether a user is riding a bicycle in the electronic device 100 provided in this application embodiment.

[0165] like Figure 9A As shown, the electronic device 100 may include: a status recognition module and a riding recognition module. Wherein:

[0166] The status recognition module can be used to identify whether the user's status matches that of a rider. See the relevant description in subsequent step S201 for details.

[0167] The cycling recognition module can be used to identify whether a user is cycling. Specifically, the cycling recognition module may include: a periodic motion detection module, a coarse cycling recognition module, and a speed detection module. The periodic motion detection module can be used to identify whether the user's upper limbs are performing periodic movements; details about this module can be found in the subsequent step S202. The coarse cycling recognition module can be used to identify whether the user's upper limb movement state is consistent with that of cycling; details about this module can be found in the subsequent step S203. The speed detection module can be used to identify whether the user's movement speed is consistent with that of cycling; details about this module can be found in the subsequent step S204.

[0168] from Figure 9AAs can be seen, the electronic device 100 can use the user's status data, after identification by multiple modules, to ultimately determine whether the user is in a cycling state or not, thus achieving the identification of whether the user is in a cycling state based on the user's status data. In this way, the electronic device 100 can combine multiple modules to identify whether the user is in a cycling state from multiple aspects, improving the accuracy of cycling state identification.

[0169] The following is a more detailed description. Figure 9A The diagram shows the methods and processes involved in identifying whether a user is riding a bicycle.

[0170] Figure 9B This is a schematic flowchart of a method for identifying a user's riding status provided in an embodiment of this application.

[0171] S201. Electronic device 100 identifies whether the user's state matches that of a rider.

[0172] In particular, identifying whether a user's state matches that of someone riding a bicycle can be done from one or more of the following aspects:

[0173] 1) Identify whether the user is stationary

[0174] Since users should be in a non-stationary state when cycling, if the user is detected to be stationary, it can be assumed that the user is not cycling. If the user is detected to be not stationary, it can be assumed that the user may be cycling. Therefore, by identifying whether the user is stationary, it can be determined whether the user's state is consistent with the state of cycling.

[0175] For example, electronic device 100 can identify whether a user is stationary by using state data collected by sensors. For instance, electronic device 100 can use acceleration information collected by an accelerometer and angular velocity information collected by a gyroscope to identify whether a user is stationary.

[0176] It is understood that the electronic device 100 can also identify whether the user is stationary through other means, and this application embodiment does not limit this.

[0177] 2) Identify whether the user's heart rate is greater than a threshold (e.g., the first threshold).

[0178] If a user is cycling, their heart rate will be higher due to the exercise. Therefore, the user's state can be identified as being in a cycling state by recognizing whether their heart rate is greater than a threshold.

[0179] For example, the threshold can be a value preset in the electronic device 100 by the developer, or it can be a value determined by the electronic device 100 based on the user's heart rate when in cycling history. This application embodiment does not limit the source of the threshold.

[0180] For example, electronic device 100 can measure a user's heart rate by acquiring PPG signals from a PPG module.

[0181] 3) Identify whether the user is in an underwater environment

[0182] The user being in an underwater environment can refer to a scenario where the user comes into contact with water, such as when the user is swimming, washing hands, or doing other similar activities.

[0183] Since users typically don't come into contact with water while cycling, detecting a user in an underwater environment usually indicates they are not cycling, while detecting a user not in an underwater environment suggests they may be cycling. Therefore, identifying whether a user is in an underwater environment can help determine if their state aligns with that of a cycling user.

[0184] For example, due to the difference between underwater temperature and air temperature, electronic device 100 can identify whether the user is in an underwater environment by using the ambient temperature collected by a temperature sensor.

[0185] The electronic device 100 can determine that the user's state is consistent with the state under cycling when one or more of the following conditions are met: the user is not stationary, the user's heart rate is greater than a threshold, or the user is not in an underwater environment.

[0186] It is understandable that, in addition to the three aspects mentioned above, the electronic device 100 can also identify whether the user's state is consistent with the state under cycling, and this application embodiment does not limit this.

[0187] If the user's state matches the state of riding, the electronic device 100 executes step S202; otherwise, the electronic device 100 executes step S206, that is, determines that the user is in a non-riding state.

[0188] It should be noted that in step S101, the user's state matching the cycling state means that the user is likely to be cycling, not that the user is definitely cycling. After determining that the user's state matches the cycling state, the electronic device 100 can further combine the cycling identification in subsequent steps S202-S204 to accurately identify whether the user is cycling. If the electronic device 100 determines that the user's state does not match the cycling state, it can be considered that the user is unlikely to be cycling, or the probability of being cycling is low. Therefore, there is no need to perform the cycling identification in subsequent steps S202-S205. This can reduce the computational load of the electronic device 100 and reduce the power consumption of the electronic device 100.

[0189] S202. Electronic device 100 determines whether the user's upper limbs are performing periodic movements.

[0190] Since users' hands are usually on the handlebars during cycling, even if their hands are not on the handlebars, there is no need for periodic upper limb movements like walking or running. Therefore, the electronic device 100 can identify whether the user's upper limbs are making periodic movements to indirectly reflect the likelihood that the user is currently engaged in cycling.

[0191] For example, the electronic device 100 can identify whether a user's upper limb is performing periodic movements by acquiring the IMU signal of the upper limb. Specifically, the electronic device 100 can calculate the time interval between two adjacent peaks in the IMU signal. If the difference between these time intervals is small, it can be considered that the user's upper limb is performing periodic movements; otherwise, it can be considered that the user's upper limb is not performing periodic movements.

[0192] It is understood that the electronic device 100 can also identify whether the user's upper limbs are performing periodic movements in other ways, and this application embodiment does not limit this.

[0193] If the user's upper limbs are not performing periodic movements, the electronic device 100 executes step S203; otherwise, the electronic device 100 executes step S206, that is, it is determined that the user is in a non-cycling state.

[0194] In other words, if the user's upper limbs are not in periodic motion, it indicates that the user is likely in a cycling state. Therefore, the electronic device 100 can continue to perform the cycling recognition in subsequent steps S203-S204 to accurately identify whether the user is in a cycling state. However, if the user's upper limbs are in periodic motion, it indicates that the user may be walking or running, and it can be considered that the user is unlikely to be in a cycling state or that the possibility of being in a cycling state is low. Therefore, there is no need to perform the cycling recognition in subsequent steps S203-S204. This can reduce the computational load of the electronic device 100 and reduce the power consumption of the electronic device 100.

[0195] Understandably, the electronic device 100 can also determine whether other limbs of the user are undergoing periodic movements, such as the lower limbs. In this case, if the user's lower limbs are undergoing periodic movements, the user may be in a cycling state, and the electronic device 100 can continue to execute the cycling recognition steps S203-S204 to accurately identify whether the user is in a cycling state. If the user's lower limbs are not undergoing periodic movements, it can be considered that the user is unlikely to be in a cycling state, or the probability of being in a cycling state is low, thus determining that the user is not in a cycling state. For example, similar to determining whether the upper limbs are undergoing periodic movements, the electronic device 100 can identify whether the user's lower limbs are undergoing periodic movements by acquiring the IMU signals transmitted from the lower limbs. For example, if the electronic device 100 is worn on the user's foot, the electronic device 100 can collect the IMU signals transmitted from the lower limbs. If the user, in addition to wearing the electronic device 100, also wears other devices on their foot that can collect IMU signals, the electronic device 100 can acquire the IMU signals of the lower limbs through the devices worn on the user's foot.

[0196] S203. Electronic device 100 identifies whether the user's upper limb movement state is consistent with the upper limb movement state under cycling.

[0197] For example, the electronic device 100 can use upper limb sensor signals to identify whether the user's upper limb movement state is consistent with that of cycling. The sensor signals may include: IMU signals and / or PPG signals.

[0198] Specifically, the electronic device 100 can input sensor signals into a cycling self-recognition model to identify whether the user's upper limb movement state is consistent with the upper limb movement state under cycling conditions. For example, the cycling self-recognition model can output a confidence score, which indicates the degree to which the user's upper limb movement state matches the upper limb movement state under cycling conditions. For instance, if the score output by the cycling self-recognition model is greater than a threshold, the user's upper limb movement state can be considered consistent with the upper limb movement state under cycling conditions; otherwise, the user's upper limb movement state can be considered inconsistent with the upper limb movement state under cycling conditions.

[0199] This cycling self-identification model can be used to identify whether a user's upper limb movement state is consistent with that of cycling. Specifically, if the sensor signal is an IMU signal, the cycling self-identification model can be trained using IMU signals of the upper limbs collected when the user is cycling and when not cycling. If the sensor signal is a PPG signal, the cycling self-identification model can be trained using PPG signals of the upper limbs collected when the user is cycling and when not cycling. If the sensor signal includes both IMU and PPG signals, the cycling self-identification model can be trained using both IMU and PPG signals of the upper limbs collected when the user is cycling and when not cycling.

[0200] It is understood that, in addition to using a model, the electronic device 100 can also identify whether the user's hand movements are consistent with hand movements during cycling in other ways, and this application embodiment does not limit this.

[0201] If the user's upper limb movement state matches that of cycling, the electronic device 100 can execute step S204; otherwise, the electronic device 100 executes step S206, that is, determines that the user is in a non-cycling state.

[0202] In other words, if the user's upper limb movement state matches that of cycling, the user is likely in a cycling state. Therefore, the electronic device 100 can continue to perform the cycling recognition step S204 to accurately identify whether the user is in a cycling state. However, if the user's upper limb movement state does not match that of cycling, it can be considered that the user is unlikely to be in a cycling state, or the probability of being in a cycling state is low. Therefore, there is no need to perform the cycling recognition step S204. This reduces the computational load of the electronic device 100 and lowers its power consumption.

[0203] It is important to note that if the electronic device 100 can acquire motion data from other parts of the user's body, it can also identify whether the motion state of those other parts matches the motion state during cycling. For example, if the electronic device 100 is worn on the user's leg, it can collect the user's lower limb status data and use this data to identify whether the user's lower limb motion state matches the lower limb motion state during cycling. If the user wears other devices on their leg that can collect status data in addition to the electronic device 100, the electronic device 100 can collect the lower limb status data through those devices and then use this data to identify whether the user's lower limb motion state matches the lower limb motion state during cycling.

[0204] S204. Electronic device 100 identifies whether the user's movement speed is consistent with the movement speed under cycling conditions.

[0205] Considering that although the user's upper limb movement state is determined to be consistent with the upper limb movement state under cycling after step S203, there are still some scenarios that may be misidentified, such as the scenario of using a fascia gun or the fitness scenario of cycling in place. In these scenarios, the user's upper limb movement state is also consistent with the upper limb movement state under cycling. Therefore, it is also possible to identify whether the user's movement speed is consistent with the movement speed under cycling, thereby improving the accuracy of cycling movement identification and avoiding misidentification of certain special scenarios as cycling movements.

[0206] For example, the electronic device 100 can obtain the user's location information through the Global Positioning System (GPS) and determine whether the user's movement speed is consistent with the speed required for cycling based on the user's location information. For instance, if the user's movement speed is within a preset range, it is determined that the user's movement speed is consistent with the speed required for cycling; otherwise, it is determined that the user's movement speed is inconsistent with the speed required for cycling.

[0207] If the user's movement speed matches the movement speed under cycling conditions, the electronic device 100 executes step S205; otherwise, the electronic device 100 executes step S206, that is, it is determined that the user is in a non-cycling state.

[0208] In other words, if the user's movement speed is determined to be the same as that of a cyclist, then the user is determined to be in a cycling state; otherwise, the user is determined to be in a non-cycling state.

[0209] S205. Electronic device 100 determines that the user is in a riding state.

[0210] S206. Electronic device 100 determines that the user is not riding.

[0211] As can be seen from steps S201-S206, the electronic device 100 can identify whether the user is riding by making multiple judgments. If one of the judgments is not met, the electronic device 100 will skip the judgment step, reducing the amount of computation for the electronic device 100.

[0212] It should be noted that the embodiments of this application do not limit the execution order of the above steps S201-S204. For example, step S204 can be placed before step S203. In this way, the electronic device 100 can first identify whether the user's movement speed is consistent with the movement speed under cycling conditions, and then identify whether the user's hand movements are consistent with the hand movements under cycling conditions. For another example, the electronic device 100 can execute steps S201 and S202 simultaneously. In this way, the electronic device 100 can execute subsequent steps only if it identifies that the user's state is consistent with the state under cycling conditions and that the user is performing periodic movements. Otherwise, the electronic device 100 can consider that the user is not in a cycling state. In addition, any one or more of the above steps S201-S204 can be optional steps. For example, the electronic device 100 can omit step S201 and perform cycling identification through steps S202-S204 when identifying whether the user is in a cycling state. Furthermore, other related judgment steps for identifying whether the user is in a cycling state can be added to the above steps S201-S206. The embodiments of this application do not limit this.

[0213] Figure 10 This is a flowchart illustrating another cycling management method provided in an embodiment of this application.

[0214] S301. Electronic device 100 recognizes that the user is riding.

[0215] For example, the electronic device 100 can be a device worn on a user's body, such as the upper limb.

[0216] For details regarding step S301, please refer to the description of step S101 above, which will not be repeated here.

[0217] S302. Electronic device 100 recognizes the user's grip method.

[0218] For example, the electronic device 100 can identify the user's grip method through sensing signals, which may include: IMU signals, and / or, PPG signals. The IMU signals may include: acceleration signals, and / or, angular velocity signals.

[0219] Because the direction and position of the user's arm are different when the user uses different grip methods, the IMU signal collected by the electronic device 100 is also different under different grip methods, which is reflected in the difference of IMU signal components collected on the three axes respectively.

[0220] In other words, by identifying whether the signal components of the IMU signal in each axis conform to the signal components of the IMU signal in each axis under a certain specified grip method, it can be determined whether the user's grip method is the specified grip method.

[0221] In addition, because users exert force on different parts of their hands when using different grips, the muscles that contract and relax in the user's upper limbs are also different. PPG signals can identify muscle contraction and relaxation, so PPG signals can be used to identify the muscles that contract and relax in the user's upper limbs during cycling.

[0222] In other words, it is possible to determine whether the user's grip is the specified grip by judging whether the upper limb muscles that are contracting and relaxing as identified by the PPG signal match the muscles that are contracting and relaxing under a certain specified grip.

[0223] In addition, to improve the accuracy of recognition, the electronic device 100 can also combine IMU signals and PPG signals to recognize the user's grip style.

[0224] Similar to the description in step S102, the electronic device 100 can identify the user's grip style by inputting sensor signals into a cycling classification model. The cycling classification model can be used to identify the user's grip style and can be trained based on the sensor information of testers with known grip styles during cycling.

[0225] It should be noted that the cycling classification model mentioned in step S302 and the cycling classification model mentioned in step S102 can exist in the following two cases:

[0226] 1) These two models are different models.

[0227] In this case, the model in step S102 is used to identify whether the user is gripping the handlebars, and the model in step S302 is used to identify the user's grip method. That is, in step S102, the electronic device 100 uses a cycling classification model to identify whether the user is gripping the handlebars or not, but it cannot identify the user's grip method when the user is gripping the handlebars. In step S302, the electronic device 100 uses a cycling classification model to identify which grip method the user is using, but it cannot identify whether the user is gripping the handlebars.

[0228] In a specific application, the electronic device 100 can first use the cycling classification model mentioned in step S102 to identify whether the user is holding the handlebars. If the user is holding the handlebars, the electronic device 100 can then use the cycling classification model mentioned in step S302 to identify the user's grip method.

[0229] 2) These two models are the same model.

[0230] In this case, the model mentioned in steps S102 and S302 is the same model, and this model can be used to identify whether the user is holding the handlebars, and to identify the user's grip method when the user is holding the handlebars. This cycling classification model can be trained based on the sensor signals when the tester is riding without holding the handlebars, and the sensor signals when riding with various grip methods.

[0231] S303. Electronic device 100 outputs a second prompt message, which is used to instruct the user on how to hold the handle.

[0232] If the user's grip method is identified, the electronic device 100 can output a second prompt message to show the user the currently used grip method so that the user understands the grip method used during riding.

[0233] In some implementations, the electronic device 100 may display not only the user's grip method but also other information about the user during cycling, allowing the user to gain a comprehensive understanding of their cycling activity. For example, this information may include, but is not limited to, one or more of the following: cycling speed, cycling distance, heart rate, cycling time, respiratory rate, body temperature, blood pressure, etc.

[0234] For example, Figure 11 The user interface 50 displayed by the electronic device 100 provided in this application embodiment after recognizing the user's grip method.

[0235] like Figure 11 As shown, the user interface 50 may include: position information 501, speed information 502, distance information 503, heart rate information 504, and time information 505.

[0236] Specifically, the grip position information 501 can be used to display the grip method recognized by the electronic device 100, such as horizontal grip, top grip, and bottom grip; the speed information 502 can be used to display the user's riding speed calculated by the electronic device 100; the distance information 503 can be used to display the user's riding distance calculated by the electronic device 100; the heart rate information 504 can be used to display the user's heart rate detected by the electronic device 100; and the time information 505 can be used to display the user's riding time recorded by the electronic device 100. For example, see... Figure 11 The position information 501 can be displayed as "handlebar position", the speed information 502 can be displayed as "1.72km / h", the distance information 503 can be displayed as "6.23km", the heart rate information 504 can be displayed as "121bpm", and the time information 505 can be displayed as "00:34:12".

[0237] Furthermore, during the user's riding process, the electronic device 100 can continuously identify the user's grip method. After the user changes the grip method, the electronic device 100 can update the grip method indicated in the second prompt message so that the user can know the grip method they have switched to in a timely manner.

[0238] When the electronic device 100 re-identifies the user's grip method, the following two situations may occur:

[0239] 1) Electronic device 100 can continue to use the cycling classification model mentioned in step S302 to identify the user's grip style.

[0240] 2) Electronic device 100 can identify whether the user has changed their grip by comparing whether the sensor signals collected at different times have changed, and then identify the user's current grip by the change in grip.

[0241] For example, the electronic device 100 can identify whether the user has changed the grip by comparing whether the characteristics of the sensor signals are the same or whether the difference is less than a threshold. For example, if the characteristics of the sensor signal collected in the first time are the same or the difference is less than the threshold with those of the sensor signal collected in the second time, it is determined that the user has not changed the grip.

[0242] For details regarding how the electronic device 100 uses the characteristics of sensor signals to identify whether the user has changed their grip, please refer to the relevant description in step S103 above, which describes how the electronic device 100 uses the characteristics of sensor signals to identify whether the user has changed their grip. It will not be repeated here.

[0243] Furthermore, in case 2), if it is detected that the user has changed the grip method, the electronic device 100 can use the cycling classification model mentioned in step S302 to identify the user's grip method. If it is detected that the user's grip method has not changed, the electronic device 100 does not need to use the cycling split model mentioned in step S302 to identify the user's grip method. This can reduce the computational load of the electronic device 100 and save the power consumption of the electronic device 100.

[0244] It should be noted that when the electronic device 100 compares whether the sensor signals collected at different time points have changed, if the sensor signals have changed, it is possible that the user has changed the grip state, such as switching from the user gripping the handle to not gripping it. Therefore, the electronic device 100 can also identify whether the user is currently gripping the handle, and then identify the user's grip method. Alternatively, if the electronic device 100 can simultaneously identify whether the user is gripping the handle and the user's grip method, the electronic device 100 can identify whether the grip method has changed or the grip state has changed.

[0245] In some implementations, the content related to the electronic device 100 displaying the user's grip method mentioned in steps S301-S303 can be incorporated into steps S101-S103.

[0246] Specifically, in step S102, if the electronic device 100 recognizes the user's grip, the electronic device 100 can output a second prompt message to display the user's grip method recognized by the electronic device 100.

[0247] The user's grip method can be determined by the electronic device 100 when identifying whether the user is gripping the handle in step S102, or it can be determined by the electronic device 100 after identifying the user's grip in step S102.

[0248] For example, if the cycling classification model mentioned in steps S102 and S302 is the same model, the user's grip method can be identified by the electronic device 100 when identifying whether the user is gripping the handlebars in step S102. If the cycling classification models mentioned in steps S102 and S302 are different models, the user's grip method can be identified by the electronic device 100 after identifying the user's grip through the cycling classification model mentioned in step S102, and then identified by the cycling classification model mentioned in step S302.

[0249] Since users typically hold the handlebars for extended periods while riding, the vibrations from the bicycle are transmitted to the user's hands, causing the upper limbs to be in a state of constant vibration. This prolonged vibration can easily lead to upper limb injuries. Therefore, promptly reminding users to change their grip style helps ensure safe riding.

[0250] Based on this, this application provides a cycling management method that can assess the upper limb vibration of a user during cycling and output prompt information in a timely manner based on the upper limb vibration, prompting the user to change the grip method so that the user's hand can relax slightly during the grip change, or the force-bearing parts of the user's upper limb can be changed by changing the grip method, thereby reducing the user's upper limb injury.

[0251] Figure 12 This is a flowchart illustrating another cycling management method provided in an embodiment of this application.

[0252] S401. Electronic device 100 recognizes that the user is riding.

[0253] S402. Electronic device 100 identifies whether the user is gripping the handle.

[0254] If the electronic device 100 recognizes the user's grip, the electronic device 100 can execute step S403.

[0255] For details regarding steps S401-S402, please refer to the description of steps S101-S102 above, which will not be repeated here.

[0256] S403. Electronic device 100 calculates the user's vibration index, which describes the amplitude of upper limb vibration during cycling.

[0257] If the user's grip is detected, the electronic device 100 can calculate the user's vibration index and use this vibration index to assess the risk of potential injury to the user's upper limbs.

[0258] For example, the vibration index can be calculated using IMU signals. For instance, the vibration index may include, but is not limited to, one or more of the following: hand-transmitted vibration exposure, variance of the IMU signal, and frequency of the IMU signal.

[0259] Among them, hand-transmitted vibration exposure is an important indicator for assessing the degree of hand-transmitted vibration exposure.

[0260] For example, the exposure to hand-transmitted vibration can be calculated using the following formula 1:

[0261]

[0262] In Formula 1, T represents time, aw(t) represents the IMU signal, and aw.rms represents the hand-transmitted vibration exposure.

[0263] It is understandable that the electronic device 100 can also calculate the user's vibration index in other ways. For example, the electronic device 100 can calculate the vibration index by analyzing the road surface smoothness of the route the user is riding. This is because if the road surface is relatively smooth, the amplitude of vehicle vibration during riding may be smaller, and consequently, the amplitude of vibration transmitted to the user's upper limbs will also be smaller. If the road surface is relatively rough, the amplitude of vehicle vibration during riding may be larger, and consequently, the amplitude of vibration transmitted to the user's upper limbs will also be larger. Therefore, in addition to collecting the user's IMU signal and using the IMU signal to calculate the vibration index, the electronic device 100 can also acquire the terrain of the route the user is riding, analyze the road surface smoothness based on the terrain, and then use the road surface smoothness of the route the user is riding to calculate the vibration index. This application embodiment does not limit the method of calculating the vibration index.

[0264] S404. Electronic device 100 determines whether the vibration index is greater than a threshold, and / or whether the duration of the vibration index being greater than the threshold is greater than a preset duration.

[0265] If the vibration index is greater than a threshold (e.g., the fourth threshold), and / or the duration of the vibration index being greater than the threshold is greater than a preset duration (e.g., the third duration), then the risk of injury to the user's upper limbs is relatively high. In this case, the electronic device 100 can execute step S405, that is, output a prompt message to remind the user to change the grip method. Otherwise, the electronic device 100 can continue to identify the user's grip situation and continue to calculate the user's vibration index under the user's grip situation, so that the electronic device 100 can promptly remind the user to change the grip method when the risk of injury to the user's upper limbs is relatively high.

[0266] In some implementations, in addition to determining whether the vibration index is greater than a threshold and / or whether the duration of the vibration index being greater than the threshold is greater than a preset duration, the electronic device 100 can also identify whether the duration for which the user maintains the same grip is greater than a preset duration (e.g., a fourth duration). In this way, in addition to assessing the risk of upper limb injury by using the vibration index, the risk of upper limb injury can also be assessed by combining the duration for which the user maintains the same grip, thereby improving the accuracy of the risk assessment of upper limb injury.

[0267] For example, the electronic device 100 can first determine whether the vibration index is greater than a threshold, and / or whether the duration of the vibration index being greater than the threshold is greater than a preset duration, and then determine whether the duration for which the user maintains the same grip is greater than the preset duration. Specifically, the electronic device 100 can determine whether the duration for which the user maintains the same grip is greater than the preset duration if it determines that the vibration index is greater than the threshold, and / or the duration of the vibration index being greater than the threshold is greater than the preset duration. If the duration for which the user maintains the same grip is greater than the preset duration, the electronic device 100 can execute step S405.

[0268] For example, the electronic device 100 may first determine whether the duration for which the user maintains the same grip is greater than a preset duration, and then determine whether the vibration index is greater than a threshold, and / or whether the duration for which the vibration index is greater than the threshold is greater than the preset duration. Specifically, if the electronic device 100 determines that the duration for which the user maintains the same grip is greater than the preset duration, it may then determine whether the vibration index is greater than the threshold, and / or whether the duration for which the vibration index is greater than the threshold is greater than the preset duration. If the vibration index is greater than the threshold, and / or the duration for which the vibration index is greater than the threshold is greater than the preset duration, the electronic device 100 may execute step S405.

[0269] Alternatively, the electronic device 100 may simultaneously determine the vibration index and the grip method. That is, while determining whether the vibration index is greater than a threshold and / or whether the duration of the vibration index being greater than the threshold is greater than a preset duration, it may also determine whether the duration of the user maintaining the same grip method is greater than a preset duration. This application embodiment does not impose any limitations on this.

[0270] Specifically, the electronic device 100 determines that the duration for which the user maintains the same grip style exceeds a preset duration by recognizing the user's grip style and recording the duration of the same grip style. For details regarding the electronic device 100's recognition of the user's grip style, please refer to the relevant content of step S302 above, which will not be repeated here.

[0271] S405. Electronic device 100 outputs a third prompt message, which is used to prompt the user to change the grip method.

[0272] For example, the third prompt message can exist in the following two situations:

[0273] 1) This third prompt message is used to prompt the user to change the grip method, but not to prompt the user to change to which grip method.

[0274] In this situation, after receiving the prompt, the user can decide which grip type to switch to based on their own preference.

[0275] For example, Figure 13 The user interface 60 displayed by the electronic device 100 provided in this application embodiment when reminding the user to change the grip method.

[0276] like Figure 13 As shown, the user interface 60 may include: a prompt message 601, which may be "Please change the grip method to avoid hand injury".

[0277] 2) This third prompt message can be used to remind the user to switch to the specified grip method.

[0278] In other words, this third prompt also indicates the recommended grip method (e.g., the third grip method).

[0279] In this situation, the electronic device 100 can not only prompt the user to change the grip method, but also provide suggestions on the grip method to change to, so as to avoid the user blindly changing the grip method and reduce the difficulty of the user riding.

[0280] For example, the specified grip method can be different from the grip method currently used by the user. That is, the electronic device 100 can first identify the grip method currently used by the user, and when the electronic device 100 outputs the third prompt information, it can recommend a grip method different from the user's current grip method so that the user can change the grip method.

[0281] For example, the grip method can be a grip method suitable for the road section determined by the electronic device 100 based on the road conditions of the cycling section ahead, or it can be a grip method that the electronic device 100 recognizes as commonly used or preferred by the user, etc. The present application embodiment does not limit the method of determining the specified grip method.

[0282] For details regarding how the electronic device 100 determines the appropriate grip method based on the road conditions ahead, please refer to the subsequent sections. Figure 14 The description will not be elaborated here.

[0283] In some implementations, the content of the electronic device 100 reminding the user to change the grip method based on the user's vibration index mentioned in steps S401-S405 can be incorporated into steps S101-S103.

[0284] Specifically, in step S102, if the electronic device 100 detects the user's grip, the electronic device 100 can execute steps S403-S405, that is, calculate the user's vibration index and remind the user to change the grip method based on the vibration index.

[0285] Since different grip styles have their applicable scenarios and road sections, in order to reduce the difficulty for users to choose the grip style when riding, this application provides a riding management method that can intelligently recommend the appropriate grip style for the upcoming riding section based on the road conditions ahead, helping novice riders quickly adapt to the grip style to be used on different road sections and reducing the difficulty of riding.

[0286] Figure 14 This is a flowchart illustrating another cycling management method provided in an embodiment of this application.

[0287] S501. Electronic device 100 recognizes that the user is riding.

[0288] For a detailed description of step S501, please refer to the relevant content of step S101 above, which will not be repeated here.

[0289] S502. Electronic device 100 obtains the road conditions of the cycling section ahead.

[0290] The road conditions may include terrain, traffic conditions, road surface conditions, and road facilities.

[0291] For example, the electronic device 100 can obtain surrounding map information through a navigation application, thereby determining the road conditions of the cycling segment ahead based on the map information, or it can determine the road conditions of the cycling segment ahead based on historical cycling data on the same cycling segment.

[0292] It is understood that the electronic device 100 can also obtain the road conditions of the cycling section ahead through other means, and this application embodiment does not limit this.

[0293] For example, the ahead cycling section can refer to a cycling section of preset length. For instance, the preset length can be 100 meters.

[0294] The preset length can be a length set by the electronic device 100 or a length set by the user. For example, the preset length can be a length determined by the electronic device 100 based on the riding speed; for instance, the faster the user's riding speed, the longer the preset length, and the slower the user's riding speed, the shorter the preset length. This application embodiment does not limit the preset length.

[0295] S503. Electronic device 100 outputs a fourth prompt message, which is used to indicate to the user the appropriate grip method for the cycling section.

[0296] For example, if the cycling route ahead is a steep uphill section or an urban traffic section, the grip method indicated by the fourth prompt message can be the upper grip position; if the cycling route ahead is a high-speed downhill section or a flat sprint section, the grip method indicated by the fourth prompt message can be the lower grip position; if the cycling route ahead is a long uphill section, the grip method indicated by the fourth prompt message can be the horizontal grip position.

[0297] For example, Figures 15A-15C The user interface 70 displayed when recommending a grip method for the electronic device 100 provided in this application embodiment.

[0298] like Figure 15A As shown, the user interface 70 may include: a prompt message 701, which may be "There is a steep uphill ahead, it is recommended to use the upper position".

[0299] like Figure 15B As shown, the user interface 70 may include: a prompt message 702, which may be "There is a high-speed downhill ahead, it is recommended to use the lower position".

[0300] like Figure 15C As shown, the user interface 70 may include: a prompt message 703, which may be "A long, gentle uphill slope lies ahead; it is recommended to use the handlebars".

[0301] In some implementations, the content related to the electronic device 100 recommending the grip method based on road conditions mentioned in steps S501-S503 can be incorporated into steps S101-S103.

[0302] For example, the first prompt information output by the electronic device 100 in step S103, in addition to prompting the user to grip the handlebars, can also be used to indicate the recommended grip method. This grip method can be a grip method determined by the electronic device 100 based on the road conditions of the upcoming cycling segment, or a grip method that the electronic device 100 identifies as commonly used or preferred by the user. Specifically, if the grip method is a grip method determined by the electronic device 100 based on the road conditions of the upcoming cycling segment, the electronic device 100 can, after detecting that the user is not gripping the handlebars, obtain the road conditions of the aforementioned segment, and then output the prompt information to remind the user to grip the handlebars and to recommend the grip method for the upcoming segment. In this way, during the user's cycling process, not only can the user's cycling safety be ensured, but the user can also avoid blindly using different grip methods, reducing the difficulty of cycling.

[0303] In some implementations, the content of electronic device 100 recommending grip method based on road conditions mentioned in steps S501-S503 can also be incorporated into steps S401-S405.

[0304] For example, the third prompt information output by the electronic device 100 in step S405 can be used to prompt the user to change the grip to a specified grip, wherein the specified grip can be determined by the electronic device 100 based on the road conditions of the cycling section ahead. In this way, the user can not only avoid hand injuries during cycling, but also avoid blindly using the grip, and adopt a grip suitable for the current cycling conditions, thus reducing the difficulty of cycling.

[0305] Similarly, steps S101-S103, S301-S303, S401-S405, and S501-S503 can all be combined with each other. For example, the content related to the electronic device 100 displaying the user's grip method mentioned in steps S301-S303 can be combined with steps S501-S503. In this case, after step S501, if the electronic device 100 recognizes that the user is in a cycling state, in addition to obtaining the road conditions of the cycling section ahead and outputting the grip method used in that cycling section, the electronic device 100 can also recognize the grip method currently used by the user and output the grip method currently used by the user. For example, the content mentioned in steps S401-S405 regarding the electronic device 100 reminding the user to change the grip method based on the user's vibration index can be combined with steps S301-S303. In this case, in step S302, in addition to recognizing the user's grip method, the electronic device 100 can also recognize the user's vibration index in the grip state. Thus, when the electronic device 100 outputs the grip method currently used by the user, it can also output a prompt message reminding the user to change the grip method.

[0306] In some implementations, after the user finishes riding, the electronic device 100 can also output a sports report for the riding activity. This sports report can be used to summarize the user's riding activity and provide relevant suggestions for riding.

[0307] This sports report may be used to display one or more of the following:

[0308] 1) Rest duration

[0309] The rest duration refers to the amount of time a user needs to rest between the end of this exercise and the start of their next cycling session.

[0310] For example, the electronic device 100 can calculate the cumulative vibration index of the current cycling activity. This cumulative vibration index can be the sum of vibration indices calculated by the electronic device 100 during the user's cycling activity. This cumulative vibration index can be used to reflect the risk of hand injury to the user during the cycling activity. The electronic device 100 can determine the required rest period after the user finishes the cycling activity based on this cumulative vibration index.

[0311] The higher the cumulative vibration index, the greater the risk of hand injury to the user, and the longer the user needs to rest. Conversely, the lower the cumulative vibration index, the lower the risk of hand injury to the user, and the shorter the user needs to rest.

[0312] In this way, the electronic device 100 can provide scientific exercise guidance based on the user's exercise intensity, thus preventing the user from injuring their body due to strenuous exercise.

[0313] For example, Figure 16 The user interface 80 displayed by the electronic device 100 provided in this application embodiment after the cycling exercise ends.

[0314] like Figure 16 As shown, the user interface 80 may include: a prompt message 801, which may be "The cumulative vibration index of this ride is high. It is recommended that the next ride be started 2 hours later".

[0315] 2) Duration of various grip styles during this ride

[0316] For example, the electronic device 100 can count the duration of various grip styles used by the user during the cycling exercise and display it in the exercise report after the ride ends.

[0317] For example, Figure 17 The user interface 90 displayed by the electronic device 100 provided in this application embodiment after the cycling exercise ends.

[0318] like Figure 17 As shown, the user interface 90 can display various grip styles used in this cycling event, as well as the duration of each grip style. For example, the duration of the horizontal grip is "00:15:08", the duration of the top grip is "00:30:12", and the duration of the bottom grip is "00:18:45".

[0319] 3) Motion score

[0320] For example, the electronic device 100 can score the cycling activity after the user finishes the ride and display the score in the activity report.

[0321] The sports score can be used to assess the safety and risks of the ride, or it can be used to assess the skill and expertise of the user during the ride.

[0322] For example, the electronic device 100 can determine the exercise score based on various behaviors of the user during cycling. For instance, if the user rides too fast without gripping the handlebars, this behavior can constitute a deduction; conversely, if the user rides too slowly without gripping the handlebars, this behavior can constitute a bonus. Similarly, if the road ahead is bumpy or has complex conditions and the user is not gripping the handlebars, switching from no grip to gripping the handlebars when still some distance away can constitute a bonus; conversely, switching from no grip to gripping the handlebars only when closer to the road can constitute a deduction. Furthermore, if the user does not ride using the recommended grip method, this behavior can constitute a deduction; conversely, if the user rides using the recommended grip method, this behavior can constitute a bonus.

[0323] In this way, users can visualize their performance in this ride through the exercise score, which helps to provide positive feedback to users and improve their riding safety and professionalism.

[0324] It is understood that the electronic device 100 may also display other content in the exercise report, such as exercise route, exercise duration, etc., and this application embodiment does not limit this.

[0325] In some implementations, the electronic device 100 can also compare relevant data collected and measured during the current ride with those collected during historical rides to provide personalized suggestions and guidance for the user during the current ride.

[0326] For example, electronic device 100 can compare the duration of the same grip method during the current ride with the duration of a previous ride. If the duration of a certain grip method is shorter and the difference is larger than that of a previous ride, the device can prompt the user to use that grip method more often during the next ride to prevent the user from becoming unfamiliar with that grip method.

[0327] Figure 18 This is a schematic diagram of the hardware structure of the electronic device 100 provided in an embodiment of this application.

[0328] Electronic device 100 may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device and / or smart city device. The embodiments of this application do not impose any special restrictions on the specific type of electronic device.

[0329] Preferably, in this embodiment of the application, the electronic device 100 can be a wearable device such as a watch, bracelet, or ring that can be worn on the user's upper limbs.

[0330] Electronic device 100 may include a processor 110, internal memory 121, charging management module 140, power management module 141, battery 142, sensor module 180, and display screen 194, etc. Optionally, electronic device 100 may also include one or more of the following: wireless communication module 160, audio module 170, buttons 190, motor 191, indicator 192, etc. The audio module 170 may include one or more of the following: speaker 170A, receiver 170B, and microphone 170C. The sensor module 180 may include touch sensor 180A, inertial measurement unit 180B, etc.

[0331] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0332] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0333] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0334] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0335] In some implementations, the processor 110 can be used to identify whether the user is riding, and after identifying that the user is riding, to identify whether the user is holding the handlebars. For details regarding identifying whether the user is riding, please refer to the above. Figure 9A , Figure 9B For details regarding identifying whether a user is gripping the handle, please refer to the above description. Figure 3 Description of step S102.

[0336] In some embodiments, the processor 110 may include one or more interfaces. Interfaces 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, and / or a universal serial bus (USB) interface, etc.

[0337] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM). The RAM can be directly read and written by the processor 110 and can be used to store executable programs (e.g., machine instructions) of the operating system or other running programs, as well as user and application data. The NVM can also store executable programs and user and application data, and can be pre-loaded into the RAM for direct read and write operations by the processor 110.

[0338] In some implementations, the internal memory 121 can be used to store relevant data collected by the electronic device 100 during the user's riding, such as IMU signals, PPG signals, etc.

[0339] The charging management module 140 receives 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 140 can receive charging input from a wired charger. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device through the power management module 141.

[0340] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0341] The wireless communication module 160 can provide solutions for wireless communication applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), NearLink, and intrabody communication (IBC). For example, when two electronic devices communicate using an intrabody communication scheme, both electronic devices have at least one electrode that contacts the skin, and the two electronic devices send and receive information through the human body via this skin-contact electrode. The wireless communication module 160 can be one or more devices integrating at least one communication processing module.

[0342] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, and application processor.

[0343] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0344] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0345] In some implementations, the speaker 170A can be used to provide voice prompts when the electronic device 100 outputs a prompt message.

[0346] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0347] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0348] Touch sensor 180A, also known as a "touch device," can be disposed on display screen 194. The touch sensor 180A and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180A is used to detect touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180A may also be disposed on the surface of electronic device 100, in a different location than display screen 194.

[0349] An inertial measurement unit 180B is a device for measuring the three-axis attitude angles and / or acceleration of an object. Exemplarily, the inertial measurement unit 180B may include a gyroscope sensor and / or an accelerometer sensor.

[0350] The gyroscope sensor can be used to determine the motion posture of the electronic device 100. In some embodiments, the gyroscope sensor can determine the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes). In specific applications, the gyroscope sensor can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor detects the angle of the electronic device 100's shake, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor can also be used for navigation, experiencing game scenes, etc. The accelerometer sensor can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device, and can be applied to applications such as landscape / portrait switching and pedometers.

[0351] For example, if the inertial measurement unit 180B includes a gyroscope sensor, the IMU signal acquired by the inertial measurement unit 180B may include an angular velocity signal; if the inertial measurement unit 180B includes an accelerometer sensor, the IMU signal acquired by the inertial measurement unit 180B may include an acceleration signal. In this embodiment, the electronic device 100 can identify whether the user is holding the handle and the way the user is holding the handle based on the IMU signal.

[0352] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0353] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0354] In this embodiment, the motor 191 can generate a vibration alert when the electronic device 100 outputs a prompt message. For example, the motor 191 can generate a vibration when the electronic device 100 detects that the user is not holding the handle, thereby reminding the user.

[0355] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0356] Electronic device 100 can implement display functions through a GPU, display screen 194, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0357] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), or it can be manufactured using organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), minimized LEDs, microLEDs, micro-OLEDs, quantum dot light-emitting diodes (QLEDs), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0358] In some implementations, the display screen 194 can be used to display a cycling-related user interface while the user is riding. For example, the display screen 194 can be used to display a user interface when the electronic device 100 detects that the user is not holding the handlebars. Figure 7 or Figure 8 The user interface shown is described above. For details regarding the user interface displayed by the electronic device 100 during the user's riding, please refer to the above. Figures 4-8 , Figure 11 , Figure 13 , Figures 15A-15C , Figure 16 , Figure 17 It should be understood that the above... Figures 4-8 , Figure 11 , Figure 13 , Figures 15A-15C , Figure 16 , Figure 17 The user interface is exemplified by the electronic device 100, which is a watch. In other embodiments of this application, the electronic device 100 may be other types of devices, and this application does not limit this.

[0359] In some embodiments, the sensor module 180 of the electronic device 100 may further include one or more of the following sensors: a photoelectric sensor, a barometric pressure sensor, a temperature sensor, etc.

[0360] Photoelectric sensors are used to monitor cardiovascular vital signs. A photoelectric sensor consists of at least one pair of light-emitting diodes (LEDs) and a photodetector. The LEDs act as a light source to illuminate the skin, and the photodetector detects the remaining transmitted or reflected light after it has been absorbed by blood and tissue during penetration, converting it into an electrical signal to obtain a PPG signal.

[0361] A barometric pressure sensor can be used to measure air pressure, and in some embodiments, it can also be used to measure water pressure.

[0362] Temperature sensors can be used to measure a user's body temperature or the temperature of the user's environment.

[0363] Figure 19 This is a schematic diagram of the structure of the cycling management device 200 provided in the embodiments of this application.

[0364] like Figure 19 As shown, the cycling management device 200 may include components such as a processor 201, a memory 202, and an output module 203. These components can be connected via a bus 204 or other means. Figure 19 Taking a bus connection as an example, bus 204 is used to realize the connection and communication between processor 201, memory 202, and output module 203. Wherein:

[0365] The processor 201 may include one or more processing units. The processor 201 can be used to provide computing and control capabilities to support the operation of the entire riding management device 200.

[0366] The memory 202 can be used to store various software programs and / or multiple sets of instructions. Specifically, the memory 202 may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.

[0367] The output module 203 can be used to output the data calculated by the processor 201 in the form of voice, image, vibration, etc. For example, the output module 203 may be one or more of devices including but not limited to a display screen, an audio module, a motor, etc.

[0368] In this embodiment, the cycling management device 200 can be the aforementioned electronic device 100. The processor 201 can be used to identify whether the user is cycling, and if the user is identified as cycling, to identify whether the user is holding the handlebars. The memory 202 can be used to store the software or program code required for all or part of the functions of the electronic device 100 in the above method embodiment. The output module 203 can be used to output a first prompt message when it is detected that the user is not holding the handlebars, the first prompt message being used to prompt the user to hold the handlebars.

[0369] It should be noted that, Figure 19 The cycling management device 200 shown is merely one implementation of the embodiments of this application. In actual applications, the cycling management device 200 may include more or fewer components than shown, or combine certain components, or deploy different components. No limitation is made here.

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

[0371] This application also provides an electronic device that may include a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method performed by the electronic device as described in any of the above embodiments.

[0372] This application also provides a chip system including a processing circuit and an interface circuit. The interface circuit is used to receive computer instructions and transmit them to the processing circuit. The processing circuit is used to execute the computer instructions to implement the method performed by the electronic device as in any of the above embodiments.

[0373] This application also provides a chip system including at least one processor for implementing the methods executed by the electronic device in any of the above embodiments. In one possible design, the chip system further includes a memory for storing program instructions and data, the memory being located within or outside the processor.

[0374] A chip system can consist of chips or include chips and other discrete components.

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

[0376] Optionally, the chip system may contain one or more memories. These memories may be integrated with the processor or disposed separately; this application does not limit this. For example, 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 disposed on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and processor.

[0377] For example, the chip system may 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 micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0378] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method executed by the electronic device in any of the above embodiments.

[0379] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the method executed by the electronic device as described in any of the above embodiments.

[0380] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.

[0381] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as 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, all or part of the processes or functions described in this application are generated. 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. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0382] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0383] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.

[0384] The terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0385] In summary, the above description is merely an embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made based on the disclosure of this application should be included within the scope of protection of this application.

Claims

1. A riding management method, characterized by, The method is applied to an electronic device worn on an upper limb of a user, and the method comprises: identifying that the user is in a cycling state; identifying whether the user holds a handlebar; in a case where it is identified that the user does not hold the handlebar, outputting first prompt information, the first prompt information being used to prompt the user to hold the handlebar.

2. The method of claim 1, wherein, identifying that the user is in a cycling state, specifically comprising: identifying that the user is in a cycling state based on a first operation, the first operation being used to start a cycling motion; and / or, identifying that the user is in a cycling state based on state data of the user. When the user is in a cycling state, the state data of the user indicates one or more of the following: the user is in a non-stationary state, the heart rate of the user is greater than a first threshold, the user is not in an underwater environment, the upper limb of the user does not perform a periodic motion, the hand motion state of the user meets a hand motion state in a cycling state, and the motion speed of the user meets a motion speed in a cycling state.

3. The method of claim 2, wherein, Before the first prompt information is outputted, the method further comprises:

4. The method according to any one of claims 1 to 3, characterized in that, identifying that a first condition is met, the first condition comprising one or more of the following: a duration for which the user does not hold the handlebar exceeds a first duration, a cycling section is bumpy, a cycling section has complex road conditions, and a motion speed is greater than a second threshold. After the first prompt information is outputted, the method further comprises:

5. The method according to any one of claims 1 to 4, characterized in that, if it is identified that the user continuously does not hold the handlebar, outputting the first prompt information again after a second duration. The second duration is determined according to a cycling speed of the user, if the cycling speed is a first speed, the second duration is a first value, if the cycling speed is a second speed, the second duration is a second value, the first speed is greater than the second speed, and the first value is less than the second value.

6. The method of claim 5, wherein, Identifying whether the user holds the handlebar specifically comprises:

7. The method according to any one of claims 1 to 6, characterized in that, identifying whether the user holds the handlebar based on a first sensing signal, the first sensing signal comprising: a first IMU signal, and / or a first PPG signal. Identifying whether the user holds the handlebar based on a first sensing signal specifically comprises:

8. The method of claim 7, wherein, inputting the first sensing signal into a first model to determine whether the user holds the handlebar, wherein the first model is trained according to sensing signals of test persons whose handlebar holding states are known during cycling. The method further comprises:

9. The method according to any one of claims 1 to 8, characterized in that, in a case where it is identified that the user holds the handlebar, outputting second prompt information, the second prompt information being used to indicate a first handlebar holding manner of the user identified by the electronic device. The first handlebar holding manner is identified based on a first sensing signal, the first sensing signal comprising: a first IMU signal, and / or a first PPG signal.

10. The method of claim 9, wherein, After the first prompt information is outputted, the method further comprises:

11. The method according to any one of claims 1 to 10, characterized in that, collecting a second sensing signal, the second sensing signal comprising: a second IMU signal, and / or a second PPG signal; comparing first features of the first sensing signal and the second sensing signal; if the first features of the first sensing signal and the second sensing signal are different or a difference therebetween is greater than a third threshold, it is determined that the user holds the handlebar, and if the first features of the first sensing signal and the second sensing signal are the same or a difference therebetween is less than the third threshold, it is determined that the user does not hold the handlebar. The method further comprises:

12. The method of claim 11, wherein, ​ if the first feature of the first sensing signal and the first feature of the second sensing signal are different or the difference is greater than a third threshold, identifying a second holding manner of the user based on the second sensing signal; outputting prompt information for indicating the second holding manner.

13. The method according to any one of claims 1 to 12, characterized in that, The method further comprises: in a case where the holding of the user is identified, determining a first vibration index, the first vibration index describing a vibration amplitude of the upper limb of the user during cycling; in a case where the first vibration index is greater than a fourth threshold, and / or, a duration in which the first vibration index is greater than the fourth threshold is greater than a third duration, outputting third prompt information, the third prompt information being for prompting the user to change the holding manner.

14. The method of claim 13, wherein the third prompt information is for prompting the user to change the holding manner to a third holding manner.

15. The method according to any one of claims 1 to 14, characterized in that, the first prompt information is further for indicating the third holding manner recommended to be used.

16. The method according to claim 14 or 15, characterized in that the third holding manner is determined according to a road condition of a first cycling section in front.

17. The method of claim 16, wherein if the first cycling section is an uphill section or an urban traffic section, the third holding manner is an upper holding position; if the first cycling section is a downhill section or a flat road sprint section, the third holding manner is a lower holding position; if the first cycling section is a long distance uphill section, the third holding manner is a cross holding position.

18. A ride management method characterized by, The method is applied to an electronic device, and the method comprises: identifying whether a user state conforms to a state under cycling; in a case where the user state conforms to the state under cycling, identifying whether a user upper limb is performing a periodic motion; in a case where the user upper limb is not performing the periodic motion, identifying whether a user upper limb motion state conforms to a user upper limb motion state under cycling; in a case where the user upper limb motion state conforms to the user upper limb motion state under cycling, identifying whether a user motion speed conforms to a user motion speed under cycling; in a case where the user motion speed conforms to the user motion speed under cycling, outputting fifth prompt information, the fifth prompt information being for reminding the user whether the user is in a cycling state; in a case where a second operation of the user is detected or no operation of the user is received within a fourth duration, determining that the user is in the cycling state.

19. An electronic device, comprising: comprises: a memory, a processor, and a computer program stored on the memory, the processor executing the computer program to implement the method of any one of claims 1-18.

20. A computer-readable storage medium, characterized in that, a computer program stored thereon, the computer program being executed by a processor to implement the method of any one of claims 1-18.

21. A computer program product, characterised in that, The computer program product comprises a computer program, the computer program being executed by a processor to implement the method of any one of claims 1-18.