Prompt method and device, electronic equipment and readable storage medium
By recognizing the user's wrist-raising motion and obtaining relevant information, and setting a duration threshold to output prompts, the problem of insufficient user experience in wearable devices is solved, and the safety and convenience during exercise are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2022-09-23
- Publication Date
- 2026-07-21
AI Technical Summary
Wearable devices have poor user experience, causing users to focus on the device and ignore their surroundings during exercise, which increases potential risks.
By recognizing the user's wrist-raising motion, acquiring acceleration information, head posture, and weather information, setting a target duration threshold, and outputting timely prompts to enhance convenience.
It increases users' attention to external stimuli during exercise, reduces the risk of falls, and enhances the user experience.
Smart Images

Figure CN115525154B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic technology, and specifically relates to a notification method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] Currently, many wearable devices are available on the market. These devices are easy to carry and bring convenience to users. For example, users can wear watches or other devices while running so that the device can record the user's running data and notify the user of incoming calls.
[0003] In the current technology, wearable devices do not provide enough convenience for users and have a poor user experience. Summary of the Invention
[0004] The purpose of this application is to provide a prompting method to address the problem of poor user experience in wearable devices.
[0005] In a first aspect, embodiments of this application provide a prompting method, which includes: when a target user is in motion and a wrist-raising action of the target user is detected, acquiring target information, the target information including at least one of the following: acceleration information of a wearable device worn on the target user's wrist, weather information of the target user's location, and head posture information of the target user when raising their wrist; determining a target duration threshold based on the target information; and outputting target prompting information based on the duration of the wrist-raising action and the target duration threshold.
[0006] Secondly, embodiments of this application provide a prompting device, which includes: an acquisition module, configured to acquire target information when a target user is in motion and a wrist-raising action of the target user is detected, the target information including at least one of the following: acceleration information of a wearable device worn on the target user's wrist, weather information of the target user's location, and head posture information of the target user when raising their wrist; a first determination module, configured to determine a target duration threshold based on the target information; and an output module, configured to output target prompting information based on the duration of the wrist-raising action and the target duration threshold.
[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0011] Thus, in the embodiments of this application, when a target user wears a device on their wrist for exercise, if the target user's wrist-raising action is detected, target information is acquired. The target information includes at least one of the following: acceleration information collected by the wearable device, head posture information of the target user during the wrist-raising action, and weather information of the current location. Furthermore, based on the target information, the exercise status of the current exercise state can be evaluated, such as whether the exercise is intense. Then, based on the evaluation result, an appropriate target duration threshold is set. This target duration threshold is used to evaluate the duration of the target user's continuous wrist-raising action. Therefore, based on the target duration threshold and the duration of the wrist-raising action, appropriate target prompt information is output, enriching the convenience brought to the user by the wearable device and improving the user experience. Attached Figure Description
[0012] Figure 1 This is a flowchart of the prompting method according to an embodiment of this application;
[0013] Figures 2 to 5 This is a schematic diagram illustrating acceleration information according to an embodiment of this application;
[0014] Figure 6 This is a block diagram of a prompting device according to an embodiment of this application;
[0015] Figure 7 This is one of the hardware structure diagrams of the electronic device according to an embodiment of this application;
[0016] Figure 8 This is the second schematic diagram of the hardware structure of the electronic device according to an embodiment of this application. Detailed Implementation
[0017] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0018] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0019] The prompting method provided in this application embodiment can be executed by the prompting device provided in this application embodiment, or by an electronic device integrating the prompting device, wherein the prompting device can be implemented in hardware or software.
[0020] The prompting method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0021] Figure 1 A flowchart of a prompting method according to an embodiment of this application is shown, exemplified by the method being applied to an electronic device, including:
[0022] Step 110: When the target user is in motion and the target user's wrist-raising action is detected, acquire target information, which includes at least one of the following: acceleration information of the wearable device on the target user's wrist, weather information of the target user's location, and head posture information of the target user when raising their wrist.
[0023] Firstly, the acceleration information of the wearable device worn on the target user's wrist is described as follows:
[0024] Optionally, acceleration information collected by the accelerometer in the wearable device can be obtained.
[0025] Acceleration information includes X-axis acceleration information, Y-axis acceleration information, Z-axis acceleration information, and the sum of acceleration information from the three axes.
[0026] The X, Y, and Z axes are established based on the posture of the wearable device.
[0027] Taking a watch as an example, with the plane where the watch face is located as the reference, the Z-axis is perpendicular to the plane, and the direction away from the plane is the positive direction. The X-axis and Y-axis are parallel to the plane, and the positive direction of the X-axis is the direction pointing to the three o'clock position on the watch face, and the positive direction of the Y-axis is the direction pointing to the six o'clock position on the watch face.
[0028] Optionally, the frequency of the acceleration information is 25 Hz.
[0029] Optionally, the acceleration information includes: the acceleration information of the target user during the wrist-raising motion. Further, the acceleration information also includes: the acceleration information of the target user for a period of time prior to the wrist-raising motion.
[0030] Optionally, the purpose of obtaining acceleration information is to assess the speed of the target user's movement in motion based on the acceleration information.
[0031] Secondly, the description of the target user's head posture information when performing a wrist-raising motion is as follows:
[0032] When a user raises their wrist, they can view or operate the device on their wrist. Therefore, depending on the angle of the wrist raise, the target user's head may be raised, lowered, or kept upright so that their eyes can look at the watch face.
[0033] Different head posture information will result in different postures of the wearable device. Different postures of the wearable device will result in different acceleration information. Therefore, the corresponding head posture information can be obtained based on the acceleration information.
[0034] Thirdly, the weather information for the target user's location is described as follows:
[0035] Optionally, weather information includes weather conditions, road surface conditions, etc.
[0036] Optionally, the target user's location is based on location information.
[0037] Step 120: Determine the target duration threshold based on the target information.
[0038] The target information obtained in the previous step is related to the target user's movement.
[0039] For example, target information can reflect the speed of the target user's movement; target information can reflect the road conditions of the target user's movement; target information can reflect the target user's movement posture.
[0040] As can be seen, based on the target information, it is possible to assess the target user's movement status, and then set different target duration thresholds according to different movement statuses.
[0041] The target duration threshold is used as a reference for the time when the target prompt information is output in this application.
[0042] For example, the more intense the exercise, the more attention should be paid to external things, and one should not focus too much on the watch, so that the target prompt information can be output as early as possible.
[0043] Step 130: Output target prompt information based on the duration of the wrist-raising action and the target duration threshold.
[0044] In this step, the duration of the wrist-raising action is the duration during which the target user views or operates the wearable device.
[0045] Therefore, based on the duration of the target user's wrist-raising action, the target duration threshold is used as a judgment condition to output the target prompt information.
[0046] Optionally, a target prompt message may be played via a speaker.
[0047] Optionally, the wearable device in this embodiment can directly play target prompt information. Correspondingly, the electronic device used in this embodiment is a wearable device.
[0048] Optionally, the wearable device in this embodiment can output target prompt information to the electronic device, which will then play it. Correspondingly, the electronic device and the wearable device used in this embodiment are connected via data.
[0049] Thus, in the embodiments of this application, when a target user wears a device on their wrist for exercise, if the target user's wrist-raising action is detected, target information is acquired. The target information includes at least one of the following: acceleration information collected by the wearable device, head posture information of the target user during the wrist-raising action, and weather information of the current location. Furthermore, based on the target information, the exercise status of the current exercise state can be evaluated, such as whether the exercise is intense. Then, based on the evaluation result, an appropriate target duration threshold is set. This target duration threshold is used to evaluate the duration of the target user's continuous wrist-raising action. Therefore, based on the target duration threshold and the duration of the wrist-raising action, appropriate target prompt information is output, enriching the convenience brought to the user by the wearable device and improving the user experience.
[0050] In another embodiment of the prompting method of this application, the target information includes acceleration information of a wearable device worn on the wrist of the target user. Step 120 includes:
[0051] Sub-step A1: When the movement state is running, determine the running energy information of the target user based on the acceleration information.
[0052] Sub-step A2: Determine the target duration threshold based on running energy information;
[0053] Among them, running energy information is negatively correlated with the target duration threshold.
[0054] In this embodiment, running energy information is determined while the target user is running.
[0055] Among them, running energy information refers to kinetic energy. Since the user's weight is a fixed value in the current exercise state, the kinetic energy is only proportional to the square of the running speed. In a unit of time, the speed is proportional to the acceleration. Therefore, the kinetic energy in a unit of time can be considered to be proportional to the square of the acceleration. The acceleration value at a certain moment minus the average value in a unit of time (within the most recent second) and then taking the square can be used to approximate the kinetic energy at the current moment.
[0056] For example, when a user is running, the energy generated in the most recent second can be defined as E, then Formula 1:
[0057] E = XVar + YVar + ZVar
[0058] In Formula 1, XVar, YVar, and ZVar represent the variances of the accelerometer data for the X, Y, and Z axes within the most recent second, respectively. The variance is calculated by subtracting the mean acceleration from the acceleration at each moment within the most recent second, squaring the result, and then taking the arithmetic mean of these squares. In other words, the sum of the variances of the accelerometer data for the X, Y, and Z axes within the most recent second is defined as the energy of the motion within the most recent second.
[0059] In application scenarios, if target users are too focused on the wearable device while running, they may not pay attention to some things in the outside world. The faster they run, the more likely they are to suffer some losses, such as falling, resulting in a poor user experience.
[0060] Therefore, in this embodiment, the running energy information is negatively correlated with the target duration threshold. That is, the larger the value of the running energy information, the faster the running is, and the smaller the target duration threshold, so that the target user can be notified as soon as possible.
[0061] or,
[0062] Sub-step A3: When the movement state is walking, determine the walking cadence information of the target user based on the acceleration information.
[0063] Sub-step A4: Determine the target duration threshold based on walking cadence information.
[0064] Among them, walking cadence information is negatively correlated with the target duration threshold.
[0065] In this embodiment, walking cadence information is determined while the target user is walking.
[0066] When a user raises their wrist to look at their watch (without swinging their arm), the watch face is facing upwards, and the positive Z-axis direction is also facing upwards. One cycle of Z-axis up and down represents one step of walking, meaning that the walking frequency is equal to the frequency of the Z-axis.
[0067] In application scenarios, if target users are too focused on the wearable device while walking, they may not pay attention to some things in the outside world. The faster they walk, the more likely they are to suffer losses such as falling, resulting in a poor user experience.
[0068] Therefore, in this embodiment, the walking cadence information is negatively correlated with the target duration threshold. That is, the larger the value of the walking cadence information, the faster the walking, and the smaller the target duration threshold, so that the target user can be notified as soon as possible.
[0069] In this embodiment, based on different scenarios of running and walking, corresponding motion-related information can be obtained according to acceleration information. Based on the motion-related information, a target duration threshold can be set, thereby adaptively prompting the user according to the actual exercise situation.
[0070] In another embodiment of the prompting method of this application, the method further includes:
[0071] Step B1: Based on the acceleration information within the first time period and the corresponding change information of the acceleration information within the first time period, determine the running or walking state of the target user. Among them, the wrist raising action of the target user is identified within the first time period.
[0072] In this embodiment, when the target user is in motion, it is necessary to further determine whether the target user is running or walking.
[0073] The acceleration information within the first time period includes acceleration information for a period of time before wrist lift and acceleration information for a period of time after wrist lift. The change information is based on the acceleration information corresponding to these two time periods.
[0074] Optionally, the determination method is as follows: first determine whether the person is in a running state (or walking state), and if not, then determine whether the person is in a walking state (or running state).
[0075] Optionally, the step frequency under motion is obtained from the waveform diagram based on the acceleration information, so as to determine the waveform period based on the step frequency.
[0076] For example, by acquiring 25 Hz acceleration in real time and calculating the resultant acceleration, the four axes (X-axis, Y-axis, Z-axis, and resultant acceleration) are fed into four low-pass filters, resulting in sixteen outputs, referred to as the sixteen axes. The number of extreme points (peaks and troughs) is independently calculated for each axis, and the similarity between adjacent peaks and troughs is also calculated. The logarithm of peaks and troughs satisfying the similarity condition is considered the step count for that axis, thus obtaining an independent step frequency result for each axis. The similarity condition can be defined based on the slope of the line connecting the minimum and maximum points of two adjacent step cycles, and the closeness of the x-axis and y-axis increments.
[0077] Optionally, to determine whether someone is running, it is necessary to check whether the acceleration information meets the following five conditions:
[0078] First, it's important to clarify that in a scenario involving a sudden wrist lift during normal arm swing while running, if stage one is the normal arm swing during running and stage two involves lifting the wrist to check the watch and maintaining that wrist position while continuing to run, the main frequency components of the X-axis fluctuation in both stages fall within the range of 0.75 Hz to 2 Hz. This is because the frequency of X-axis fluctuation is half the running cadence. The running cadence is determined by considering the target user's current hand movements, the posture of the three axes, and the frequencies of the three axes. When the user lifts their wrist, the watch face is upward, and the average Z-axis value is around 9.8 (specifically, between approximately 8 and 10.5). At this point, one cycle of vertical fluctuation on the Z-axis corresponds to one step, while one cycle of horizontal fluctuation on the X-axis corresponds to two steps. This is because one step with the left foot and one step with the right foot correspond to one cycle of horizontal movement when lifting the wrist to check the watch. In other words, one cycle of X-axis fluctuation corresponds to one step with each foot, and two cycles of vertical fluctuation on the Z-axis. Therefore, the frequency of X-axis fluctuation is half the running cadence. Based on this, see [link to relevant documentation]. Figure 2 ,
[0079] Condition 1: The mean value of X-axis 201 in stage 1 205 is relatively stable, near "0" (the mean value of X-axis 201 is in the range of greater than "-1.5" and less than "1.5"). The energy of the periodic up and down fluctuation of X-axis 201 in stage 2 206 is significantly reduced compared with stage 1 205.
[0080] Condition 2: In Phase 1, the mean value of Y-axis 202 is less than "-7" because regardless of whether the watch is worn on the left or right wrist, Y-axis 202 is always facing down, and the mean value of Y-axis 202 is usually around "-9.8". In Phase 2, regardless of whether the watch is worn on the left or right wrist, the mean value of Y-axis 202 is always around "0" or slightly greater than "0" to ensure that the watch face faces the target user's eyes.
[0081] Condition 3: The energy of the Y-axis fluctuation at 202 in stage 2 is significantly less than that in stage 1 at 205;
[0082] Condition 4: In Phase 1, the mean value of Z-axis 203 at 205 is less than or equal to "0" or slightly greater than "0", and in Phase 2, the mean value of Z-axis 203 at 206 increases to around "9.8".
[0083] Condition 5: In both Phase 1 205 and Phase 2 206, the frequency of Y-axis 202 and Z-axis 203 is twice the frequency of X-axis 201, because the period of X-axis 201 corresponds to two steps (left and right feet), while one period of Y-axis 202 and Z-axis 203 corresponds to one step.
[0084] Among them, Figure 2 In the waveform 204, the resultant acceleration is represented.
[0085] In summary, if all five conditions are met simultaneously, the target user is considered to be running and making a wrist-raising motion.
[0086] Optionally, to determine whether someone is walking, it is necessary to check whether the acceleration information meets the following four conditions:
[0087] First, it needs to be clarified that in the scenario of a sudden wrist lift during normal arm swing while walking, if stage one is the normal arm swing during walking, and stage two is raising the wrist to look at a watch and maintaining a fixed watch posture while continuing to walk; in stage two, the watch face is oriented upwards along the Z-axis, slightly raised in the positive Y-axis direction, and fluctuates horizontally along the X-axis, with the Y-axis and Z-axis frequencies being twice the X-axis frequency. Based on this, see [reference needed]. Figure 3 ,
[0088] Condition 1: In Phase 1, the mean value of the X-axis 301 is initially stable around "-9.8" (worn on the left wrist) or around "9.8" (worn on the right wrist). Suddenly, the mean value of the X-axis 301 jumps to around "0". If the watch continues to walk with a fixed posture, the mean value of the X-axis 301 will remain stable in Phase 2, 306.
[0089] Condition 2: In Phase 1, the mean value of Y-axis 302 at 305 is initially stable at around "-5" (the same for both wrists). Suddenly, the mean value of Y-axis 302 increases to around "4". If the watch continues to walk in a fixed posture, the mean value of Y-axis 302 in Phase 2 at 306 will remain stable.
[0090] Condition 3: In Phase 1, the mean value of Z-axis 303 at 305 is initially stable around "0" (the same for both hands when wearing the watch). Suddenly, the mean value of Z-axis 303 increases to around "9". If the watch continues to walk in a fixed posture, the mean value of Z-axis 303 in Phase 2 at 306 will remain stable.
[0091] Condition 4: During the process of raising your wrist to look at the watch, the watch maintains a fixed posture and continues to move. The frequency of Y-axis 302 and Z-axis 303 in phase 2 306 is twice the frequency of X-axis 301, because one cycle of Y-axis 302 and Z-axis 303 corresponds to one step, and one cycle of X-axis 301 corresponds to two steps.
[0092] Among them, Figure 3 In the waveform 304, the resultant acceleration is represented.
[0093] In summary, if all four conditions are met simultaneously, the target user is considered to be walking and making a wrist-raising motion.
[0094] Among them, see Figure 4 During the running process, the frequencies of Y-axis 402 and Z-axis 403 are twice the frequency of X-axis 401. X-axis 401, Y-axis 402, Z-axis 403, and the resultant acceleration 404 are shown in the figure.
[0095] See Figure 5 During walking, the frequency of the Y-axis 502 is half of the actual step frequency (one cycle is equivalent to two steps). The X-axis 501, Y-axis 502, Z-axis 503, and resultant acceleration 504 are shown in the figure.
[0096] In another embodiment of the prompting method of this application, the target information includes acceleration information of a wearable device worn on the wrist of the target user, weather information of the target user's location, and head posture information of the target user when performing a wrist-raising action. Step 120 includes:
[0097] Sub-step C1: Determine the total level based on the first level corresponding to the acceleration information, the second level corresponding to the head posture information, and the third level corresponding to the weather information of the target user's location.
[0098] First, when the user raises their wrist (without swinging their arm), the wearable device and the human body remain essentially stationary, meaning the device's acceleration information can reflect the target user's movement. Therefore, three levels can be set based on this acceleration information.
[0099] For example, it can be set to three levels: high, medium, and low.
[0100] Optionally, in conjunction with the foregoing embodiments, the higher the value of the running energy information, the higher the level; similarly, the higher the value of the walking cadence information, the higher the level.
[0101] For example, a step frequency greater than or equal to two steps per second corresponds to a high level; a step frequency greater than one step per second but less than two steps per second corresponds to a medium level; and a step frequency less than or equal to one step per second corresponds to a low level.
[0102] The first level can be any one of the three levels: high, medium, or low.
[0103] Second, based on head posture information, three levels are set.
[0104] For example, it can be set to three levels: high, medium, and low.
[0105] Optionally, the less the head is focused on external things, the higher the level.
[0106] For example, taking a watch as an example, when the target user raises their wrist, the watch face faces the target user. Therefore, as the target user's head posture is different, the watch face faces different directions, and the Z-axis will change its orientation relative to the spatial environment. Within two seconds of the target user raising their wrist to look at their watch, if the average Z-axis value is greater than "7", in a spatial environment with the watch face upward, it indicates that the target user is looking down at their watch and cannot see the road conditions in the distance or nearby at all, corresponding to a high level; if the average Z-axis value is less than "0", in a spatial environment with the watch face downward, it indicates that the target user is looking up at their watch and cannot see the road conditions in the distance or nearby at all, corresponding to a high level; if the average Z-axis value is between "0" and "3", in a spatial environment with the watch face slightly tilted upward, it indicates that the target user is slightly looking up at their watch with their gaze forward. Although their peripheral vision can see the road conditions in the distance, they cannot see the road conditions in front of them completely, and there is a risk of falling due to obstacles or slippery or uneven road surfaces, corresponding to a medium level; if the average Z-axis value is between "3" and "7", in a spatial environment with the watch face significantly tilted upward, it indicates that the target user is slightly looking down at their watch with their gaze forward and downward. Their peripheral vision can see the road conditions in the distance and also see the road conditions in front of them completely, corresponding to a low level.
[0107] The second level is any one of the three levels: high, medium, and low.
[0108] Third, based on weather information, three levels are set.
[0109] For example, it can be set to three levels: high, medium, and low.
[0110] Optionally, the worse the weather information, the greater the damage and the higher the level.
[0111] Visibility refers to the maximum horizontal distance at which a person with normal vision can clearly see the outline of a target under current weather conditions, usually expressed in kilometers or meters. The visibility of a target is related to atmospheric transparency and the brightness contrast between the target and its background. Ground visibility reflects the horizontal distance visible near the ground; visibility often varies in different directions. Meteorological stations typically report a representative value of visibility, "effective visibility" (the visible distance achievable within more than half of the station's field of view).
[0112] Optionally, based on the interval between the most recent rainfall and ground visibility, the levels are categorized as high, medium, and low. For example, if it rained within the last ten minutes, regardless of whether it rains currently, the recent rain may have made nearby roads slippery, and visibility is less than 200 meters, which corresponds to a high level; visibility between 200 and 1,000 meters corresponds to a medium level; and visibility greater than 1,000 meters corresponds to a low level.
[0113] The third level is any one of the three levels: high, medium, and low.
[0114] Sub-step C2: Determine the target duration threshold based on the total number of levels.
[0115] In this step, Formula 2:
[0116] Risk = Risk1 + Risk2 + Risk3
[0117] In this system, Risk1 represents the first level, Risk2 represents the second level, and Risk3 represents the third level. The values of Risk1, Risk2, and Risk3 for the highest level are all set to "3", the values of Risk1, Risk2, and Risk3 for the middle level are all set to "2", and the values of Risk1, Risk2, and Risk3 for the lowest level are all set to "1".
[0118] Furthermore, Formula 3:
[0119] Time = 9.5 - Risk
[0120] Wherein, Time represents the target duration threshold, and the unit of Time is seconds. The value range of Risk is "3 to 9", and correspondingly, the value range of Time is "0.5 to 6.5".
[0121] As can be seen, when Risk=9, the target duration threshold is "0.5" seconds, which means that the target user needs to be notified as soon as possible.
[0122] Depending on the design scheme, the coefficient "9.5" in Formula 3 can be changed. Here, it is set to "9.5" to allow "0.5" seconds for data analysis time so that the target prompt information can be output immediately after the analysis results are obtained.
[0123] In this embodiment, the target duration threshold can be dynamically adjusted, and this dynamic adjustment is related to all three types of information in the target information. Therefore, this embodiment can intelligently adjust the target duration threshold based on actual conditions. This dynamic adjustment can then provide timely notifications to the target user in different scenarios, enriching the convenience offered by wearable devices and improving the user experience.
[0124] In the flow of the prompting method according to another embodiment of this application, step 130 includes:
[0125] Sub-step D1: If the duration of the wrist-raising action is greater than or equal to the target duration threshold, output the first target prompt information, which includes safety prompt content.
[0126] In this step, if the duration of the wrist-raising action is greater than or equal to the target duration threshold, it indicates that the target user is focused on the wearable device for a relatively long time, and safety warnings such as paying attention to road traffic safety can be given to the target user.
[0127] Sub-step D2: If the duration of the wrist-raising action is less than the target duration threshold, output the second target prompt information. The second target prompt information includes at least one of the following: time information, weather information, and custom information.
[0128] In this step, if the duration of the wrist-raising action is less than the target duration threshold, it means that the target user is not focused on the wearable device for a very long time. In this case, the target user can be given routine prompts such as the current time, the current weather, or custom content.
[0129] Optionally, custom information such as recent itineraries and prompts set by the target user can be added.
[0130] In this embodiment, when the target user views or operates the wearable device during exercise, different target prompts can be intelligently output according to the duration of the user's viewing or operation, so as to provide different prompts in different scenarios and improve the user experience.
[0131] In another embodiment of the prompting method in this application, in the scheme of obtaining the duration of the wrist-raising action, the camera of the wearable device can be used to capture the facial image of the target user to track the target user's gaze, thereby obtaining the duration of the target user's gaze on the wearable device, and thus ensuring that the obtained duration of the wrist-raising action is accurate.
[0132] In further embodiments of this application, different prompting measures can be adopted based on the accurate identification of wrist raising during running and wrist raising during walking.
[0133] In this application, if the target user is in motion and no wrist-raising motion is detected, monitoring continues.
[0134] In summary, the purpose of this application is to provide a method for recognizing a user's behavior of raising their wrist to view or operate a device worn on their wrist during exercise, and to automatically provide a prompt.
[0135] When a user is running or walking while wearing a watch on their wrist, the system detects if the user suddenly raises their wrist to look at the watch. If the duration of looking at the watch is greater than or equal to a preset threshold, a safety protection prompt will be issued. If the duration of looking at the watch is less than the preset threshold, a regular information prompt (such as time, weather, etc.) will be issued.
[0136] The prompting method provided in this application can be executed by a prompting device. This application uses an example of a prompting device executing the prompting method to illustrate the prompting device provided in this application.
[0137] Figure 6 A block diagram of a prompting device according to another embodiment of this application is shown, the device comprising:
[0138] The acquisition module 10 is used to acquire target information when the target user is in motion and the target user's wrist raising action is detected. The target information includes at least one of the following: acceleration information of the wearable device worn on the target user's wrist, weather information of the target user's location, and head posture information of the target user when raising their wrist.
[0139] The first determining module 20 is used to determine the target duration threshold based on the target information;
[0140] The output module 30 is used to output target prompt information based on the duration of the wrist raising action and the target duration threshold.
[0141] Thus, in the embodiments of this application, when a target user wears a device on their wrist for exercise, if the target user's wrist-raising action is detected, target information is acquired. The target information includes at least one of the following: acceleration information collected by the wearable device, head posture information of the target user during the wrist-raising action, and weather information of the current location. Furthermore, based on the target information, the exercise status of the current exercise state can be evaluated, such as whether the exercise is intense. Then, based on the evaluation result, an appropriate target duration threshold is set. This target duration threshold is used to evaluate the duration of the target user's continuous wrist-raising action. Therefore, based on the target duration threshold and the duration of the wrist-raising action, appropriate target prompt information is output, enriching the convenience brought to the user by the wearable device and improving the user experience.
[0142] Optionally, the target information includes acceleration information of a wearable device worn on the wrist of the target user. The first determining module 20 includes:
[0143] The first determining unit is used to determine the running energy information of the target user based on acceleration information when the movement state is running.
[0144] The second determining unit is used to determine the target duration threshold based on running energy information;
[0145] Among them, running energy information is negatively correlated with the target duration threshold;
[0146] The third determining unit is used to determine the walking cadence information of the target user based on acceleration information when the movement state is walking.
[0147] The fourth determining unit is used to determine the target duration threshold based on walking cadence information;
[0148] Among them, walking cadence information is negatively correlated with the target duration threshold.
[0149] Optionally, the device further includes:
[0150] The second determining module is used to determine the running or walking state of the target user based on the acceleration information within the first time period and the corresponding change information of the acceleration information within the first time period, wherein the target user's wrist raising action is identified within the first time period.
[0151] Optionally, the target information includes acceleration information of the wearable device on the target user's wrist, weather information of the target user's location, and head posture information of the target user when performing the wrist-raising action. The first determining module 20 includes:
[0152] The fifth determining unit is used to determine the total level based on the first level corresponding to the acceleration information, the second level corresponding to the head posture information, and the third level corresponding to the weather information of the target user's location.
[0153] The sixth determining unit is used to determine the target duration threshold based on the sum of the levels.
[0154] Optionally, the output module 30 includes:
[0155] The first output unit is used to output a first target prompt message when the duration of the wrist raising action is greater than or equal to the target duration threshold. The first target prompt message includes a safety prompt content.
[0156] The second output unit is used to output a second target prompt information when the duration of the wrist raising action is less than the target duration threshold. The second target prompt information includes at least one of the following: time information, weather information, and custom information.
[0157] The prompting device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.
[0158] The prompting device in this application embodiment can be a device with an action system. The action system can be an Android action system, an iOS action system, or other possible action systems; this application embodiment does not specifically limit it.
[0159] The prompting device provided in this application embodiment can implement the various processes implemented in the above method embodiments, and will not be described again here to avoid repetition.
[0160] Optionally, such as Figure 7 As shown, this application embodiment also provides an electronic device 100, including a processor 101, a memory 102, and a program or instructions stored in the memory 102 and executable on the processor 101. When the program or instructions are executed by the processor 101, they implement the various steps of any of the above-described prompting method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0161] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0162] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0163] The electronic device 1000 includes, but is not limited to, components such as: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
[0164] Those skilled in the art will understand that the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 8 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0165] The processor 1010 is configured to acquire target information when the target user is in motion and the target user's wrist-raising action is detected. The target information includes at least one of the following: acceleration information of a wearable device worn on the target user's wrist, weather information of the target user's location, and head posture information of the target user when raising their wrist. Based on the target information, the processor determines a target duration threshold. Based on the duration of the wrist-raising action and the target duration threshold, the processor outputs target prompt information.
[0166] Thus, in the embodiments of this application, when a target user wears a device on their wrist for exercise, if the target user's wrist-raising action is detected, target information is acquired. The target information includes at least one of the following: acceleration information collected by the wearable device, head posture information of the target user during the wrist-raising action, and weather information of the current location. Furthermore, based on the target information, the exercise status of the current exercise state can be evaluated, such as whether the exercise is intense. Then, based on the evaluation result, an appropriate target duration threshold is set. This target duration threshold is used to evaluate the duration of the target user's continuous wrist-raising action. Therefore, based on the target duration threshold and the duration of the wrist-raising action, timely and appropriate target prompt information is output, enriching the convenience brought to the user by the wearable device and improving the user experience.
[0167] Optionally, the target information includes acceleration information from a wearable device worn on the wrist of the target user. The processor 1010 is further configured to, when the movement state is running, determine the running energy information of the target user based on the acceleration information; and determine the target duration threshold based on the running energy information; wherein the running energy information is negatively correlated with the target duration threshold; and when the movement state is walking, determine the walking cadence information of the target user based on the acceleration information; and determine the target duration threshold based on the walking cadence information; wherein the walking cadence information is negatively correlated with the target duration threshold.
[0168] Optionally, the processor 1010 is further configured to determine the running or walking state of the target user based on the acceleration information within a first duration and the change information corresponding to the acceleration information within the first duration, wherein the wrist-raising action of the target user is identified within the first duration.
[0169] Optionally, the target information includes acceleration information of a wearable device worn on the wrist of the target user, weather information of the target user's location, and head posture information of the target user when raising their wrist. The processor 1010 is further configured to determine a total level based on a first level corresponding to the acceleration information, a second level corresponding to the head posture information, and a third level corresponding to the weather information of the target user's location; and to determine the target duration threshold based on the total level.
[0170] Optionally, the processor 1010 is further configured to output a first target prompt information when the duration of the wrist-raising action is greater than or equal to the target duration threshold, the first target prompt information including safety prompt content; and to output a second target prompt information when the duration of the wrist-raising action is less than the target duration threshold, the second target prompt information including at least one of the following: time information, weather information, and custom information.
[0171] In summary, the purpose of this application is to provide a method for recognizing a user's behavior of raising their wrist to view or operate a device worn on their wrist during exercise, and to automatically provide a prompt.
[0172] When a user is running or walking while wearing a watch on their wrist, the system detects if the user suddenly raises their wrist to look at the watch. If the duration of looking at the watch is greater than or equal to a preset threshold, a safety protection prompt will be issued. If the duration of looking at the watch is less than the preset threshold, a regular information prompt (such as time, weather, etc.) will be issued.
[0173] It should be understood that, in this embodiment, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042. The GPU 10041 processes image data of still images or video images obtained by an image capture device (such as a camera) in video image capture mode or image capture mode. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and motion systems. Processor 1010 may integrate an application processor and a modem processor. The application processor mainly handles the action system, user page, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into processor 1010.
[0174] The memory 1009 can be used to store software programs and various data. The memory 1009 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1009 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1009 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0175] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor 1010.
[0176] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described prompting method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0177] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0178] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0179] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0180] This application provides a computer program product that is stored in a storage medium and executed by at least one processor to implement the various processes described in the above-described method embodiments, achieving the same technical effects. To avoid repetition, further details are omitted here.
[0181] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0182] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0183] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A prompting method, characterized in that, The method includes: When the target user is in motion and the target user's wrist-raising action is detected, target information is obtained. The target information includes at least one of the following: acceleration information of the wearable device worn on the target user's wrist, weather information of the target user's location, and head posture information of the target user when raising their wrist. The head posture information is obtained based on the acceleration information. Based on the target information, a target duration threshold is determined, which is used to evaluate the duration for which the target user continuously raises their wrist; Based on the duration of the wrist-raising action and the target duration threshold, output target prompt information.
2. The method according to claim 1, characterized in that, The target information includes acceleration information from a wearable device worn on the wrist of the target user. Determining the target duration threshold based on the target information includes: When the movement state is running, the running energy information of the target user is determined based on the acceleration information; Based on the running energy information, the target duration threshold is determined; Wherein, the running energy information is negatively correlated with the target duration threshold; or, When the movement state is walking, the walking cadence information of the target user is determined based on the acceleration information; Based on the walking cadence information, the target duration threshold is determined; The walking cadence information is negatively correlated with the target duration threshold.
3. The method according to claim 2, characterized in that, The method further includes: Based on the acceleration information within the first time period and the corresponding change information of the acceleration information within the first time period, the running or walking state of the target user is determined, wherein the wrist raising action of the target user is identified within the first time period.
4. The method according to claim 1, characterized in that, The target information includes acceleration information of a wearable device on the target user's wrist, weather information at the target user's location, and head posture information of the target user when raising their wrist. Determining the target duration threshold based on the target information includes: The total level is determined based on the first level corresponding to the acceleration information, the second level corresponding to the head posture information, and the third level corresponding to the weather information of the target user's location; The target duration threshold is determined based on the sum of the levels.
5. The method according to claim 1, characterized in that, The step of outputting target prompt information based on the duration of the wrist-raising action and the target duration threshold includes: If the duration of the wrist-raising action is greater than or equal to the target duration threshold, a first target prompt message is output, which includes a safety prompt message. If the duration of the wrist-raising action is less than the target duration threshold, a second target prompt message is output. The second target prompt message includes at least one of the following: time information, weather information, and custom information.
6. A prompting device, characterized in that, The device includes: The acquisition module is used to acquire target information when the target user is in motion and the target user's wrist raising action is detected. The target information includes at least one of the following: acceleration information of the wearable device worn on the target user's wrist, weather information of the target user's location, and head posture information of the target user when raising their wrist. The head posture information is acquired based on the acceleration information. The first determining module is used to determine a target duration threshold based on the target information, wherein the target duration threshold is used to evaluate the duration for which the target user continuously raises their wrist; The output module is used to output target prompt information based on the duration of the wrist-raising action and the target duration threshold.
7. The apparatus according to claim 6, characterized in that, The target information includes acceleration information of a wearable device worn on the wrist of the target user, and the first determining module includes: The first determining unit is configured to determine the running energy information of the target user based on the acceleration information when the movement state is running. The second determining unit is used to determine the target duration threshold based on the running energy information; The running energy information is negatively correlated with the target duration threshold. The third determining unit is used to determine the walking cadence information of the target user based on the acceleration information when the movement state is walking. The fourth determining unit is used to determine the target duration threshold based on the walking cadence information; The walking cadence information is negatively correlated with the target duration threshold.
8. The apparatus according to claim 7, characterized in that, The device further includes: The second determining module is used to determine the running or walking state of the target user based on the acceleration information within the first duration and the change information corresponding to the acceleration information within the first duration, wherein the target user's wrist raising action is detected within the first duration.
9. The apparatus according to claim 6, characterized in that, The target information includes acceleration information of a wearable device on the target user's wrist, weather information at the target user's location, and head posture information of the target user when raising their wrist. The first determining module includes: The fifth determining unit is used to determine the total level based on the first level corresponding to the acceleration information, the second level corresponding to the head posture information, and the third level corresponding to the weather information of the target user's location; The sixth determining unit is used to determine the target duration threshold based on the sum of the levels.
10. The apparatus according to claim 6, characterized in that, The output module includes: The first output unit is configured to output a first target prompt information when the duration of the wrist-raising action is greater than or equal to the target duration threshold. The first target prompt information includes safety prompt content. The second output unit is used to output a second target prompt information when the duration of the wrist-raising action is less than the target duration threshold. The second target prompt information includes at least one of the following: time information, weather information, and custom information.
11. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the prompting method as described in any one of claims 1 to 5.