Data acquisition method and electronic device

By constructing a historical heart rate map, the problem of heart rate monitoring instability caused by the decline in PPG signal quality when electronic devices are not worn properly is solved, and more reliable heart rate monitoring is achieved and user experience is improved.

CN118105047BActive Publication Date: 2025-08-01HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211510376.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-29
Publication Date
2025-08-01
Estimated Expiration
2042-11-29

AI Technical Summary

Technical Problem

When existing electronic devices fail to wear according to the specifications or change in wear, the quality of PPG signal decreases, resulting in unstable heart rate monitoring results, affecting monitoring accuracy.

Method used

By constructing a user's historical heart rate map, the heart rate map is used to determine the heart rate value when the PPG signal quality is poor, reducing monitoring abnormalities and improving the reliability of heart rate monitoring.

Benefits of technology

Improves the reliability of heart rate monitoring and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118105047B_ABST
    Figure CN118105047B_ABST
Patent Text Reader

Abstract

The present application provides a data acquisition method and an electronic device. The method includes: obtaining first heart rate information of a target user corresponding to a first scenario within a recent first time period, where the first heart rate information is collected when the signal quality of a photoplethysmogram (PPG) signal meets a first condition, and the first heart rate information includes a step frequency value and a heart rate value; constructing a first heart rate map corresponding to the target user in the first scenario according to the first heart rate information; receiving a target step frequency value of the target user in the first scenario, where the target step frequency value is collected when the signal quality of the PPG signal does not meet the first condition; and determining a target heart rate value corresponding to the target step frequency value according to the first heart rate map. In this way, by generating a heart rate map using the user's historical heart rate information and determining the heart rate value when the PPG signal quality is poor according to the heart rate map, the abnormal value output of heart rate monitoring can be reduced, thereby improving the reliability of heart rate monitoring and enhancing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal devices, and in particular, to a data acquisition method and an electronic device. Background Art

[0002] Currently, electronic devices have more and more functions. Among them, wearable electronic devices that can be worn close to the body can be used to monitor the heart rate of users. The principle of heart rate monitoring of these electronic devices is: by collecting the PPG (PhotoPlethysmoGraphy) signals of users wearing these electronic devices, the real-time heart rate information of users is obtained.

[0003] This way of obtaining heart rate data strongly depends on the proper wearing of users. If the user does not wear the electronic device according to the specified requirements, or due to some reasons, the wearing situation of the electronic device changes, the accuracy of the PPG signal collected by the electronic device will decrease, resulting in unstable heart rate monitoring results. Summary of the Invention

[0004] To solve the above technical problems, this application provides a data acquisition method and an electronic device. By generating a heart rate map using the historical heart rate information of the user, determining the heart rate value when the PPG signal quality is poor according to the heart rate map, the abnormal output value of heart rate monitoring can be reduced, the reliability of heart rate monitoring can be improved, and the user experience can be enhanced.

[0005] In a first aspect, this application provides a data acquisition method. This method is applied to an electronic device, and the method includes: obtaining the first heart rate information of a target user corresponding to a first scenario within a recent first time period, where the first heart rate information is collected when the signal quality of the photoplethysmogram (PPG) signal meets a first condition, and the first heart rate information includes a step frequency value and a heart rate value; constructing a first heart rate map corresponding to the target user in the first scenario according to the first heart rate information; receiving a target step frequency value of the target user in the first scenario, where the target step frequency value is collected when the signal quality of the PPG signal does not meet the first condition; and determining a target heart rate value corresponding to the target step frequency value according to the first heart rate map. In this way, by generating a heart rate map using the historical heart rate information of the user and determining the heart rate value when the PPG signal quality is poor according to the heart rate map, the abnormal output value of heart rate monitoring can be reduced, the reliability of heart rate monitoring can be improved, and the user experience can be enhanced.

[0006] According to the first aspect, constructing a first heart rate map corresponding to the target user in the first scenario according to the first heart rate information includes: storing the step frequency value and the heart rate value of the first heart rate information in a historical heart rate information mapping table in a corresponding manner; and sorting the historical heart rate information mapping table in ascending order of the step frequency value to obtain the first heart rate map.

[0007] According to the first aspect, the number of heart rate values with equal step frequency values in the historical heart rate information mapping table is equal to the first number.

[0008] According to the first aspect, the first scenario corresponds to the first step frequency range.

[0009] According to the first aspect, determining the target heart rate value corresponding to the target step frequency value according to the first heart rate map includes: determining the first target step frequency range according to the target step frequency value and the first interval radius; obtaining the heart rate value corresponding to the step frequency value located in the first target step frequency range from the first heart rate map, and recording it as the reference heart rate value; determining the target heart rate value corresponding to the target step frequency value according to all the reference heart rate values.

