Heart rate display method and electronic equipment
By adjusting the heart rate refresh strategy according to the heart rate monitoring scenario, the problem of the user interface not refreshing the heart rate value for a long time was solved, enabling users to obtain accurate heart rate values in a timely manner in different scenarios and improving the user experience.
Patent Information
- Application Number
- CN202411180922.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2026-03-03
AI Technical Summary
The user interface fails to display or refresh heart rate values for an extended period, negatively impacting the user experience.
Electronic devices can flexibly adjust the heart rate value refresh strategy according to different heart rate monitoring scenarios, including setting different refresh intervals and forcibly refreshing the heart rate value when the confidence level of the heart rate value is low.
This ensures users can obtain accurate heart rate values in every heart rate monitoring scenario, reducing waiting time and improving user experience.
Smart Images

Figure CN121587699A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a heart rate display method and electronic device. Background Technology
[0002] With the widespread adoption of smart devices and the rapid development of communication technology, the function of measuring users' heart rate through electronic devices has become increasingly common. For example, electronic devices can measure a user's heart rate and display the heart rate value on the user interface based on a preset frequency, allowing the user to perceive their heart rate and thus monitor their health. However, the heart rate value displayed on the user interface is not updated in real time. If the user interface does not display or update the heart rate value for an extended period, it will negatively impact the user experience. Summary of the Invention
[0003] This application discloses a heart rate display method and an electronic device. When the confidence level of the heart rate is low for a period of time, the electronic device can still force refresh the heart rate value when the refresh interval is reached. This avoids the user interface not displaying or refreshing the heart rate value for a long time, alleviates the user's anxiety while waiting for the heart rate value, and improves the user experience.
[0004] In a first aspect, embodiments of this application provide a heart rate display method applied to an electronic device. The method includes: acquiring a user's first heart rate value at a first moment; acquiring the user's second heart rate value; displaying the second heart rate value at a second moment when the electronic device is in a first heart rate monitoring scenario, wherein the interval between the second moment and the first moment is a first refresh interval, and the first refresh interval is determined according to the first heart rate monitoring scenario; and displaying the second heart rate value at a third moment when the electronic device is in a second heart rate monitoring scenario, wherein the interval between the third moment and the first moment is a second refresh interval, and the second refresh interval is determined according to the second heart rate monitoring scenario, wherein the first heart rate monitoring scenario and the second heart rate monitoring scenario are different, and the first refresh interval and the second refresh interval are different.
[0005] In the above method, the electronic device can acquire the user's heart rate value and determine the refresh interval for displaying the heart rate value on the user interface based on the current heart rate monitoring scenario. The heart rate value is then displayed according to this refresh interval within that heart rate monitoring scenario. Different heart rate monitoring scenarios may correspond to different refresh intervals; that is, the first refresh interval and the second refresh interval may differ. This method can be applied to any heart rate monitoring scenario and flexibly adjusts the heart rate refresh strategy in real time according to the heart rate monitoring scenario, ensuring that a reasonable refresh interval can be set in each heart rate monitoring scenario. This allows users to know their accurate current heart rate without waiting too long, improving the user experience.
[0006] In one possible implementation, obtaining the user's second heart rate value includes: obtaining the second heart rate value and the confidence level of the second heart rate value; displaying the second heart rate value at a second time includes: when the current time is the second time and the confidence levels of the heart rate values obtained between the first time and the current time are all less than a first threshold, displaying the second heart rate value at the second time.
[0007] In the above method, the electronic device can obtain the confidence level of the heart rate value. When the confidence level of the heart rate value is less than the first threshold for a period of time (that is, the confidence level of the heart rate value obtained from the first moment to the current moment is less than the first threshold), the electronic device can still force refresh / display the heart rate value when the refresh interval (that is, the second moment) is reached. This avoids the user interface from not displaying or refreshing the heart rate value for a long time, alleviates the user's anxiety while waiting for the heart rate value, and improves the user experience.
[0008] In one possible implementation, after displaying the second heart rate value at the second moment, the method further includes: obtaining the user's third heart rate value and the confidence level of the third heart rate value; when the electronic device is in the first heart rate monitoring scenario, when the current moment is the fourth moment and the confidence level of the third heart rate value is greater than or equal to a first threshold, displaying the third heart rate value at the fourth moment, wherein the interval between the fourth moment and the second moment is a first duration, and the first duration is less than the first refresh interval.
[0009] In the above method, the electronic device can obtain the confidence level of the heart rate value. When the confidence level of the heart rate value is greater than or equal to a first threshold, the electronic device can directly refresh / display the heart rate value. This heart rate value with a confidence level greater than or equal to the first threshold (which can be called a high-confidence heart rate value) has high accuracy and can reflect the user's true heart rate value. Therefore, directly displaying a high-confidence heart rate value makes it convenient for users to monitor their own health status in real time, thereby improving the user experience.
[0010] In one possible implementation, the first heart rate monitoring scenario is determined based on at least one of the states of the electronic device, the user, and the environment. The state of the electronic device includes at least one of heart rate monitoring, whether the display screen is on, and whether the heart rate value is being displayed for the first time. The user's state includes at least one of whether the user's physiological parameters have changed and whether the user's behavior has changed. The change in the user's physiological parameters includes at least one of whether the heart rate has changed abruptly or is abnormal. The second heart rate monitoring scenario is determined based on at least one of the states of the electronic device, the user, and the environment. The missing element is defined as follows: the state of the electronic device includes at least one of heart rate service, whether the display screen is on, and whether the heart rate value is displayed for the first time; the state of the user includes at least one of whether the user's physiological parameters have changed and whether the user's behavior has changed; the change in the user's physiological parameters includes at least one of whether the heart rate has changed abruptly and whether the heart rate is abnormal; the heart rate service includes one of dial heart rate, card heart rate, exercise heart rate, daily heart rate, and single heart rate; abrupt heart rate change is defined as a heart rate change value greater than or equal to a first preset threshold; and abnormal heart rate is defined as a heart rate value less than a second preset threshold or greater than a third preset threshold.
[0011] In the above method, the heart rate monitoring scenario refers to the business scenario related to heart rate measurement. The heart rate monitoring scenario in which the electronic device is located can be determined based on at least one of the electronic device's state, the user's state, and the environment's state. When any one of these changes, the heart rate monitoring scenario in which the electronic device is located will also change. It can be understood that the heart rate monitoring scenario changes in real time. The electronic device can also flexibly adjust its heart rate refresh strategy in real time according to the heart rate monitoring scenario it is in, thus expanding the range of applicable scenarios and improving the user experience.
[0012] In one possible implementation, the method further includes: determining that the electronic device is currently in the first heart rate monitoring scenario, the first heart rate monitoring scenario including the first service, the first service being any one of dial heart rate, card heart rate, exercise heart rate, daily heart rate, and single heart rate; when the electronic device meets a first preset condition, adjusting the preset refresh interval and displaying the heart rate value according to the adjusted preset refresh interval, the preset refresh interval being determined based on the first service, the first preset condition including at least one of whether the exercise type is a preset exercise type, whether the display screen is on, whether the user's physiological parameter state has changed, whether the user's behavioral state has changed, and whether the environmental state has changed, wherein whether the user's physiological parameter state has changed includes at least one of whether the heart rate has a sudden change and whether the heart rate is abnormal; when the electronic device does not meet the first preset condition, displaying the heart rate value according to the preset refresh interval.
[0013] In the above method, the first preset condition can be a condition that causes the preset refresh interval corresponding to the first service to change (adjust). When the electronic device is in the first service, the specific content of the first service can be further determined, that is, whether the first service meets the first preset condition, so that the electronic device can choose whether to adjust the preset refresh interval corresponding to the first service. This enables dynamic adjustment of the heart rate refresh time for different types of exercise, whether the screen is on, whether the heart rate changes abruptly, whether the heart rate is abnormal, whether the user's physiological parameters change, whether the user's behavior changes, and whether the environment changes. This better meets the user's needs and further improves the user experience while ensuring real-time performance and accuracy.
[0014] In one possible implementation, before acquiring the user's first heart rate value at the first moment, the method further includes: determining a first exercise in the exercise mode; when the first exercise is a first exercise item, determining that the electronic device is in the first heart rate monitoring scenario; and / or, when the first exercise is a second exercise item, determining that the electronic device is in the second heart rate monitoring scenario.
[0015] In the above method, the electronic device can further classify any one of the heart rate services into multiple sub-services, and determine the refresh interval corresponding to each sub-service. For example, after the electronic device starts the first exercise, it can determine the current heart rate during exercise. The electronic device can classify the exercise heart rate into various different exercise categories, determine which exercise the current first exercise is, and determine the refresh interval for that exercise heart rate based on the exercise category. This allows for the setting of a reasonable refresh interval in each heart rate monitoring scenario, enabling users to know their accurate heart rate without waiting too long, thus improving the user experience.
[0016] In one possible implementation, the first heart rate monitoring scenario is when the display screen is on, the second heart rate monitoring scenario is when the display screen is off, and the first refresh interval is less than the second refresh interval.
[0017] In the above method, when the electronic device is in a screen-off scenario, the user will not observe the current real-time heart rate, meaning the user's requirement for the real-time heart rate refresh is not high. However, when the electronic device is in a screen-on scenario, the user may observe the current real-time heart rate, meaning the user's requirement for the real-time heart rate refresh is higher. Therefore, the first refresh interval (e.g., 3s) corresponding to the screen-on scenario is shorter than the second refresh interval (e.g., 30s) corresponding to the screen-off scenario, in order to increase the refresh frequency of the heart rate when the screen is on and improve the user experience.
[0018] In one possible implementation, the first heart rate monitoring scenario is a sudden change in heart rate, wherein the sudden change in heart rate is greater than or equal to a first preset threshold; the second heart rate monitoring scenario is no sudden change in heart rate, wherein the no sudden change in heart rate is less than the first preset threshold; and the first refresh interval is less than the second refresh interval.
[0019] In the above method, the first refresh interval (e.g., 2s) corresponding to the scenario where the heart rate changes abruptly is less than the second refresh interval (e.g., 30s) corresponding to the scenario where the heart rate does not change abruptly, so as to increase the refresh frequency of the heart rate when the heart rate changes abruptly, so as to facilitate users to monitor their own health status in real time and improve the user experience.
[0020] In one possible implementation, the first heart rate monitoring scenario is an abnormal heart rate, where the abnormal heart rate is a heart rate value less than a second preset threshold or greater than a third preset threshold; the second heart rate monitoring scenario is a normal heart rate, where the normal heart rate is a heart rate value greater than or equal to the second preset threshold and less than or equal to the third preset threshold; and the first refresh interval is less than the second refresh interval.
[0021] In the above method, the first refresh interval (e.g., 3s) corresponding to the abnormal heart rate scenario is smaller than the second refresh interval (e.g., 30s) corresponding to the normal heart rate scenario, so as to increase the refresh frequency of heart rate when the heart rate is abnormal, so as to facilitate users to monitor their own health status in real time and improve the user experience.
[0022] In one possible implementation, the first heart rate monitoring scenario is when the display screen is on and the heart rate changes abruptly, wherein the heart rate change is greater than or equal to a first preset threshold; the second heart rate monitoring scenario is when the display screen is off or the heart rate does not change abruptly, wherein the heart rate change is less than the first preset threshold; and the first refresh interval is less than the second refresh interval.
[0023] In one possible implementation, the first heart rate monitoring scenario is when the display screen is on and the heart rate is abnormal, wherein the heart rate abnormality is when the heart rate value is less than a second preset threshold or greater than a third preset threshold; the second heart rate monitoring scenario is when the display screen is off or the heart rate is not abnormal, wherein the heart rate is not abnormal, wherein the heart rate value is greater than or equal to the second preset threshold and less than or equal to the third preset threshold; and the first refresh interval is less than the second refresh interval.
[0024] In the above method, the heart rate monitoring scenario can include multiple different scenarios, such as a scenario where the screen is on and the heart rate changes abruptly, or a scenario where the screen is on and the heart rate is abnormal. The electronic device can increase the heart rate refresh rate when the screen is on and the heart rate changes abruptly, or when the screen is on and the heart rate is abnormal, so as to facilitate users to monitor their health status in real time and improve the user experience.
[0025] In one possible implementation, the first heart rate monitoring scenario is a preset exercise type, the second heart rate monitoring scenario is a non-preset exercise type, and the first refresh interval is less than the second refresh interval.
[0026] In the above method, the preset exercise type can be an exercise that causes rapid changes in heart rate, such as skipping rope or strength training, while the non-preset exercise type can be an exercise that causes gradual changes in heart rate, such as yoga, running, or outdoor hiking. The fluctuation of a user's heart rate varies under different exercise types. For example, for exercises with gradual heart rate changes, such as running or yoga, users do not have high requirements for the real-time refresh rate. However, for exercises with rapid heart rate changes, such as skipping rope or strength training, users have higher requirements for the real-time refresh rate; for example, users will stop to check their heart rate value. Therefore, the first refresh interval (e.g., 3 seconds) corresponding to the preset exercise type is shorter than the second refresh interval (e.g., 30 seconds) corresponding to the non-preset exercise type, in order to increase the heart rate refresh frequency in the preset exercise type scenario and improve the user experience.
[0027] In one possible implementation, the first heart rate monitoring scenario is when the user's physiological parameters change, the second heart rate monitoring scenario is when the user's physiological parameters do not change, and the first refresh interval is less than the second refresh interval.
[0028] In the above method, the first refresh interval (e.g., 3s) corresponding to the scenario where the user's physiological parameters change is less than the second refresh interval (e.g., 30s) corresponding to the scenario where the user's physiological parameters do not change, so as to increase the refresh frequency of heart rate when the user's physiological parameters change, so as to facilitate the user to monitor their own health status in real time and improve the user experience.
[0029] In one possible implementation, the first heart rate monitoring scenario is when the user's behavioral state changes, the second heart rate monitoring scenario is when the user's behavioral state does not change, and the first refresh interval is less than the second refresh interval.
[0030] In the above method, changes in a user's behavioral state lead to changes in the user's physiological parameter state. Changes in the user's physiological parameter state can determine changes in the user's behavioral state. Therefore, electronic devices can also adjust the heart rate refresh strategy by detecting the user's behavioral state that causes changes in physiological parameter state. In other words, the first refresh interval (e.g., 3s) corresponding to the scenario where the user's behavioral state changes is less than the second refresh interval (e.g., 30s) corresponding to the scenario where the user's behavioral state does not change, which makes it convenient for users to monitor their health status in real time and improves the user experience.
[0031] In one possible implementation, the first heart rate monitoring scenario is when the state of the environment changes, the second heart rate monitoring scenario is when the state of the environment does not change, and the first refresh interval is less than the second refresh interval.
[0032] In the above method, the first refresh interval (e.g., 3s) corresponding to the scenario where the state of the environment changes is less than the second refresh interval (e.g., 30s) corresponding to the scenario where the state of the environment does not change, so as to increase the refresh frequency of heart rate when the state of the environment changes (e.g., the ambient light becomes brighter, the ambient sound becomes louder), so as to facilitate users to monitor their own health status in real time and improve the user experience.
[0033] In one possible implementation, the first refresh interval and / or the second refresh interval are determined based on user operations.
[0034] In the above method, different users have different requirements for the real-time heart rate refresh. Electronic devices can set refresh intervals that meet user needs based on user operations, thereby satisfying users' personalized needs and further improving the user experience.
[0035] In one possible implementation, the first heart rate monitoring scenario is the first time the heart rate value is displayed, the second heart rate monitoring scenario is a subsequent display of the heart rate value, and the first refresh interval is less than the second refresh interval.
[0036] In the above method, the first refresh interval (e.g., 10s) for scenarios where the heart rate value is first displayed can be shorter than the second refresh interval (e.g., 30s) for scenarios where the heart rate value is not first displayed. By setting the first refresh interval (i.e., the initial display time), the heart rate algorithm has sufficient time to converge. For example, when the heart rate algorithm starts calculating the heart rate value, it may not have converged for the first few seconds, resulting in inaccurate heart rate values that do not reflect the user's true heart rate. Once the heart rate algorithm has converged (e.g., within 10s), the accuracy of subsequent heart rate values calculated by the algorithm will be higher. Therefore, setting the first refresh interval allows the heart rate algorithm to converge within the initial display time, ensuring the accuracy of the heart rate value and eliminating the need for users to wait excessively, thus improving the user experience. Setting the non-first refresh interval (i.e., the second refresh interval) aligns with the characteristics of the heart rate service itself, allowing for reasonable refresh times to be set for each heart rate service, further enhancing the user experience.
[0037] Secondly, this application provides an electronic device, including a transceiver, a processor, and a memory, wherein the memory is used to store a computer program, and the processor calls the computer program to execute the heart rate display method in any possible implementation of the first aspect.
[0038] Thirdly, this application provides an electronic device including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, including computer instructions, which, when executed by the one or more processors, cause the electronic device to perform the heart rate display method in any possible implementation of the first aspect described above.
[0039] Fourthly, this application provides a computer storage medium storing a computer program that, when executed by a processor, implements the heart rate display method in any of the possible implementations of any of the above aspects.
[0040] Fifthly, this application provides a computer program product that, when run on an electronic device, causes the electronic device to execute the heart rate display method in any possible implementation of the first aspect described above.
[0041] Sixthly, this application provides an electronic device including the method or apparatus described in any implementation of the first aspect of this application. The electronic device is, for example, a chip. Attached Figure Description
[0042] The following describes the accompanying drawings used in this application.
[0043] Figure 1 This is a structural diagram of an electronic device 100 provided in this application;
[0044] Figure 2 This is a schematic diagram of the hardware structure of an electronic device 100 provided in this application;
[0045] Figure 3 This is a schematic diagram of the software architecture of an electronic device 100 provided in this application;
[0046] Figure 4 This is a flowchart illustrating a heart rate display method provided in this application;
[0047] Figures 5-6 This is a schematic diagram of a user interface in one scenario provided in this application;
[0048] Figure 7 This is a flowchart illustrating yet another heart rate display method provided in this application;
[0049] Figure 8 This is a flowchart illustrating a heart rate display method that uses the rate of heart rate change provided in this application.
[0050] Figure 9 This is a heart rate curve corresponding to different refresh times in the strength training exercise scenario provided in this application;
[0051] Figure 10 This is a schematic diagram of a user interface in another scenario provided in this application;
[0052] Figure 11 This is a flowchart illustrating a heart rate display method provided in this application, showing the display state of the screen.
[0053] Figure 12 This is a schematic diagram of a user interface in another scenario provided in this application;
[0054] Figure 13 This is a flowchart illustrating a heart rate display method based on the user's physiological parameter status, as provided in this application.
[0055] Figure 14 This is a flowchart illustrating yet another heart rate display method based on the user's physiological parameter status provided in this application;
[0056] Figure 15 This is a flowchart illustrating a heart rate display method based on the user's behavioral state provided in this application;
[0057] Figure 16 This is a flowchart illustrating a heart rate display method based on environmental conditions, as provided in this application.
[0058] Figure 17 This is a flowchart illustrating a heart rate display method provided in this application, based on user settings.
[0059] Figure 18 This is a schematic diagram of a user interface in another scenario provided in this application;
[0060] Figure 19 This is a flowchart illustrating yet another heart rate display method provided in this application;
[0061] Figure 20 This is a schematic diagram of a user interface in another scenario provided in this application;
[0062] Figure 21 This is a flowchart illustrating yet another heart rate display method provided in this application;
[0063] Figure 22 This is a schematic diagram of the physical structure of an electronic device 100 provided in this application. Detailed Implementation
[0064] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0065] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0066] Heart rate / heart rate value refers to the frequency of heartbeats, which can be characterized by the number of heartbeats per minute (BPM). Currently, wearable devices can detect a user's heart rate, for example, through photoplethysmography (PPG). Specifically, the wearable device emits a light signal (e.g., a beam of green light) to the user's wrist via a sensor, and calculates the heart rate based on the reflected or transmitted light signal (e.g., the amount of green light absorbed). Furthermore, the wearable device can obtain the confidence level of the calculated heart rate and determine whether the confidence level is greater than or equal to a first threshold. When the confidence level of the heart rate is greater than or equal to the first threshold (referred to as high confidence), the heart rate on the user interface is refreshed. Therefore, the heart rate displayed on the user interface of wearable devices is only refreshed when the confidence level is high, and is not refreshed in real time. Based on this, when the confidence level of the heart rate is less than the first threshold (which can be called low confidence level) for a period of time, the heart rate on the user interface will not be refreshed during that period of time. In other words, the user interface will not display or refresh the heart rate value for a long time, causing users to be unable to know the current accurate heart rate value, thus affecting the user experience.
[0067] This application proposes a heart rate display method for electronic devices. The electronic device can acquire a user's heart rate value and determine a refresh strategy for displaying / refreshing the heart rate value on the user interface based on the current heart rate monitoring scenario. This refresh strategy includes a time interval for refreshing the heart rate value (referred to as the refresh interval / refresh time). The electronic device can display the heart rate value according to this refresh strategy within the heart rate monitoring scenario. Different heart rate monitoring scenarios may correspond to different refresh strategies, meaning different heart rate monitoring scenarios may have different refresh intervals. In this way, even when the confidence level of the heart rate is low for a period of time, the electronic device can still forcibly refresh the heart rate value when the refresh interval is reached, instead of waiting for a high confidence level to appear before refreshing. This alleviates the user's anxiety while waiting for the heart rate value and improves the user experience. Furthermore, this method can be applied to any business scenario related to heart rate measurement (i.e., a heart rate monitoring scenario) and flexibly adjust the heart rate refresh strategy in real time according to the business scenario of the electronic device, ensuring that a reasonable refresh interval can be set in each business scenario. This allows users to know their accurate current heart rate without waiting too long, further improving the user experience.
[0068] In this embodiment, the heart rate monitoring scenario can refer to a business scenario related to heart rate measurement. Heart rate measurement can be achieved through a heart rate service, which can be a service that uses a heart rate algorithm to detect the user's heart rate. The heart rate service can also be used to display the measured heart rate to the user, such as, but not limited to, the following types of services: watch face service, card heart rate, exercise heart rate, daily heart rate, single heart rate, etc. The heart rate monitoring scenario of the electronic device can be determined based on at least one of the following: the state of the electronic device, the state of the user, and the state of the environment. The state of the device can include the type of heart rate service and the display state of the device (e.g., whether the screen is on, whether the heart rate value is being displayed for the first time). The state of the user can include the user's behavioral state and the user's physiological parameter state (e.g., whether the heart rate has changed abruptly, whether the heart rate is abnormal). The state of the environment can include the state of ambient sound and ambient light. In one implementation, the heart rate monitoring scenario can be determined by first determining the type of heart rate service that the electronic device is in, and optionally by combining at least one of the device's display status, the user's status, and the environmental status. That is, the heart rate monitoring scenario can include at least one of the following: heart rate service, whether the display screen is on, whether the heart rate value is displayed for the first time, whether the user's behavior status has changed, whether the heart rate has changed abruptly, whether the heart rate has become abnormal, and whether the environmental status has changed.
[0069] In one implementation, any one of the heart rate services (referred to as the first service) can be further classified to obtain sub-services of the first service. The state of the device may also include the specific content of the sub-services of the first service. For example, if the first service is exercise heart rate in the heart rate service, the specific content of the sub-service may include, but is not limited to, the exercise items and types of exercise for exercise heart rate. Among them, exercise items include, for example, rope skipping, yoga, outdoor running, etc., and exercise types include, for example, preset exercise types and non-preset exercise types. The preset exercise type may be an exercise type that causes rapid changes in heart rate, and the non-preset exercise type may be an exercise type that causes gradual changes in heart rate. However, this application does not limit the specific definitions of preset exercise types and non-preset exercise types.
[0070] In this application embodiment, the electronic device may be, but is not limited to, a mobile phone, tablet computer, handheld computer, desktop computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), as well as smart home devices such as smart TVs and smart cameras, wearable devices such as smart bracelets, smartwatches, and smart glasses, extended reality (XR) devices such as augmented reality (AR), virtual reality (VR), and mixed reality (MR), in-vehicle devices, or smart city devices. This application embodiment does not impose any special restrictions on the specific type of electronic device.
[0071] In this application embodiment, wearable devices can also be called wearable smart devices or smart wearable devices, etc., which is a general term for devices that are intelligently designed and developed using wearable technology to make everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not just hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are feature-rich, large in size, and can achieve complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those that focus on only one type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets, smart helmets, and smart jewelry for vital sign monitoring.
[0072] The structure of the exemplary electronic device provided in the embodiments of this application will be described below.
[0073] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0074] Figure 1 An exemplary structural diagram of an electronic device 100 is shown.
[0075] like Figure 1As shown, the electronic device 100 may include a sensor signal acquisition module 101, a data preprocessing module 102, a heart rate calculation module 103, a post-processing module 104, and a display module 105. The workflow of each module in the electronic device 100 will be illustrated below with reference to the heart rate measurement process.
[0076] The sensor signal acquisition module 101 can be used to acquire optical signals and input the optical signals into the data preprocessing module 102. The data preprocessing module 102 can convert the optical signals into electrical signals and process the electrical signals, such as filtering, smoothing, and denoising, to obtain a first signal. Next, the data preprocessing module 102 can input the first signal into the heart rate calculation module 103. The heart rate calculation module 103 can calculate the heart rate value and the confidence level of the heart rate value based on the first signal using a heart rate algorithm. Each heart rate value corresponds to a confidence level. The post-processing module 104 can be used to store the heart rate value and the confidence level of the heart rate value output by the heart rate calculation module 103, determine the heart rate refresh strategy according to the current heart rate monitoring scenario of the electronic device, determine the heart rate value to be output according to the refresh strategy, and display the heart rate value through the display module 105.
[0077] In one implementation, the electronic device 100 measures heart rate in a continuous process. That is, the electronic device 100 continuously acquires light signals through the sensor signal acquisition module 101 and continuously calculates the heart rate value and the confidence level of the heart rate value through the heart rate calculation module 103. However, the electronic device 100 refreshes the heart rate readings in a non-continuous process. That is, the electronic device 100 may not refresh every calculated heart rate value (e.g., it may not refresh when the confidence level is low). Instead, it determines the heart rate values that need to be refreshed according to a refresh strategy and displays them through the display module 105.
[0078] The heart rate value is not limited to the example of obtaining heart rate value through optical signal as described above. In other examples, other signals may also be collected to obtain heart rate value. This application does not limit this.
[0079] Figure 2 An exemplary schematic diagram of the hardware structure of an electronic device 100 is shown.
[0080] like Figure 2As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0081] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0082] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0083] The processor 110 may also include a memory for storing instructions and data. In one embodiment, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0084] The charging management module 140 receives charging input from the charger. The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In another embodiment, the power management module 141 can also be located in the processor 110. In another embodiment, the power management module 141 and the charging management module 140 can also be located in the same device.
[0085] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0086] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In another embodiment, the antenna can be used in conjunction with a tuning switch.
[0087] The mobile communication module 150 can provide wireless communication solutions for applications on the electronic device 100, including second-generation (2G), third-generation (3G), fourth-generation (4G), fifth-generation (5G), and sixth-generation (6G) mobile communication technologies. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In one embodiment, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In another embodiment, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0088] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In one embodiment, the modem processor may be a separate device. In another embodiment, the modem processor may be independent of the processor 110 and housed within the same device as the mobile communication module 150 or other functional modules.
[0089] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0090] In one embodiment, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0091] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0092] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In one embodiment, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
[0093] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0094] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, and color. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In one implementation, the ISP can be integrated into the camera 193.
[0095] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In one embodiment, electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0096] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0097] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.
[0098] Electronic device 100 can implement audio functions through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0099] Audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. Audio module 170 can also be used for encoding and decoding audio signals.
[0100] The loudspeaker 170A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals.
[0101] The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals.
[0102] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.
[0103] The 170D headphone jack is used to connect wired headphones.
[0104] Pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In one embodiment, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In one embodiment, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands.
[0105] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In one embodiment, the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 180B.
[0106] The light sensor 180C is used to collect light signals. In one embodiment, the light sensor 180C collects light signals using sensing technology such as a photodiode or a photoresistor, for example, collecting light signals reflected or transmitted from the user's wrist onto the light sensor 180C.
[0107] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover.
[0108] The accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes).
[0109] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In one embodiment, when shooting a scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.
[0110] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 uses the photodiode to detect infrared reflected light from a nearby object. When sufficient reflected light is detected, it can be determined that an object is near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that no object is near the electronic device 100.
[0111] The 180L ambient light sensor is used to detect ambient light intensity.
[0112] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.
[0113] The 180J temperature sensor is used to detect temperature.
[0114] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0115] The bone conduction sensor 180M can acquire vibration signals. In one embodiment, the bone conduction sensor 180M can acquire vibration signals from vibrating bone fragments in the human vocal cords. The bone conduction sensor 180M can also contact the human pulse and receive blood pressure signals. In one embodiment, the application processor can analyze heart rate information based on the blood pressure signals acquired by the bone conduction sensor 180M to achieve heart rate detection functionality.
[0116] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0117] Motor 191 can generate vibration alerts. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card.
[0118] In one implementation, Figure 1 The sensor signal acquisition module 101 in the middle can be Figure 2 The optical sensor 180C and / or bone conduction sensor 180M are included. Figure 1 The data preprocessing module 102, heart rate calculation module 103, and postprocessing module 104 can be used for... Figure 2 The processor 110 in the middle, Figure 1 The display module 105 in the middle can be Figure 2 The display screen is 194.
[0119] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. For example, a layered architecture software system can be the Android system, the Harmony operating system (OS), or other software systems. This application embodiment uses the layered architecture Android system as an example to illustrate the software structure of electronic device 100.
[0120] Figure 3 An exemplary schematic diagram of the software architecture of an electronic device 100 is shown.
[0121] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In one implementation, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0122] The application layer can include a series of application packages.
[0123] like Figure 3 As shown, the application package may include applications such as camera, gallery, music, calendar, SMS, calling, navigation, search, browser, and negative one screen.
[0124] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0125] like Figure 3 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0126] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0127] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0128] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0129] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
[0130] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0131] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0132] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0133] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0134] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0135] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0136] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0137] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0138] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0139] A 2D graphics engine is a graphics engine for 2D drawing.
[0140] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0141] The following example, using a heart rate monitoring scenario, illustrates the workflow of the software and hardware of electronic device 100.
[0142] When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, etc.). The raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer and identifies the control corresponding to the input event. Taking a single-click touch operation as an example, where the corresponding control is a control for the single-heart rate application, the single-heart rate application calls the interface of the application framework layer, and then calls the kernel layer to control the display driver, displaying the main interface of the single-heart rate application on the display screen 194.
[0143] The following examples illustrate some heart rate services and their corresponding refresh strategies.
[0144] Please see Figure 4 , Figure 4 This is a schematic flowchart illustrating a heart rate display method provided in an embodiment of this application. This method can be applied to... Figure 1 The illustrated electronic device 100. This method can be applied to... Figure 2 The illustrated electronic device 100. This method can be applied to... Figure 3 The electronic device 100 shown. The method may include, but is not limited to, the following steps:
[0145] S11: Electronic device determines the current heart rate.
[0146] In one implementation, a heart rate service can refer to a service that uses a heart rate algorithm to detect a user's heart rate. This service can be used to display the measured heart rate to the user, such as, but not limited to, dial heart rate, card heart rate, exercise heart rate, daily heart rate, and single-shot heart rate. Dial heart rate can be a service that displays the user's heart rate on the dial or other display module of an electronic device. The dial can be the display screen of a wearable device or an external display / secondary screen of a foldable device. For example, the heart rate value in the dial heart rate display can be measured in real time by the electronic device without the user noticing. Card heart rate can be a service that displays the user's heart rate in application cards and / or individual cards. An application card can be a control that displays the content of an application in the form of a card within the application's user interface. The card can be a control displayed in the form of a card on the electronic device's desktop, negative one screen, or other interfaces other than the application's user interface. For example, for card heart rate display, the electronic device can measure the heart rate value in real time without the user noticing; for card heart rate display in application cards, the electronic device can measure the heart rate value while the current application is running. Exercise heart rate can be a service that displays the user's heart rate in the exercise mode of an electronic device. For example, the heart rate value in exercise heart rate can be measured by the electronic device while it is running exercise mode. Daily heart rate can be a service that periodically measures the user's heart rate in the background. For example, the heart rate value in daily heart rate can be measured in real time by the electronic device without the user noticing. Single heart rate can be a service that measures the user's current heart rate when the user triggers the heart rate measurement function. For example, when the user triggers the heart rate measurement function once, the electronic device measures the heart rate value once.
[0147] In one implementation, when an electronic device receives a user operation that triggers the heart rate service, it can determine the current heart rate service being used by the electronic device. Different heart rate services can be triggered in different ways. For example, the triggering method for watch face heart rate, card heart rate, and daily heart rate can be the detection of the user wearing a watch / band. Alternatively, the triggering method for card heart rate, exercise heart rate, and single heart rate can be the detection of a user operation on the activation control.
[0148] In one implementation, the electronic device can determine a refresh strategy based on the current heart rate service. Different heart rate services may correspond to different refresh strategies. For example, when the electronic device determines it is currently using a watch face heart rate service, it can determine refresh strategy 1 for watch face heart rate. Similarly, card heart rate corresponds to refresh strategy 2, exercise heart rate corresponds to refresh strategy 3, daily heart rate corresponds to refresh strategy 4, and single heart rate corresponds to refresh strategy 5. Optionally, different heart rate services may also use the same refresh strategy.
[0149] Beyond this, electronic devices can further categorize any one of the heart rate services (e.g., the first service) into multiple sub-services, and determine the corresponding refresh strategy for each sub-service. For example, by categorizing exercise heart rate, various different sports (e.g., rope skipping, yoga, outdoor running, etc.) can be obtained, and the current exercise heart rate can be determined as belonging to a particular sports. Based on the sports, a refresh strategy for that exercise heart rate can be determined. For instance, the exercise heart rate for sports 1 (e.g., rope skipping) corresponds to refresh strategy 6, and the exercise heart rate for sports 2 (e.g., yoga) corresponds to refresh strategy 7.
[0150] In one implementation, the refresh strategy may include the time interval for refreshing heart rate values (referred to as refresh time). The refresh time may be different for different heart rate services. In some examples, the refresh times for multiple heart rate services from smallest to largest (i.e., the refresh frequency from fastest to slowest) may be as follows: single heart rate, exercise heart rate, watch face heart rate, card heart rate, and daily heart rate.
[0151] In one implementation, a refresh strategy can be used by an electronic device to display heart rate values under the current heart rate service. In some examples, the refresh time corresponding to the first service is, for example, a preset refresh time (e.g., 30 seconds (s)), and the first service can be any of the aforementioned heart rate services. The refresh strategy corresponding to the first service may include: displaying the heart rate value when the confidence level of the measured heart rate value is greater than or equal to a first threshold (referred to as high confidence); and determining whether to display the heart rate value based on the preset refresh time when the confidence level of the measured heart rate value is less than the first threshold (referred to as low confidence). For example, if the confidence level of the heart rate value 1 measured at the current time (time 2) is less than the first threshold, and the confidence levels of multiple heart rate values within time period 1 (between time 1 and time 2) are all less than the first threshold, and time period 1 is the preset refresh time, then it is determined that heart rate value 1 will be displayed at time 2. This can be understood as follows: if heart rate value 1 has consistently shown low confidence levels before, and the duration of low confidence has reached the preset refresh time, heart rate value 1 can be forcibly displayed when the preset refresh time (e.g., 30 seconds) is reached. However, if the duration of low confidence has not yet reached the preset refresh time, then new heart rate values and their confidence levels are continuously acquired, and the refresh strategy of the first service is used to determine whether to display new heart rate values again. For details, please refer to [link to relevant documentation]. Figure 19 For ease of explanation, the refresh strategy in this application embodiment is mainly illustrated in the scenario where the confidence level of the heart rate value is less than the first threshold.
[0152] exist Figure 4In the method shown, the electronic device can determine the current heart rate service and dynamically select the heart rate refresh strategy (including refresh time) according to the current heart rate service, so that a reasonable refresh time can be set under each heart rate service. In this way, when the confidence of the heart rate is low for a period of time, the electronic device can still force refresh the heart rate value when the refresh time is reached, so that the user can get the current accurate heart rate without waiting too long, thus improving the user experience.
[0153] Next, combine Figure 4 The implementation methods shown illustrate the application scenarios involved and the user interface diagrams for those scenarios.
[0154] Scenario 1: Different heart rate services have different refresh strategies (refresh times). The following explanation uses watch face heart rate and exercise heart rate as examples. For a specific example of watch face heart rate, please refer to [link to example]. Figure 5 For specific examples of exercise heart rate (A)-(B), please refer to [link / reference]. Figure 6 (A)-(F).
[0155] like Figure 5 As shown in (A), when electronic device 100 receives a user operation that triggers the heart rate monitoring of the watch face in the heart rate service (e.g., when it detects that electronic device 100 is worn on the user's wrist), electronic device 100 can perform... Figure 4 Therefore, in step S11, the electronic device 100 can determine the current heart rate displayed on the screen and determine the refresh strategy 1 corresponding to the heart rate (including the refresh time of the heart rate, for example, 40 seconds). Furthermore, the electronic device 100 can begin acquiring the user's heart rate value. The electronic device 100 can choose whether to display / refresh the heart rate value based on the acquired heart rate value and refresh strategy 1. For example, when the confidence level of the heart rate values acquired by the electronic device 100 from the start time (the time when the heart rate value acquisition begins) to the current time is less than a first threshold, and the duration from the start time to the current time is less than the refresh time of the heart rate (e.g., 40 seconds), the electronic device 100 can display the user interface 510. The user interface 510 can be the screen of the electronic device 100, displaying a heart rate icon but not the heart rate value.
[0156] In one implementation, Figure 5 Following (A), when the confidence level of the heart rate values acquired by the electronic device 100 from the start time (the time when the heart rate value acquisition begins as described above) to the current time is less than the first threshold, and the duration from the start time to the current time is equal to the refresh time corresponding to the heart rate on the dial (e.g., 40 seconds), the electronic device 100 can display the heart rate value at the current time. For a specific example, please refer to [link to example]. Figure 5User interface 520 is shown in (B). User interface 520 displays a heart rate icon and a heart rate value, which includes the characters "80" to indicate that the user's current heart rate is 80 bpm.
[0157] like Figure 6 As shown in (A), the electronic device 100 can display a user interface 610, which serves as the desktop of the electronic device 100. The user interface 610 may include multiple application controls, such as controls for applications like sleep, heart rate, exercise, activity tracking, music, training status, and blood oxygen saturation. In one embodiment, the electronic device 100 can display the interface of an exercise application in response to a user operation (e.g., a touch operation) on a control 611 for an exercise application. See [example details omitted]. Figure 6 The user interface 620 shown in (B) is shown.
[0158] like Figure 6 As shown in (B), the user interface 620 may include controls for multiple sports activities, such as rope skipping, outdoor running, and outdoor cycling. In one embodiment, the electronic device 100 may display an outdoor running interface in response to a user operation (e.g., a touch operation) on the control 621 for the outdoor running activity; see specific examples. Figure 6 The user interface 630 shown in (C) is shown.
[0159] like Figure 6 As shown in (C), the user interface 630 may include a control 631 displaying the characters "Start Exercise," which can be used to activate an outdoor running exercise mode. In one embodiment, the electronic device 100 may, in response to a user operation on the control 631 (e.g., a touch operation), activate the outdoor running exercise mode and begin acquiring the user's heart rate value in the exercise mode, at which point it displays... Figure 6 The user interface 640 shown in (D) is also available. Furthermore, the electronic device 100 can also perform… Figure 4 Therefore, in step S11, the electronic device 100 can determine that it is currently at an exercise heart rate and determine the corresponding refresh strategy 3 (including the refresh time of the exercise heart rate, for example, 30 seconds), and display the heart rate value according to the refresh time of the exercise heart rate. For a specific example, please refer to [link to example]. Figure 6 (D)-(F).
[0160] like Figure 6As shown in (D), the user interface 640 may include exercise time 641 and exercise heart rate 642. The exercise time 641 displays the characters "00:00:00", which can indicate that the current user's exercise duration is 0 seconds, that is, the current electronic device 100 has started measuring / acquiring heart rate. The exercise heart rate 642 displays the characters "--heart rate bpm", which can indicate that the current heart rate value is not displayed.
[0161] In one implementation, Figure 6 Following (D), if the duration for which electronic device 100 acquires heart rate is 29 seconds, and the confidence level of the heart rate values acquired by electronic device 100 from the start time (e.g., second 0) to the 29th second is less than the first threshold, and the duration from the start time to the 29th second (e.g., 29 seconds) is less than the refresh time corresponding to the exercise heart rate (e.g., 30 seconds), then electronic device 100 will still not display the heart rate value at the 29th second. For a specific example, please refer to [link to example]. Figure 6 User interface 650 is shown in (E). User interface 650 and Figure 6 Similar to the user interface 640 shown in (D), the difference is that the exercise time 651 in the user interface 650 displays the characters "00:00:29", which indicates that the current user's exercise duration is 29 seconds, that is, the current electronic device 100 acquires the heart rate for 29 seconds.
[0162] In one implementation, Figure 6 Following (E), when the electronic device 100 acquires the heart rate for 30 seconds and the confidence level of the heart rate value acquired by the electronic device 100 in the 30th second is still less than the first threshold, the electronic device 100 may display the heart rate value in the 30th second. See the example below for details. Figure 6 User interface 660 is shown in (F). User interface 660 and Figure 6 Similar to the user interface 650 shown in (E), the difference is that the exercise time 661 in the user interface 660 displays the characters "00:00:30", which indicates that the current user's exercise duration is 30 seconds, that is, the current electronic device 100 acquires the heart rate for 30 seconds. The exercise heart rate 662 in the user interface 660 displays the characters "100 heart rate bpm", which can indicate that the user's current heart rate is 100 bpm.
[0163] The following examples illustrate some heart rate monitoring scenarios and corresponding refresh strategies. The different heart rate monitoring scenarios in the examples below can be different scenarios under the same heart rate service.
[0164] Please see Figure 7 , Figure 7 This is a flowchart illustrating another heart rate display method provided in an embodiment of this application. This method can be applied to... Figure 1 The illustrated electronic device 100. This method can be applied to... Figure 2 The illustrated electronic device 100. This method can be applied to... Figure 3 The electronic device 100 shown. The method may include, but is not limited to, the following steps:
[0165] S21: The electronic device determines that it is currently in the primary service state.
[0166] In one implementation, the first service can be any of the heart rate services; a description of the heart rate services can be found here. Figure 4 The relevant explanations in S11 will not be repeated here.
[0167] In one implementation, the electronic device can determine a refresh strategy corresponding to the current first service. The refresh strategy corresponding to the first service may include a preset refresh time. For details, please refer to [link / description]. Figure 4 The explanation in S11 will not be repeated here.
[0168] S22: The electronic device determines whether the first service meets the first preset condition.
[0169] In one implementation, the first preset condition can be a condition that causes the refresh strategy corresponding to the first service to change (adjust). The first preset condition may include, but is not limited to, at least one of the following: whether the exercise type is a preset exercise type, whether the display screen is on, whether the user's physiological parameter state has changed, whether the user's behavior state has changed, and whether the environment state has changed. The change in the user's physiological parameter state may include whether the heart rate has changed abruptly or whether the heart rate is abnormal.
[0170] In one implementation, after the electronic device determines that it is currently in the first service, it can further determine whether the current first service meets the first preset condition. When the electronic device determines that the first service meets the first preset condition, it can execute S23; when the electronic device determines that the first service does not meet the first preset condition, it can execute S24.
[0171] S23: The electronic device adjusts the preset refresh time and displays the heart rate value according to the adjusted preset refresh time.
[0172] In one implementation, when the electronic device determines that the first service meets the first preset condition, it can adjust the preset refresh time corresponding to the first service, for example, increase / decrease the preset refresh time, and display the heart rate value according to the adjusted preset refresh time.
[0173] S24: The electronic device displays the heart rate value according to the preset refresh time.
[0174] In one implementation, when the electronic device determines that the first service does not meet the first preset condition, the heart rate value can be displayed according to the preset refresh time corresponding to the first service.
[0175] Not limited to Figure 7 In another embodiment of the illustrated implementation, the electronic device can further classify the first service into multiple sub-services. Different refresh times can be used to display heart rate values for different sub-services; that is, different adjustment methods (including no adjustment) can be used to adjust the preset refresh time corresponding to the first service for different sub-services. For example, for sub-service 1, the preset refresh time can be adjusted according to adjustment method 1; for sub-service 2, the preset refresh time can be adjusted according to adjustment method 2; and for sub-service 3, the preset refresh time can be left unchanged. Optionally, the same refresh time can also be used to display heart rate values for different sub-services. Not limited to the above examples, in other examples, the electronic device can further divide the services into sub-services and use different or the same adjustment methods; this application embodiment does not limit this.
[0176] exist Figure 7 In the method shown, when the electronic device is in the first service state, the specific content of the first service can be further determined, i.e., whether the first service meets the first preset condition. This allows the electronic device to choose whether to adjust the preset refresh time corresponding to the first service. This enables dynamic adjustment of the heart rate refresh time for different types of exercise, whether the screen is on, whether the heart rate changes abruptly, whether the heart rate is abnormal, whether the user's physiological parameters change, whether the user's behavior changes, and whether the environment changes. This better meets the user's needs and further improves the user experience while ensuring real-time performance and accuracy.
[0177] The following examples illustrate some... Figure 7 An example implementation of the method shown.
[0178] Please see Figure 8 , Figure 8 This is a flowchart illustrating a heart rate display method based on the rate of heart rate change, as provided in an embodiment of this application. The method is illustrated using exercise heart rate as an example in heart rate monitoring services. This method can be applied to... Figure 1 The illustrated electronic device 100. This method can be applied to... Figure 2 The illustrated electronic device 100. This method can be applied to... Figure 3 The electronic device 100 shown. The method may include, but is not limited to, the following steps:
[0179] S31: The electronic device determines the current heart rate during exercise.
[0180] In one implementation, the electronic device can receive a user operation, and in response to the user operation, determine to activate a first exercise in the exercise mode, and determine the exercise heart rate of the current electronic device in the heart rate service, wherein the first exercise can be any one of multiple exercises in the exercise mode.
[0181] In one implementation, the electronic device can determine a refresh strategy corresponding to the current exercise heart rate. This refresh strategy may include a preset refresh time interval (1). For details, please refer to [link to relevant documentation]. Figure 4 The explanation in S11 will not be repeated here.
[0182] S32: The electronic device determines whether the motion type is a preset motion type.
[0183] In one implementation, the preset exercise type can be an exercise type that causes rapid changes in heart rate, such as, but not limited to, skipping rope and strength training, while the non-preset exercise type can be an exercise type that causes gradual changes in heart rate, such as, but not limited to, yoga, running and outdoor hiking.
[0184] In one embodiment, the electronic device can determine whether the type of the first motion is a preset motion type. When the electronic device determines that the type of the first motion is a preset motion type, it can execute S33; when the electronic device determines that the type of the first motion is not a preset motion type (i.e., the type of the first motion is a non-preset motion type), it can execute S34.
[0185] S33: The electronic device adjusts the preset refresh time 1 and displays the heart rate value according to the adjusted preset refresh time 1.
[0186] In one implementation, when the electronic device determines that the type of the first exercise is a preset exercise type, it can adjust the preset refresh time 1 corresponding to the exercise heart rate, for example, by reducing the preset refresh time 1, and obtain the adjusted preset refresh time 1 (which can be referred to as refresh time 2). The electronic device can display the heart rate value according to refresh time 2.
[0187] S34: The electronic device displays the heart rate value according to the preset refresh time 1.
[0188] In one implementation, when the electronic device determines that the type of the first exercise is not a preset exercise type, it can display the heart rate value according to the preset refresh time 1 corresponding to the exercise heart rate.
[0189] Not limited to Figure 8In another embodiment of the illustrated implementation, the electronic device can acquire the type of exercise at the exercise heart rate. Different refresh times can be used to display the heart rate value for different exercise types. That is, different adjustment methods (including no adjustment) can be used to adjust the preset refresh time 1 corresponding to the exercise heart rate for different exercise types. For example, when the electronic device acquires that the exercise type is rope skipping, it can adjust the preset refresh time 1 according to adjustment method 1. When the electronic device acquires that the exercise type is strength training, it can adjust the preset refresh time 1 according to adjustment method 2. When the electronic device acquires that the exercise type is other than rope skipping and strength training, it can not adjust the preset refresh time 1. This is not limited to the above examples. In other examples, the electronic device can further classify the exercise type and use different adjustment methods. This application embodiment does not limit this.
[0190] exist Figure 8 In the method shown, when the electronic device is in motion heart rate mode, the refresh strategy can be dynamically adjusted for different types of exercise. The fluctuation of a user's heart rate varies depending on the type of exercise. For example, for exercises with gradual heart rate changes, such as running and yoga, the user's requirement for real-time heart rate updates is not high. Therefore, the original preset refresh time of 1 (e.g., 30 seconds) can be maintained. According to the preset refresh time of 1, the heart rate value displayed on the user interface will show sharp increases and decreases. See [link to specific examples] for details. Figure 9 (A) However, electronic devices also have ample time to smooth, filter, and correct heart rate values to ensure that the final heart rate result presented to the user (e.g., the heart rate value displayed in a workout app) is smooth and reliable. For exercises with rapidly changing heart rates, such as skipping rope or strength training, users have high requirements for the real-time refresh rate. For example, users may stop to monitor their heart rate. In this case, the electronic device can reduce the original preset refresh time 1 (e.g., from 30 seconds to 3 seconds) to increase the refresh frequency, thereby improving the user experience. The heart rate value displayed on the user interface according to refresh time 2 will be smoother and more reliable. For specific examples, see [link to example]. Figure 9 (B)
[0191] Figure 9 This example illustrates heart rate curves corresponding to different refresh times during a strength training exercise scenario. The horizontal axis represents time, such as the measurement time of heart rate (in seconds), and the vertical axis represents heart rate, such as heart rate beats per minute (bpm). The graph shows two curves: the gray curve represents the standard heart rate value, and the black curve represents the heart rate value displayed on the user interface. The standard heart rate value can be the user's standard / actual heart rate value during the strength training exercise scenario, while the heart rate value displayed on the user interface is the heart rate value obtained by the electronic device and displayed on the electronic device's screen according to the refresh strategy corresponding to that scenario. Figure 9 Example (A) shows a heart rate graph with a refresh time of 30 seconds. Figure 9 Example (B) shows a heart rate graph with a refresh time of 3 seconds. Figure 9 As shown in (A), when the exercise type is strength training (the preset exercise type) and the refresh time is 30 seconds, the heart rate value displayed on the user interface will show sudden rises and falls (e.g., a linear increase or decrease), meaning the curve of the heart rate value displayed on the user interface is not smooth, and the correlation between the heart rate value displayed on the user interface and the standard heart rate value is not high. Figure 9 As shown in (B), when the refresh time is adjusted to 3s, the occurrence of sudden rises and falls in the heart rate value displayed by the above user interface is significantly reduced. That is, the curve trend of the heart rate value displayed by the user interface is smooth, and the following relationship between the heart rate value displayed by the user interface and the standard heart rate value is also significantly improved.
[0192] Next, combine Figure 8 The implementation methods shown illustrate the application scenarios involved and the user interface diagrams for those scenarios.
[0193] Scenario 2: Different exercise types correspond to different refresh strategies (refresh times). The following example uses rope skipping as the preset exercise type, while running is not. For a specific example of the first exercise being rope skipping (the preset exercise type), please refer to [link to example]. Figure 10 For (A)-(E), a specific example of the first movement being running (not a preset movement type) can be found in scenario 1 above. Figure 6 The (A)-(F) will not be elaborated further.
[0194] In one implementation, Figure 6 Following (B), the electronic device 100 can respond to user operations (e.g., a swipe down from top) and display... Figure 10 User interface 1010 shown in (A), user interface 1010 and Figure 6 The user interface 620 shown in (B) is similar. In one embodiment, the electronic device 100 may display a jump rope interface in response to a user operation (e.g., a touch operation) of the control 1011 for a jump rope activity, as illustrated in the example below. Figure 10 The user interface 1020 shown in (B) is shown.
[0195] like Figure 10As shown in (B), the user interface 1020 may include a control 1021 displaying the characters "Start Exercise," which can be used to activate the jump rope exercise mode. In one embodiment, the electronic device 100 may, in response to a user operation on the control 1021 (e.g., a touch operation), activate the jump rope exercise mode and begin acquiring the user's heart rate value in the exercise mode, at which point it displays... Figure 10 The user interface 1030 shown in (C) is also available. Furthermore, the electronic device 100 can also perform... Figure 8 Therefore, in step S31, the electronic device 100 can determine that it is currently at an exercise heart rate and the corresponding preset refresh time 1 (e.g., 30s). Then, the electronic device 100 can execute step S32, determine that skipping rope is the preset exercise type, and execute step S33, whereby the electronic device adjusts the preset refresh time 1 to obtain a refresh time 2 (e.g., 3s), and displays the heart rate value according to refresh time 2. For a specific example, see [link to example]. Figure 10 (C)-(E).
[0196] like Figure 10 As shown in (C), the user interface 1030 and Figure 6 The user interface 640 shown in (D) is similar; see details below. Figure 6 The description of the user interface 640 shown in (D) will not be repeated.
[0197] In one implementation, Figure 10 Following (C), when the electronic device 100 acquires the heart rate for 2 seconds, and the confidence level of the heart rate values acquired by the electronic device 100 from the start time (e.g., second 0) to the second second is less than the first threshold, and the duration from the start time to the second second (e.g., 2 seconds) is less than the refresh time 2 (e.g., 3 seconds), the electronic device 100 still does not display the heart rate value in the second second. For a specific example, see [link to example]. Figure 10 User interface 1040 is shown in (D). User interface 1040 and Figure 10 Similar to the user interface 1030 shown in (C), the difference is that the exercise time 1041 in the user interface 1040 displays the characters "00:00:02", which indicates that the current user's exercise duration is 2 seconds, that is, the current electronic device 100 acquires the heart rate for 2 seconds.
[0198] In one implementation, Figure 10 Following (D), when the electronic device 100 acquires the heart rate for 3 seconds and the confidence level of the heart rate value acquired by the electronic device 100 in the 3rd second is still less than the first threshold, the electronic device 100 may display the heart rate value in the 3rd second. See the example below for details. Figure 10 User interface 1050 is shown in (E). User interface 1050 and Figure 10Similar to the user interface 1040 shown in (D), the difference is that the character "00:00:03" is displayed for the exercise time 1051 in the user interface 1050, indicating that the current user's exercise duration is 3 seconds, that is, the current electronic device 100 acquires the heart rate for 3 seconds. The character "128 bpm" is displayed for the exercise heart rate 1052 in the user interface 1050, which can indicate that the user's current heart rate is 128 bpm.
[0199] Please see Figure 11 , Figure 11 This is a flowchart illustrating a heart rate display method shown in the display state of a screen, as provided in an embodiment of this application. This method can be applied to... Figure 1 The illustrated electronic device 100. This method can be applied to... Figure 2 The illustrated electronic device 100. This method can be applied to... Figure 3 The electronic device 100 shown. The method may include, but is not limited to, the following steps:
[0200] S41: The electronic device determines that it is currently in the primary service state.
[0201] In one implementation, the electronic device can determine the refresh strategy corresponding to the first service based on the current first service being performed. The refresh strategy corresponding to the first service may include a preset refresh time 2. For details, please refer to [link / description]. Figure 4 The explanation in S11 will not be repeated here.
[0202] S42: Electronic devices determine whether the display screen is on.
[0203] In one implementation, during the execution of the first service, the electronic device can detect in real time whether the display screen is on. For example, when the electronic device receives a user operation that triggers the display screen to turn on, it can determine that the display screen is on. The way to trigger the display screen to turn on may include, but is not limited to, receiving a user operation on the power button or the screen (e.g., a touch operation) and the electronic device detecting a user operation (e.g., the user raising their wrist).
[0204] In one implementation, when the electronic device determines that the display screen is on, it can execute S43; when the electronic device determines that the display screen is not on, it can execute S44.
[0205] S43: The electronic device adjusts the preset refresh time 2 and displays the heart rate value according to the adjusted preset refresh time 2.
[0206] In one implementation, when the electronic device determines that the display screen is on, it can refresh the heart rate value at the moment the display screen is on. Furthermore, the electronic device can adjust the preset refresh time 2 corresponding to the first service, for example, by reducing the preset refresh time 2, and obtain the adjusted preset refresh time 2 (which can be referred to as refresh time 3). The electronic device can display the heart rate value according to refresh time 3 while the display screen remains on.
[0207] In one implementation, when the electronic device detects that the display screen has changed from being on to being off, it can determine that the display screen is off, and at this time the electronic device can execute S44. The display screen not being on can include the display screen being in a black screen state and the display screen being in a screen-off state. A black screen state can mean the display screen is completely black and does not display any information, while a screen-off state can mean the display screen is partially black but displays information (such as time, date, battery level, notification information, etc.). An example of a screen-off state can be found in [reference needed]. Figure 12 (A)-(C). In one embodiment, if the electronic device has an always-on display function, the electronic device can enable the always-on display function to keep the screen off when the display is not lit. The electronic device can also disable the always-on display function to keep the screen black when the display is not lit. Not limited thereto, in another embodiment, if the electronic device does not have an always-on display function, the electronic device is in a black screen state when the display is not lit.
[0208] Understandably, the electronic device can refresh the heart rate value of the user interface immediately when the screen lights up, and display the heart rate value according to the refresh time 3 during the screen lighting period. When the screen lights up and returns to the off state, the electronic device can continue to execute S44.
[0209] S44: The electronic device displays the heart rate value according to the preset refresh time 2 or does not refresh the heart rate value.
[0210] In one implementation, when the electronic device determines that the display screen is in a screen-off state, it can display the heart rate value in the screen-off state according to the preset refresh time 2 corresponding to the first service, or it can not refresh the heart rate value (i.e., keep displaying the most recently refreshed heart rate value, such as the heart rate value last refreshed when the electronic device is on).
[0211] In another implementation, when the electronic device determines that the display screen is in a black screen state, it may not refresh the heart rate value, and the electronic device will not display the heart rate value.
[0212] exist Figure 11In the method shown, when the electronic device is in the first service state, after triggering the screen to light up, the user may observe the current real-time heart rate, indicating a high requirement for the real-time heart rate refresh. In this case, the electronic device can reduce the original preset refresh time 2 for the first service state (e.g., from 30 seconds to 3 seconds) to increase the refresh frequency and improve the user experience. When the screen is off, the user will not observe the current real-time heart rate, meaning the user's requirement for the real-time heart rate refresh is not high. Therefore, the original preset refresh time 2 (e.g., 30 seconds) for the first service state can be maintained, or the heart rate value can be not refreshed. In this case, the electronic device can perform smoothing, filtering, and correction on the acquired heart rate value to ensure that the final heart rate result presented to the user is smooth and reliable.
[0213] Next, combine Figure 11 The implementation methods shown illustrate the application scenarios involved and the user interface diagrams for those scenarios.
[0214] Scenario 3: The refresh time for a screen-on scenario can be shorter than the refresh time for a screen-off scenario. The following explanation uses the heart rate indicator on the watch face as an example. Specifically, the example given is a screen-off state; for a detailed example of a screen-off state, please refer to [link to relevant documentation]. Figure 12 (A)-(C); For specific examples of the display screen turning on, please refer to (A)-(C). Figure 12 (D)-(F).
[0215] In one implementation, when the electronic device 100 is set to the heart rate display, it can perform... Figure 11 In step S42, and after determining that the current display screen is not lit, step S44 is executed, meaning that the electronic device 100 can display the heart rate value according to the preset refresh time 2 (e.g., 30s) corresponding to the heart rate on the dial. For a specific example, please refer to [link to example]. Figure 12 (A)-(C).
[0216] like Figure 12 As shown in (A), the electronic device 100 can display a user interface 1210. The user interface 1210 is the interface of the electronic device 100 in the screen-off state. The user interface 1210 can include a time 1211 and a heart rate 1212. The time 1211 displays the characters "19:00:00", which can indicate that the current time of the electronic device 100 is 19:00. The heart rate 1212 displays the characters "90", which can indicate that the current user's heart rate is 90 bpm. In one embodiment, the heart rate 1212 can be the heart rate value refreshed / displayed by the electronic device 100 at time 1211. For ease of explanation, the following scenario uses the example of the heart rate 1212 being the heart rate value refreshed / displayed by the electronic device 100 at time 1211.
[0217] In one implementation, Figure 12Following (A), when the interval is 30 seconds (e.g., the time between 19:00:00 and 19:00:30), and the confidence level of the heart rate values obtained by the electronic device 100 within the interval is less than the first threshold, and the interval is equal to the preset refresh time 2 corresponding to the heart rate on the dial (e.g., 30 seconds), the electronic device 100 can display the heart rate value at 19:00:30. See the example below for details. Figure 12 User interface 1220 is shown in (B). User interface 1220 and Figure 12 The user interface 1210 shown in (A) is similar, except that the time 1221 in the user interface 1220 displays the character "19:00:30", which indicates that the current time of the electronic device 100 is 19:00:30. The heart rate 1222 in the user interface 1220 displays the character "99", which can indicate that the user's current heart rate is 99 bpm.
[0218] In one implementation, Figure 12 Following (B), when the interval is 30 seconds (e.g., the time between 19:00:30 and 19:01:00), and the confidence level of the heart rate values obtained by the electronic device 100 within the interval is less than the first threshold, and the interval is equal to the preset refresh time 2 corresponding to the heart rate on the dial (e.g., 30 seconds), the electronic device 100 can display the heart rate value at 19:01:00. See the example below for details. Figure 12 User interface 1230 is shown in (C). User interface 1230 and Figure 12 Similar to the user interface 1220 shown in (B), the difference is that the time 1231 in the user interface 1230 displays the character "19:01:00", indicating that the current time of the electronic device 100 is 19:01. The heart rate 1232 in the user interface 1230 displays the character "102", which can indicate that the user's current heart rate is 102 bpm.
[0219] In one implementation, Figure 12 After (C), when the electronic device 100 detects that the display screen is on, it can refresh the heart rate value at the moment the display screen is on, and at this time the electronic device 100 can display... Figure 12 The user interface 1240 is shown in (D). The electronic device 100 can also perform S43, that is, the electronic device 100 adjusts the preset refresh time 2 to obtain a refresh time 3 (e.g., 3s), and displays the heart rate value according to the refresh time 3. See [example provided]. Figure 12 (D)-(F).
[0220] like Figure 12As shown in (D), the user interface 1240 can be the interface of the electronic device 100 in the screen-on state. The user interface 1240 can include time 1241 and heart rate 1242. The time 1241 displays the characters "19:01:10", which can indicate that the current time of the electronic device 100 is 19:01:10. The heart rate 1242 displays the characters "104", which can indicate that the current user's heart rate is 104 bpm, that is, the user's heart rate at the moment when the electronic device 100 is on this screen is 104 bpm.
[0221] In one implementation, Figure 12 Following (D), when the interval is 3 seconds (e.g., the time between 19:01:10 and 19:01:13), and the confidence level of the heart rate values acquired by the electronic device 100 within the interval is less than the first threshold, and the interval is equal to the refresh time of 3 (e.g., 3 seconds), the electronic device 100 can display the heart rate value at 19:01:13. See the example below for details. Figure 12 User interface 1250 is shown in (E). User interface 1250 and Figure 12 Similar to the user interface 1240 shown in (D), the difference is that the time 1251 in the user interface 1250 displays the character "19:01:13", which indicates that the current time of the electronic device 100 is 19:01:13. The heart rate 1252 in the user interface 1250 displays the character "101", which can indicate that the user's current heart rate is 101 bpm.
[0222] In one implementation, Figure 12 Following (E), when the interval is 3 seconds (e.g., the time between 19:01:13 and 19:01:16), and the confidence level of the heart rate values acquired by the electronic device 100 within the interval is less than the first threshold, and the interval is equal to the refresh time of 3 (e.g., 3 seconds), the electronic device 100 can display the heart rate value at 19:01:16. See the example below for details. Figure 12 User interface 1260 is shown in (F). User interface 1260 and Figure 12 Similar to the user interface 1250 shown in (C), the difference is that the time 1261 in the user interface 1260 displays the character "19:01:16", which indicates that the current time of the electronic device 100 is 19:01:16. The heart rate 1262 in the user interface 1260 displays the character "103", which can indicate that the user's current heart rate is 103 bpm.
[0223] Not limited to the example above where the display screen is off and the electronic device 100 displays the heart rate value according to a preset refresh time 2, in other examples, when the display screen is off, the electronic device 100 may not refresh the heart rate value; that is, the electronic device 100 may maintain the display of the most recently refreshed heart rate value. For example, suppose in... Figure 12 Before (A), the heart rate value of the electronic device 100 in the last refreshed state while the screen was on was 90 bpm. Therefore, the subsequent... Figure 12 User interfaces 1210, 1220 and 1230 shown in (A)-(C) can all maintain the display of the above heart rate value of 90 bpm, that is, the characters contained in heart rate 1222 in user interface 1220 and heart rate 1232 in user interface 1230 are both "90".
[0224] Not limited to the example above where the display screen is off and in a screen-off state, in another implementation, if the display screen is off and in a black screen state, the electronic device 100 may not refresh the heart rate value or display the heart rate value.
[0225] Please see Figure 13 , Figure 13 This is a flowchart illustrating a heart rate display method based on a user's physiological parameter status, provided in an embodiment of this application. The method is explained using the example of whether a sudden change in heart rate has occurred. This method can be applied to... Figure 1 The illustrated electronic device 100. This method can be applied to... Figure 2 The illustrated electronic device 100. This method can be applied to... Figure 3 The electronic device 100 shown. The method may include, but is not limited to, the following steps:
[0226] S51: The electronic device determines that it is currently in the primary service state.
[0227] In one implementation, the electronic device can determine the refresh strategy corresponding to the first service based on the current first service being performed. The refresh strategy corresponding to the first service may include a preset refresh time 3. For details, please refer to [link / description]. Figure 4 The explanation in S11 will not be repeated here.
[0228] S52: Electronic devices determine whether there are sudden changes in heart rate.
[0229] In one implementation, a sudden change in heart rate can be defined as a heart rate change value greater than or equal to a first preset threshold, while no sudden change in heart rate can be defined as a heart rate change value less than the first preset threshold. The heart rate change value can be the amplitude of heart rate change within a preset time period (e.g., 3 seconds). For example, a sudden change in heart rate can be defined as a heart rate change amplitude greater than 30 bpm within 3 seconds. In some examples, a sudden change in the user's heart rate may occur when the user's activity level in exercise mode changes from low to high (e.g., the user starts exercising) or from high to low (e.g., the user stops exercising).
[0230] In one implementation, during the execution of the first service, the electronic device can detect in real time whether a sudden change in heart rate has occurred. When the electronic device detects a heart rate change value greater than or equal to a first preset threshold, it can determine that a sudden change in heart rate has occurred, and at this time, S53 can be executed. When the electronic device does not detect a heart rate change value greater than or equal to the first preset threshold (i.e., the heart rate change value is less than the first preset threshold), it can determine that no sudden change in heart rate has occurred, and at this time, S54 can be executed.
[0231] S53: The electronic device adjusts the preset refresh time 3 and displays the heart rate value according to the adjusted preset refresh time 3.
[0232] In one implementation, when the electronic device determines that a sudden change in heart rate has occurred, it can adjust the preset refresh time 3 corresponding to the first service, for example, by reducing the preset refresh time 3, and obtain the adjusted preset refresh time 3 (which can be referred to as refresh time 4). The electronic device can then display the heart rate value according to refresh time 4.
[0233] In one implementation, the electronic device can determine the moment 3 when the heart rate changes abruptly, and use that moment 3 as the starting point to display the heart rate value within a time period 2 (e.g., 5 seconds) according to a refresh time 4.
[0234] In one implementation, when the electronic device does not detect another sudden change in heart rate within time period 2, it can be determined that no sudden change in heart rate has occurred. At this time, the electronic device can determine the time 4 when no sudden change in heart rate has occurred, and with time 4 as the starting time, execute S54, that is, the electronic device displays the heart rate value according to the preset refresh time 3. When the electronic device detects another sudden change in heart rate within time period 2, it can re-determine the new time 5 when the sudden change in heart rate has occurred, and with time 5 as the starting time, display the heart rate value according to the refresh time 4 within time period 2.
[0235] S54: The electronic device displays the heart rate value according to the preset refresh time 3.
[0236] In one implementation, when the electronic device determines that no sudden change in heart rate has occurred, it can display the heart rate value according to the preset refresh time 3 corresponding to the first service. In some examples, the refresh time (i.e., refresh time 4) corresponding to the scenario where a sudden change in heart rate occurs can be less than the refresh time (i.e., the preset refresh time 3) corresponding to the scenario where no sudden change in heart rate occurs.
[0237] exist Figure 13 In the method shown, when the electronic device detects a sudden change in the user's heart rate, the original preset refresh time 3 of the first service can be adjusted (e.g., from 30s to 2s) to increase the refresh frequency, making it easier for users to monitor their health in real time and improving the user experience. When the electronic device does not detect a sudden change in the user's heart rate, the original preset refresh time 3 (e.g., 30s) can be maintained to refresh the heart rate, thus saving the energy consumption of the electronic device.
[0238] Please see Figure 14 , Figure 14 This is a flowchart illustrating another heart rate display method based on the user's physiological parameter status, provided in an embodiment of this application. The method is explained using the example of whether the heart rate is abnormal. This method can be applied to... Figure 1 The illustrated electronic device 100. This method can be applied to... Figure 2 The illustrated electronic device 100. This method can be applied to... Figure 3 The electronic device 100 shown. The method may include, but is not limited to, the following steps:
[0239] S61: The electronic device determines that it is currently in the primary service state.
[0240] In one implementation, the electronic device can determine a refresh strategy corresponding to the current first service. The refresh strategy corresponding to the first service may include a preset refresh time 4. For details, please refer to [link / description]. Figure 4 The explanation in S11 will not be repeated here.
[0241] S62: Electronic devices determine whether the heart rate is abnormal.
[0242] In one implementation, an abnormal heart rate can be a heart rate value that is less than a second preset threshold (e.g., 50 bpm) or greater than a third preset threshold (e.g., 190 bpm), while a normal / non-abnormal heart rate can be a heart rate value that is greater than or equal to the second preset threshold and less than or equal to the third preset threshold.
[0243] In one implementation, during the execution of the first service, the electronic device can detect whether the heart rate is abnormal in real time. When the electronic device detects that the heart rate value is less than the second preset threshold or greater than the third preset threshold, it can determine that the heart rate is abnormal, and S63 can be executed at this time. When the electronic device detects that the heart rate value is greater than or equal to the second preset threshold and less than or equal to the third preset threshold, it can determine that the heart rate is not abnormal / the heart rate is normal, and S63 can be executed at this time.
[0244] S63: The electronic device adjusts the preset refresh time 4 and displays the heart rate value according to the adjusted preset refresh time 4.
[0245] In one implementation, when the electronic device determines that the heart rate is abnormal, it can adjust the preset refresh time 4 corresponding to the first service, for example, by reducing the preset refresh time 4, and obtain the adjusted preset refresh time 4 (which can be referred to as refresh time 5). The electronic device can then display the heart rate value according to refresh time 5.
[0246] In one implementation, the electronic device can determine the moment 6 of the heart rate abnormality and, starting from moment 6, display the heart rate value within a time period 3 (e.g., 5 seconds) according to a refresh time 5.
[0247] In one implementation, when the electronic device does not detect an abnormal heart rate again within time period 3, it can be determined that the heart rate is not abnormal / normal. At this time, the electronic device can determine the time 7 when the heart rate is not abnormal, and execute S64 with the time 7 as the starting time, that is, the electronic device displays the heart rate value according to the preset refresh time 4. When the electronic device detects an abnormal heart rate again within time period 3, it can re-determine the time 8 when the heart rate is abnormal, and display the heart rate value according to the refresh time 5 within time period 3 with the time 8 as the starting time.
[0248] S64: The electronic device displays the heart rate value according to the preset refresh time 4.
[0249] In one implementation, when the electronic device determines that the heart rate is not abnormal / normal, it can display the heart rate value according to the preset refresh time 4 corresponding to the first service. In some examples, the refresh time (i.e., refresh time 5) corresponding to the abnormal heart rate scenario can be less than the refresh time (i.e., the preset refresh time 4) corresponding to the normal heart rate scenario.
[0250] exist Figure 14 In the method shown, when the electronic device detects an abnormal heart rate in the user, the original preset refresh time 4 of the first service can be adjusted (e.g., from 30s to 2s) to increase the refresh frequency, making it easier for the user to monitor their health in real time and improving the user experience. When the electronic device does not detect an abnormal heart rate in the user, the original preset refresh time 4 (e.g., 30s) can be maintained to refresh the heart rate, thus saving the energy consumption of the electronic device.
[0251] Not limited to the above Figure 13 and Figure 14 In the example scenario where the physiological parameter status is based on whether the heart rate has changed abruptly or is abnormal, in another implementation, the user's physiological parameter status can also be based on whether other physiological parameters have changed. These other physiological parameters may include, but are not limited to, body temperature, blood pressure, respiration, pulse, lung capacity, blood indicators, and skin resistance. After the electronic device determines that it is currently in the first service state, it can determine whether other physiological parameters have changed. A change in other physiological parameters can be defined as a change in the value of the other physiological parameter being greater than or equal to a fourth preset threshold. No change in other physiological parameters can be defined as a change in the value of the other physiological parameters being less than the fourth preset threshold. The change in other physiological parameters can be the magnitude of change of at least one physiological parameter within a preset time period (e.g., 3 seconds). When the electronic device determines that other physiological parameters have changed, it can adjust the preset refresh time 5 corresponding to the first service state (e.g., from 30 seconds to 3 seconds) and display the heart rate value according to the adjusted preset refresh time 5 (e.g., 3 seconds). When the electronic device determines that other physiological parameters have not changed, it can display the heart rate according to the preset refresh time 5 (e.g., 30 seconds).
[0252] Not limited to this, in another implementation, when the user's physiological parameters change, the electronic device can determine that the user's psychological state (e.g., mood and / or stress) will change. Therefore, when the electronic device is in the first service state, it can also determine whether the user's psychological state (mood and / or stress) has changed. If it is determined that the user's mood and / or stress have changed, the preset refresh time corresponding to the first service state is adjusted to increase the frequency of heart rate refresh; if it is determined that the user's mood and stress have not changed, the heart rate is refreshed according to the preset refresh time corresponding to the first service state.
[0253] Please see Figure 15 , Figure 15 This is a flowchart illustrating a heart rate display method based on user behavior states, provided in an embodiment of this application. This method can be applied to... Figure 1 The illustrated electronic device 100. This method can be applied to... Figure 2 The illustrated electronic device 100. This method can be applied to... Figure 3 The electronic device 100 shown. The method may include, but is not limited to, the following steps:
[0254] S91: The electronic device has determined that it is currently in the primary service state.
[0255] In one implementation, the electronic device can determine a refresh strategy corresponding to the current first service. The refresh strategy corresponding to the first service may include a preset refresh time 6. For details, please refer to [link / description]. Figure 4The explanation in S11 will not be repeated here.
[0256] S92: Electronic devices determine whether the user's behavioral state has changed.
[0257] In one implementation, the user's behavioral state can be a motion-related state, such as, but not limited to, exercise intensity, activity level, speed, and actions. In some examples, the user's behavioral state changes when the user's exercise intensity in a motion mode decreases or increases. In some examples, the user's behavioral state changes when the user's activity level in a motion mode increases (e.g., the user begins exercising) or decreases (e.g., the user stops exercising). In some examples, the user's behavioral state changes when the user's speed in a motion mode suddenly accelerates or decelerates. In some examples, the user's behavioral state changes when the user's actions in the first activity change (e.g., suddenly standing up or suddenly squatting down).
[0258] In one implementation, during the execution of the first service, the electronic device can detect in real time whether the user's behavior state has changed. When the electronic device detects a change in the user's behavior state, it can execute S93; when the electronic device does not detect a change in the user's behavior state, it can execute S94.
[0259] S93: The electronic device adjusts the preset refresh time 6 and displays the heart rate value according to the adjusted preset refresh time 6.
[0260] In one implementation, when the electronic device determines that the user's behavior has changed, it can adjust the preset refresh time 6 corresponding to the first service, for example, by reducing the preset refresh time 6, and obtain the adjusted preset refresh time 6 (which can be referred to as refresh time 7). The electronic device can then display the heart rate value according to refresh time 7.
[0261] S94: The electronic device displays the heart rate value according to the preset refresh time 6.
[0262] In one implementation, when the electronic device determines that the user's behavior has not changed, it can display the heart rate value according to the preset refresh time 6 corresponding to the first service. In some examples, the refresh time (i.e., refresh time 7) corresponding to the scenario where the user's behavior has changed can be less than the refresh time (i.e., the preset refresh time 6) corresponding to the scenario where the user's behavior has not changed.
[0263] exist Figure 15In the method shown, when the electronic device detects a change in the user's behavior, it can adjust the original preset refresh time 6 (e.g., from 30s to 3s) of the first service to increase the refresh frequency and improve the user experience. When the electronic device does not detect a change in the user's behavior, it can maintain the original preset refresh time 6 (e.g., 30s) to refresh the heart rate, thereby saving the energy consumption of the electronic device.
[0264] Understandably, Figure 13 and Figure 14 The example illustrates how electronic devices adjust the heart rate refresh time based on changes in the user's physiological parameters. Figure 15 The example illustrates how an electronic device adjusts its heart rate refresh time based on changes in the user's behavioral state. These two methods examine the user's state from different dimensions. In reality, changes in a user's behavioral state lead to changes in their physiological parameters, and these changes in physiological parameters can confirm changes in behavioral state. Therefore, in this application, the electronic device can adjust its heart rate refresh strategy either by directly detecting physiological parameters or by detecting behavioral states that cause changes in physiological parameters. Furthermore, the electronic device can also adjust its heart rate refresh time by detecting changes in the user's psychological state. This application does not limit the dimensions detected by the electronic device. The diverse dimensions of detection by the electronic device ensure that even if a change in heart rate is not detected in one dimension, changes can still be accurately detected in other dimensions, guaranteeing detection accuracy and further improving the user experience.
[0265] Please see Figure 16 , Figure 16 This is a schematic flowchart illustrating a heart rate display method based on environmental conditions, as provided in an embodiment of this application. This method can be applied to... Figure 1 The illustrated electronic device 100. This method can be applied to... Figure 2 The illustrated electronic device 100. This method can be applied to... Figure 3 The electronic device 100 shown. The method may include, but is not limited to, the following steps:
[0266] S111: The electronic device has determined that it is currently in the primary service state.
[0267] In one implementation, the electronic device can determine a refresh strategy corresponding to the current first service. The refresh strategy corresponding to the first service may include a preset refresh time 7. For details, please refer to [link / description]. Figure 4 The explanation in S11 will not be repeated here.
[0268] S112: The electronic device determines whether the state of the environment has changed.
[0269] In one implementation, the state of the environment can be the state of the environment in which the electronic device / user is located, including, but not limited to, light, sound, noise, ultraviolet radiation, etc. In some examples, the state of the environment changes when the intensity of light in the environment decreases or increases. In some examples, the state of the environment changes when the intensity of sound in the environment decreases or increases. In some examples, the state of the environment changes when the noise in the environment suddenly increases (e.g., changes from no noise / low noise to high noise) or suddenly decreases (e.g., changes from high noise to no noise / low noise). In some examples, the state of the environment changes when the ultraviolet radiation in the environment decreases or increases.
[0270] In one implementation, during the execution of the first service, the electronic device can detect in real time whether the state of the environment has changed. When the electronic device detects a change in the state of the environment, it can execute S113; when the electronic device does not detect a change in the state of the environment, it can execute S114.
[0271] S113: The electronic device adjusts the preset refresh time 7 and displays the heart rate value according to the adjusted preset refresh time 7.
[0272] In one implementation, when the electronic device determines that the state of the environment has changed, it can adjust the preset refresh time 7 corresponding to the first service, for example, by reducing the preset refresh time 7, and obtain the adjusted preset refresh time 7 (which can be referred to as refresh time 8). The electronic device can display the heart rate value according to refresh time 8.
[0273] S114: The electronic device displays the heart rate value according to the preset refresh time 7.
[0274] In one implementation, when the electronic device determines that the state of the environment has not changed, it can display the heart rate value according to the preset refresh time 7 corresponding to the first service. In some examples, the refresh time (i.e., refresh time 8) corresponding to the scenario where the state of the environment changes can be less than the refresh time (i.e., the preset refresh time 7) corresponding to the scenario where the state of the environment has not changed.
[0275] exist Figure 16 In the method shown, when the electronic device detects a change in the environmental state, it can adjust the original preset refresh time 7 of the first service (e.g., from 30s to 3s) to increase the refresh frequency and improve the user experience. When the electronic device does not detect a change in the environmental state, it can maintain the original preset refresh time 7 (e.g., 30s) to refresh the heart rate, thereby saving the energy consumption of the electronic device.
[0276] Not limited to the above Figures 8-16The example electronic device only determines one of the following conditions: whether the exercise type is a preset exercise type, whether the display screen is on, whether the heart rate has changed abruptly, whether the heart rate is abnormal, whether the user's physiological parameters have changed, whether the user's behavioral state has changed, and whether the environmental state has changed (i.e., Figure 7 In S22, the first preset condition includes only one condition. In another embodiment, the electronic device can also determine multiple conditions in the above situation (i.e., Figure 7 The first preset condition in S22 includes at least two conditions, so as to select whether to adjust the preset refresh time based on the judgment result of multiple conditions.
[0277] In some examples, assuming the current heart rate monitoring scenario includes the primary service and the aforementioned conditions, the electronic device will only adjust the refresh strategy corresponding to the primary service when all conditions are met. For instance, the electronic device can choose any one of the multiple refresh strategies (refresh times) corresponding to these conditions (e.g., the minimum refresh time) as the final adjusted refresh time. Alternatively, the electronic device can determine a new refresh time (e.g., the average of multiple refresh times) as the final adjusted refresh time. Specific examples are as follows:
[0278] Example 1: When an electronic device is in its primary service state, it can determine whether the screen is on (condition 1) and whether there is a sudden change in heart rate (condition 2). Specifically, the electronic device can perform... Figure 11 S41-S42 determines the current state of the first service and its corresponding preset refresh time 8 (e.g., 30s), and checks whether the display is on and whether the heart rate has changed abruptly. When a sudden change in heart rate is detected and the display is on (both conditions 1 and 2 are met), the electronic device can adjust the preset refresh time 8 corresponding to the first service. Assuming the display being on corresponds to refresh time 9 and the sudden change in heart rate corresponds to refresh time 10, and refresh time 9 (e.g., 3s) is less than refresh time 10 (e.g., 5s), the electronic device can choose the smaller refresh time 9 and adjust the preset refresh time 8 to refresh time 9 (e.g., from 30s to 3s), and display the heart rate value according to refresh time 9 to increase the refresh frequency of the heart rate. Alternatively, the electronic device can choose any option (e.g., refresh time 10) and adjust the preset refresh time 8 to refresh time 10 (e.g., from 30s to 5s), and display the heart rate value according to refresh time 10. Not limited to this, the electronic device can also determine a new refresh time 11 (e.g., the average of refresh time 9 and refresh time 10 (e.g., 4s)) and display the heart rate value according to refresh time 11.
[0279] In other examples, assuming the current heart rate monitoring scenario includes a first service and the aforementioned multiple conditions, when at least one of the conditions is met, the electronic device can adjust the refresh time corresponding to the first service according to the refresh time corresponding to that condition. For example, the electronic device can select any one of the at least one refresh time corresponding to that condition (e.g., the minimum refresh time) as the final adjusted refresh time. Alternatively, the electronic device can determine a new refresh time (e.g., the average of the at least one refresh time) as the final adjusted refresh time. The specific example is similar to Example 1, except that the electronic device is now in the first service and can determine whether the screen is on (condition 1), whether the heart rate has changed abruptly (condition 2), and whether the heart rate is abnormal (condition 3). When conditions 1 and 2 are met, but condition 3 is not met, the specific implementation method can be found in Example 1 above, and will not be repeated here.
[0280] Not limited to this, in some other examples, assuming the current heart rate monitoring scenario includes the first service and the above multiple conditions, when the judgment results of multiple conditions are not met, the electronic device will not adjust the refresh strategy corresponding to the first service, that is, the electronic device will continue to display the heart rate value according to the refresh strategy corresponding to the first service.
[0281] In some embodiments of this application, the user can set a refresh policy in the electronic device. In some examples, different refresh policies are set for different heart rate services, for example... Figure 15 In some examples, a unified refresh strategy is set for different heart rate services; in some examples, corresponding refresh strategies are set for different scenarios under the same heart rate service; and in some examples, a unified refresh strategy is set for different scenarios under the same heart rate service. This application embodiment does not limit the way to set the refresh strategy.
[0282] Please see Figure 17 , Figure 17 This is a flowchart illustrating a heart rate display method based on user settings, provided in an embodiment of this application. The method is explained using exercise heart rate as an example in a heart rate service. This method can be applied to... Figure 1 The illustrated electronic device 100. This method can be applied to... Figure 2 The illustrated electronic device 100. This method can be applied to... Figure 3 The electronic device 100 shown. The method may include, but is not limited to, the following steps:
[0283] S71: The electronic device receives the user's operation and determines the first motion in the selected motion mode.
[0284] In one implementation, the electronic device can receive a user operation and, in response to the user operation, determine a first movement in the selected movement mode, wherein the first movement can be any one of a plurality of movements in the movement mode.
[0285] S72: The electronic device receives the user's operation and determines the set refresh time 12.
[0286] In one implementation, the electronic device can receive a user operation and, in response to the user operation, determine the refresh time 12 of the first motion manually set by the user.
[0287] S73: The electronic device determines the current heart rate during exercise.
[0288] In one implementation, the electronic device can receive a user operation, and in response to the user operation, determine to initiate a first exercise and determine the current heart rate of the electronic device during heart rate monitoring. For details, please refer to [link to relevant documentation]. Figure 8 The explanation in S31 will not be repeated here.
[0289] S74: Electronic devices display heart rate values according to a refresh time of 12.
[0290] In one implementation, during the first exercise, the electronic device can display the heart rate value according to a refresh time of 12.
[0291] exist Figure 17 In the method shown, different users have different requirements for the real-time refresh of heart rate. The electronic device can set the refresh time 12 according to the user's operation to meet the user's needs, thereby satisfying the user's personalized needs and further improving the user experience.
[0292] Next, combine Figure 17 The implementation methods shown illustrate the application scenarios involved and the user interface diagrams for those scenarios.
[0293] Scenario 4: Electronic devices set the refresh time for exercise heart rate based on user actions. See the example below for details. Figure 18 (A)-(C).
[0294] like Figure 18 As shown in (A), the electronic device 100 can display a user interface 1610, and the user interface 1610 and Figure 6 Similar to the user interface 620 shown in (B), the control 1611 in the user interface 1610 can be used to trigger the setting of parameters for the outdoor running program. In one embodiment, the electronic device 100 can display the outdoor running settings interface in response to a user operation on the control 1611 (e.g., a touch operation). See [link to specific examples] for details. Figure 18 The user interface 1620 shown in (B) is shown.
[0295] like Figure 18 As shown in (B), the user interface 1620 may include a control 1621 displaying the characters "Heart Rate Refresh Time" and "Off". The control 1621 can be used to set the heart rate refresh time for outdoor running, and the "Off" character indicates that the heart rate refresh time for outdoor running is not currently set. In one embodiment, the electronic device 100 may display a heart rate refresh time setting interface in response to a user operation on the control 1621 (e.g., a touch operation). See [example details omitted]. Figure 18 The user interface shown in (C) is 1630.
[0296] like Figure 18 As shown in (C), the user interface 1630 may include an adjustable window 1631, controls 1632, 1633, 1634, and 1635. The adjustable window 1631 includes the characters "3 seconds" to indicate that the currently set heart rate refresh time is 3 seconds. Controls 1632 and 1633 on the left and right sides of the adjustable window 1631 can be used to adjust the time value displayed in the adjustable window 1631. Control 1634 displays the characters "OK" and can be used to confirm the currently set heart rate refresh time. Control 1635 displays the characters "Return" and can be used to cancel the setting and return to the previous interface (e.g., ...). Figure 18 (See user interface 1620 shown in (B)). In one embodiment, electronic device 100 may, in response to a user operation on control 1634 (e.g., a touch operation), set the refresh time of the current outdoor running event to 3 seconds and display the heart rate value at the set refresh time (3 seconds) during the outdoor run.
[0297] The following example illustrates a heart rate monitoring scenario where the heart rate value is displayed for the first time under the heart rate service, and the corresponding refresh strategy.
[0298] Please see Figure 19 , Figure 19 This is a flowchart illustrating another heart rate display method provided in an embodiment of this application. This method can be applied to... Figure 1 The illustrated electronic device 100. This method can be applied to... Figure 2 The illustrated electronic device 100. This method can be applied to... Figure 3 The electronic device 100 shown. The method may include, but is not limited to, the following steps:
[0299] S81: The electronic device has determined that it is currently in the primary service state.
[0300] In one implementation, the electronic device can receive a user operation that triggers the initiation of the first service, and determine that it is currently in the first service. The first service can be any of the heart rate services; for an explanation of the heart rate service, please refer to [link to relevant documentation]. Figure 4 The relevant explanations in S11 will not be repeated here.
[0301] S82: The electronic device determines whether the heart rate value has been displayed in the first service.
[0302] In one implementation, when the electronic device determines that it is currently in the first service, it can start to acquire the heart rate value under the first service and determine whether the heart rate value has been displayed in the current first service. If the heart rate value has been displayed in the first service (i.e., it is not the first time the heart rate value has been displayed), the electronic device can execute S83; if the heart rate value has not been displayed in the first service (i.e., it is the first time the heart rate value has been displayed), the electronic device can execute S84.
[0303] In one implementation, the first display of the heart rate value can be the first display of the heart rate value after the electronic device starts any heart rate service. For example, the first display of the heart rate value after the electronic device receives a user operation that triggers heart rate monitoring. Subsequent displays of the heart rate value can be the i-th display of the heart rate value after the electronic device starts any heart rate service, where i is a positive integer greater than 1. For example, after the electronic device receives a user operation that triggers heart rate monitoring, and before ending the current heart rate monitoring service, any heart rate value other than the first display.
[0304] S83: The electronic device determines the refresh time of the first service as refresh time 13.
[0305] In one implementation, when the electronic device determines that the heart rate value has been displayed in the first service, it can determine the refresh time corresponding to the first service as refresh time 13 and display the heart rate value according to refresh time 13. Here, refresh time 13 can be the refresh time corresponding to the non-first display of the heart rate value (which can be called the non-first display value time).
[0306] S84: The electronic device determines the refresh time of the first service as refresh time 14.
[0307] In one implementation, when the electronic device determines that the heart rate value has not been displayed for the first service, it can determine the refresh time corresponding to the first service as refresh time 14, and display the heart rate value according to refresh time 14. Here, refresh time 14 can be the refresh time corresponding to the first display of the heart rate value (which can be called the first output value time), and the first output value time is the interval between the time the electronic device has not displayed the heart rate value and the time the electronic device first displays the heart rate value. The first output value time can be less than the non-first output value time, that is, refresh time 14 can be less than refresh time 13.
[0308] In one implementation, the refresh time of the heart rate value in each heart rate service may include the first-out value time and the non-first-out value time.
[0309] exist Figure 19 In the method shown, when the electronic device is in the first service state, the time from the start of acquiring the heart rate value to the first display of the heart rate value is refresh time 13 (e.g., 10 seconds). After the electronic device displays the heart rate value for the first time, the subsequent refresh time for the heart rate value is refresh time 14 (e.g., 30 seconds). By setting the first output time, the heart rate algorithm has sufficient time to converge. For example, when the heart rate algorithm starts calculating the heart rate value, it has not yet converged in the first few seconds, and the accuracy of the calculated heart rate value is not high, failing to reflect the user's true heart rate value. When the heart rate algorithm completes convergence (e.g., within 10 seconds), the accuracy of the heart rate values calculated by the heart rate algorithm will be higher. Therefore, setting the first output time allows the heart rate algorithm to complete convergence within the first output time, thus ensuring the accuracy of the heart rate value and eliminating the need for users to wait too long, improving the user experience. Setting non-first output time aligns with the characteristics of the heart rate service itself, allowing for the setting of a reasonable refresh time for each heart rate service, further improving the user experience.
[0310] Next, combine Figure 19 The implementation methods shown illustrate the application scenarios involved and the user interface diagrams for those scenarios.
[0311] Scenario 5: The first output time and non-first output times can be different. The following example uses exercise heart rate as the first business function. For a specific example, please refer to [link to example]. Figure 20 (A)-(D).
[0312] In one implementation, Figure 6 After steps (A)-(D), the electronic device 100 can acquire the heart rate value, execute S82, and determine that the current exercise heart rate has not been displayed before. Then, it can execute S84, meaning the electronic device 100 can determine the first-out value time (e.g., 10 seconds) corresponding to the exercise heart rate and display the heart rate value according to that time. See [link to example]. Figure 20 (A)-(B).
[0313] In one implementation, when the electronic device 100 acquires the heart rate for 9 seconds, and the confidence level of the heart rate values acquired by the electronic device 100 from the start time (e.g., second 0) to the 9th second is less than a first threshold, and the duration from the start time to the 9th second (e.g., 9 seconds) is less than the first-out value time corresponding to the exercise heart rate (e.g., 10 seconds), the electronic device 100 still does not display the heart rate value at the 9th second. For a specific example, see [link to example]. Figure 20User interface 1810 is shown in (A). The exercise time 1811 in user interface 1810 displays the characters "00:00:09", indicating that the current user's exercise duration is 9 seconds, meaning the electronic device 100 has been acquiring heart rate for 9 seconds. The exercise heart rate 1812 in user interface 1810 displays the characters "--heart rate bpm", indicating that a heart rate value is not currently displayed.
[0314] In one implementation, Figure 20 Following (A), when the duration of heart rate acquisition by electronic device 100 is 10 seconds, and the confidence level of the heart rate value acquired by electronic device 100 in the 10th second is still less than the first threshold, electronic device 100 may display the heart rate value in the 10th second. For a specific example, please refer to [link to example]. Figure 20 User interface 1820 is shown in (B). User interface 1820 and Figure 20 Similar to the user interface 1810 shown in (A), the difference is that the exercise time 1821 in the user interface 1820 displays the characters "00:00:10", indicating that the current user's exercise duration is 10 seconds, that is, the current duration for which the electronic device 100 acquires the heart rate is 10 seconds. The exercise heart rate 1822 in the user interface 1820 displays the characters "87 heart rate bpm", which can indicate that the user's current heart rate is 87 bpm. Next, the electronic device 100 can continue to acquire the heart rate value and execute S82 to determine that the current exercise heart rate has been displayed. Then, it can execute S83, that is, the electronic device 100 can determine the non-first-out value time (e.g., 30 seconds) corresponding to the exercise heart rate and display the heart rate value according to the non-first-out value time. For a specific example, see [link to example]. Figure 20 (C)-(D).
[0315] In one implementation, Figure 20 Following (B), when the interval is 30 seconds (e.g., the time between the 10th and 40th seconds), and the confidence level of the heart rate values obtained within the interval is less than the first threshold, and the interval is equal to the non-first-out value time (e.g., 30 seconds), the electronic device 100 can display the heart rate value over 40 seconds. See [example details omitted]. Figure 20 User interface 1830 is shown in (C). User interface 1830 and Figure 20 Similar to the user interface 1820 shown in (B), the difference is that the exercise time 1831 in the user interface 1830 displays the characters "00:00:40", which indicates that the current user's exercise duration is 40 seconds, that is, the current electronic device 100 acquires the heart rate for 40 seconds. The exercise heart rate 1832 in the user interface 1830 displays the characters "90 heart rate bpm", which can indicate that the user's current heart rate is 90 bpm.
[0316] In one implementation, Figure 20Following (C), when the interval is 30 seconds (e.g., the time between the 40th second and 1 minute 10 seconds), and the confidence level of the heart rate values obtained within the interval is less than the first threshold, and the interval is equal to the non-first-out value time (e.g., 30 seconds), the electronic device 100 can display the heart rate value at 1 minute 10 seconds. See the example below for details. Figure 20 User interface 1840 is shown in (D). User interface 1840 and Figure 20 Similar to the user interface 1830 shown in (C), the difference is that the exercise time 1841 in the user interface 1840 displays the characters "00:01:10", which indicates that the current user's exercise duration is 1 minute and 10 seconds, that is, the current electronic device 100 acquires the heart rate for 1 minute and 10 seconds. The exercise heart rate 1842 in the user interface 1840 displays the characters "92 heart rate bpm", which can indicate that the user's current heart rate is 92 bpm.
[0317] The following example illustrates the specific implementation process of obtaining and displaying heart rate values.
[0318] Please see Figure 21 , Figure 21 This is a flowchart illustrating another heart rate display method provided in an embodiment of this application. This method can be applied to... Figure 1 The illustrated electronic device 100. This method can be applied to... Figure 2 The illustrated electronic device 100. This method can be applied to... Figure 3 The illustrated electronic device 100. This method can be applied to... Figures 4-20 The process and scenario are shown. This method may include, but is not limited to, the following steps:
[0319] S101: Electronic devices acquire heart rate values and confidence levels.
[0320] In one implementation, when the electronic device receives a user operation to trigger the heart rate service, it can begin acquiring the heart rate value and the confidence level of the heart rate value. For an explanation of how the electronic device acquires the heart rate value and the confidence level, please refer to [link to relevant documentation]. Figure 1 The explanations shown will not be repeated.
[0321] S102: The electronic device determines whether the confidence level of the heart rate value is greater than or equal to the first threshold.
[0322] In one implementation, the electronic device can determine whether the confidence level of the heart rate value obtained in S101 is greater than or equal to a first threshold. When the confidence level of the heart rate value is greater than or equal to the first threshold, the electronic device can display the heart rate value obtained in S101, i.e., execute S103. When the confidence level of the heart rate value is less than the first threshold, the electronic device can record the time when the heart rate value is obtained in S101, i.e., execute S104.
[0323] S103: Electronic device displays heart rate value.
[0324] In one implementation, the electronic device can display the heart rate value when the confidence level of the heart rate value is greater than or equal to a first threshold.
[0325] In one implementation, after S103, the electronic device can reacquire the heart rate value and confidence level, i.e., re-execute S101.
[0326] S104: The time T1 corresponding to the heart rate value recorded by the electronic device.
[0327] In one implementation, when the confidence level of the heart rate value obtained by S101 is less than a first threshold, the electronic device can record the time T1 corresponding to the heart rate value. It can be understood that T1 can be the time when the confidence level of the calculated heart rate value is less than the first threshold, that is, the time when the heart rate value (confidence level less than the first threshold) is obtained.
[0328] S105: The electronic device determines that it is currently in business scenario 1 and determines the refresh strategy (including threshold 1) corresponding to business scenario 1.
[0329] In one implementation, business scenario 1 can be a heart rate monitoring scenario, which may include at least one of the following: the aforementioned heart rate service, whether the exercise type is a preset type, whether the display screen is on, whether the heart rate has changed abruptly, whether the heart rate is abnormal, whether the heart rate value is being displayed for the first time, whether the user's behavior state has changed, and whether the environmental state has changed. Threshold 1 can be the refresh time included in the refresh strategy corresponding to business scenario 1. Examples of different business scenarios and their corresponding refresh times can be found in [reference needed]. Figures 4-20 The explanation will not be repeated here.
[0330] S106: The electronic device determines whether the duration 1 between the current time and T1 is greater than or equal to the threshold 1.
[0331] In one implementation, the duration 1 between the current time and T1 can indicate the duration during which the confidence level is continuously less than a first threshold. The electronic device can determine whether the duration 1 is greater than or equal to the threshold 1. If the duration 1 is greater than or equal to the threshold 1, it can be determined that the current time has reached the time when the heart rate value needs to be displayed in the current business scenario 1, and the electronic device can execute S107; if the duration 1 is less than the threshold 1, it can be determined that the current time has not reached the time when the heart rate value needs to be displayed in the current business scenario 1, and the electronic device can execute S108.
[0332] S107: Electronic device displays heart rate value.
[0333] In one implementation, when time 1 is greater than or equal to threshold 1, the electronic device can display the latest acquired heart rate value.
[0334] In one implementation, after S107, the electronic device can reacquire the heart rate value and the confidence level of the heart rate value, that is, re-execute S101.
[0335] S108: Electronic devices acquire heart rate values and confidence levels.
[0336] In one implementation, when the time length 1 is less than the threshold 1, the electronic device does not display the heart rate value, but continues to acquire the heart rate value and the confidence level of the heart rate value, and then executes S109.
[0337] S109: The electronic device determines whether the confidence level of the heart rate value is greater than or equal to the first threshold.
[0338] In one implementation, the electronic device can determine whether the confidence level of the heart rate value obtained in S108 is greater than or equal to a first threshold. When the confidence level of the heart rate value is greater than or equal to the first threshold, the electronic device can display the heart rate value obtained in S108, i.e., execute S103. When the confidence level of the heart rate value is less than the first threshold, the electronic device can execute S106.
[0339] Specifically, if after S101-S105 are executed, and the first execution of S106 yields a yes result, then the electronic device executes S107 and displays the heart rate value obtained in S101. If after S101-S105 are executed, and the subsequent execution of S106 yields a yes result, then the electronic device executes S107 and displays the heart rate value obtained in S108. If after S101-S105 are executed, and the execution of S106 yields a no result, but the execution of S109 yields a yes result, then the electronic device executes S103 and displays the heart rate value obtained in S108.
[0340] Understandably, Figure 21 The electronic device determines whether the time interval between acquiring the heart rate value (i.e., the time interval 1 between the current moment and T1) has reached the refresh time to determine whether the heart rate value needs to be displayed. However, from the user's perspective, the moment the user interface refreshes the heart rate value is the moment the heart rate value is displayed. In some embodiments of this application, the moment of acquiring the heart rate value and the moment of displaying the heart rate value are the same moment. It can be considered that the duration of a series of operations performed after acquiring the heart rate value is negligible, such as the duration of S102, the duration of S102 to S107, etc., are negligible. In other embodiments of this application, the duration of the heart rate value can also be... Figure 21 The time of obtaining the heart rate value is replaced with the time of displaying the heart rate value, but this application embodiment does not limit this.
[0341] exist Figure 21In the method shown, the electronic device can dynamically adjust the refresh strategy (refresh time) for different business scenarios, so that a reasonable refresh time can be set for each business scenario, so that users can get an accurate heart rate without waiting too long, thus improving the user experience.
[0342] The following describes a possible physical structure of the electronic device 100 provided in the embodiments of this application.
[0343] For example, Figure 22 This illustration shows a schematic diagram of the physical structure of an electronic device 100 provided in an embodiment of this application.
[0344] like Figure 22 As shown, the electronic device 100 may include: a processor 2201, a memory 2202, and a communication interface 2203. The processor 2201, memory 2202, and communication interface 2203 may be interconnected or interconnected via a bus 2204.
[0345] For example, memory 2202 is used to store computer programs and data of electronic device 100. Memory 2202 may include, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM).
[0346] The software or program code required for all or part of the functions of the electronic device 100 in the above method embodiments is stored in the memory 2202.
[0347] In one possible implementation, if the software or program code required for some functions is stored in the memory 2202, then in addition to calling the program code in the memory 2202 to implement some functions, the processor 2201 can also cooperate with other components (such as the communication interface 2203, etc.) to complete other functions described in the method embodiment (such as the function of receiving or sending data).
[0348] The communication interface 2203 is used to support the electronic device 100 in communication, such as receiving or sending data or signals.
[0349] For example, processor 2201 may be a CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor types, as described above. Processor 2201 may be used to read programs stored in memory 2202 and execute operations performed by electronic device 100 in any of the above embodiments.
[0350] Figure 22 The specific operation and beneficial effects of each unit in the electronic device 100 shown can be found in the corresponding descriptions in the above method embodiments, and will not be repeated here.
[0351] Understandable, Figure 22 The illustrated embodiment is merely an example. In the embodiments of this application, the electronic device 100 may also include components beyond those described above. Figure 22 The embodiments shown have more, fewer, or more Figure 22 The different devices shown in the embodiments are not limited herein.
[0352] The methods provided in the embodiments of this application can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented in software, they can be implemented, in whole or in part, in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user equipment, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DWD), or a semiconductor medium (e.g., solid-state drive). (disk, SSD, etc.). The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it; although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for displaying heart rate, characterized in that, Applied to electronic devices, the method includes: Get the user's initial heart rate value at the first moment; Obtain the user's second heart rate value; When the electronic device is in the first heart rate monitoring scenario, it displays the second heart rate value at the second moment. The interval between the second moment and the first moment is the first refresh interval, which is determined according to the first heart rate monitoring scenario. When the electronic device is in the second heart rate monitoring scenario, the second heart rate value is displayed at the third time. The interval between the third time and the first time is the second refresh interval, which is determined according to the second heart rate monitoring scenario. The first heart rate monitoring scenario and the second heart rate monitoring scenario are different, and the first refresh interval and the second refresh interval are different.
2. The method as described in claim 1, characterized in that, The step of obtaining the user's second heart rate value includes: Obtain the second heart rate value and the confidence level of the second heart rate value; The display of the second heart rate value at the second moment includes: When the current time is the second time and the confidence level of the heart rate values obtained between the first time and the current time is less than the first threshold, the second heart rate value is displayed at the second time.
3. The method as described in claim 1 or 2, characterized in that, After displaying the second heart rate value at the second moment, the method further includes: Obtain the user's third heart rate value and the confidence level of the third heart rate value; When the electronic device is in the first heart rate monitoring scenario, when the current time is the fourth time and the confidence level of the third heart rate value is greater than or equal to the first threshold, the third heart rate value is displayed at the fourth time. The interval between the fourth time and the second time is a first duration, and the first duration is less than the first refresh interval.
4. The method according to any one of claims 1-3, characterized in that, The first heart rate monitoring scenario is determined based on at least one of the following: the state of the electronic device, the state of the user, and the state of the environment. The state of the electronic device includes at least one of heart rate monitoring, whether the display screen is on, and whether the heart rate value is being displayed for the first time. The state of the user includes at least one of whether the user's physiological parameters have changed and whether the user's behavior has changed. The change in the user's physiological parameters includes at least one of whether the heart rate has suddenly changed or whether the heart rate is abnormal. The second heart rate monitoring scenario is determined based on at least one of the following: the state of the electronic device, the state of the user, and the state of the environment. The state of the electronic device includes at least one of heart rate monitoring, whether the display screen is on, and whether the heart rate value is being displayed for the first time. The state of the user includes at least one of whether the user's physiological parameters have changed and whether the user's behavior has changed. The change in the user's physiological parameters includes at least one of whether the heart rate has suddenly changed or whether the heart rate is abnormal. The heart rate service includes one of the following: dial heart rate, card heart rate, exercise heart rate, daily heart rate, and single heart rate. A sudden change in heart rate is defined as a heart rate change value greater than or equal to a first preset threshold. An abnormal heart rate is defined as a heart rate value less than a second preset threshold or greater than a third preset threshold.
5. The method according to any one of claims 1-4, characterized in that, The method further includes: It is determined that the electronic device is currently in the first heart rate monitoring scenario, the first heart rate monitoring scenario includes the first service, and the first service is any one of dial heart rate, card heart rate, exercise heart rate, daily heart rate, and single heart rate; When the electronic device meets the first preset condition, the preset refresh interval is adjusted, and the heart rate value is displayed according to the adjusted preset refresh interval. The preset refresh interval is determined based on the first service. The first preset condition includes at least one of the following: whether the exercise type is a preset exercise type, whether the display screen is on, whether the user's physiological parameter state has changed, whether the user's behavior state has changed, and whether the environmental state has changed. Among these, whether the user's physiological parameter state has changed includes at least one of the following: whether the heart rate has changed abruptly or whether the heart rate is abnormal. When the electronic device does not meet the first preset condition, the heart rate value is displayed according to the preset refresh interval.
6. The method according to any one of claims 1-5, characterized in that, Before acquiring the user's first heart rate value at the first moment, the method further includes: Select the first exercise to activate in exercise mode; When the first exercise is a first exercise item, the electronic device is determined to be in the first heart rate monitoring scenario; and / or, When the first exercise is the second exercise, the electronic device is determined to be in the second heart rate monitoring scenario.
7. The method according to any one of claims 1-5, characterized in that, The first heart rate monitoring scenario is when the display screen is on, and the second heart rate monitoring scenario is when the display screen is off. The first refresh interval is shorter than the second refresh interval.
8. The method according to any one of claims 1-5, characterized in that, The first heart rate monitoring scenario is when a sudden change in heart rate occurs, wherein the sudden change in heart rate is greater than or equal to a first preset threshold; the second heart rate monitoring scenario is when no sudden change in heart rate occurs, wherein the sudden change in heart rate is less than the first preset threshold; and the first refresh interval is less than the second refresh interval.
9. The method according to any one of claims 1-5, characterized in that, The first heart rate monitoring scenario is an abnormal heart rate, where the abnormal heart rate is a heart rate value that is less than a second preset threshold or greater than a third preset threshold. The second heart rate monitoring scenario is a normal heart rate, where the normal heart rate is a heart rate value that is greater than or equal to the second preset threshold and less than or equal to the third preset threshold. The first refresh interval is less than the second refresh interval.
10. The method according to any one of claims 1-5, characterized in that, The first heart rate monitoring scenario is when the display screen is on and the heart rate changes abruptly, wherein the heart rate changes abruptly when the heart rate change value is greater than or equal to a first preset threshold. The second heart rate monitoring scenario is when the display screen is not on or the heart rate does not change abruptly, wherein the heart rate does not change abruptly when the heart rate change value is less than the first preset threshold. The first refresh interval is less than the second refresh interval.
11. The method according to any one of claims 1-5, characterized in that, The first heart rate monitoring scenario is when the display screen is on and the heart rate is abnormal, where the heart rate is abnormal and the heart rate value is less than a second preset threshold or greater than a third preset threshold. The second heart rate monitoring scenario is when the display screen is off or the heart rate is not abnormal, where the heart rate value is not abnormal and the heart rate value is greater than or equal to the second preset threshold and less than or equal to the third preset threshold. The first refresh interval is less than the second refresh interval.
12. The method according to any one of claims 1-5, characterized in that, The first heart rate monitoring scenario is a preset exercise type, the second heart rate monitoring scenario is a non-preset exercise type, and the first refresh interval is less than the second refresh interval.
13. The method according to any one of claims 1-5, characterized in that, The first heart rate monitoring scenario is when the user's physiological parameters change, and the second heart rate monitoring scenario is when the user's physiological parameters do not change. The first refresh interval is less than the second refresh interval.
14. The method according to any one of claims 1-5, characterized in that, The first heart rate monitoring scenario is when the user's behavior changes, and the second heart rate monitoring scenario is when the user's behavior does not change, and the first refresh interval is less than the second refresh interval.
15. The method according to any one of claims 1-5, characterized in that, The first heart rate monitoring scenario involves a change in the environmental state, while the second heart rate monitoring scenario involves no change in the environmental state, and the first refresh interval is shorter than the second refresh interval.
16. The method according to any one of claims 1-15, characterized in that, The first refresh interval and / or the second refresh interval are determined based on user operations.
17. The method according to any one of claims 1-16, characterized in that, The first heart rate monitoring scenario is the first time the heart rate value is displayed, the second heart rate monitoring scenario is the second time the heart rate value is displayed, and the first refresh interval is less than the second refresh interval.
18. An electronic device, characterized in that, It includes a transceiver, a processor, and a memory, the memory being used to store a computer program, and the processor calling the computer program to perform the method as described in any one of claims 1-17.
19. A computer storage medium, characterized in that, The computer storage medium stores a computer program, which, when executed by a processor, implements the method as described in any one of claims 1-17.