Methods, devices, electronic equipment and storage media for switching motion modes
By determining the switching duration threshold and comparing the continuous duration in motion detection, a switching strategy is formulated, which solves the problem of frequent switching when the signal quality is poor or cluttered, and improves the stability of motion mode and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ANHUI HUAMI HEALTH TECH CO LTD
- Filing Date
- 2021-08-13
- Publication Date
- 2026-05-26
AI Technical Summary
When the signal quality is poor or the signal is cluttered, the motion detection results switch frequently, leading to a decrease in motion stability and continuity, and a poor user experience.
By determining the switching duration threshold between the current motion mode and the target motion mode, and formulating a switching strategy based on the continuous duration and the switching duration threshold, the motion mode switching process can be controlled to avoid unnecessary switching.
It improves the stability and continuity of the motion mode, enhancing the user experience.
Smart Images

Figure CN115888035B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of artificial intelligence technology, and in particular to motion mode switching methods, devices, electronic devices, and storage media. Background Technology
[0002] Currently, with the popularization of electronic devices, a series of detection algorithms and functions based on sports and health have been developed in the field of electronic devices. For example, in the field of sports detection, users' sports activities are detected in real time and the detection results are reported to the users.
[0003] However, when the signal quality is poor or the signal is cluttered, the detection results tend to switch frequently. The excessively high switching speed reduces the stability and continuity of motion. Furthermore, if the status is frequently switched and reported to the user, it will cause some inconvenience and reduce the user experience. Summary of the Invention
[0004] This disclosure provides a method, apparatus, electronic device, and storage medium for switching motion modes.
[0005] According to one aspect of this disclosure, a motion mode switching method is provided, comprising: determining a first motion mode of an object, a current motion state, and a first continuous duration of the current motion state; in response to a second motion mode matching the current motion state being different from the first motion mode, determining a first switching duration threshold for switching from the first motion mode to the second motion mode; determining a motion mode switching strategy for the object based on the first continuous duration and the first switching duration threshold; and performing motion mode switching processing on the object according to the motion mode switching strategy.
[0006] In this technical solution, when the second motion mode matched by the current motion state is different from the first motion mode, a first switching duration threshold from the first motion mode to the second motion mode is determined, and a motion mode switching strategy for the object is determined based on the first continuous duration and the first switching duration threshold. The motion mode switching process for the object is performed according to the motion mode switching strategy, which avoids frequent switching of detection results when the signal quality is poor or the signal is cluttered, which leads to a decrease in motion stability and continuity and improves the user experience.
[0007] Optionally, determining the motion mode switching strategy of the object based on the first continuous duration and the first switching duration threshold includes: when the first continuous duration is greater than or equal to the first switching duration threshold, determining the motion mode switching strategy as switching the first motion mode to the second motion mode; when the first continuous duration is less than the first switching duration threshold, determining the motion mode switching strategy as not performing a motion mode switching operation. Thus, by comparing the first continuous duration with the first switching duration threshold, the motion mode switching strategy can be accurately determined based on the comparison result.
[0008] Optionally, the method further includes: in response to the motion mode switching strategy being to switch the first motion mode to the second motion mode, and the object's historical motion mode being the second motion mode, determining a second continuous duration of the first motion mode; determining an update strategy for a second switching duration threshold based on the second continuous duration, wherein the second switching duration threshold is a switching duration threshold from the second motion mode to the first motion mode; and updating the second switching duration threshold according to the update strategy. Therefore, by determining the update strategy for the second switching threshold based on the user's motion habits, and simultaneously updating the second switching duration threshold according to the update strategy, the accuracy of switching the object's motion mode can be improved.
[0009] Optionally, determining the update strategy for the second switching duration threshold based on the second continuous duration includes: multiplying the second continuous duration by a first preset coefficient to obtain a processed second continuous duration; determining the update strategy to update the second switching duration threshold to the processed second continuous duration when the processed second continuous duration is less than a preset total duration threshold and the processed second continuous duration is greater than the second switching duration threshold; and determining the update strategy to not perform an update operation when the processed second continuous duration is greater than or equal to the total duration threshold, or when the processed second continuous duration is less than or equal to the second switching duration threshold. Therefore, by multiplying the second continuous duration by the first preset coefficient to obtain the processed second continuous duration, comparing the processed second continuous duration with the preset total duration threshold, and accurately determining the update strategy for the second switching duration threshold based on the comparison result, the update strategy for the second switching duration threshold can be determined.
[0010] Optionally, the method further includes: determining the motion pattern monitoring results of the object, wherein the motion pattern monitoring results include: each motion pattern of the object arranged in chronological order, and the continuous duration of each motion pattern; and reporting the motion pattern monitoring results to the user. Thus, by reporting the motion pattern monitoring results to the user, the user can obtain the motion pattern monitoring results in a timely manner.
[0011] Optionally, the method further includes: receiving a user's request to change the motion mode monitoring results, wherein the request includes: the first motion mode to be changed in the motion mode monitoring results, and the changed motion mode; in response to the motion modes preceding and following the first motion mode in the motion mode monitoring results being the second motion mode, determining a second continuous duration of the first motion mode, and multiplying the second continuous duration by a second preset coefficient to obtain a processed second continuous duration; updating a second switching duration threshold to the processed second continuous duration, wherein the second switching duration threshold is a switching duration threshold from the second motion mode to the first motion mode. Thus, different motion modes appearing in two identical motion modes can be changed according to the user's change request, and no motion mode switching is performed on different motion modes appearing in subsequent two identical motion modes.
[0012] Optionally, determining the first switching duration threshold from the first motion mode to the second motion mode includes: reading the motion mode switching matrix of the object from a preset storage location, wherein the motion mode switching matrix includes a switching duration threshold between any two motion modes; and selecting the first switching duration threshold from the motion mode switching matrix to the first motion mode to the second motion mode. Therefore, by reading the motion mode switching matrix of the object from a preset storage location, determining the first switching duration threshold from the first motion mode to the second motion mode, and then determining the motion mode switching strategy of the object based on the first continuous duration and the first switching duration threshold, the motion mode switching processing of the object can be performed according to the motion mode switching strategy, which can improve the efficiency of motion mode switching processing and further improve the user experience.
[0013] According to another aspect of this disclosure, a motion mode switching device is provided, comprising: a first determining module, configured to determine a first motion mode of an object, a current motion state, and a first continuous duration of the current motion state; a second determining module, configured to determine a first switching duration threshold from the first motion mode to the second motion mode in response to a second motion mode matching the current motion state being different from the first motion mode; a third determining module, configured to determine a motion mode switching strategy of the object based on the first continuous duration and the first switching duration threshold; and a processing module, configured to perform motion mode switching processing on the object according to the motion mode switching strategy.
[0014] The motion mode switching device of this disclosure determines a first switching duration threshold from the first motion mode to the second motion mode when the second motion mode matched in the current motion state is different from the first motion mode, and determines the motion mode switching strategy of the object based on the first continuous duration and the first switching duration threshold; the motion mode switching process of the object is performed according to the motion mode switching strategy, which avoids frequent switching of detection results when the signal quality is poor or the signal is messy, which leads to a decrease in motion stability and continuity and improves the user experience.
[0015] Optionally, the third determining module is specifically configured to: determine the motion mode switching strategy as switching the first motion mode to the second motion mode when the first continuous duration is greater than or equal to the first switching duration threshold; and determine the motion mode switching strategy as not performing a motion mode switching operation when the first continuous duration is less than the first switching duration threshold. Thus, by comparing the first continuous duration with the first switching duration threshold, the motion mode switching strategy can be accurately determined based on the comparison result.
[0016] Optionally, it further includes: a fourth determining module, configured to determine a second continuous duration of the first movement mode in response to the movement mode switching strategy being to switch the first movement mode to the second movement mode, and the object's historical movement mode being the second movement mode; a fifth determining module, configured to determine an update strategy for a second switching duration threshold based on the second continuous duration, wherein the second switching duration threshold is a switching duration threshold from the second movement mode to the first movement mode; and a first updating module, configured to update the second switching duration threshold according to the update strategy. Thus, an update strategy for the second switching threshold can be determined based on the user's movement habits, and the second switching duration threshold can be updated according to the update strategy, thereby improving the accuracy of switching the object's movement mode.
[0017] Optionally, the fifth determining module is specifically configured to: multiply the second continuous duration by a first preset coefficient to obtain a processed second continuous duration; when the processed second continuous duration is less than a preset total duration threshold and the processed second continuous duration is greater than the second switching duration threshold, determine the update strategy as updating the second switching duration threshold to the processed second continuous duration; when the processed second continuous duration is greater than or equal to the total duration threshold, or when the processed second continuous duration is less than or equal to the second switching duration threshold, determine the update strategy as not performing an update operation. Thus, by multiplying the second continuous duration by the first preset coefficient to obtain a processed second continuous duration, comparing the processed second continuous duration with a preset total duration threshold, and accurately determining the update strategy for the second switching duration threshold based on the comparison result, the update strategy for the second switching duration threshold can be determined.
[0018] Optionally, it further includes: a sixth determining module, used to determine the motion pattern monitoring results of the object, wherein the motion pattern monitoring results include: each motion pattern of the object arranged in chronological order, and the continuous duration of each motion pattern; and a reporting module, used to report the motion pattern monitoring results to the user. Thus, by reporting the motion pattern monitoring results to the user, the user can obtain the motion pattern monitoring results in a timely manner.
[0019] Optionally, it further includes: a receiving module, configured to receive a user's request to change the motion mode monitoring result, wherein the change request includes: the first motion mode to be changed in the motion mode monitoring result, and the changed motion mode; an obtaining module, configured to, in response to the motion mode monitoring result containing both the motion mode preceding and following the first motion mode (both being the second motion mode), determine a second continuous duration of the first motion mode, and multiply the second continuous duration by a second preset coefficient to obtain a processed second continuous duration; and a second updating module, configured to update a second switching duration threshold to the processed second continuous duration, wherein the second switching duration threshold is a switching duration threshold from the second motion mode to the first motion mode. Thus, different motion modes appearing in two identical motion modes can be changed according to the user's change request, and no motion mode switching is performed on different motion modes appearing in subsequent two identical motion modes.
[0020] Optionally, the second determining module is specifically used to: read the motion mode switching matrix of the object from a preset storage location, wherein the motion mode switching matrix includes a switching duration threshold between any two motion modes; and select the first switching duration threshold from the motion mode switching matrix between the first motion mode and the second motion mode. Thus, by reading the motion mode switching matrix of the object from the preset storage location, determining the first switching duration threshold between the first motion mode and the second motion mode, and then determining the motion mode switching strategy of the object based on the first continuous duration and the first switching duration threshold, the motion mode switching processing of the object can be performed according to the motion mode switching strategy, thereby improving the efficiency of motion mode switching processing and further enhancing the user experience.
[0021] According to another aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect of this disclosure.
[0022] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are configured to cause a computer to perform the method described in the first aspect of this disclosure.
[0023] According to another aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the method described in the first aspect of this disclosure.
[0024] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0025] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:
[0026] Figure 1 This is a schematic diagram based on the first embodiment of the present disclosure;
[0027] Figure 2 This is a schematic diagram according to the second embodiment of the present disclosure;
[0028] Figure 3 This is a schematic diagram according to the third embodiment of the present disclosure;
[0029] Figure 4 This is a schematic diagram according to the fourth embodiment of the present disclosure;
[0030] Figure 5 This is a schematic diagram according to the fifth embodiment of the present disclosure;
[0031] Figure 6 This is a schematic diagram of an update strategy for determining a second switching duration threshold according to an embodiment of the present disclosure;
[0032] Figure 7 This is a schematic diagram illustrating the change of motion mode according to a user change request, based on an embodiment of this disclosure;
[0033] Figure 8 This is a schematic diagram according to the sixth embodiment of the present disclosure;
[0034] Figure 9 This is a block diagram of an electronic device used to implement the motion mode switching method of the embodiments of this disclosure. Detailed Implementation
[0035] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0036] Figure 1 This is a schematic diagram based on the first embodiment of this disclosure. It should be noted that the motion mode switching method of this disclosure can be applied to the motion mode switching device of this disclosure, which can be configured in an electronic device. The electronic device can be a mobile terminal, such as a mobile phone, tablet computer, personal digital assistant, smart wearable device, or other hardware device with various operating systems.
[0037] like Figure 1 As shown, the motion mode switching method may include the following steps:
[0038] Step 101: Determine the object's current first motion mode, current motion state, and first continuous duration of the current motion state.
[0039] In this embodiment, the motion mode switching device can detect the motion state within a preset time period and determine the current first motion mode of the object based on the motion state within the preset time period. The motion mode switching device can also detect the motion state at the current moment, determine the current motion state, and time the continuous duration of the current motion state, using the continuous duration of the current motion state as the first continuous duration. It should be noted that the current motion state may include a moving state or a stationary state.
[0040] For example, when a user is cycling and stops for a period of time while passing a traffic light, the current primary motion mode is cycling mode, the current motion state is a stationary state, and the continuous duration of the stationary state is the first continuous duration.
[0041] Step 102: In response to the fact that the second motion mode matched by the current motion state is different from the first motion mode, a first switching duration threshold from the first motion mode to the second motion mode is determined.
[0042] In other words, when the second motion mode matched by the current motion state is different from the first motion mode, a first switching time threshold from the first motion mode to the second motion mode can be determined. For example, the first switching time threshold from the first motion mode to the second motion mode can be preset.
[0043] Step 103: Determine the motion mode switching strategy of the object based on the first continuous duration and the first switching duration threshold.
[0044] In this embodiment of the disclosure, a first continuous duration can be compared with a first switching duration threshold, and a motion mode switching strategy for the object can be determined based on the comparison result. For example, the motion mode switching strategy is to switch from the first motion mode to the second motion mode; or, for another example, the motion mode switching strategy does not perform a motion mode switching operation.
[0045] Step 104: Perform motion mode switching processing on the object according to the motion mode switching strategy.
[0046] Furthermore, after determining the motion mode switching strategy for the object, the motion mode switching process can be performed on the object according to the motion mode switching strategy. For example, if the motion mode switching strategy is to switch from the first motion mode to the second motion mode, the object's current first motion mode can be switched to the second motion mode; or if the motion mode switching strategy does not perform a motion mode switching operation, the object's current first motion mode cannot be switched.
[0047] In summary, when the second motion mode matched by the current motion state is different from the first motion mode, a first switching duration threshold for the transition from the first motion mode to the second motion mode is determined. Based on the first continuous duration and the first switching duration threshold, the motion mode switching strategy for the object is determined. The motion mode switching process for the object is performed according to the motion mode switching strategy, which avoids frequent switching of detection results when the signal quality is poor or the signal is cluttered, thus reducing motion stability and continuity and improving user experience.
[0048] To accurately determine the motion mode switching strategy, such as Figure 2 As shown, Figure 2 This is a schematic diagram based on the second embodiment of the present disclosure. In this embodiment, a first continuous duration can be compared with a first switching duration threshold, and a motion mode switching strategy for the object can be determined based on the comparison result. Figure 2 The illustrated embodiment may include the following steps:
[0049] Step 201: Determine the object's current first motion mode, current motion state, and first continuous duration of the current motion state.
[0050] Step 202: In response to the fact that the second motion mode matched by the current motion state is different from the first motion mode, a first switching duration threshold from the first motion mode to the second motion mode is determined.
[0051] Step 203: When the first continuous duration is greater than or equal to the first switching duration threshold, determine the motion mode switching strategy as switching the first motion mode to the second motion mode.
[0052] For example, if the first exercise mode is cycling mode, the current exercise state is stationary, the first continuous duration of the current exercise state is 120s, the first switching duration threshold is 100s, and the first continuous duration is greater than the first switching duration threshold, then the exercise mode switching strategy can be determined to be to switch the cycling mode to the stationary mode.
[0053] Step 204: When the first continuous duration is less than the first switching duration threshold, determine the motion mode switching strategy as not performing motion mode switching operation.
[0054] For example, if the first exercise mode is cycling mode, the current exercise state is stationary, the first continuous duration of the current exercise state is 20 seconds, the first switching duration threshold is 100 seconds, and the first continuous duration is less than the first switching duration threshold, then the exercise mode switching strategy can be determined to be not to perform an exercise mode switching operation.
[0055] Step 205: Perform motion mode switching processing on the object according to the motion mode switching strategy.
[0056] It should be noted that steps 203 and 204 can be performed selectively. The execution order of this disclosure is only for illustrative purposes. Steps 201-202 and 205 can be implemented in any of the embodiments of this disclosure. This disclosure does not limit the implementation of these steps and will not elaborate further.
[0057] In summary, when the first continuous duration is greater than or equal to the first switching duration threshold, the motion mode switching strategy is determined to switch the first motion mode to the second motion mode; when the first continuous duration is less than the first switching duration threshold, the motion mode switching strategy is determined to not perform the motion mode switching operation. Therefore, the motion mode switching strategy can be accurately determined.
[0058] In order to accurately determine the update strategy for the second switching duration threshold based on the user's movement habits, such as Figure 3 As shown, Figure 3 This is a schematic diagram based on the third embodiment of the present disclosure. In this embodiment, when the motion mode switching strategy is to switch from the first motion mode to the second motion mode, and the object's historical motion mode is the second motion mode, an update strategy for determining the second switching duration threshold is based on the second continuous duration of the first motion mode. Figure 3 The illustrated embodiment may include the following steps:
[0059] Step 301: Determine the object's current first motion mode, current motion state, and first continuous duration of the current motion state.
[0060] Step 302: In response to the fact that the second motion mode matched by the current motion state is different from the first motion mode, a first switching duration threshold from the first motion mode to the second motion mode is determined.
[0061] Step 303: Determine the motion mode switching strategy of the object based on the first continuous duration and the first switching duration threshold.
[0062] Step 304: Perform motion mode switching processing on the object according to the motion mode switching strategy.
[0063] Step 305: In response to the motion mode switching strategy of switching the first motion mode to the second motion mode, and the object's historical motion mode is the second motion mode, determine the second continuous duration of the first motion mode.
[0064] In other words, when the object's motion mode switches from the second motion mode to the first motion mode and then back to the second motion mode, the continuous duration of the motion state corresponding to the first motion mode can be statistically analyzed to determine the second continuous duration of the first motion mode.
[0065] For example, if the second exercise mode is cycling mode and the first exercise mode is stationary mode, and the current exercise mode switches from cycling mode to stationary mode and then back to cycling mode, the continuous duration of the stationary state corresponding to the stationary mode can be statistically analyzed to determine the continuous duration of the stationary mode.
[0066] Step 306: Determine the update strategy for the second switching duration threshold based on the second continuous duration, wherein the second switching duration threshold is the switching duration threshold from the second motion mode to the first motion mode.
[0067] Optionally, the second continuous duration is multiplied by a first preset coefficient to obtain the processed second continuous duration; if the processed second continuous duration is less than a preset total duration threshold and the processed second continuous duration is greater than a second switching duration threshold, the update strategy is determined to update the second switching duration threshold to the processed second continuous duration; if the processed second continuous duration is greater than or equal to the total duration threshold, or if the processed second continuous duration is less than or equal to the second switching duration threshold, the update strategy is determined to not perform an update operation.
[0068] In other words, after determining the second continuous duration of the first motion mode, the second continuous duration of the first motion mode is multiplied by a first preset coefficient to obtain the processed second continuous duration. The processed second continuous duration is compared with a preset total duration threshold and a second switching duration threshold. If the processed second continuous duration is less than the preset total duration threshold and greater than the second switching duration threshold, the update strategy is determined to update the second switching duration threshold to the processed second continuous duration. If the processed second continuous duration is greater than or equal to the total duration threshold, or less than or equal to the second switching duration threshold, the update strategy is determined to not perform an update operation.
[0069] For example, the second exercise mode is cycling mode, the first exercise mode is stationary mode, the second continuous time of the stationary mode is count (e.g., 48s), the preset total duration threshold is 100s, and the first preset coefficient is 1.25. If count * 1.25 (e.g., 60s) is less than 100s, and count * 1.25 is greater than the second switching duration threshold (e.g., 40s), the update strategy is to update the second switching duration threshold to count * 1.25. If count * 1.25 is greater than 100s, or count * 1.25 is less than the second switching duration threshold, the update strategy is to not perform an update operation. It should be noted that the first preset coefficient can be set according to user habits. For example, if a user's stationary time during cycling is usually no more than 60s, and the second continuous duration is less than 60s, the first preset coefficient can be set to a value greater than 1.
[0070] Step 307: Update the second switching duration threshold according to the update strategy.
[0071] As an example, when the update strategy is to update the second switching duration threshold to the processed second consecutive duration, the second switching duration threshold is updated to the processed second consecutive duration. This ensures that if a briefly different motion mode occurs in two identical motion modes of the object, the object's motion mode will not be switched.
[0072] As another example, when the update strategy is to not perform an update operation, the second switching duration threshold is not updated.
[0073] It should be noted that steps 301-304 can be implemented in any of the embodiments of this disclosure. This disclosure does not limit these methods and will not elaborate further.
[0074] In summary, by responding to the motion mode switching strategy of switching from the first motion mode to the second motion mode, and given that the object's historical motion mode is the second motion mode, a second continuous duration of the first motion mode is determined. When the processed second continuous duration is less than a preset total duration threshold, and the processed second continuous duration is greater than a second switching duration threshold, an update strategy is determined to update the second switching duration threshold to the processed second continuous duration, where the second switching duration threshold is the switching duration threshold from the second motion mode to the first motion mode. The second switching duration threshold is then updated according to the update strategy. Therefore, by determining the update strategy for the second switching threshold based on the user's motion habits, and simultaneously updating the second switching duration threshold according to the update strategy, the accuracy of switching the object's motion mode can be improved.
[0075] To improve user experience, such as Figure 4 As shown, Figure 4 This is a schematic diagram based on the fourth embodiment of the present disclosure. In this embodiment, the motion mode can be changed according to a user's change request. Figure 4 The illustrated embodiment may include the following steps:
[0076] Step 401: Determine the object's current first motion mode, current motion state, and first continuous duration of the current motion state.
[0077] Step 402: In response to the fact that the second motion mode matched by the current motion state is different from the first motion mode, a first switching duration threshold from the first motion mode to the second motion mode is determined.
[0078] Step 403: Determine the motion mode switching strategy of the object based on the first continuous duration and the first switching duration threshold.
[0079] Step 404: Perform motion mode switching processing on the object according to the motion mode switching strategy.
[0080] Step 405: Determine the motion pattern monitoring results of the object, wherein the motion pattern monitoring results include: the motion patterns of the object arranged in chronological order, and the continuous duration of each motion pattern.
[0081] In this embodiment of the disclosure, the various motion modes of the object can be arranged in chronological order, and the continuous duration of each motion mode can be recorded. The arrangement result of the various motion modes of the object in chronological order and the continuous duration of each motion mode are used as the motion mode monitoring result of the object. For example, the arrangement result of the various motion modes of the object in chronological order is cycling mode-stationary mode-cycling mode, with corresponding continuous durations of 50s, 20s, and 100s, respectively.
[0082] Step 406: Report the motion mode monitoring results to the user.
[0083] Step 407: Receive a user's request to change the motion mode monitoring results. The request includes: the first motion mode to be changed in the motion mode monitoring results, and the changed motion mode.
[0084] After receiving the motion mode monitoring results, users can modify them. For example, a user can send a modification request to the motion mode switching device. This request includes the first motion mode to be changed in the monitoring results, and the desired new motion mode. For instance, if the motion modes of an object in the monitoring results are arranged chronologically as second motion mode - first motion mode - second motion mode, the user can send a modification request to the motion mode switching device to change the first motion mode in the monitoring results to the second motion mode.
[0085] Step 408: In response to the motion patterns before and after the first motion pattern in the motion pattern monitoring results, both of which are the second motion patterns, determine the second continuous duration of the first motion pattern, and multiply the second continuous duration by the second preset coefficient to obtain the processed second continuous duration.
[0086] In this embodiment of the disclosure, after the first motion mode in the motion mode monitoring result is changed according to the user's change request, if both the motion mode before and after the first motion mode in the motion mode monitoring result are the second motion mode, the second continuous duration of the first motion mode can be determined, and the second continuous duration can be multiplied by a second preset coefficient to obtain the processed second continuous duration. The second preset coefficient is greater than 1.
[0087] Step 409: Update the second switching duration threshold to the processed second continuous duration, wherein the second switching duration threshold is the switching duration threshold from the second motion mode to the first motion mode.
[0088] Furthermore, the second switching duration threshold is updated to the processed second continuous duration, where the second switching duration threshold is the switching duration threshold from the second motion mode to the first motion mode. Therefore, when the first motion mode appears in one of the two second motion modes of the object, the object's motion mode is not switched.
[0089] It should be noted that steps 401-404 can be implemented in any of the embodiments of this disclosure. This disclosure does not limit these methods and will not elaborate further.
[0090] In summary, by determining the motion pattern monitoring results of an object, which include: the object's motion patterns arranged chronologically, and the continuous duration of each motion pattern; reporting the motion pattern monitoring results to the user; receiving the user's request to change the motion pattern monitoring results, where the request includes: the first motion pattern to be changed in the motion pattern monitoring results, and the changed motion pattern; responding to the fact that both the motion patterns preceding and following the first motion pattern in the motion pattern monitoring results are considered second motion patterns, determining the second continuous duration of the first motion pattern, and multiplying the second continuous duration by a second preset coefficient to obtain the processed second continuous duration; updating the second switching duration threshold to the processed second continuous duration, where the second switching duration threshold is the switching duration threshold from the second motion pattern to the first motion pattern. Therefore, based on the user's change request, different motion patterns appearing in two identical motion patterns can be changed, and no motion pattern switching will be performed on different motion patterns appearing in subsequent two identical motion patterns.
[0091] To improve the efficiency of sports mode switching and further enhance the user experience, such as Figure 5 As shown, Figure 5 This is a schematic diagram according to the fifth embodiment of this disclosure. In this embodiment, a switching duration threshold between any two motion modes can be preset, and the switching duration thresholds between any two motion modes can be used to form a motion mode switching matrix. During motion mode switching processing, the switching duration threshold between any two motion modes can be read from the motion mode switching matrix. Figure 5 The illustrated embodiment may include the following steps:
[0092] Step 501: Determine the object's current first motion mode, current motion state, and first continuous duration of the current motion state.
[0093] Step 502: In response to the fact that the second motion mode matched by the current motion state is different from the first motion mode, read the motion mode switching matrix of the object from the preset storage location, wherein the motion mode switching matrix includes a switching duration threshold between any two motion modes.
[0094] In this embodiment of the disclosure, a switching duration threshold between any two motion modes can be preset, and the switching duration thresholds between any two motion modes can be used to form a motion mode switching matrix. The motion mode switching matrix can be stored in a preset storage location. When the second motion mode matched by the current motion state is different from the first motion mode, the motion mode switching matrix of the object can be read from the preset storage location.
[0095] Step 503: Select the first switching duration threshold from the motion mode switching matrix to switch from the first motion mode to the second motion mode.
[0096] Furthermore, a first switching duration threshold for the transition from the first motion mode to the second motion mode can be selected from the motion mode switching matrix.
[0097] Step 504: Determine the motion mode switching strategy of the object based on the first continuous duration and the first switching duration threshold.
[0098] Step 505: Perform motion mode switching processing on the object according to the motion mode switching strategy.
[0099] It should be noted that steps 501 and 504-505 can be implemented in any of the embodiments of this disclosure. This disclosure does not limit these steps and will not elaborate further.
[0100] In summary, in response to the current motion state, the second motion mode matched is different from the first motion mode. The motion mode switching matrix of the object is read from a preset storage location. This motion mode switching matrix includes a switching duration threshold between any two motion modes. A first switching duration threshold for transitioning from the first motion mode to the second motion mode is selected from the motion mode switching matrix. Therefore, by reading the object's motion mode switching matrix from the preset storage location, determining the first switching duration threshold for transitioning from the first motion mode to the second motion mode, and then determining the object's motion mode switching strategy based on the first continuous duration and the first switching duration threshold, the motion mode switching processing of the object can be performed according to the motion mode switching strategy. This improves the efficiency of motion mode switching processing and further enhances the user experience.
[0101] To better illustrate the above embodiments, examples are given below.
[0102] like Figure 6As shown, taking the update strategy of determining the second switching duration threshold based on the second continuous duration of the first motion mode as an example, for instance, the second motion mode is cycling mode, and the first motion mode is stationary mode. The current motion mode switches from cycling mode to stationary mode and then back to cycling mode. The continuous duration of the stationary state corresponding to the stationary mode can be determined, denoted by `count` (the second continuous duration of the first motion mode). The preset total duration threshold is 100s, and the first preset coefficient is 1.25. Next, the motion mode switching matrix of the object is read from the preset storage location, and the switching duration threshold T (the second switching duration threshold) from cycling mode to stationary mode is determined. If `count * 1.25` is less than 100s, and `count * 1.25` is greater than or equal to T, the update strategy is determined to update T (the second switching duration threshold) to `count * 1.25`, and the motion mode switching matrix is updated according to the update strategy. If `count * 1.25` is greater than 100s, or `count * 1.25` is less than T, T is not updated.
[0103] like Figure 7 As shown, Figure 7 This is a schematic diagram illustrating the process of changing a motion mode according to a user's change request, based on an embodiment of this disclosure. First, the switching duration threshold between two motion modes can be determined by reading the motion mode switching matrix. Then, the user's motion modes are sorted according to time order to determine the monitoring results of the user's motion modes. The monitoring results of the motion modes are reported to the user. If the user changes the monitoring results of the motion modes, the switching threshold between the two motion modes in the motion mode switching matrix is changed according to the changed motion modes. If the user does not change the monitoring results of the motion modes, the switching threshold between the two motion modes in the motion mode switching matrix can be changed according to an update strategy.
[0104] The motion mode switching method of this disclosure determines the current first motion mode, current motion state, and first continuous duration of the current motion state of an object; in response to a second motion mode matching the current motion state being different from the first motion mode, a first switching duration threshold for the first motion mode to the second motion mode is determined; a motion mode switching strategy for the object is determined based on the first continuous duration and the first switching duration threshold; and motion mode switching processing is performed on the object according to the motion mode switching strategy. This method, when the second motion mode matching the current motion state is different from the first motion mode, determines the first switching duration threshold for the first motion mode to the second motion mode, and determines the motion mode switching strategy for the object based on the first continuous duration and the first switching duration threshold; and performs motion mode switching processing on the object according to the motion mode switching strategy, avoids frequent switching of detection results when the signal quality is poor or the signal is cluttered, which leads to a decrease in motion stability and continuity, and improves the user experience.
[0105] To achieve the above embodiments, this disclosure proposes a motion mode switching device.
[0106] Figure 8 This is a schematic diagram based on the sixth embodiment of the present disclosure, as shown below. Figure 8 As shown, the motion mode switching device 800 includes: a first determining module 810, a second determining module 820, a third determining module 830, and a processing module 840.
[0107] The first determining module 810 is used to determine the object's current first motion mode, current motion state, and first continuous duration of the current motion state; the second determining module 820 is used to determine a first switching duration threshold from the first motion mode to the second motion mode in response to the current motion state matching a second motion mode that is different from the first motion mode; the third determining module 830 is used to determine the object's motion mode switching strategy based on the first continuous duration and the first switching duration threshold; and the processing module 840 is used to perform motion mode switching processing on the object according to the motion mode switching strategy.
[0108] As one possible implementation of this disclosure, the third determining module 830 is specifically configured to: when the first continuous duration is greater than or equal to the first switching duration threshold, determine the motion mode switching strategy as switching the first motion mode to the second motion mode; and when the first continuous duration is less than the first switching duration threshold, determine the motion mode switching strategy as not performing the motion mode switching operation.
[0109] As one possible implementation of this disclosure, the motion mode switching device 800 further includes: a fourth determining module, a fifth determining module, and a first updating module.
[0110] The fourth determining module is used to determine the second continuous duration of the first motion mode in response to the motion mode switching strategy being to switch the first motion mode to the second motion mode, and the object's historical motion mode being the second motion mode; the fifth determining module is used to determine an update strategy for the second switching duration threshold based on the second continuous duration, wherein the second switching duration threshold is the switching duration threshold from the second motion mode to the first motion mode; and the first updating module is used to update the second switching duration threshold according to the update strategy.
[0111] As one possible implementation of this disclosure, the fifth determining module is specifically configured to: multiply the second continuous duration by a first preset coefficient to obtain the processed second continuous duration; when the processed second continuous duration is less than a preset total duration threshold and the processed second continuous duration is greater than a second switching duration threshold, determine the update strategy as updating the second switching duration threshold to the processed second continuous duration; when the processed second continuous duration is greater than or equal to the total duration threshold, or when the processed second continuous duration is less than or equal to the second switching duration threshold, determine the update strategy as not performing an update operation.
[0112] As one possible implementation of this disclosure, the motion mode switching device 800 further includes: a sixth determining module and a reporting module.
[0113] The sixth determining module is used to determine the motion pattern monitoring results of the object, wherein the motion pattern detection results include: each motion pattern of the object arranged in chronological order, and the continuous duration of each motion pattern; the reporting module is used to report the motion pattern monitoring results to the user.
[0114] As one possible implementation of this disclosure, the motion mode switching device 800 further includes: a receiving module, an acquiring module, and a second updating module.
[0115] The system includes a receiving module for receiving a user's request to change the motion mode monitoring results, wherein the request includes: the first motion mode to be changed in the motion mode monitoring results, and the changed motion mode; an acquisition module for responding to the motion modes preceding and following the first motion mode in the motion mode monitoring results, both of which are second motion modes, determining the second continuous duration of the first motion mode, and multiplying the second continuous duration by a second preset coefficient to obtain the processed second continuous duration; and a second update module for updating the second switching duration threshold to the processed second continuous duration, wherein the second switching duration threshold is the switching duration threshold from the second motion mode to the first motion mode.
[0116] As one possible implementation of this disclosure, the second determining module 820 is specifically used for: reading the motion mode switching matrix of the object from a preset storage location, wherein the motion mode switching matrix includes a switching duration threshold between any two motion modes; and selecting a first switching duration threshold from the motion mode switching matrix to the second motion mode.
[0117] The motion mode switching device of this disclosure determines the current first motion mode, current motion state, and first continuous duration of the current motion state of an object; in response to a second motion mode matching the current motion state being different from the first motion mode, it determines a first switching duration threshold from the first motion mode to the second motion mode; based on the first continuous duration and the first switching duration threshold, it determines a motion mode switching strategy for the object; and performs motion mode switching processing on the object according to the motion mode switching strategy. This device can determine the first switching duration threshold from the first motion mode to the second motion mode when the second motion mode matching the current motion state is different from the first motion mode, and determine the motion mode switching strategy for the object based on the first continuous duration and the first switching duration threshold; and perform motion mode switching processing on the object according to the motion mode switching strategy. This avoids frequent switching of detection results when the signal quality is poor or the signal is cluttered, which leads to a decrease in motion stability and continuity, and improves the user experience.
[0118] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0119] Figure 9 A schematic block diagram of an example electronic device 900 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0120] like Figure 9As shown, the electronic device includes one or more processors 901, a memory 902, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components are interconnected via different buses and can be mounted on a common motherboard or otherwise as required. The processors can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 9 Take the 901 processor as an example.
[0121] The memory 902 is the non-transitory computer-readable storage medium provided in this application. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the motion mode switching method provided in this application. The non-transitory computer-readable storage medium of this application stores computer instructions for causing a computer to perform the motion mode switching method provided in this application.
[0122] Memory 902, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the health management method in the embodiments of this application (e.g., attached...). Figure 8 The first determining module 810, the second determining module 820, the third determining module 830, and the processing module 840 are shown. The processor 901 executes various functional applications and data processing of the server by running non-transient software programs, instructions, and modules stored in the memory 902, thereby implementing the motion mode switching method in the above method embodiment.
[0123] Memory 902 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the use of the electronic device based on model training. Furthermore, memory 902 may include high-speed random access memory and may also include non-transient memory, such as at least one disk storage device, flash memory device, or other non-transient solid-state storage device. In some embodiments, memory 902 may optionally include memory remotely located relative to processor 901, which can be connected to the motion mode switching electronic device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0124] The electronic device for the motion mode switching method may further include an input device 903 and an output device 904. The processor 901, memory 902, input device 903, and output device 904 can be connected via a bus or other means. Figure 9 Taking the example of a connection between China and Israel via a bus.
[0125] Input device 903 can receive input digital or character information, as well as key signal input related to user settings and function control of electronic devices for switching motion modes, such as touch screens, keypads, mice, trackpads, touchpads, joysticks, one or more mouse buttons, trackballs, joysticks, etc. Output device 904 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The display device may include, but is not limited to, liquid crystal displays (LCDs), light-emitting diode (LED) displays, and plasma displays. In some embodiments, the display device may be a touch screen.
[0126] Various implementations of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, application-specific integrated circuits (ASICs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.
[0127] These computational programs (also referred to as programs, software, software applications, or code) include machine instructions for a programmable processor and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms “machine-readable medium” and “computer-readable medium” refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device (PLD)) used to provide machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term “machine-readable signal” refers to any signal used to provide machine instructions and / or data to a programmable processor.
[0128] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0129] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), the Internet, and blockchain networks.
[0130] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can also be servers for distributed systems or servers incorporating blockchain technology.
[0131] It's important to note that artificial intelligence (AI) is the study of enabling computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, and planning). It encompasses both hardware and software technologies. AI hardware technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, and big data processing. AI software technologies primarily include computer vision, speech recognition, natural language processing, machine learning / deep learning, big data processing, and knowledge graph technologies.
[0132] It should be understood that the various forms of processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0133] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A motion mode switching method, characterized by, include: Determine the object's current first motion mode, current motion state, and first continuous duration of the current motion state; In response to the fact that the second motion mode matched by the current motion state is different from the first motion mode, a first switching duration threshold for the first motion mode to the second motion mode is determined; The motion mode switching strategy of the object is determined based on the first continuous duration and the first switching duration threshold. The motion mode switching process is performed on the object according to the motion mode switching strategy described above; The method further includes: In response to the motion mode switching strategy of switching the first motion mode to the second motion mode, and the object's historical motion mode being the second motion mode, a second continuous duration of the first motion mode is determined; the second continuous duration refers to the duration during which the object remains in the first motion mode before the switch. Based on the second continuous duration, an update strategy for the second switching duration threshold is determined, wherein the second switching duration threshold is the switching duration threshold from the second motion mode to the first motion mode; The second switching duration threshold is updated according to the update strategy.
2. The method of claim 1, wherein, The step of determining the motion mode switching strategy of the object based on the first continuous duration and the first switching duration threshold includes: When the first continuous duration is greater than or equal to the first switching duration threshold, the motion mode switching strategy is determined to switch the first motion mode to the second motion mode; When the first continuous duration is less than the first switching duration threshold, the motion mode switching strategy is determined to be not to perform a motion mode switching operation.
3. The method of claim 1, wherein, The step of determining the update strategy for the second handover duration threshold based on the second continuous duration includes: Multiply the second continuous duration by the first preset coefficient to obtain the processed second continuous duration; When the processed second continuous duration is less than a preset total duration threshold and the processed second continuous duration is greater than the second switching duration threshold, the update strategy is determined to be to update the second switching duration threshold to the processed second continuous duration. If the second consecutive duration after processing is greater than or equal to the total duration threshold, or if the second consecutive duration after processing is less than or equal to the second switching duration threshold, the update strategy is determined to be no update operation.
4. The method of claim 1, wherein, Also includes: Determine the motion pattern monitoring results of the object, wherein the motion pattern monitoring results include: each motion pattern of the object arranged in chronological order, and the continuous duration of each motion pattern; The motion pattern monitoring results are reported to the user.
5. The method of claim 4, wherein, Also includes: Receive the user's request to change the motion mode monitoring results, wherein the request includes: the first motion mode to be changed in the motion mode monitoring results, and the changed motion mode; In response to the motion pattern monitoring results, which indicate that both the motion pattern preceding and following the first motion pattern are the second motion pattern, the second continuous duration of the first motion pattern is determined, and the second continuous duration is multiplied by a second preset coefficient to obtain the processed second continuous duration. The second switching duration threshold is updated to the processed second continuous duration, wherein the second switching duration threshold is the switching duration threshold from the second motion mode to the first motion mode.
6. The method of claim 1, wherein, Determining the first switching duration threshold from the first motion mode to the second motion mode includes: The motion mode switching matrix of the object is read from a preset storage location, wherein the motion mode switching matrix includes a switching duration threshold between any two motion modes; Select the first switching duration threshold from the first motion mode to the second motion mode from the motion mode switching matrix.
7. A motion pattern switching device, characterized by comprising: include: The first determining module is used to determine the object's current first motion mode, current motion state, and the first continuous duration of the current motion state; The second determining module is used to determine a first switching duration threshold from the first motion mode to the second motion mode in response to the fact that the second motion mode matched by the current motion state is different from the first motion mode. The third determining module is used to determine the motion mode switching strategy of the object based on the first continuous duration and the first switching duration threshold. The processing module is used to perform motion mode switching processing on the object according to the motion mode switching strategy; The fourth determining module is configured to, in response to the motion mode switching strategy being to switch the first motion mode to the second motion mode, and the object's historical motion mode being the second motion mode, determine a second continuous duration of the first motion mode; the second continuous duration refers to the duration during which the object remains in the first motion mode before the switch. The fifth determining module is used to determine an update strategy for the second switching duration threshold based on the second continuous duration, wherein the second switching duration threshold is the switching duration threshold from the second motion mode to the first motion mode; The first update module is used to update the second switching duration threshold according to the update strategy.
8. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
9. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method as described in any one of claims 1-6.
10. A computer program product comprising a computer program that, when executed by a processor, implements the method as described in any one of claims 1-6.