[0010] According to the first aspect, determining the target heart rate value corresponding to the target step frequency value according to all the reference heart rate values includes: sorting all the reference heart rate values in ascending order to obtain the first sequence; determining the upper heart rate threshold and the lower heart rate threshold according to the first heart rate value at the first position and the second heart rate value at the second position in the first sequence, and the second position is greater than the first position; deleting the heart rate values greater than or equal to the upper heart rate threshold and the heart rate values less than or equal to the lower heart rate threshold from the first sequence to obtain the second sequence; determining the average value of all the heart rate values in the second sequence as the target heart rate value corresponding to the target step frequency value.

[0011] According to the first aspect, determining the target heart rate value corresponding to the target step frequency value according to all the reference heart rate values includes: determining the average value of all the reference heart rate values as the target heart rate value corresponding to the target step frequency value.

[0012] According to the first aspect, determining the target heart rate value corresponding to the target step frequency value according to the first heart rate map includes: determining the first target step frequency range according to the target step frequency value and the first interval radius; judging whether the number of step frequency values located in the first target step frequency range in the first heart rate map is 0; if so, determining the second target step frequency range according to the target step frequency value and the second interval radius, and the second interval radius is greater than the first interval radius; obtaining the heart rate value corresponding to the step frequency value located in the second target step frequency range from the first heart rate map, and recording it as the reference heart rate value; determining the target heart rate value corresponding to the target step frequency value according to all the reference heart rate values.

[0013] According to the first aspect, the first scenario is a walking scenario or a running scenario.

[0014] According to the first aspect, the electronic device is a smart watch or a smart bracelet.

[0015] According to the first aspect, obtaining the first heart rate information of the target user corresponding to the first scenario in the most recent first time period includes: collecting the first heart rate information of the target user corresponding to the first scenario in the most recent first time period.

[0016] According to a first aspect, the electronic device is a mobile phone or a tablet computer.

[0017] According to the first aspect, obtaining first heart rate information of a target user corresponding to a first scenario within a recent first time period includes: receiving the first heart rate information of the target user corresponding to the first scenario within the recent first time period sent by another electronic device, where the first heart rate information is collected by the other electronic device.

[0018] In a second aspect, the present application provides an electronic device, including: a memory and a processor, the memory being coupled to the processor; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device is caused to execute the data acquisition method according to any one of the first aspect.

[0019] In a third aspect, the present application provides a computer-readable storage medium, including a computer program, and when the computer program runs on an electronic device, the electronic device is caused to execute the data acquisition method according to any one of the foregoing first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 Schematic structural diagram of the electronic device 100 shown exemplarily;

[0021] Figure 2 Schematic software structure block diagram of the electronic device 100 according to an embodiment of the present application shown exemplarily;

[0022] Figure 3 Schematic structural diagram of the wearable electronic device in the present embodiment shown exemplarily;

[0023] Figure 4 Example diagram of the combined electronic device shown exemplarily;

[0024] Figure 5 Flow example diagram of the data acquisition method shown exemplarily;

[0025] Figure 6 Mapping diagram of the two-dimensional matrix constructed from the step frequency and heart rate data of the walking scenario shown exemplarily;

[0026] Figure 7 Example diagram of the heart rate map constructed from the step frequency and heart rate data of the walking scenario shown exemplarily;

[0027] Figure 8 Example diagram of the retrieval process of the heart rate data segment matrix shown exemplarily;

[0028] Figure 9 Schematic diagram of abnormal heart rate in the heart rate map shown exemplarily. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0029] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without making creative efforts shall fall within the protection scope of the present application.

[0030] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0031] The terms "first", "second", etc. in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of the objects. For example, the first target object and the second target object are used to distinguish different target objects, rather than to describe a specific order of the target objects.

[0032] In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, using words such as "exemplary" or "for example" aims to present relevant concepts in a specific manner.

[0033] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality" refers to two or more. For example, a plurality of processing units refers to two or more processing units; a plurality of systems refers to two or more systems.

[0034] PPG is a non-invasive detection method that uses optoelectronic means to detect changes in vascular volume in living tissues. The original PPG signal contains various physiological information including heart rate, blood oxygen saturation, blood pressure, etc. Since the PPG measurement device is small in size, convenient to carry, and easy to use, it is widely used for all-weather monitoring of various physiological indicators.

[0035] In the related art, the heart rate inference algorithms based on PPG and ACC (Accelerometer) output the current heart rate state based on the current PPG signal. This kind of algorithm performs well when the PPG signal quality is good, but it often shows extremely abnormal algorithm output values in the case of sudden change scenarios with poor PPG signal quality.

[0036] In related technologies, most heart rate output algorithms are regression models or classification models for a segment of signals, without considering the inherent characteristics of individual heart rate values under specific exercise states and exercise intensities. This type of algorithm strongly depends on signal quality and has unsatisfactory effects in the case of poor signal quality or signal loss.

[0037] For example, the accuracy of the heart rate monitoring function of a smart watch strongly depends on the user's wearing situation. The watch side usually also gives some reminders to prompt the user to wear it. During the use of the watch, the user usually wears it comfortably. In the case of comfortable wearing, there is usually no heart rate output with high accuracy. In this embodiment, information such as the exercise state, step frequency, and heart rate output during periods with high PPG signal quality in the user's usage process is collected, the collected information is post-processed, and the post-processed information is used to construct a corresponding scenario knowledge graph. Based on this scenario knowledge graph, auxiliary decision-making can be carried out on the heart rate of the user in the next similar exercise state in the same scenario, and finally, a user heart rate self-learning prediction algorithm based on the scenario mode is realized.

[0038] The embodiment of the present application provides a data acquisition method, which can reduce abnormal heart rate monitoring output values, improve the reliability of heart rate monitoring, and enhance the user experience.

[0039] The data acquisition method in the embodiment of the present application can be applied to an electronic device, which can be, for example, a smart watch, a smart bracelet, a mobile phone, a tablet, etc.

[0040] When the electronic device in this embodiment is a relatively large electronic device such as a mobile phone or a tablet, the structure of the electronic device can be as Figure 1 shown.

[0041] Figure 1 It is a schematic structural diagram of the exemplary electronic device 100. It should be understood that Figure 1 the shown electronic device 100 is only an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 1 The various components shown in can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application-specific integrated circuits.

[0042] Please refer to Figure 1, the electronic device 100 may include: a processor 110, 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, an indicator 192, a camera 193, etc.

[0043] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0044] Among them, the controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0045] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.

[0046] The electronic device 100 realizes the display function through the GPU, the display screen 194, and the application processor, etc. 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 for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

[0047] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0048] The sensor module 180 in the electronic device 100 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light 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.

[0049] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0050] Among them, the software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In this embodiment of the application, the Android system with a layered architecture is taken as an example to exemplarily illustrate the software structure of the electronic device 100.

[0051] Figure 2 It is a software structure block diagram of the electronic device 100 in the embodiment of the application shown exemplarily.

[0052] The layered architecture of the electronic device 100 divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system may include an application layer, an application framework layer, a system library, and a kernel layer, etc.

[0053] The application layer may include a series of application packages.

[0054] Such as Figure 2 shown, the application packages may include applications such as a camera, a calendar, a map, a WLAN, music, a short message, a gallery, a call, a navigation, a Bluetooth, a video, etc.

[0055] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.

[0056] As Figure 2 shown, the application framework layer may include a window manager, a resource manager, a content provider, a notification manager, a view system, etc.

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

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

[0059] The content provider is used to store and obtain data, and make this data accessible to applications. The data may include videos, images, audio, dialed and answered calls, browsing history and bookmarks, phone books, etc.

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

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

[0062] Android Runtime includes a core library and a virtual machine. Android runtime is responsible for the scheduling and management of the Android system.

[0063] The core library contains two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core library of Android.

[0064] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to manage the object lifecycle, stack management, thread management, security and exception management, and garbage collection, etc.

[0065] The system library can include multiple functional modules. For example: surface manager, Media Libraries, 3D graphics processing library (e.g., OpenGL ES), 2D graphics engine (e.g., SGL), etc.

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

[0067] The media library supports the playback and recording of various common audio and video formats, as well as static image files, etc. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0068] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.

[0069] The 2D graphics engine is a graphics engine for 2D drawing.

[0070] The kernel layer is the layer between the hardware and the software.

[0071] As Figure 2 shown, the kernel layer can include modules such as display driver, audio driver, Bluetooth driver, Wi-Fi driver, sensor driver, etc.

[0072] It can be understood that Figure 2 the layers in the shown software structure and the components included in each layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which are not limited in the present application.

[0073] When the electronic device in this embodiment is a wearable device such as a smart watch or a smart bracelet, the structure of the electronic device can be as Figure 3 shown. Figure 3 The structure diagram of the wearable electronic device in this embodiment is shown exemplarily. Please refer to Figure 3, the electronic device includes a PPG signal acquisition device, a step frequency acquisition device, and a data acquisition device. Among them, the PPG signal acquisition device is used to acquire PPG signals; the step frequency acquisition device is used to acquire acceleration information and process the acceleration information to obtain step frequency information; the data acquisition device is used to acquire the PPG signals acquired by the PPG signal acquisition device and the step frequency information output by the step frequency acquisition device, and is used to implement the data acquisition method of this embodiment. Among them, the step frequency acquisition device may further include an accelerometer and a processing unit. The accelerometer is used to acquire acceleration information, and the processing unit is used to process the acceleration information acquired by the accelerometer to obtain step frequency information.

[0074] Please continue to refer to Figure 3 , Figure 3 The wearable electronic device shown may further include a heart rate information output device and a display screen. Among them, the heart rate information output device is used to, when the PPG signal quality is good, determine the heart rate information in the PPG signals acquired by the PPG signal acquisition device as the monitored heart rate information, and is used to, when the PPG signal quality is not good, determine the heart rate value determined by the data acquisition device as the monitored heart rate information, and is used to output the determined monitored heart rate information to the display screen. The display screen is used to display heart rate information.

[0075] Among them, that the PPG signal has good signal quality means that the signal quality of the PPG signal meets a preset first condition. That the PPG signal has poor signal quality or the PPG signal has relatively poor signal quality means that the signal quality of the PPG signal does not meet the preset first condition. Among them, the first condition can be determined according to actual needs. In one example, the first condition may be: the PPG signal missing degree is less than a preset missing degree threshold.

[0076] In one example, the signal quality of the PPG signal can be measured in one of the following ways:

[0077] PPG signal missing degree;

[0078] The main frequency mutation degree of the ACC (accelerometer) signal related to the PPG signal;

[0079] The correlation between the ACC signal and the PPG signal.

[0080] Of course, the signal quality of the PPG signal can also be measured in other ways, which will not be listed one by one here.

[0081] In one example, the user wears Figure 3The wearable electronic device shown outputs and displays the heart rate information in the PPG signal collected by the PPG signal collection device as the monitored heart rate information when the quality of the PPG signal is good; when the quality of the PPG signal is poor, the wearable electronic device outputs and displays the heart rate value obtained by the data acquisition device as the monitored heart rate information.

[0082] In another example, the user wears Figure 4 the electronic device A shown, and carries Figure 4 the electronic device B shown. Among them, the electronic device A is a wearable electronic device. For example, the electronic device A can be a smart watch, a smart bracelet, etc. The electronic device B is a portable electronic device. For example, the electronic device B can be a mobile phone, a tablet, etc. Figure 4 It is an example diagram of a combined electronic device shown for illustration.

[0083] The electronic device A includes a PPG signal collection device, a step frequency collection device, and a sending device. Among them, the PPG signal collection device is used to collect the PPG signal and send it to the sending device; the step frequency collection device is used to collect acceleration information, process the acceleration information to obtain step frequency information, and send it to the sending device; the sending device is used to send the PPG signal and the step frequency information to the electronic device B.

[0084] The electronic device B includes a receiving device, a data acquisition device, a heart rate information output device, and a display screen. The receiving device is used to receive the PPG signal and the step frequency information sent by the sending module of the electronic device A, and forward the PPG signal and the step frequency information to the data acquisition device. The data acquisition device is used to implement the data acquisition method of this embodiment according to the PPG signal and the step frequency information, and send the heart rate value obtained according to the acquisition method of this embodiment and the heart rate information included in the PPG signal to the heart rate information output device. The heart rate information output device is used to determine the heart rate information in the PPG signal as the monitored heart rate information when the quality of the PPG signal is good, and is used to determine the heart rate value determined by the data acquisition device as the monitored heart rate information when the quality of the PPG signal is poor, and is used to output the determined monitored heart rate information to the display screen. The display screen is used to display the heart rate information. In addition to including Figure 4 the structure shown, the electronic device B may also simultaneously include Figure 1 various modules in the electronic device 100 in

[0085] The above is only a schematic description of the structure of the electronic device, and is not used to limit the structure of the electronic device. For example, in another example, the above Figure 4In the electronic device A, the sending module may not be included. Instead, the PPG signal acquisition device and the step frequency acquisition device each send the output information to the electronic device B. Moreover, in the electronic device B, the receiving module may not be included. Instead, the data acquisition device directly receives the PPG signal and the step frequency sent by the electronic device A.

[0086] In another example, in the above Figure 4 electronic device A may not include a sending module, but instead includes a PPG signal sending module and a step frequency sending module. The PPG signal sending module is used to send the PPG signal collected by the PPG signal acquisition device to the electronic device B, and the step frequency sending module is used to send the step frequency information obtained by the step frequency acquisition module to the electronic device B. At the same time, in the electronic device B, the receiving module may not be included, but the electronic device B may include a PPG signal receiving device and a step frequency receiving device. Among them, the PPG signal receiving device is used to receive the PPG signal and forward the PPG signal to the data acquisition device; the step frequency receiving device is used to receive the step frequency information and forward the step frequency information to the data acquisition device.

[0087] Figure 5 It is a flow example diagram of the exemplary data acquisition method. Please refer to Figure 5 In the embodiments of the present application, the flow of the data acquisition method may include the following steps:

[0088] S501. Obtain the first heart rate information of the target user corresponding to the first scenario in the most recent first time period. The first heart rate information is collected when the signal quality of the PPG signal meets the first condition, and the first heart rate information includes a step frequency value and a heart rate value.

[0089] Among them, the length of the first time period can be determined according to actual needs. For example, the first time period can be one week, one month, etc.

[0090] Among them, the first scenario can be, for example, a walking scenario, a running scenario, a stationary scenario (such as during sleep). Different scenarios can be determined according to the range in which the user's step frequency value is located (this range can be called the step frequency interval). For different users, the range in which the step frequency value of the same scenario is located can be different. For example, for user 1, the range of the step frequency value corresponding to the walking scenario is 90 - 96 (unit: steps / minute); for user 2, the range of the step frequency value corresponding to the walking scenario is 99 - 105 (unit: steps / minute). In this embodiment, the step frequency interval corresponding to the first scenario can be called the first step frequency interval.

[0091] Among them, the target user is usually the user of the electronic device, such as the user wearing a smart watch. In this embodiment, the heart rate information is obtained for each specific user respectively, and the subsequent heart rate map is constructed according to the user's personal information for predicting the user's personal heart rate.

[0092] Among them, the heart rate value in the heart rate information can be collected by the aforementioned PPG signal acquisition device, and the step frequency value in the heart rate information can be obtained by the aforementioned step frequency acquisition device.

[0093] When the electronic device is a smart watch or a smart bracelet, obtaining the first heart rate information of the target user corresponding to the first scenario in the most recent first time period may include: collecting the first heart rate information of the target user corresponding to the first scenario in the most recent first time period.

[0094] When the electronic device is a mobile phone or a tablet computer, obtaining the first heart rate information of the target user corresponding to the first scenario in the most recent first time period may include: receiving the first heart rate information of the target user corresponding to the first scenario in the most recent first time period sent by another electronic device, and the first heart rate information is collected by the other electronic device.

[0095] S502. According to the first heart rate information, construct the first heart rate map corresponding to the target user in the first scenario.

[0096] It should be noted that for the same user, different heart rate maps correspond to different scenarios. For different users, different heart rate maps also correspond to the same scenario. The heart rate map corresponds to the user and the scenario.

[0097] The first heart rate map is obtained by processing the first heart rate information acquired in step S501.

[0098] In one example, according to the first heart rate information, constructing the first heart rate map corresponding to the target user in the first scenario may include:

[0099] Store the step frequency value and heart rate value of the first heart rate information into the historical heart rate information mapping table;

[0100] Sort the historical heart rate information mapping table in ascending order of the step frequency value to obtain the first heart rate map.

[0101] In one example, the scenario and information such as step frequency and heart rate can be stored together in the historical heart rate information mapping table.

[0102] For example, the historical heart rate information mapping table may be as shown in Table 1.

[0103] Scenario Step frequency (steps per minute) Heart rate (beats per minute) Walking 1.05 105 Walking 1.06 109 Walking 1.03 105 Walking 1.03 101 Walking 1.03 106 Walking 1.03 101 … … … Walking 1.05 107 Walking 1.09 108

[0104] In one example, it can be set that the number of heart rate values with equal step frequency values in the historical heart rate information mapping table is equal to the first number.

[0105] Here, the processes of step S501 and step S502 are described through an example.

[0106] Taking the walking scenario as an example, the iterative update process of the historical heart rate information mapping table may include:

[0107] (1) For the heart rate output values when the exercise state is walking, select the output point with better PPG signal quality (the output point corresponds to a time point) and collect the exercise and heart rate status at that time point.

[0108] (2) The collected information is stored in the historical heart rate information mapping table. Each record in the table corresponds to a cadence-heart rate mapping point (i.e., an output point). It should be noted that there are only N heart rate values corresponding to a single cadence in the historical heart rate information mapping table. If the N+1th cadence-heart rate mapping point of a certain cadence arrives, the earliest stored information corresponding to the cadence in the historical heart rate information mapping table needs to be deleted, and the information of the N+1th cadence-heart rate mapping point corresponding to the cadence needs to be stored in the historical heart rate information mapping table.

[0109] (3) In the initial table of the historical heart rate information mapping table, each time the information of a cadence-heart rate mapping point is stored, the number of iterations increases by 1. When the total number of iterations in the historical heart rate information mapping table is greater than M, the construction of the heart rate map is started.

[0110] Next, we will continue to use the walking scene as an example to illustrate the process of constructing the heart rate map.

[0111] The process of constructing the heart rate graph corresponding to the walking scene shown in Table 1 may include:

[0112] (1) Extract the cadence and heart rate data of the walking scenes in Table 1 respectively and construct a two-dimensional matrix T n×2 .

[0113] T n×2 =[T1,T2]

[0114] Among them, T1 is the cadence column and T2 is the heart rate column.

[0115] Matrix T n×2 The mapping diagram is as follows Figure 6 shown. Figure 6 A mapping diagram of a two-dimensional matrix constructed for cadence and heart rate data of an exemplary walking scene. Figure 6 In the chart, the horizontal axis is the index number of the output point, and the vertical axis is the heart rate value and step frequency value per minute.

[0116] (2) Sort the matrix T from small to large according to T1 (step frequency column) to generate the matrix T n r ×2 .

[0117] Matrix T n r ×2The mapping diagram is the heart rate map, and the matrix T n r ×2 The mapping diagram of Figure 7 is as shown. Figure 7 It is an example diagram of a heart rate map constructed for the step frequency and heart rate data of an exemplary walking scenario. Figure 7 In it, the abscissa is the output point index number, and the ordinate is the heart rate value and step frequency value per minute.

[0118] S503. Receive the target step frequency value of the target user in the first scenario. The target step frequency value is collected when the signal quality of the PPG signal does not meet the first condition.

[0119] When the signal quality of the PPG signal does not meet the first condition, it means that the signal of the PPG signal is not good or the signal of the PPG signal is relatively poor. The situation where the signal quality of the PPG signal does not meet the first condition can include two cases: one case is that there is no PPG signal, and the other case is that there is a PPG signal but the signal of the PPG signal is poor.

[0120] S504. Determine the target heart rate value corresponding to the target step frequency value according to the first heart rate map.

[0121] In one example, determining the target heart rate value corresponding to the target step frequency value according to the first heart rate map may include:

[0122] Determine the first target step frequency interval according to the target step frequency value and the first interval radius;

[0123] Obtain the heart rate value corresponding to the step frequency value located in the first target step frequency interval from the first heart rate map, and record it as the reference heart rate value;

[0124] Determine the target heart rate value corresponding to the target step frequency value according to all the reference heart rate values.

[0125] In one example, determining the target heart rate value corresponding to the target step frequency value according to all the reference heart rate values may include:

[0126] Sort all the reference heart rate values in ascending order to obtain the first sequence;

[0127] Determine the upper heart rate threshold and the lower heart rate threshold according to the first heart rate value at the first position and the second heart rate value at the second position in the first sequence. The second potential is greater than the first position;

[0128] Delete the heart rate values greater than or equal to the upper heart rate threshold and the heart rate values less than or equal to the lower heart rate threshold from the first sequence to obtain the second sequence.

[0129] Determine the average value of all the heart rate values in the second sequence as the target heart rate value corresponding to the target step frequency value.

[0130] In one example, determining a target heart rate value corresponding to a target step frequency value based on all reference heart rate values may include:

[0131] Determining the average value of all reference heart rate values as the target heart rate value corresponding to the target step frequency value.

[0132] In one example, determining a target heart rate value corresponding to a target step frequency value according to a first heart rate map may include:

[0133] Determining a first target step frequency interval according to the target step frequency value and a first interval radius;

[0134] Judging whether the number of step frequency values in the first target step frequency interval in the first heart rate map is 0;

[0135] If so, determining a second target step frequency interval according to the target step frequency value and a second interval radius, where the second interval radius is greater than the first interval radius;

[0136] Obtaining the heart rate values corresponding to the step frequency values in the second target step frequency interval from the first heart rate map, and denoting them as reference heart rate values;

[0137] Determining a target heart rate value f corresponding to the target step frequency value according to all reference heart rate values.

[0138] The process of step S5**4** will be described in detail below by way of examples.

[0139] Still taking walking as an example, assume that the step frequency of the user in the walking scenario is.

[0140] First, lock the processing range. Locking the processing range includes the following steps:

[0141] (1) Take the matrix The heart rate column array H corresponding to the step frequency column within the interval [f - f1, f + f1].[[]END]]

[0142] (2) Judge whether H is an empty array. If H is an empty array, go to step (3). If H is a non-empty array, jump to step (4).

[0143] (3) On the basis of the upper and lower limits of the current step frequency interval, each of the upper and lower limits is amplified by Take the heart rate column array H corresponding to the step frequency column within the interval ; Jump to step (2).

[0144] (4) Output the heart rate data segment matrix H = [h1, h2,..., h n . H can also be called a sequence or an array.

[0145] The process diagram of retrieving the heart rate data segment matrix is as shown in Figure 8 shown.Figure 8 FIG. 1 is an example diagram illustrating the heart rate data segment matrix retrieval process. Figure 8 In the chart, the horizontal axis is the index number of the output point, and the vertical axis is the heart rate value and step frequency value per minute.

[0146] Then, detect abnormal data. The process of detecting abnormal data may include the following steps:

[0147] (2) Determination of upper and lower thresholds of normal heart rate values for determining abnormal values

[0148] Assume that the upper limit of the normal heart rate value of the heart rate data segment is U1 (upper heart rate threshold) and the lower limit is U2 (lower heart rate threshold). The upper heart rate threshold U1 and the lower heart rate threshold U2 are calculated using the following formulas (1) and (2) respectively.

[0149] U1=percentile(H,75)+1.5*(percentile(H,75)-percentile(H,25)) (1)

[0150] U1=percentile(H,25)-1.5*(percentile(H,75)-percentile(H,25)) (2)

[0151] Here, percentile(H,75) represents the 75th percentile of the H sequence, and percentile(H,25) represents the 25th percentile of the H sequence.

[0152] Next, reconstruct the array H. The reconstruction process is:

[0153] Delete the heart rate data in array H that is greater than or equal to U1 or less than or equal to U2, and generate array H after removing abnormal values. r Abnormal heart rate is Figure 9 The part within the dotted ellipse frame. Figure 9 FIG. 1 is a schematic diagram of an abnormal heart rate in a heart rate spectrum shown as an example.

[0154] Finally, the heart rate value corresponding to the step frequency f is output.

[0155] According to array H r Determine the heart rate value h corresponding to the step frequency f, and the calculation method is as shown in formula (3).

[0156] h=Mean(H r ) (3)

[0157] Among them, Mean represents the mean, that is, the output value of the heart rate value h corresponding to the final step frequency f is the array H r The mean of .

[0158] This embodiment takes into account the inherent characteristics of individual heart rate values under specific exercise states and exercise intensities. By collecting and integrating the heart rate output values of the same exercise state and similar exercise intensities in history, and using this information as the support for the heart rate output value of the user in the next same exercise state and similar exercise intensity, it is possible to achieve a high-accuracy heart rate output value in the case of poor PPG signal quality or missing PPG signal.

[0159] It can be seen that the data acquisition method of this embodiment can reduce the abnormal output value of heart rate monitoring, improve the reliability of heart rate monitoring, and enhance the user experience.

[0160] This application embodiment also provides an electronic device, which includes a memory and a processor. The memory is coupled to the processor, and the memory stores program instructions. When the program instructions are executed by the processor, the data acquisition method executed by the foregoing electronic device is enabled.

[0161] It can be understood that in order for the electronic device to implement the above functions, it includes the corresponding hardware and / or software modules for executing each function. Combining the algorithm steps of each example described in the embodiments disclosed in this article, this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but this implementation should not be considered to exceed the scope of this application.

[0162] This embodiment also provides a computer storage medium, in which computer instructions are stored. When the computer instructions run on the electronic device, the electronic device is enabled to execute the above-related method steps to implement the data acquisition method in the above embodiment.

[0163] This embodiment also provides a computer program product. When the computer program product runs on a computer, the computer is enabled to execute the above-related steps to implement the data acquisition method in the above embodiment.

[0164] In addition, this application embodiment also provides a device, which may specifically be a chip, a component or a module. The device may include a processor and a memory connected to each other. The memory is used to store computer execution instructions. When the device runs, the processor may execute the computer execution instructions stored in the memory to enable the chip to execute the data acquisition method in each of the above method embodiments.

[0165] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here.

[0166] From the descriptions of the above embodiments, those skilled in the art can understand that for the convenience and conciseness of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0167] In several embodiments provided in this application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point, the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in electrical, mechanical or other forms.

[0168] The unit described as a separated component may or may not be physically separated. The component displayed as a unit may be a physical unit or multiple physical units, that is, it can be located in one place, or it can be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0169] In addition, each functional unit in each embodiment of this application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0170] Any content of each embodiment of this application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.

[0171] When an integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.

[0172] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.

[0173] The steps of the methods or algorithms described in connection with the disclosed content of the embodiments of the present application can be implemented in a hardware manner or by a processor executing software instructions. The software instructions can be composed of corresponding software modules. The software modules can be stored in a random access memory (RAM), flash memory, read only memory (ROM), erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium well-known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0174] Those skilled in the art should be able to realize that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented by hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. The computer-readable medium includes computer storage media and communication media, where the communication media includes any medium that facilitates the transfer of a computer program from one place to another. The storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0175] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.

Claims

1. A data acquisition method, characterized in that, Applied to an electronic device, the method includes: Obtain first heart rate information of a target user corresponding to a first scenario within a recent first time period, where the first heart rate information is collected when the signal quality of a photoplethysmogram (PPG) signal meets a first condition, and the first heart rate information includes a step frequency value and a heart rate value; Construct a first heart rate map corresponding to the target user in the first scenario according to the first heart rate information; Receive a target step frequency value of the target user in the first scenario, where the target step frequency value is collected when the signal quality of the PPG signal does not meet the first condition; Determine a target heart rate value corresponding to the target step frequency value according to the first heart rate map.

2. The method according to claim 1, characterized in that Constructing a first heart rate map corresponding to the target user in the first scenario according to the first heart rate information includes: Correspondingly store the step frequency value and the heart rate value of the first heart rate information into a historical heart rate information mapping table; Sort the historical heart rate information mapping table in ascending order of the step frequency value to obtain a first heart rate map.

3. The method according to claim 2, wherein The number of heart rate values with equal step frequency values in the historical heart rate information mapping table is equal to a first number.

4. The method according to claim 1, characterized in that The first scenario corresponds to a first step frequency interval.

5. The method according to claim 2, characterized in that Determining a target heart rate value corresponding to the target step frequency value according to the first heart rate map includes: Determine a first target step frequency interval according to the target step frequency value and a first interval radius; Obtain the heart rate value corresponding to the step frequency value located in the first target step frequency interval from the first heart rate map, denoted as a reference heart rate value; Determine a target heart rate value corresponding to the target step frequency value according to all reference heart rate values.

6. The method according to claim 5, wherein Determining a target heart rate value corresponding to the target step frequency value according to all reference heart rate values includes: Sort all reference heart rate values in ascending order to obtain a first sequence; Determine an upper heart rate threshold and a lower heart rate threshold according to a first heart rate value at a first position and a second heart rate value at a second position in the first sequence, where the second position is greater than the first position; Delete the heart rate values greater than or equal to the upper heart rate threshold and the heart rate values less than or equal to the lower heart rate threshold from the first sequence to obtain a second sequence; Determine the average value of all heart rate values in the second sequence as the target heart rate value corresponding to the target step frequency value.

7. The method according to claim 5, wherein Determining a target heart rate value corresponding to the target step frequency value according to all reference heart rate values includes: Determine the average value of all reference heart rate values as the target heart rate value corresponding to the target step frequency value.

8. The method according to claim 2, characterized in that, Determining a target heart rate value corresponding to the target step frequency value according to the first heart rate map includes: Determine a first target step frequency interval according to the target step frequency value and a first interval radius; Judge whether the number of step frequency values located in the first target step frequency interval in the first heart rate map is 0; If so, determine a second target step frequency interval according to the target step frequency value and a second interval radius, where the second interval radius is greater than the first interval radius; Obtain the heart rate value corresponding to the step frequency value located in the second target step frequency interval from the first heart rate map, denoted as a reference heart rate value; Determine the target heart rate value corresponding to the target step frequency value according to all reference heart rate values.

9. The method according to claim 1, wherein The first scenario is a walking scenario or a running scenario.

10. The method according to claim 1, characterized in that, The electronic device is a smart watch or a smart bracelet.

11. The method according to claim 10, characterized in that, Obtain the first heart rate information of the target user corresponding to the first scenario in the most recent first time period, including: Collect the first heart rate information of the target user corresponding to the first scenario in the most recent first time period.

12. The method according to claim 1, characterized in that, The electronic device is a mobile phone or a tablet computer.

13. The method according to claim 12, characterized in that, Obtain the first heart rate information of the target user corresponding to the first scenario in the most recent first time period, including: Receive the first heart rate information of the target user corresponding to the first scenario in the most recent first time period sent by another electronic device, where the first heart rate information is collected by the other electronic device.

14. An electronic device, characterized in that, Including: A memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the data acquisition method described in any one of claims 1-13.

15. A computer-readable storage medium, comprising a computer program, characterized in that, When the computer program runs on the electronic device, the electronic device executes the data acquisition method described in any one of claims 1-13.

Citation Information

Patent Citations

  • Method and device for monitoring work and rest moments

    CN113672083A

  • Heart rate detection method and device, electronic equipment and computer readable storage medium

    CN115245319A