Method and apparatus for collecting physiological data and wearable device
By selectively enabling sensors based on sleep detection and duration thresholds, the method addresses high power consumption in wearable devices, ensuring efficient data collection and extended battery life for sleep monitoring.
Patent Information
- Application Number
- JP2023512105
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-08-18
- Filing Date
- 2021-08-17
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-08-17
AI Technical Summary
Current wearable devices experience high power consumption and short battery life due to continuous physiological data collection during long-term sleep, leading to inefficient power management and reduced user experience.
A method and device that selectively enable sensors only when the user is detected to be falling asleep and determine if the number of long sleep periods meets a threshold, disabling the sensors when the user wakes up, thereby reducing unnecessary data collection and power consumption.
This approach reduces power consumption and extends battery life by minimizing sensor activation during short sleep periods and ensuring accurate data collection during long sleep periods, enhancing user experience and sleep monitoring accuracy.
Smart Images

Figure 00000037_0000 
Figure 00000037_0001 
Figure 00000037_0002
Abstract
Description
[Technical field]
[0001] This application claims priority to Chinese Patent Application No. 202010834214.4, entitled “Physiological Data Collection Method and Apparatus and Wearable Device,” filed with the State Intellectual Property Office of China on August 18, 2020, which is incorporated herein by reference in its entirety.
[0002] This application relates to the field of data collection technologies, and more particularly to physiological data collection methods and devices, and wearable devices. [Background technology]
[0003] Sleep is one of the most important physiological activities of humans. Research has shown that many people have sleep disorders and even have problems with insomnia. Therefore, it is important to perform sleep monitoring accurately so that users can better understand their sleep state. In order to perform sleep monitoring, current technology places sensors capable of collecting physiological data on a wearable device such as a band or a watch, and these sensors are used to collect physiological data of the user. Then, analysis is performed based on the collected physiological data to perform sleep monitoring of the user.
[0004] Sleep can be divided into long sleep and short sleep. Long sleep, e.g., night sleep, means that the sleep duration reaches a certain duration threshold. Short sleep, e.g., daytime naps and siestas, means that the sleep duration is short and does not reach a certain duration threshold. Long sleep is the main way that users get rest and is also the type of sleep that attracts most of the users' attention. With long sleep duration, long sleep allows the wearable device to detect a large amount of data from the sleeping user and perform sophisticated sleep analysis. The sophisticated sleep analysis is performed based on the long sleep, and a sleep quality score and suggestions are provided. This helps the user learn about the sleep state and make targeted improvements.
[0005] To implement long-term sleep monitoring, current technology continuously enables the relevant sensor in the wearable device to continuously collect physiological data of the user. Then, physiological data during long-term sleep is identified and analyzed from the collected physiological data. In this way, physiological data collection during the user's long-term sleep can be implemented, and sleep monitoring of the user can be implemented. However, both physiological data collection and sleep monitoring require a lot of power consumption. As a result, the wearable device quickly consumes power, resulting in a short battery life and a poor user experience. Summary of the Invention
[0006] In view of this, embodiments of the present application provide a physiological data collection method and device, as well as a wearable device, to solve the problem of current technology in that collecting a user's physiological data during long periods of sleep requires high power consumption.
[0007] A first aspect of an embodiment of the present application provides a physiological data collection method applied to a wearable device including a first sensor, the method comprising: Detecting whether a user is asleep; determining whether a first number of times that the user falls asleep within a first period of time is less than a number threshold when the user is detected to be asleep; detecting whether the user has woken up; if the first frequency threshold is less than the frequency threshold, enabling a first sensor and using the first sensor to collect first physiological data of the user; Disabling the first sensor when it is detected that the user has woken up.
[0008] In this embodiment of the present application, during the period when sleep monitoring is enabled, the sensor is not continuously enabled, but the user is continuously monitored for falling asleep. If it is detected that the user is falling asleep, it is determined whether the number of times the user sleeps for a long time in the most recent first period reaches a frequency threshold. In addition, the sensor is enabled to collect the user's physiological data only if the frequency threshold is not reached. In addition, if the user is asleep, the user is continuously monitored for waking up, and the sensor is disabled when it is detected that the user is awake. The first period is a past period, and a specific period range can be set by a person skilled in the art based on the actual situation.
[0009] In normal life and work, the user is mostly sober. Therefore, compared with the case where the relevant sensor is enabled all day, this embodiment of the present application can reduce a large amount of sensor collection work and power consumption. In addition, by setting the frequency threshold, the case where physiological data collection is performed for all the sleep periods of the user can be effectively avoided, and the relevant sensor is less enabled for short sleep periods. Therefore, this embodiment of the present application can reduce the workload of collecting physiological data by the sensor during long sleep periods, as well as reduce power consumption, suppress the power consumption of the wearable device, and extend the battery life.
[0010] In a first possible implementation of the first aspect, when it is detected that the user is asleep, determining whether a first number of times that the user enters a long sleep within a first period is less than a number threshold includes: When it is detected that the user has fallen asleep, determining whether the user has fallen asleep within a second period; If the sleep onset time is within the second period, determining whether the first number of times that the user falls into a long sleep within the first period is less than the number threshold; Includes.
[0011] The wearable device can obtain the user's long sleep history sleep data. In this case, in this embodiment of the present application, a sleep onset time range (i.e., a second period) of the user's actual long sleep time is pre-estimated based on the user's long sleep habit. In the period in which sleep monitoring is kept enabled, the sensor is not continuously enabled, but sleep onset monitoring is continuously performed on the user. If it is detected that the user is falling asleep, it is determined whether the sleep onset time is within the range of sleep onset times. If the sleep onset time is within the range of sleep onset times, it indicates that the sleep is likely to be a long sleep. Thus, it is determined whether the number of times the user is in a long sleep state in the first period reaches a number threshold.
[0012] In real life, long sleep is considered to be a very normal behavior for a user. Therefore, in this embodiment of the present application, the user's historical sleep data is analyzed to adaptively obtain the range of sleep onset time that the user is accustomed to, so that it can accurately determine whether the user's sleep is long sleep. Therefore, in this embodiment of the present application, it is determined whether to enable the sensor based on three conditions: whether the user falls asleep, whether the sleep onset time is within the range of sleep onset time that the user is accustomed to, and whether the number of long sleeps in a recent period reaches a number threshold. The user's intention is accurately identified every time the user falls asleep, and an accurate identification for long sleep is performed. Therefore, the case of physiological data collection for all the user's sleep time can be effectively avoided, and the probability of enabling the related sensor for short sleep can be reduced. The power consumption for physiological data collection can be reduced.
[0013] Based on the first possible implementation of the first aspect, in a second possible implementation of the first aspect, before determining whether the sleep onset time is within the second period, the method further comprises: acquiring historical sleep data for the user for a third period of time; obtaining the second time period by analyzing the historical sleep data; and Further includes:
[0014] In this embodiment of the present application, the user's historical sleep data in a past period (i.e., a third period) is obtained. Based on the obtained historical sleep data, this embodiment of the present application obtains a range of sleep onset time when the user routinely falls into long sleep by analyzing the historical sleep data. In this way, adaptive learning is performed about the user's sleep onset habits, so that the sleep onset time range is more applicable to the user. Therefore, the accuracy and reliability of sleep onset detection for long sleep is increased.
[0015] Based on the second possible implementation of the first aspect, in a third possible implementation of the first aspect, obtaining the second time period by analyzing the historical sleep data includes: analyzing the historical sleep data to obtain sleep period data relating to k sleeps during which the user sleeps for a longest sleep duration each day and which fall within the third time period, where k is equal to the count threshold; selecting, from the sleep period data, sleep period data related to a sleep period whose sleep duration is equal to or greater than a duration threshold, and reading the sleep onset time point included in each of the selected sleep period data; and obtaining the second time period by analyzing the read sleep onset time.
[0016] In this embodiment of the present application, the sleep state of each day in the third period is analyzed to obtain sleep time data whose length is the time threshold of the longest sleep duration of each day. Then, the duration threshold is used to select to obtain sleep period data during the actual long sleep of each day in the third period. Finally, the sleep onset time is extracted from the sleep period data, and the sleep onset time is analyzed to obtain a second time. Therefore, in this embodiment of the present application, adaptive learning and accurate extraction for the time when the user enters long sleep every day can be performed, so that the accuracy and reliability of sleep onset detection for long sleep is increased.
[0017] Based on the third possible implementation of the first aspect, in a fourth possible implementation of the first aspect, after the sleep period data is selected, the method further comprises: obtaining a sleep duration corresponding to the selected sleep period data and updating a duration threshold based on the sleep duration; Further includes:
[0018] The duration threshold is updated by using historical sleep data, so that the value of the duration threshold can be adapted to the user's actual sleep habits. Thus, in the process of identifying the user's long sleep, the accuracy of identifying the user's long sleep can be improved, so that more accurate opportunities to enable the sensor are selected and the possibility of erroneously enabling the sensor is reduced. Thus, the power consumption for collecting the user's physiological data during long sleep can be reduced.
[0019] Based on the first to fourth possible implementations of the first aspect, in a fifth possible implementation of the first aspect, the method includes, when it is detected that the user has woken up, collecting statistics regarding a first duration lasting from a time when the user falls asleep to a time when the user wakes up; If the first duration is equal to or greater than the duration threshold, determining that the sleep is a long sleep and updating the first number of times; Further includes:
[0020] In this embodiment of the present application, after the sleep is determined to be a long sleep, the first number of times is updated in a timely manner to ensure the accuracy of the first number of times.
[0021] Based on the fifth possible implementation of the first aspect, in a sixth possible implementation of the first aspect, the method further comprises: If the first duration is equal to or greater than the duration threshold, analyzing the currently collected first physiological data to obtain corresponding sleep analysis data and performing long term sleep monitoring.
[0022] Based on the first to fourth possible implementations of the first aspect, in a seventh possible implementation of the first aspect, the method further comprises: if it is detected that the user has woken up, collecting statistics regarding a first duration lasting from when the user falls asleep to when the user wakes up; if the first duration is less than the duration threshold, detecting whether the user is asleep; When it is detected that the user is asleep, detecting whether the user wakes up, enabling the first sensor, and acquiring second physiological data of the user by using the first sensor; Disabling the first sensor when the user is detected to be awake; Further includes:
[0023] In this embodiment of the present application, in order to avoid the case where the user's normal long sleep is interrupted and the user needs to enter long sleep again, when it is determined that the user's sleep duration is less than the duration threshold, the sensor is set to be enabled when the user performs the next sleep onset behavior. Specifically, in this case, it is no longer determined whether the user is within the sleep onset time range and whether the number threshold is reached, but the sensor is directly enabled when it is detected that the user has entered sleep, and the user's physiological data is collected. According to this embodiment of the present application, even if the user is interrupted by interference factors such as noise during long sleep, physiological data collection can be performed on the user in a timely manner when the user enters long sleep again. In this way, the accuracy and reliability of physiological data collection during long sleep is increased.
[0024] Based on the third or fourth possible implementation of the first aspect, in an eighth possible implementation of the first aspect, acquiring historical sleep data of the user within a third time period includes: Identifying a period type of a current period to obtain a first type; selecting a fourth period whose period type is the first type from the third period; acquiring the historical sleep data within the fourth time period; Includes.
[0025] In this embodiment of the present application, when analyzing the sleep onset period, the period of the period type to which the current period belongs (i.e., the fourth period) is selected from the past periods, and the historical sleep data of these periods is obtained as the target.Therefore, in this embodiment of the present application, the sleep onset time range can be analyzed based on the period type to which the current period belongs, so as to accurately learn and identify the user's sleep habits.In this way, in this embodiment of the present application, the user's long sleep is identified more accurately, and the sensor is enabled at a more accurate and effective opportunity.
[0026] Based on the third or fourth possible implementation of the first aspect, in a ninth possible implementation of the first aspect, obtaining the second time period by analyzing the historical sleep data includes: dividing the third period into a plurality of period sets and extracting sleep sub-data for each period set from the historical sleep data, where each period set includes only periods of the same period type, and different period sets are associated with different period types; obtaining the second periods respectively associated with each period type by analyzing the sleep sub-data respectively associated with each period set; Correspondingly, when it is detected that the user has fallen asleep, determining whether the time point at which the user has fallen asleep is within a second period includes: When it is detected that the user is asleep, identifying a period type of a current period and acquiring a second type; Obtaining the second period associated with the second type and determining whether the sleep onset time is within the second period; Includes.
[0027] In this embodiment of the present application, the physiological data of the user is normally obtained during long sleep, and each time the historical sleep data is updated, the sleep onset habits of the user of each period type are analyzed in a timely manner, the sleep onset time range of the user of each period type is obtained, and adaptive learning is performed for the sleep onset habits of the user. However, in the embodiment shown in FIG. 3, after it is detected that the user has fallen asleep, in S302, the sleep onset time can be determined by simply reading the sleep onset time range of the period type to which the analyzed current period belongs. Therefore, in this embodiment of the present application, adaptive and accurate learning for the sleep habits of the user can be performed. In this way, in this embodiment of the present application, the identification of the user's long sleep is more accurate, and the sensor is enabled at a more accurate and effective opportunity.
[0028] In a tenth possible implementation of the first aspect, when it is detected that the user is asleep, determining whether a first number of times that the user enters a long sleep within a first period is less than a number threshold includes: if it is detected that the user has fallen asleep, determining whether the onset of sleep is a first time that the user has fallen asleep within the first time period; determining that the first number of occurrences threshold is less than the number of occurrences threshold if the falling asleep is a first falling asleep occurrence by the user within the first period; Includes.
[0029] In this embodiment of the present application, when it is detected that the user is falling asleep, it is determined whether the falling asleep is the first time the user falls asleep within the first period. If the falling asleep is the first time the user falls asleep, a specific value of the number of times the user has fallen asleep for a long period of time may not be obtained (i.e., regardless of the value of the first number). Instead, it is determined that the number is less than a number threshold, and the next step of physiological data collection is initiated.
[0030] A second aspect of an embodiment of the present application is a physiological data collection device, comprising: a sleep detection module configured to detect whether a user is falling asleep; a sleep onset count detection module configured to determine whether a first number of times the user falls into a long sleep within a first period of time is less than a count threshold when it is detected that the user falls asleep; an awakening detection module configured to detect whether the user has woken up; a data collection module configured to enable a first sensor and collect first physiological data of the user by using the first sensor when the first frequency threshold is less than the frequency threshold; a sensor disable module configured to disable the first sensor when it is detected that the user has woken up; A physiological data collection device is provided, comprising:
[0031] In a first possible implementation of the second aspect, the sleep onset count detection module includes: a sleep onset time identification module configured to identify whether a sleep onset time is within a second time period when it is detected that the user is asleep; a number detection module configured to determine whether the first number of times the user falls into a long sleep during the first period is less than the number threshold if the sleep onset time falls within the second period; Includes.
[0032] Based on the first possible implementation of the second aspect, in a second possible implementation of the second aspect, the physiological data collection device includes: a historical data acquisition module configured to acquire historical sleep data of the user within a third time period; a historical data analysis module configured to obtain the second time period by analyzing the historical sleep data; and Further includes:
[0033] Based on the second possible implementation of the second aspect, in a third possible implementation of the second aspect, the historical data analysis module comprises: a sleep analysis module configured to analyze the historical sleep data to obtain sleep period data relating to k sleeps during which the user sleeps for a longest sleep duration each day and which fall within the third time period, where k is equal to the count threshold; and a sleep extraction module configured to select, from the sleep period data, sleep period data associated with a sleep period whose sleep duration is equal to or greater than a duration threshold, and to read the sleep onset time point included in each of the selected sleep period data; A frequency analysis module configured to obtain the second period by analyzing the read sleep onset time point; Includes.
[0034] Based on the third possible implementation of the second aspect, in a fourth possible implementation of the second aspect, the physiological data collection device comprises: a duration threshold updating module configured to obtain a sleep duration corresponding to the selected sleep period data and to update a duration threshold based on the sleep duration; Further includes:
[0035] Based on the first to fourth possible implementations of the second aspect, in a fifth possible implementation of the second aspect, the device comprises: a duration statistics collection module configured to collect statistics regarding a first duration that lasts from when the user falls asleep to when the user wakes up if the user is detected to have woken up; a count update module configured to determine that the sleep is a long sleep if the first duration is equal to or greater than the duration threshold and to update the first count; Further includes:
[0036] Based on the fifth possible implementation of the second aspect, in a sixth possible implementation of the second aspect, the device comprises: a sleep analysis module configured to analyze the currently collected first physiological data to obtain corresponding sleep analysis data if the first duration is equal to or greater than the duration threshold, and to perform long term sleep monitoring; Further includes:
[0037] Based on the first to fourth possible implementations of the second aspect, in a seventh possible implementation of the second aspect, the physiological data collection device includes: a duration collection module configured to collect statistics regarding a first duration that lasts from when the user falls asleep to when the user wakes up if the user is detected to have woken up; a sleep detection module configured to detect whether the user is falling asleep if the first duration is less than the duration threshold; a secondary data collection module configured to enable the first sensor and collect second physiological data of the user by using the first sensor when it is detected that the user is asleep; a wake-up detection module configured to detect whether the user wakes up; a sensor disable module configured to disable the first sensor when the user is detected to be awake; Further includes:
[0038] Based on the third or fourth possible implementation of the second aspect, in an eighth possible implementation of the second aspect, the history data acquisition module: a first type identification module configured to identify a period type of a current period to obtain a first type; a period extraction module configured to select a fourth period from the third period, the fourth period having a period type of the first type; a data acquisition module configured to acquire the historical sleep data within the fourth time period; Includes.
[0039] Based on the third or fourth possible implementation of the second aspect, in a ninth possible implementation of the second aspect, the historical data analysis module: a data segmentation module configured to segment the third period into a plurality of period sets and extract sleep sub-data for each period set from the historical sleep data, where each period set includes only periods of a same period type, and different period sets are associated with different period types; a data analysis module configured to analyze the sleep sub-data associated with each period set, respectively, to obtain the second periods associated with each period type, respectively; Includes.
[0040] Correspondingly, the sleep onset time identification module: A second type identification module configured to identify a period type of a current period to obtain a second type when it is detected that the user is asleep; a time determination module configured to obtain the second period associated with the second type and determine whether the sleep onset time is within the second period; Includes.
[0041] In a tenth possible implementation of the second aspect, the sleep onset count detection module includes: a first sleep identification module that, if the user is detected as falling asleep, identifies whether the sleep is the first time the user has fallen asleep within the first time period; a determination module configured to determine that the first frequency threshold is less than the frequency threshold if the sleep is a first sleep of the user within the first time period; Includes.
[0042] A third aspect of an embodiment of the present application provides a wearable device. The wearable device includes a memory and a processor. The memory stores a computer program executable on the processor. When the processor executes the computer program, the wearable device can perform steps of any of the physiological data collection methods according to the first aspect.
[0043] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium storing a computer program, which, when executed by a processor, enables a wearable device to perform steps of any of the physiological data collection methods according to the first aspect.
[0044] A fifth aspect of an embodiment of the present application provides a computer program product, which, when executed on a wearable device, causes the wearable device to perform steps of any of the physiological data collection methods according to the first aspect.
[0045] A sixth aspect of an embodiment of the present application provides a chip system, the chip system including a processor coupled to a memory, the processor configured to execute a computer program stored in the memory to implement a physiological data collection method according to any of the first aspects.
[0046] The chip system may be a single chip or a chip module containing multiple chips.
[0047] It will be understood that the beneficial effects of the second to sixth aspects should be referred to the relevant description in the first aspect, and the details will not be described again here. [Brief description of the drawings]
[0048] [Figure 1] FIG. 1 is a schematic flow chart of a physiological data collection method according to an embodiment of the present application. [Diagram 2] FIG. 2 is a schematic flow chart of a physiological data collection method according to an embodiment of the present application. [Diagram 3] FIG. 3 is a schematic flow chart of a physiological data collection method according to an embodiment of the present application. [Figure 4] FIG. 4 is a schematic flow chart of a physiological data collection method according to an embodiment of the present application. [Diagram 5] FIG. 5 is a schematic flow chart of a physiological data collection method according to an embodiment of the present application. [Figure 6] FIG. 6 is a schematic flow chart of a physiological data collection method according to an embodiment of the present application. [Figure 7] 7A and 7B are a schematic flow chart of a physiological data collection method according to an embodiment of the present application. [Figure 8] FIG. 8 is a schematic flow chart of a physiological data collection method according to an embodiment of the present application. [Figure 9] FIG. 9 is a schematic flow chart of a physiological data collection method according to an embodiment of the present application. [Figure 10] FIG. 10 is a schematic diagram of the structure of a physiological data collection device according to an embodiment of the present application. [Figure 11] FIG. 11 is a schematic diagram of the structure of a wearable device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0049] In the following description, for purposes of explanation and not limitation, specific details such as specific system structures and techniques are provided to facilitate a thorough understanding of the embodiments of the present application. However, those skilled in the art should appreciate that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as to describe the present application without obscuring it with unnecessary detail.
[0050] In order to facilitate understanding of the present application, a brief description of the embodiments of the present application will be given first.
[0051] Long sleep and short sleep are two sleep types classified based on the duration of sleep. Long sleep refers to sleep duration that reaches a certain duration threshold, such as night sleep. Short sleep refers to sleep duration that is short and does not reach a certain duration threshold, such as afternoon naps or dozes.
[0052] To monitor a user's long sleep, it is first necessary to collect the user's physiological data during the long sleep. In order to implement physiological data collection during the long sleep, there are some optional actions in the related art:
[0053] 1. Sensors related to physiological data collection are operated 24 hours a day to continuously collect physiological data.
[0054] In this case, as long as the user sleeps for a long time, the collected physiological data includes the physiological data during the long sleep. Therefore, the integrity of the physiological data collected during the long sleep is high. However, the collection needs to be performed for a long period of time. Therefore, the power consumption of the sensor is high, the power consumption of the wearable device is fast, and the battery life is poor. In addition, the physiological data is collected excessively. Therefore, a large burden is placed on the data storage and data processing of the wearable device, and the cost of the wearable device is increased.
[0055] 2. A time period for collecting physiological data is preset by a person skilled in the art, for example, from 22:00 to 10:00. The wearable device enables the associated sensor during that time every day to collect physiological data. Outside of that time, the associated sensor is disabled by default.
[0056] In this case, the wearable device may acquire physiological data at a fixed time period every day. In one aspect, for some users who are accustomed to sleeping for a long time within that time period, complete physiological data during the long sleep may be collected. However, for users who are accustomed to sleeping for a long time within another time period, it may be difficult to collect complete physiological data during the long sleep in this case, and the physiological data during the long sleep may not be collected completely. For example, some night-shift users usually sleep for a long time during the daytime. In this case, complete physiological data of the user during the long sleep within the time period from 22:00 to 10:00 cannot be collected. In another aspect, the set time period usually rarely matches the user's actual long sleep time completely. Therefore, physiological data that is not within the long sleep time is collected, and the collected physiological data cannot be used for sleep monitoring. Therefore, the sensor performs unnecessary operations, and the power consumption of the wearable device increases.
[0057] In order to effectively collect the user's physiological data during long sleep and reduce the power consumption of the wearable device caused by physiological data collection, in the embodiment of the present application, it is first detected whether the user falls asleep. The logic for determining whether to enable the sensor is triggered only when the user falls asleep. In addition, it is considered that the number of times that a user performs long sleep in a certain period in real life is very limited. For example, in one day, long sleep usually occurs only once. However, in addition to long sleep, the user may also perform short sleep in a certain period. Therefore, if the sensor is enabled every time the user falls asleep, the sensor will inevitably collect excessive wasteful physiological data. This will result in increased power consumption. Therefore, in the embodiment of the present application, a count threshold of long sleep is set based on the user's actual situation. If it is detected that the user falls asleep, it is determined whether the number of times that the user performs long sleep in a recent period reaches the count threshold. If the count threshold is not reached, it indicates that the sleep may be long sleep. In this case, in the embodiment of the present application, the sensor is enabled to collect the user's physiological data. In an embodiment of the present application, if it is detected that the user has woken up, i.e., after the end of sleep, the sensors are disabled and physiological data collection ends.
[0058] In the embodiment of the present application, the sensor is enabled when the user falls asleep and the number of times the user has slept long in the recent period does not reach the number threshold. Compared with the related art, the case where the sensor is maintained in an enabled state during the time when the user is awake can be avoided. In normal life and work, the user is in a sober state most of the time. Therefore, compared with maintaining the relevant sensor in an enabled state all day, the embodiment of the present application can reduce a large amount of sensor collection operations and power consumption. Compared with maintaining the sensor in a fixed enabled state within a preset time period, this can be more adaptive to the actual user's sleep habits and reduce the case where physiological data of the user in an awake state is collected. In addition, by setting the number threshold, the case where physiological data is collected for all the user's sleep periods can be effectively avoided, and the possibility of enabling the relevant sensor for short sleep is reduced. Therefore, the power consumption for physiological data collection can be reduced. In conclusion, the embodiment of the present application can avoid physiological data collection when the user is awake and reduce the case where physiological data collection is performed during the user's short sleep. Physiological data can be accurately collected during long sleep. Therefore, due to the low power consumption and long battery life of the wearable device, the power consumption can be reduced in addition to the workload of collecting physiological data by the associated sensors during long periods of sleep.
[0059] In addition, some terms that may be used in the embodiments of the present application are explained below.
[0060] Duration threshold: Long sleep is an important way for a user to rest to recover bodily functions and mind. Therefore, long sleep needs to have a long duration so that the user is sufficiently rested. In the embodiment of the present application, the duration threshold is used to measure whether the duration of one sleep of the user is sufficient. That is, the duration threshold is used to distinguish between long sleep and short sleep. When the sleep duration reaches the duration threshold, the sleep can be regarded as long sleep. On the contrary, when the duration threshold is not reached, the sleep can be regarded as short sleep. In practical application, the duration threshold can be set by a person skilled in the art. For example, the duration threshold can be set to any duration within 5 hours to 6 hours. Alternatively, the duration threshold can be determined after a person skilled in the art investigates and collects statistics on the user's sleep time. Alternatively, an analysis can be performed based on the user's actual sleep habits to obtain a duration threshold suitable for the user. This is not specifically and excessively limited in the present specification.
[0061] Sleep monitoring: In the embodiment of the present application, sleep monitoring refers to monitoring the long sleep of a user. Specifically, the physiological data collected during the long sleep of the user is analyzed to generate a certain analysis result (i.e., sleep analysis data) to help the user learn the long sleep state of the user. The analysis result may be a parsing of sleep data (e.g., the duration of three sleep cycles of deep sleep, light sleep and rapid eye movement sleep, and the distribution time of each cycle during the entire long sleep), a sleep quality score, or a sleep guidance suggestion or other contents. This may be specifically set by those skilled in the art based on the actual requirements. The physiological data (including the first physiological data and the second physiological data) in the following embodiments of the present application is the physiological data used to perform sleep monitoring on the user. The specific type of physiological data collected during sleep monitoring and the analysis method of sleep monitoring are not overly limited in the embodiments of the present application. For example, any one or more of heart rate, pulse waveform, and bioimpedance may be used as the physiological data in the embodiments of the present application. Based on different selected physiological data, the corresponding analysis method in the embodiments of the present application may be electrocardiogram (ECG), Photo Plethysmography (PPG) method or Bioelectrical Impedance Analysis (BIA) method.
[0062] In the embodiment of the present application, the sleep monitoring is a function provided by the wearable device. In practical applications, the sleep monitoring function may be set to always be enabled by default, or the user may be provided with an option to enable or disable the function. This may be specifically set by the manufacturer of the wearable device. If the sleep monitoring function is set to always be enabled by default, the physiological data collection method provided in the embodiment of the present application is performed when the user uses the wearable device. If the user is provided with an option to enable or disable the sleep monitoring function, the physiological data collection method provided in the embodiment of the present application is performed when the user selects to enable the sleep monitoring function. Therefore, all of the following embodiments of the present application are performed when the sleep monitoring function is maintained in an enabled state.
[0063] The first sensor refers to a sensor that collects physiological data used to perform sleep monitoring on a user. In the embodiment of the present application, unless otherwise specified, the "sensor" refers to the "first sensor". Therefore, the type of the first sensor needs to be determined based on the physiological data that actually needs to be collected. In this specification, this is not overly limited. For example, if the physiological data that needs to be collected is heart rate, a heart rate sensor may be used as the first sensor in the embodiment of the present application. If the physiological data that needs to be collected is a pulse waveform, an optical heart rate sensor may be used as the first sensor. If the physiological data that needs to be collected is bioimpedance, a bioelectrical impedance sensor may be used as the first sensor. In addition, in the embodiment of the present application, the number of first sensors is not overly limited and may be set by a person skilled in the art based on actual requirements.
[0064] The historical sleep data refers to data related to the user's sleep in the past period (i.e., the third period). The data content specifically included in the historical sleep data can be set by those skilled in the art based on actual requirements. This is not limited in the present specification. For example, the historical sleep data can be set to include the fall asleep time and wake up time in long sleep in the past period. Alternatively, the historical sleep data can be set to include the fall asleep time and wake up time in all sleep periods in the past period. Alternatively, the historical sleep data can be set to include the fall asleep time and wake up time in all sleep periods in the past period, and further include the user's physiological data collected during long sleep. In addition, the specific range of the past period is not limited in the present specification, and can be set by those skilled in the art as necessary. For example, the range can be set to the past week or the past month.
[0065] User activity day refers to the following: In real life, a calendar day is usually divided into 00:00 of each day to 00:00 of the next day (i.e., from 00:00 of the current day to 00:00 of the next day; in this specification, in order to facilitate the description of the period range of each calendar day, the minimum time unit is set to seconds; theoretically, the minimum time unit can be further refined and set to, for example, milliseconds; in this specification, this is not limited). That is, the period from 00:00 to 24:00 of each day is considered to be the period of the current day. However, in real situations, users mainly perform long sleep across calendar days. For example, nighttime sleep usually lasts from the night of the current day to the morning of the next day, and crosses over 00:00 of the next day. Therefore, when physiological data is collected and analyzed for a user every day during long sleep, if the data is separated in a traditional calendar day manner, the physiological data may be inappropriately separated.
[0066] In order to better adapt to the occurrence time characteristics of long sleep and to perform appropriate physiological data collection and analysis during long sleep, the embodiment of the present application proposes the concept of "user activity day". A user activity day refers to a period from the start time of a calendar day to the end time 24 hours later. The start time can be any time from 00:00 of a calendar day to 24:00 of the calendar day, and the end time can be a time 24 hours later from the start time (i.e., the duration of a user activity day is also 24 hours). For example, if the start time of a user activity day is 20:00:00, the end time is 19:59:59 of the next calendar day (i.e., from 8:00 p.m. of a calendar day to a time before 8:00 p.m. of the next calendar day; in this specification, the minimum time unit is set to seconds to facilitate the description of each user activity day; theoretically, the minimum time unit can be further refined and set to, for example, milliseconds; in this specification, this is not limited). In this case, the period from 20:00:00 of the current calendar day to 19:59:59 of the next calendar day is called a user activity day. The start time of the user activity day is not overly limited in the embodiment of the present application, and can be set by a person skilled in the art or a user based on actual requirements. For example, for a user who sleeps long hours at night, the start time can be set, for example, at an afternoon time of a calendar day, for example, at 8:00. For a user who needs to sleep long hours during the day (for example, some users who need to work at night), the start time can be set at an early morning time, for example, at 3:00. If the start time is set at 00:00, the user activity day is the same as the calendar day. That is, the user activity day is a calendar day.
[0067] In the following embodiments of the present application, unless otherwise specified in the embodiments, the "current day" in the embodiments refers by default to the current user activity day, not the current calendar day. "Each day" refers to each user activity day.
[0068] Number of times threshold: Generally, the number of times a user sleeps long each day is limited. In one aspect, the duration of a day is limited, and long sleep requires a long period each time. Therefore, it is difficult to sleep long multiple times in a day. In another aspect, as the main resting method for recovering physical functions and mind, a short period of long sleep breath can achieve a resting effect. Long-term long sleep will cause the human body to fall into a fainting state, and the resting effect will be deteriorated. Based on this actual situation, in the embodiment of the present application, a number of times threshold is set to measure whether the user sleeps long every day for a long time. If the number of times is less than the number of times threshold, the number of times is considered to be small, and the subsequent sleep may still be a long sleep. If the number of times is equal to or greater than the number of times threshold, the number of times is considered to be relatively large, and the subsequent sleep of the user is likely not a long sleep. If the number of times threshold is greater than 0, the specific value of the number of times threshold can be set by those skilled in the art based on the actual requirements. In this specification, this is not overly limited. For example, the specific value can be set to 1 or 2.
[0069] The physiological data collection method provided in the embodiment of the present application can be applied to a wearable device, such as a band, a watch, and a ring, in which the wearable device is an implementation of the physiological data collection method provided in the embodiment of the present application.
[0070] In the following embodiments of this application, an example in which the first sensor is an optical heart rate sensor is used to explain the solution, so the principle of PPG is first explained below.
[0071] PPG is a non-invasive detection and analysis method that detects changes in the user's blood volume by using photoelectric means. The optical heart rate sensor includes a light emitter (also called a PPG lamp, which can be a light-emitting device such as a light-emitting diode) and a photosensitive sensor (also called a photoelectric receiver). During detection, the PPG lamp is kept active to irradiate the user's skin with a light beam of a wavelength. After reaching the skin surface, the light beam is received by the photosensitive sensor in a transmission or reflection manner. In this process, the intensity of the light received by the photosensitive sensor is weakened by absorption and attenuation of the skin's muscles and blood. The absorption of light by the skin's muscles, bones, etc. is basically unchanged throughout the blood circulation process. However, the blood volume of the skin changes pulsatively due to the action of the heart. Therefore, the intensity of the light received by the photosensitive sensor also changes pulsatively. After receiving the light beam, the photosensitive sensor converts the change in light intensity into an electrical signal, so that data of the change in blood volume can be obtained. Then, the electrical signal is converted into a digital signal, so that a PPG signal used for sleep monitoring can be obtained. Finally, the PPG signal can be further extracted and analyzed by using analysis methods such as frequency domain analysis method or time domain analysis method to obtain biometric data analysis results such as blood oxygen and pulse rate during the user's long-term sleep process.
[0072] From the above description, it can be seen that when the first sensor is an optical heart rate sensor, enabling the optical heart rate sensor essentially means enabling the PPG lamp. Disabling the optical heart rate sensor means disabling the PPG lamp. If the PPG lamp is left enabled, the power consumption will be high. Therefore, in the embodiment of the present application, it is necessary to control the opportunity to enable the PPG lamp in order to reduce the power consumption for collecting physiological data.
[0073] In addition, in the embodiment of the present application, the application cases are classified into two types based on whether the historical sleep data of the user's long sleep can be obtained.
[0074] Case 1: The wearable device cannot capture historical sleep data of the user's long sleep.
[0075] Case 2: The wearable device can capture historical sleep data of the user's long sleep periods.
[0076] Case 1 mainly occurs in the period after a user purchases a wearable device or after the data of the wearable device is cleared. In this case, the user may have used the wearable device for a short time and may not even have undergone sleep monitoring. As a result, the wearable device cannot obtain the historical sleep data of the user's long sleep. Case 2 occurs after the user has used the wearable device for a period of time. In this case, the wearable device has recorded the user's historical sleep data within a period of time.
[0077] In case 1, in the embodiment of the present application, it may be determined whether to enable the first sensor based on whether the user has fallen asleep and the user's long-term sleep state.
[0078] In case 2, in the embodiment of the present application, it may be determined whether to enable the first sensor based on whether the user has fallen asleep and the long sleep state of the user. Alternatively, it may be determined whether to enable the first sensor based on whether the user has fallen asleep, the time point at which the user fell asleep, and the long sleep state.
[0079] In this specification, the technical solution of physiological data collection corresponding to Case 1 is first described by using a specific embodiment. In the specific embodiment, it is assumed that the first sensor is an optical heart rate sensor. Figure 1 shows an implementation flowchart of a physiological data collection method according to an embodiment of the present application. Details of S101-S105 are described below.
[0080] S101: If the sleep monitoring function is enabled and maintained, the wearable device detects whether the user is asleep.
[0081] In the embodiment of the present application, when the sleep monitoring function is enabled and maintained, the wearable device detects whether the user has entered sleep (i.e., fallen asleep). The sensor and detection method used for falling asleep detection are not excessively limited in the embodiment of the present application, and may be set by a person skilled in the art based on actual requirements. In some optional embodiments, in order to reduce power consumption for falling asleep detection, some motion sensors capable of detecting the user's motion data may be selected to detect whether the user has fallen asleep. That is, whether the user has fallen asleep is determined based on the motion data detected by the motion sensor. For example, an accelerometer (ACC) may be used to collect a motion signal of the user, and based on the collected motion signal, it may be determined whether the user is in a falling asleep state. For example, when the user's motion is small within a certain period, it may be determined that the user has fallen asleep.
[0082] S102: When it is detected that the user has fallen asleep, the wearable device obtains the number of times that the user has fallen into a long sleep on the day, and determines whether the number is less than the number threshold. If the number is less than the number threshold, S103 is performed. If the number is equal to or greater than the number threshold, S105 is performed.
[0083] In this embodiment of the present application, the number of times (i.e., the first number) that the user falls into a long sleep each day (i.e., each user activity day) is recorded. Specifically, each time the user is detected to be sleeping long, the number is increased by 1. When a new user activity day begins, the number is reset to 0 (i.e., the initial value of the first number is 0). It should be noted that the embodiment of the present application is not limited to the method of recording the number, and can be set by those skilled in the art. For example, a parameter can be set to record a real value of the number, such as 0, 1, or 2. Alternatively, a flag bit having at least two states may be set, and different states of the flag bit may be used to represent different values of the number. In this case, each change in the number corresponds to a state change of the flag bit. For example, a bit can be set as a flag bit. In this case, the two states can be recorded as 0 and 1. The two states can be associated with two number values, respectively. For example, state 0 corresponds to the number value 0, and state 1 corresponds to the number value 1. In addition, the method of detecting that the user falls into a long sleep each day is not limited herein, and can be set by those skilled in the art based on actual requirements. For example, the duration of sleep is detected every time the user falls asleep, and a sleep whose duration is equal to or greater than a duration threshold is determined to be a long sleep.
[0084] When it is detected that the user has fallen asleep, in the embodiment of the present application, the number of times the user has fallen into a long sleep on that day (i.e., the user activity day) is obtained. That is, the number of times the user has fallen into a long sleep on the user activity day is determined by reading the recorded number of times, determining the state of a flag bit, etc. In any embodiment of the present application, the period that has passed on the user activity day may be referred to as a first period in order to distinguish the user activity day from previous activity days. In this case, S102 is as follows.
[0085] When the user is detected to be asleep, the wearable device obtains a first number of times the user falls into a long sleep within a first period of time.
[0086] For example, assume that the user activity days are set from 8:00 PM on each calendar day to a point before 8:00 PM on the next calendar day. In addition, assume that the user is detected to have fallen asleep at 10:00 PM on August 13, 2020. In this case, the first period refers to the period from 8:00 PM to 10:00 PM on August 13, 2020. That is, it is necessary to obtain the number of times the user fell into a long sleep during this period. However, if it is detected that the user fell asleep before 8:00 PM, it is necessary to determine the first period before. For example, assume that the user is detected to have fallen asleep at 5:00 PM on August 13, 2020. In this case, the first period refers to the period from 8:00 PM on August 12, 2020 to 5:00 PM on August 13, 2020. In this case, the first period spans calendar days.
[0087] In any embodiment of the present application, the first period may be a period before the current time point. In this case, the first period may be related or not related to the user activity date. Specifically, the first period may be set by those skilled in the art based on the actual requirements. For example, the range may be set to a past period, for example, 24 hours. In this case, the number of times the user sleeps long in the past period is also evaluated, and whether to enable the first sensor is determined based on the number of times.
[0088] After the number of times that the user has entered long sleep on the day is identified, in this embodiment of the present application, it is determined whether the number reaches a preset number threshold. If the number does not reach the preset number threshold, it indicates that the number of times that the user has entered long sleep on the day is small, and the user is likely to enter long sleep this time. Therefore, in this case, an operation of enabling the first sensor is performed in S103 to collect physiological data during long sleep.
[0089] On the other hand, if the number of times the user entered a long sleep on the day reaches the number threshold, that is, if the number is equal to or greater than the number threshold, it indicates that the user entered a long sleep for a long time on the day. Therefore, it is highly likely that the sleep is a short sleep. Therefore, in this case, the operation of enabling the first sensor in S103 is not performed.
[0090] In any embodiment of the present application, in a practical case, when a user first falls asleep in one user activity day, the number of times that the user has previously entered long sleep is 0, which is certainly less than the number threshold.Therefore, when the user first falls asleep every day, theoretically, there is no need to obtain the first number, and the first number can be directly determined to be less than the number threshold.In this case, S102 can be replaced by the following:
[0091] If it is detected that the user is falling asleep, determining whether the falling asleep is a first falling asleep within a first time period; If the onset to sleep is a first onset to sleep, it is determined that the first number of times is less than a number threshold value.
[0092] In this embodiment of the present application, when it is detected that the user is falling asleep, it is determined whether the sleep onset is the first sleep onset within the first period. If the sleep onset is the first sleep onset, no specific value of the number of times the user has been in a long sleep is obtained (i.e., regardless of the value of the first number). Instead, it is determined that the number is below the number threshold, and the next step of physiological data collection is initiated.
[0093] Correspondingly, if the onset of sleep is not the first onset of sleep within the first period, the unique logic of S102 is performed as follows: The wearable device obtains the number of times the user has fallen into a long sleep on the day, and performs processing by determining whether the number is less than a frequency threshold.
[0094] In any embodiment of the present application, after it is detected that the number of times the user has entered a long sleep reaches the number threshold, regardless of whether the user has entered a long sleep later, in the embodiment of the present application, the number of times the user has entered a long sleep is not updated. That is, if the first number is equal to the number threshold, the first number of times for the user activity day is not updated. Not updated means that if the first number is recorded using a specific value, the value of the first number is no longer increased. If the first number is recorded using a flag bit, the state of the flag bit is no longer changed.
[0095] When the number of times that the user falls into a long sleep reaches a count threshold, in the embodiment of the present application, the user is deemed to no longer sleep long during the user activity day, and thus the first count is not updated thereafter, thereby reducing the workload of identifying long sleeps and recording the count.
[0096] S103: The wearable device enables a first sensor and collects first physiological data of the user by using the first sensor.
[0097] If it is determined that the number of times the user entered long sleep on the user activity day does not reach the number threshold, it indicates that the user's sleep is likely to be long sleep. Therefore, in this case, the wearable device enables the PPG lamp and collects physiological data of the user by using the PPG lamp and the photosensitive sensor. In this embodiment of the present application, the physiological data collected at this time is referred to as the first physiological data.
[0098] S104: After the user falls asleep, the wearable device detects whether the user wakes up, and if the user wakes up, the wearable device disables the first sensor.
[0099] S105: After the user falls asleep, the wearable device detects whether the user wakes up, and if the user wakes up, the wearable device goes back to S101 to continue monitoring whether the user falls asleep.
[0100] After the user falls asleep, the wearable device continues to monitor whether the user wakes up from sleep, that is, whether sleep ends. If the PPG lamp is not enabled, there is no need to disable the PPG lamp, and corresponding physiological data will not be collected. Therefore, in this embodiment of the present application, the wearable device returns to perform the operation in S101, continues sleep monitoring for the user, and starts detecting the user's next sleep.
[0101] When the PPG lamp needs to be enabled, the wearable device disables the PPG lamp, ends the collection of the user's physiological data, and acquires physiological data in the current sleep process. The sensor and detection method used to monitor the user's awakening are not overly limited in the embodiments of the present application, and can be set by those skilled in the art based on actual requirements. In some optional embodiments, in order to reduce power consumption for awakening detection, some motion sensors capable of detecting the user's motion data may be selected to detect whether the user has woken up. That is, whether the user has woken up is determined based on the motion data detected by the motion sensor. For example, the ACC may be used to collect a user's motion signal and determine whether the user is in a monitoring state based on the collected motion signal. For example, if a case is detected in which the user moves with a large amplitude after the user falls asleep and the motion continues for a certain period of time, it is determined that the user has woken up.
[0102] After the PPG lamp is disabled, in one aspect, in this embodiment of the present application, the wearable device may return to perform operations in S101 and continue sleep monitoring for the user and begin identifying the user's next sleep.
[0103] In another aspect, physiological data during sleep is collected, and the sleep onset and wake-up times are known. Therefore, a sleep duration (i.e., a first period) can be first identified based on the sleep onset and wake-up times. If the sleep duration is equal to or greater than a duration threshold, the sleep indicates a long sleep. If the sleep duration is less than a duration threshold, the sleep indicates a short sleep. In this case, the physiological data collected at this time can be discarded to save storage space on the wearable device.
[0104] If the sleep is a long sleep, the following actions may be taken.
[0105] Action 1: Update the number of times the user falls into a long sleep for that user activity day.
[0106] In order to determine the actual long sleep state of the user in this embodiment of the present application and to determine whether the first sensor needs to be enabled when the user falls asleep, the number of times that the user actually falls into a long sleep during the user activity day needs to be recorded. Thus, when a sleep is identified as a long sleep, the embodiment of the present application updates the number of times to update the number of times in real time. If the real value of the number of times is selected to be recorded by using a parameter, updating the number of times refers to adding 1 to the real value. If the number of times is recorded by using a flag bit, updating the number of times refers to updating the state of the flag bit to a state corresponding to the original number of times to which 1 has been added. For example, assume that a bit is set to the flag bit, with state 0 corresponding to a number value of 0 and state 1 corresponding to a number value of 1. In addition, assume that the number of times that the user falls into a long sleep during the user activity day before sleeping is 0. In this case, the state of the bit needs to be changed to a state corresponding to 0+1=1, that is, state 1.
[0107] In any embodiment of the present application, after it is detected that the number of times the user enters a long sleep reaches a number threshold, the number of times the user enters a long sleep in the user activity day is set not to be updated regardless of whether the user enters a long sleep later. In this case, updating the number refers to maintaining the number of times in the current situation.
[0108] If the first period is not the day when the user is active, operation 1 can be replaced with the following: Update the number of times the user entered a long sleep during the first period. The principle and operation are basically the same as operation 1. Details will not be described again here.
[0109] Operation 2: Analyze the physiological data collected at this time and obtain corresponding sleep analysis data to perform long-term sleep monitoring.
[0110] In order to implement the monitoring of the user's long sleep, in this embodiment of the present application, after the sleep is determined to be a long sleep, the physiological data collected during the long sleep can be analyzed to obtain a corresponding analysis result. The specific content of the analysis method of the physiological data and the analysis result is not excessively limited in this specification and can be set by those skilled in the art based on the actual situation. In addition, the analyzed physiological data can be locally stored in the wearable device or locally deleted.
[0111] In this embodiment of the present application, if the wearable device cannot obtain historical sleep data of the user's long sleep, the wearable device does not continuously enable the sensor during the period when sleep monitoring is enabled, and continuously detects whether the user falls asleep. If it is detected that the user falls asleep, it is determined whether the number of times the user has fallen asleep during the active day (or first period) reaches a count threshold. In addition, the sensor is enabled to collect the user's physiological data only if the count threshold has not been reached. In addition, if the user is asleep, wakefulness monitoring is continuously performed on the user, and the sensor is disabled if it is detected that the user is awake.
[0112] In real life, it is considered that the number of times a user sleeps long in a certain period is very limited. Therefore, in this embodiment of the present application, the decision of whether to enable the sensor is based on two conditions: whether the user has fallen asleep and whether the number of long sleeps in a recent period has reached a number threshold. If the number threshold has not been reached, the sensor is enabled. Compared with the related art, the case where the sensor is kept enabled during the period when the user is awake can be avoided. In normal life and work, the user is in a sober state most of the time. Therefore, compared with the case where the relevant sensor is enabled all day, this embodiment of the present application can reduce a large amount of sensor collection work and power consumption. Compared with the case where the sensor is kept in a fixed enabled state within a preset time period, this can be more adaptive to the actual user's sleep habits and reduce the case where physiological data of the user in an awake state is collected. In addition, by setting the number threshold, the case where physiological data is collected for all the user's sleep periods can be effectively avoided, and the possibility of enabling the relevant sensor for short sleep is reduced. Therefore, the power consumption for physiological data collection can be reduced. In conclusion, the embodiment of the present application can avoid physiological data collection when the user is awake and reduce cases where physiological data collection is performed during a short period of sleep. Physiological data can be accurately collected during a long period of sleep. Therefore, in order to reduce power consumption and extend the battery life of the wearable device, the power consumption as well as the workload of collecting physiological data by the associated sensor during a long period of sleep can be reduced.
[0113] In addition, by accurately enabling the PPG lamp when it is necessary to enable the PPG lamp, interference with the user caused by the PPG lamp can be avoided when the user is sleeping for a short period of time, thereby improving the user's sleep quality.
[0114] In the above case 2, the wearable device may obtain a physiological data collection solution corresponding to the user's long sleep history sleep data. This will be described with a specific embodiment. In a specific embodiment, it is assumed that the first sensor is an optical heart rate sensor. Figure 2 shows a flowchart of the implementation of the physiological data collection method according to an embodiment of the present application. Details will be described below.
[0115] S201: If the sleep monitoring function is kept enabled, the wearable device detects whether the user has fallen asleep.
[0116] S202: When it is detected that the user has fallen asleep, the number of times the user has fallen asleep for a long time on that day is obtained, and it is determined whether the number is less than the number threshold. If the number is less than the number threshold, S203 is performed. If the number is equal to or greater than the number threshold, S205 is performed.
[0117] S203: The wearable device enables a first sensor and collects first physiological data of the user by using the first sensor.
[0118] S204: After the user falls asleep, the wearable device detects whether the user is awake, and if the user is awake, the wearable device disables the first sensor.
[0119] S205: After the user falls asleep, the wearable device detects whether the user is awake. If the user is awake, the wearable device returns to perform S201 to continue monitoring whether the user falls asleep.
[0120] The principles, operation details, beneficial effects, etc. of this embodiment of the present application are the same as those of the embodiment shown in FIG. 1. Therefore, for details, please refer to the related description of the embodiment shown in FIG. 1. The details will not be described again here. In addition, some detailed, optimized or extended embodiments related to the embodiment shown in FIG. 1 can also be combined with this embodiment of the present application for application. For example, the embodiment in which the number of long sleeps of the user is updated and the collected physiological data is analyzed, etc. can also be applied with reference to this embodiment of the present application. For specific details of these embodiments, please refer to the related description of the embodiment shown in FIG. 1. The details will not be described again here.
[0121] In this embodiment of the present application, the wearable device can obtain historical sleep data of the user's long sleep, but the wearable device can choose not to use the historical sleep data. The choice is to process in the same processing manner as in case 1, where the wearable device cannot obtain historical sleep data of the user's long sleep.
[0122] For case 2, FIG. 3 shows a flowchart of another physiological data collection method according to an embodiment of the present application. In real life, long sleep is considered to be a regular activity for the user. Generally, the user falls asleep at a fixed time every day. Based on this, in this embodiment of the present application, the user generally falls asleep at a certain time according to the user's actual long sleep state, and the sleep onset time range (i.e., the second period) is determined in which the user generally falls asleep. When sleep monitoring is performed, the following three conditions are simultaneously used as the determining conditions for enabling the sensor: whether the user falls asleep, whether the sleep onset time belongs to the sleep onset period, and whether the number of long sleep periods on the user's behavior day reaches the number threshold. Details will be described below.
[0123] S301: If the sleep monitoring function is kept enabled, the wearable device detects whether the user has fallen asleep.
[0124] The operation details of S301 are the same as those of S101. For details, please refer to the description of S101. The details will not be described again here.
[0125] S302: If it is detected that the user has fallen asleep, the wearable device determines whether the time when the user fell asleep is within a second period.
[0126] The user is considered to actually sleep long hours regularly. For example, most users fall asleep at night. Even for some users who need to rest during the day due to work or life requirements, it is habitual for the user to sleep long hours to rest during the day. Therefore, in this embodiment of the present application, the sleep onset time range in which the user routinely falls into a long sleep is predetermined based on the user's actual long sleep state. "Preliminary" refers to a time before the operation of "determining whether the sleep onset time is within the second period" is performed.
[0127] The specific case of the sleep onset time range is not limited in this embodiment of the present application, and may be determined by a person skilled in the art or a user based on the actual situation of the user. For example, in some arbitrary embodiments, a person skilled in the art or a user may manually set the sleep onset time range based on the actual sleep onset state of the user's long sleep. For example, the range may be set to a period from 8:00 pm to 12:00 pm every day. Alternatively, in some other arbitrary embodiments, the wearable device may perform an analysis based on the user's historical sleep data to obtain the user's sleep onset time range (in this case, the second period is the period data determined based on the user's historical sleep data). Note that the sleep onset time range may be a single period or multiple different periods. This is not specifically limited in the present specification. For example, the range may refer to a period lasting from 11:00 am to 1:00 pm every day and a period lasting from 10:00 pm to 12:00 pm.
[0128] In any embodiment of the present application, as shown in FIG. 4, the operation of determining the sleep onset time range includes the following steps.
[0129] S401: Obtain historical sleep data of a user within a third time period.
[0130] S402: The historical sleep data is analyzed to obtain a second time period.
[0131] In this embodiment of the present application, the user's historical sleep data in a past period (i.e., a third period) is obtained. The historical sleep data includes the user's sleep onset time data per day in the past period, i.e., the user's sleep onset time per day. The historical sleep data can be stored locally in the wearable device, in an external memory, or in another device that can exchange data with the wearable device. In this embodiment of the present application, the accuracy of the sleep onset time data is not overly limited and can be set by those skilled in the art based on practical requirements. For example, if the accuracy is measured in hours, the sleep onset time data records the specific time when the user falls asleep on each day. If the accuracy is measured in minutes, the sleep onset time data records the specific time and the specific minute when the user falls asleep on each day. In the embodiment of the present application, the "each day" corresponding to the historical sleep data can be each calendar day or each user activity day.
[0132] In this embodiment of the present application, based on the acquired historical sleep data, the historical sleep data and its sleep onset time data are analyzed to obtain the sleep onset time range in which the user falls into long sleep on a daily basis. The specific method of analyzing the sleep onset time data is not overly limited in the embodiment of the present application, and can be set by those skilled in the art based on the actual requirements. For example, in some optional embodiments, the data corresponding to the user's long sleep is extracted based on the historical sleep data, and the sleep onset time of the long sleep in each day is identified from the data, and the upper and lower limits of the sleep onset time are used to obtain the sleep onset time range.
[0133] In any embodiment of the present application, it is assumed that the third period includes m days, the number threshold is k, and both m and k are integers greater than 0. As shown in FIG. 5, the operation of S402 specifically includes S501 to S503.
[0134] S501: Analyze m days' worth of data in the historical sleep data, and identify k sleep periods of data of the user with the longest daily sleep duration within a third time period.
[0135] In this embodiment of the present application, a frequency threshold k is set for the long sleep performed by the user each day. Therefore, when the historical sleep data is processed, the sleep period data corresponding to each sleep time of the user within each day is first identified. In addition, from the sleep time data of each day, the sleep period data of k sleeps in ascending order of sleep duration (i.e., the duration from the time of falling asleep to the time of waking up) is sequentially extracted to obtain k sleep period data. In this case, if the total number of sleep period data for one day is less than k, all of the sleep period data for that day is extracted. When k=1, step 1 is performed to identify the sleep period data of the sleep with the longest sleep duration of the user per day within the third period from the historical sleep data. After step 1 is performed, a maximum of m×k sleep period data can be obtained.
[0136] S502: Extract sleep period data having a sleep duration equal to or greater than a duration threshold from the sleep period data to obtain n pieces of sleep period data, and read n sleep onset time points included in the n pieces of sleep period data, where n is an integer greater than 0.
[0137] After obtaining the sleep period data by picking, in this embodiment of the present application, continuously determine whether the sleep duration corresponding to each sleep period data reaches the duration threshold, and extract the sleep period data that reaches the duration threshold. Also, obtain the sleep period data of the long sleep actually performed by the user each day. Then, read the specific sleep onset time from the sleep period data. In this way, the time when the user actually enters into the long sleep each day can be obtained.
[0138] In addition, for one day, the number of sleep time data that meets the duration threshold can be any value between 0 and k. If the number is 0, it indicates that the user does not sleep for a long time in that day. In this case, the user may stay up late, etc. For ease of explanation, in this embodiment of the present application, the total number of sleep period data that meets the duration threshold is set to n.
[0139] In this embodiment of the present application, a sleep onset time point (i.e., sleep onset time point data, in this embodiment of the present application, the sleep onset time point data includes n sleep onset time points) at which the user falls into a long sleep within a third period each day is extracted.
[0140] S503: Analyze the n sleep onset time points to obtain a second period.
[0141] After obtaining the n sleep onset time points that can be used for reference, this embodiment of the present application analyzes these sleep onset time points to identify the rules of the user's sleep onset behavior. The analysis method may be as follows: find the extreme values of the n sleep onset time points that can be used for reference, find the mode number of the n sleep onset time points, perform cluster analysis, etc.
[0142] Some examples of optional analytical methods are described below.
[0143] Method 1: The earliest and latest sleep onset times (two extremes) of n sleep onset times are used as the start and end times of the sleep onset time range, respectively, to determine the sleep onset time range. Each sleep onset time is one time in a day. Therefore, when compared on a day-by-day basis, the sleep onset times are continuous. In this embodiment of the present application, the earliest sleep onset time is used as the start time, and the latest sleep onset time is used as the end time to determine the corresponding sleep onset time range. For example, assume that there are a total of four sleep onset times, 8:15 PM, 9:00 PM, 9:10 PM, and 10:00 PM. In this case, the earliest time is 8:15 PM, and the latest time is 10:00 PM. Therefore, the sleep onset time range is from 8:15 PM to 10:00 PM.
[0144] Method 2: In this case, the average value u of n sleep onset times is first calculated.
[0145] Next, the standard deviation p of the n sleep onset times is calculated.
[0146] Finally, calculate T1=ub×p and T2=u+b×p, and set the start time of the sleep onset range to T1 and the end time to T2. In this method, b is a constant term coefficient, and b>0. A specific value can be set by those skilled in the art based on actual requirements. Theoretically, the larger the value of b, the larger the sleep onset range.
[0147] Method 3: Perform cluster analysis on the n sleep onset time points by using some clustering algorithms to obtain the sleep onset time range, for example, the clustering algorithm is K-means algorithm, AP clustering algorithm or neural network-based clustering model.
[0148] In any embodiment of the present application, it is considered that the duration of long sleep for each person may be different in practical application. Therefore, in order to make the duration threshold more suitable for the user's actual sleep habits, after S502 is performed, in this embodiment of the present application, the existing duration threshold is updated based on the acquired historical sleep data. Details will be described below.
[0149] S504: Obtain n sleep periods corresponding to the n sleep period data, and update the duration threshold based on the n sleep periods.
[0150] In this embodiment of the present application, the specific method for updating the duration threshold is not limited and can be set by those skilled in the art. For example, the shortest sleep duration among the n sleep durations can be used as the duration threshold, or the mode number or average value of the n sleep durations can be used as the duration threshold.
[0151] In this embodiment of the present application, the duration threshold is updated by using historical sleep data, so that the value of the duration threshold can be adapted to the user's actual sleep habits. Therefore, the process of identifying the user's long sleep can improve the accuracy of identifying the user's long sleep, so that the time to enable the sensor can be selected more accurately and the possibility of erroneously enabling the sensor can be reduced. Therefore, the power consumption for collecting the user's physiological data during long sleep can be reduced.
[0152] S303: If the user falls asleep within the second time period, the wearable device obtains the number of times the user has fallen into a long sleep on the day and determines whether the number is less than the number threshold. If the number is less than the number threshold, S304 is performed. If the number is equal to or greater than the number threshold, S306 is performed.
[0153] If the user's sleep onset time is determined to be within the sleep onset time range, it indicates that the sleep is likely to be long sleep. Therefore, in this case, in this embodiment of the present application, the number of times the user sleeps long on the day is identified. The details, principles, beneficial effects, etc. of the operation of identifying the number of long sleeps are basically the same as those of S102. For details, please refer to the related description of S102. The details will not be described again here.
[0154] In addition, "the day" in S303 can be replaced with "a first period" instead. For an explanation of the first period, please refer to the explanation of S102. Details will not be described again here.
[0155] S304: The wearable device enables a first sensor and collects first physiological data of the user by using the first sensor.
[0156] S305: After the user falls asleep, the wearable device detects whether the user has woken up, and if the user has woken up, the wearable device disables the first sensor.
[0157] S306: After the user falls asleep, the wearable device detects whether the user has woken up. If the user has woken up, the wearable device returns to perform S301 to continue monitoring whether the user has fallen asleep.
[0158] The operations of S304 to S306 are the same as those of S103 to S105. For details, please refer to the explanation of S103 to S105. The details will not be explained again here.
[0159] In addition, some detailed, optimized or extended embodiments related to the embodiment shown in Fig. 1 can also be combined with this embodiment of the present application for application. For example, the embodiment in which the number of long sleeps of the user is updated and the collected physiological data is analyzed can also be applied with reference to this embodiment of the present application. For specific details of these embodiments, please refer to the related description of the embodiment shown in Fig. 1. The details will not be described again here.
[0160] For example, as shown in FIG. 6, corresponding to Operation 1 of the embodiment shown in FIG. 1, after S305 is performed, this embodiment of the present application may further include the following steps:
[0161] S307: After it is detected that the user has woken up, statistics are collected for a first time period that continues from when the user fell asleep to when the user woke up.
[0162] S308: If the first duration is equal to or greater than the duration threshold, determine that the sleep is a long sleep, and update the first number of times.
[0163] Physiological data during sleep is collected, and the sleep onset and wake-up times are known. Therefore, a sleep duration (i.e., a first period) can be first identified based on the sleep onset and wake-up times. If the sleep duration is equal to or greater than a duration threshold, the sleep indicates a long sleep. If the sleep duration is less than a duration threshold, the sleep indicates a short sleep. In this case, the physiological data collected at this time can be discarded to save storage space of the wearable device. If the sleep is a long sleep, the number of long sleeps of the user can be updated.
[0164] However, if the first period is not the user's activity day, S308 can be replaced by the following: If the first period is equal to or greater than the period threshold, determine that the sleep is a long sleep, and update the number of times the user entered a long sleep during the first period. The principle and details of the operation are basically the same as those of S308. The details will not be described again here.
[0165] The period threshold used in S308 is the latest period threshold, that is, if the period threshold has been updated by the method described in S504, the latest updated period threshold is used in this case.
[0166] In addition, after S305 is performed, in this embodiment of the present application, physiological data of the user during sleep can be obtained. If the sleep duration is equal to or greater than the duration threshold (i.e., after S307 is performed, the first period is determined to be equal to or greater than the duration threshold), the sleep indicates long sleep. Correspondingly, the sleep onset time and wake-up time of the sleep also become part of the historical sleep data. In order to make the sleep onset time range accurate in real time and adapt to the user's sleep habits that may change in different periods (e.g., different seasons have different sleep habits and different sleep onset times, and even in one month, the sleep habits at the beginning of the month may be different from the sleep habits at the end of the month), after S305 is performed, this embodiment of the present application may further include the following steps:
[0167] S309: After it is detected that the user has woken up, collect statistics for a first time period that lasts from when the user fell asleep to when the user woke up.
[0168] S310: If the first time period is greater than or equal to the time period threshold, perform the operation of obtaining historical sleep data of the user within a third time period in S401.
[0169] In this case, the operations of S401 and S402 are triggered (when combined with the embodiment shown in FIG. 5, the operations of S501 to S503 are further triggered), and the sleep onset time range can be updated in a timely manner. In addition, when the embodiment of the present application is applied in combination with FIG. 6, S309 becomes S307.
[0170] In any embodiment of the present application, the sleep habit is considered to include sleep onset time and further include sleep period. That is, the long sleep duration of the user may vary according to different periods. Therefore, after S309 is performed, in combination with the embodiment shown in FIG. 5, this embodiment of the present application may further include the following steps:
[0171] If the first duration is equal to or greater than the duration threshold, an operation of obtaining n sleep durations corresponding to the n sleep period data and updating the duration threshold based on the n sleep durations is performed in S504.
[0172] In this embodiment of the present application, each time the last sleep onset time and sleep duration of long sleep are obtained, the timely update of the sleep onset time range and duration threshold can be triggered in this embodiment of the present application.In this way, this embodiment of the present application can automatically adapt to the change of the user's long sleep habits in different periods.Therefore, more accurate identification of long sleep can be performed and the possibility of erroneously enabling the sensor can be reduced.The power consumption for collecting the user's physiological data during long sleep can be reduced.
[0173] In any embodiment of the present application, the operations of S301-S306 can be performed to theoretically accurately identify the long-term sleep of the user. However, in practical applications, it has been found that there may be a scenario in which the user wants to fall asleep and perform long-term sleep within a certain sleep onset time range, but the user's sleep is interrupted by interference from external factors (e.g., being woken up by a noise such as a phone call or an alarm clock). In this case, the user usually wants to enter long-term sleep. The sleep duration is less than the duration threshold, and the user's next sleep onset time may exceed the sleep onset time range. In this case, a case occurs in which the user actually wants to perform long-term sleep, but the sensor cannot be identified and enabled.
[0174] An example is used for explanation. Assume that the sleep onset time range is from 8:00 PM to 11:00 PM, and the duration threshold is 6 hours. In addition, assume that user A falls asleep at 10:00 PM, and the number of long sleep periods on the day is less than the number threshold. Assume that after the user falls asleep at 10:00 PM, the user is woken up by noise, and the user's sleep duration is less than 6 hours. For example, the user is woken up by a call at 11:00 PM. In this case, the user usually sleeps long again after waking up. Assume that the re-sleep onset time exceeds the sleep onset time range. For example, assume that the user ends a call at 11:50 PM, and then sleeps long again. In this case, by using the operations of S301 to S306, it cannot be determined whether the user intends to sleep long this time. To solve this problem, as shown in FIG. 7A and FIG. 7B, after performing S305, this embodiment of the present application further includes S701 to S703.
[0175] S701: If a first duration that lasts from the time the user falls asleep to the time the user wakes up is less than a duration threshold, determine that the data collection is abnormal, and continue monitoring whether the user falls asleep.
[0176] If the user's sleep duration is less than the duration threshold, indicating that the user is likely awake due to the influence of an external factor, this embodiment of the present application determines that there is an abnormality in the collection of the user's physiological data.
[0177] S702: If it is detected that the user has fallen asleep after it is determined that there is an anomaly in the data collection, enable a first sensor and control the first sensor to collect second physiological data of the user.
[0178] If there is an abnormality in the collection of the user's physiological data, in this embodiment of the present application, the next time the user falls asleep, the sensor is directly enabled instead of determining whether to enable the sensor based on the operations of S302 and S303. Specifically, the next time the user falls asleep, regardless of whether the sleep onset time is within the sleep onset time range, the sensor is enabled in this embodiment of the present application and the user's physiological data is collected. According to this embodiment of the present application, even if the user is disturbed by interference factors such as noise during long sleep, the physiological data can be collected for the user in a timely manner when the user falls asleep again. In this way, the collection of physiological data during long sleep is more accurate and reliable. In order to distinguish from the physiological data collected in the embodiment shown in FIG. 3, in this embodiment of the present application, the physiological data collected after the user next falls asleep is called the second physiological data.
[0179] S703: If it is detected that the user has woken up, disable the first sensor.
[0180] If the user wakes up, this indicates that the user's sleep has ended, and therefore the sensor is disabled, terminating collection of the user's physiological data.
[0181] In this embodiment of the present application, in the case where the wearable device can obtain the user's long sleep history sleep data, the processing is carried out in an arbitrary manner using the same solution as that in Fig. 1. For the specific beneficial effects in this case, please refer to the description of the beneficial effects in Fig. 1. The details will not be described again here.
[0182] In another optional method, a sleep onset time range of the user's actual long sleep period is pre-estimated based on the user's long sleep habits. During the period in which sleep monitoring is maintained in an enabled state, the sensor is not continuously enabled, but sleep onset monitoring is continuously performed on the user. When it is detected that the user has fallen asleep, it is determined whether the sleep onset time is within the sleep onset time range. If the sleep onset time is within the sleep onset time range, it indicates that the sleep is likely to be a long sleep. Therefore, it is determined whether the number of times the user has slept long on the active day (or the first period) reaches a frequency threshold. In addition, the sensor is enabled to collect the user's physiological data only if the frequency threshold is not reached. In addition, when the user is sleeping, wake monitoring is continuously performed on the user, and the sensor is disabled when it is detected that the user has woken up.
[0183] In real life, long sleep is considered to be a very regular behavior for a user. Therefore, in this embodiment of the present application, the user's historical sleep data is analyzed to adaptively obtain the user's familiar sleep onset range, so that the user's sleep can be accurately distinguished as long sleep or not. Based on the fact that the user is very likely to fall asleep at a time within the sleep onset range of long sleep, i.e., the user will sleep long, the frequency threshold is determined again considering that the number of times long sleep occurs in a specific period is very limited. Therefore, in this embodiment of the present application, the determination of whether to enable the sensor is based on three conditions: whether the user has fallen asleep, whether the sleep onset time is within the user's familiar sleep onset range, and whether the number of long sleeps in a recent period has reached the frequency threshold. In addition, the sensor is enabled when the sleep onset time is within the user's familiar sleep onset range and the number has not reached the frequency threshold. Compared with those of the related art, the case of maintaining the sensor enabled during the period when the user is awake is avoided. In normal life and work, the user is in a sober state most of the time. Therefore, compared to keeping the relevant sensor in an active state all day, the embodiment of the present application can reduce a large amount of sensor collection operations and power consumption. Compared to keeping the sensor in an active state fixedly within a preset time period, this can be more adaptive to the actual user's sleep habits and reduce the case of collecting physiological data of the user in an awake state. By comparing the user's sleep-onset habits and setting a frequency threshold, the user's intention can be accurately identified every time the user falls asleep, and accurate identification of long sleep can be performed. Therefore, the case of collecting physiological data for all the user's sleep periods can be effectively avoided, and the possibility of enabling the relevant sensor for short sleep can be reduced. Power consumption for collecting physiological data can be reduced.
[0184] In conclusion, in this embodiment of the present application, physiological data collection performed when the user is awake can be avoided, and the case where physiological data collection is performed during the user's short sleep can be reduced. In addition, physiological data can be accurately collected during long sleep, and the accuracy of basic data for sleep monitoring of the user can be ensured. Therefore, in this embodiment of the present application, the workload of collecting physiological data during long sleep by the sensor can be reduced, the power consumption can be reduced, the power consumption of the wearable device can be reduced, and the battery life can be extended. In addition, by accurately enabling the PPG lamp when it is necessary to enable the PPG lamp, the interference of the PPG lamp with the user can be further avoided when the user is performing a short sleep, thereby improving the quality of the user's sleep.
[0185] Some supplementary explanations of the embodiment shown in FIGS. 1 to 3 are as follows.
[0186] 1. In the embodiment shown in FIG. 4, when analyzing historical sleep data to obtain a user's sleep onset time range, date types are distinguished and the sleep onset time range is analyzed based on the actual date type.
[0187] It is believed that in real life, a user's long-term sleep habits may vary greatly in different periods. For example, in general, a user may go to bed early and wake up early on working days. However, on holidays, a user may go to bed late and wake up late. Therefore, when the embodiment shown in FIG. 4 is carried out, in this embodiment of the present application, dates are pre-classified into types. For example, there may be two period types, weekdays and holidays (the division between working days and holidays may be determined based on the actual situation of holiday division in the country where the user is located, and is not limited in this specification). Or, there may be five period types, Monday, Tuesday-Thursday, Friday, Saturday, and Sunday. Then, based on the specific dates included in the actual past period, the dates of different period types are distinguished and analyzed to obtain the actual available sleep onset time range. The specific division rule of the period types is not limited in this specification, and may be set by a person skilled in the art based on the actual situation of the user. In addition, the "date" and "day" in this embodiment of the present application may refer to calendar days or user activity days.
[0188] In this embodiment of the present application, the cases are classified based on the occurrence chance of the embodiment shown in Figure 4, and different processing solutions are set respectively, the details of which are described below.
[0189] 4 occurs in the process of S302, in any embodiment of the present application, the logic of S302 is as follows: If it is detected that the user is falling asleep, perform S401 and S402 to obtain a sleep onset time range; and then determine whether the user's sleep onset time is within the sleep onset time range.
[0190] As shown in FIG. 8, in this case, the operation of S401 can be replaced with the following:
[0191] S801: The period type of the current period is identified, and the first type to which the current period belongs is obtained.
[0192] In this embodiment of the present application, after obtaining the historical sleep data of the past period, data analysis is not performed directly, but the period type (i.e., the first type) of the current period is identified. The unit of the current period is the smallest period unit included when the period type is obtained through division. For example, when holidays, working days, weekdays, etc. are obtained through division, the smallest period unit is "day". Therefore, in this case, the current period refers to the current day. For example, it is identified whether the current day is a working day or a holiday. Or, it is identified whether the current day is a specific weekday. When the smallest unit is "month", such as January to March, April to June, July to September, October to December, etc., the current period refers to the current month.
[0193] S802: A fourth period whose period type is the first type is extracted from the third period.
[0194] After the period type of the current period is identified, all periods that belong to the period type (i.e., the fourth period) are extracted from the past periods. For example, assume that today is a holiday. In this case, in this embodiment of the present application, all holiday periods are extracted from the past periods.
[0195] S803: Obtain historical sleep data within a fourth time period.
[0196] After extracting the same type of periods as the current period, in this embodiment of the present application, the historical sleep data of these periods is obtained and the analysis operation of S402 is performed.
[0197] In this embodiment of the present application, when analyzing sleep onset period, the period of the period type that the current period belongs to is selected from the past period, and the historical sleep data of these periods is obtained in a targeted manner.Therefore, in S402, the sleep onset time range is analyzed based on the period type that the current period belongs to, so that the user's sleep habits can be accurately learned and identified.In this way, in this embodiment of the present application, the user's long sleep is identified more accurately, and the sensor is enabled at a more accurate and effective opportunity.
[0198] The embodiment shown in FIG. 4 is the case that occurs before S302, which was after the last successful acquisition of physiological data during long sleep (see the description of S309 and S310). In another optional embodiment of the present application, this case is equivalent to pre-analyzing and storing the sleep onset time range. When the operation of S302 is performed, the stored sleep onset time range is directly read out. Correspondingly, as shown in FIG. 9, the operation of S402 can be replaced with the following:
[0199] S901: Divide a third period into multiple period sets, and extract sleep sub-data associated with each period set from the historical sleep data, where each period set includes only periods of the same period type, and different period sets correspond to different period types.
[0200] In this embodiment of the present application, the past period is divided into multiple period sets based on period type. Period sets and period types have a one-to-one correspondence. For example, assume that the period type includes workdays and holidays. In this case, the past period is divided into two period sets, a workday set and a holiday set.
[0201] After completing period division, in this embodiment of the present application, data extraction is performed on the history sleep data. That is, the history sleep data corresponding to each period set is extracted respectively. In this case, each period set is related to one sleep sub-data. The sleep sub-data is a part of the history sleep data, and the data format of the sleep sub-data is the same. One sleep sub-data includes the user's sleep data per day of the corresponding period set, for example, the sleep onset time per day.
[0202] S902: The sleep sub-data associated with each period set is respectively analyzed to obtain second periods respectively associated with each period type.
[0203] After obtaining the sleep sub-data associated with each period set, in this embodiment of the present application, each sleep sub-data is analyzed respectively to obtain a sleep onset time range that has a one-to-one correspondence with each period set. The period set has a one-to-one correspondence with the period type. Therefore, in this case, the sleep time range associated with each period type can be obtained. For example, assume that there are two period sets in total, a workday set and a holiday set. In this case, in this embodiment of the present application, the sleep sub-data of the workday set and the sleep sub-data of the holiday set are analyzed respectively. In addition, the user's sleep onset time range on the workday and the sleep onset time range on the holiday are obtained. For the method of analyzing the sleep sub-data, please refer to the method of analyzing the history sleep data in the embodiment shown in FIG. 5 (in this case, the history sleep data in the embodiment shown in FIG. 5 is replaced with the sleep sub-data).
[0204] Correspondingly, S302 may be replaced with the following: If it is detected that the user is falling asleep, the wearable device identifies a period type (i.e., a second type) of the current period, and reads a second period associated with the period type. The wearable device determines whether the time of falling asleep is within the read second period.
[0205] Based on obtaining the user's sleep onset time range corresponding to each period type, in S302, it is determined whether the user's sleep onset time is within the sleep onset time range, and the sleep onset time range related to the current period is first read. Then, based on the read sleep onset time range, it is determined whether the user's sleep falls into long sleep. For the description of the current period, please refer to the related description of S801. The details will not be described again here.
[0206] In this embodiment of the present application, the physiological data of the user during long sleep is normally acquired, and each time the historical sleep data is updated, the user's sleep onset habits of each period type are analyzed in a timely manner, the user's sleep onset time range of each period type is obtained, and adaptive learning is performed for the user's sleep onset habits. However, in the embodiment shown in FIG. 3, after the user is detected to be asleep, the sleep onset time can be determined in S302 by simply reading the sleep onset time range of the period type to which the analyzed current period belongs. Therefore, in this embodiment of the present application, adaptive and accurate learning can be performed for the user's sleep habits. In this way, in this embodiment of the present application, the user's long sleep is identified more accurately, and the sensor is enabled at a more accurate and effective opportunity.
[0207] 2. The usage scenario of this embodiment of the present application is not limited to user sleep monitoring.
[0208] All the above embodiments shown in Figures 1 to 3 have been described using a user's sleep monitoring scenario. In practical application, the embodiments shown in Figures 1 to 3 can be applied to any scenario that requires sensor-enabled control and physiological data collection for a user's long-term sleep. That is, the embodiments can also be applied to other scenarios other than sleep monitoring scenarios, such as a sleep apnea picking scenario or a scenario of monitoring a user's physiological data during sleep.
[0209] 3. The embodiment shown in FIG. 1 and the embodiment shown in FIG. 3 are used in combination.
[0210] It is believed that in the process of actually using the wearable device, the user may encounter both cases. In case 1, the wearable device cannot obtain the user's historical sleep data of long sleep. In case 2, the wearable device can obtain the user's historical sleep data of long sleep. Therefore, in practical application, the wearable device may choose to use the embodiment shown in FIG. 1 or the embodiment shown in FIG. 3 based on the actual collection of the user's historical sleep data. For example, in a period after the user purchases the wearable device or a period after the data of the wearable device is cleared, the wearable device does not collect historical sleep data or the amount of collected historical sleep data is too small. In this case, the embodiment shown in FIG. 1 may be used for processing. However, after the user uses the wearable device for a certain period, the wearable device has collected the user's historical sleep data within a certain period. In this case, the embodiment shown in FIG. 2 may be used for processing.
[0211] Corresponding to the physiological data collecting method in the above embodiment, Fig. 10 shows a block diagram of the structure of a physiological data collecting device according to an embodiment of the present application. For ease of explanation, only the parts related to this embodiment of the present application are shown.
[0212] As shown in FIG. 10, the physiological data collection device includes: A sleep detection module 1001 configured to detect whether a user is falling asleep; a sleep onset count detection module 1002 configured to determine whether a first number of times the user falls into a long sleep within a first period of time is less than a count threshold when it is detected that the user falls asleep; a wake-up detection module 1003 configured to detect whether the user has woken up; a data collection module 1004 configured to enable a first sensor and collect first physiological data of the user by using the first sensor if the first frequency threshold is less than the frequency threshold; a sensor disable module 1005 configured to disable the first sensor when it is detected that the user has woken up; Includes.
[0213] In any embodiment of the present application, the sleep onset count detection module 1002 includes: a sleep onset time identification module configured to, when it is detected that the user has fallen asleep, identify whether the sleep onset time is within a second time period; a number detection module configured to determine whether a first number of times that the user has entered a long sleep within a first period is less than a number threshold when the sleep onset time is within a second period; Includes.
[0214] For details of the processes in which the modules of the physiological data collection device provided in this embodiment of the present application perform their respective functions, please refer to the description of the embodiment shown in Figures 1 to 3 and other related method embodiments, and the details will not be described again here.
[0215] It should be noted that the contents of the above information exchange between the devices / units and the execution process thereof are based on the same concept as the method embodiments of the present application. For the specific functions and technical effects of the contents, please refer to the method embodiments. The details will not be described again here.
[0216] It should be understood that the sequence numbers of steps do not mean the execution sequence in the above embodiments. The execution sequence of the process should be determined based on the function and internal logic of the process, and does not constitute any limitation on the implementation process of the embodiments of the present application.
[0217] As used in the present specification and the appended claims, the term "comprising" should be understood to indicate the presence of stated features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or sets thereof.
[0218] It should be further understood that the term "and / or" as used in the specification and appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0219] The term "if" as used in this specification and the appended claims may be interpreted as "when" or "once" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [a described condition or event] is detected" may be interpreted to mean "once it is determined" or "in response to determining" or "once [a described condition or event] is detected" or "in response to [a described condition or event] being detected," depending on the context.
[0220] In addition, in the description of the present specification and the appended claims, terms such as "first", "second" and "third" are used for distinction and explanation only, and should not be understood to indicate or imply any relative importance. It should be further understood that terms such as "first", "second" and the like are used in the text to describe various elements in some embodiments of the present application, but these elements should not be limited by these terms. These terms are used only to distinguish one element from another element. For example, a first table may be called a second table, and similarly, a second table may be called a first table, without departing from the scope of the various described embodiments. Both the first table and the second table are tables, but the first table and the second table are not the same table.
[0221] Reference to "one embodiment" or "some embodiments" in the specification of this application means that one or more embodiments of the application include a particular feature, structure, or characteristic described with reference to the embodiment. Thus, the phrases "in one embodiment," "in some embodiments," "in some other embodiments," and "in yet some other embodiments" that appear differently in this specification are not necessarily referring to the same embodiment, but instead mean "one or more, but not all, embodiments," unless specifically emphasized otherwise. "including," "including," "having," and other variations thereof all mean "including, but not limited to," unless specifically emphasized otherwise.
[0222] By way of example and not of limitation, in the embodiment of the present application, the wearable device may be a collective term for wearable devices developed by intelligently designing daily wear by using wearable technology, such as glasses, gloves, watches, clothes, and shoes. The wearable device is a portable device that can be worn directly by the user or integrated into the user's clothes or accessories. The wearable device is more than a hardware device. The wearable device implements powerful functions through software support, data exchange, and interaction with the cloud. In a broad sense, the wearable smart device has full functions and large size, and can implement all or part of the functions of, for example, smart watches, smart glasses, etc., without relying on smartphones. In addition, the wearable smart device focuses only on one kind of application function and needs to be used with other devices such as smartphones, for example, various smart bands or smart jewelry that monitor signs.
[0223] FIG. 11 is a schematic diagram of the structure of a wearable device 100 according to an embodiment of the present application.
[0224] The wearable device 100 may include a processor 110, an internal memory 120, charging contacts 130, a charging management module 140, a power management module 141, a battery 142, a display 150, an antenna, a wireless communication module 160, a sensor module 170, etc. The sensor module 170 may include an accelerometer 170A and an optical heart rate sensor 170B. The optical heart rate sensor 170B includes a PPG lamp and a photosensitive sensor.
[0225] It will be understood that the structure shown in this embodiment of the present invention does not constitute a specific limitation on the wearable device 100. In some other embodiments of the present application, the wearable device 100 may include more or fewer components than those shown, may integrate some components or separate some components, or may have a different component configuration. The components shown may be implemented by hardware, software, or a combination of software and hardware.
[0226] 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, a neural-network processing unit (NPU), and / or the like. Different processing units may be independent components or may be integrated into one or more processors. The controller may be the nerve center and command center of the wearable device 100. The controller may generate operation control signals based on the instruction operation codes and time series signals to control instruction fetching and instruction execution.
[0227] A memory may further be disposed within the processor 110 and configured to store instructions and data. In some embodiments, the memory within the processor 110 is a cache. The memory may store instructions or data that have just been used or are repeatedly used by the processor 110. When the processor 110 needs to use the instructions or data again, the processor 110 may directly retrieve the instructions or data from the memory. In this way, repeated accesses are avoided, the latency of the processor 110 is reduced, and system efficiency is improved.
[0228] The processor 110 executes the physiological data collection method provided in the embodiment of the present application to implement low power consumption function for the user's physiological data during long sleep and improve the user experience.
[0229] The display 150 is configured to display images, videos, and the like. The display 150 includes a display panel. The display panel may 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 mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), and the like. The display 150 may be configured to display information entered by a user or provided for a user, and various graphical user interfaces (GUIs). For example, the display 150 may display photos, videos, web pages, files, and the like. As another example, the display 150 may display a graphical user interface. The graphical user interface may include a status bar, a hideable navigation bar, time and weather widgets, and application icons, such as a browser icon. The status bar may include the time and the battery level. The navigation bar includes a back button icon, a home button icon, and a forward button icon. Additionally, it will be appreciated that in some embodiments, the status bar may further include a Bluetooth icon, a Wi-Fi icon, an externally connected device icon, etc. It will be further appreciated that in some other embodiments, the graphical user interface may further include a Dock bar, which may include commonly used application icons, etc.After detecting a touch event made on an application icon by using a user's finger (or a stylus, etc.), the processor responds to the touch event by opening a user interface of the application corresponding to the application icon and displaying the user interface of the application on the display 150.
[0230] In this embodiment of the application, the display 150 may be an integrated flexible display or may be a spliced display including two rigid screens and one flexible display located between the two rigid screens.
[0231] The internal memory 120 is configured to store computer executable program code, which includes instructions. The processor 110 executes the instructions stored in the internal memory 120 to perform various functional applications and data processing of the wearable device 100. The internal memory 120 may include a program storage area and a data storage area. The program storage area may store an operating system, codes of applications (such as a camera application and a WeChat application), etc. The data storage area may store data created in a process using the wearable device 100 (e.g., images or videos collected by the camera application), etc.
[0232] The internal memory 120 may further store one or more computer programs 1200 corresponding to the physiological data collection methods provided in the embodiments of the present application. The one or more computer programs 1200 are stored in the memory 120 and configured to be executed by the one or more processors 110. The one or more computer programs 1200 include instructions, which are used to perform steps of the corresponding embodiments of Figures 1-9. When the physiological data collection code stored in the internal memory 120 is executed by the processor 110, the processor 110 controls the wearable device to perform physiological data collection.
[0233] The functionality of the sensor module 170 is described below.
[0234] Accelerometer 170A collects acceleration data of the user's wearable device to determine the actions taken by the user after putting on the wearable device and to detect whether the user has fallen asleep or whether the user has woken up.
[0235] The optical heart rate sensor 170B collects physiological data of the user to perform sleep monitoring of the user.
[0236] The antenna is configured to transmit and receive electromagnetic wave signals. The wireless communication module 160 may be applied to the wearable device 100 to provide wireless communication solutions including wireless local area network (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC) technology, infrared (IR) technology, etc. The wireless communication module 160 may be one or more components integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 may receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into an electromagnetic wave for emission using the antenna 2. In this embodiment of the present application, the wireless communication module 160 may be configured to access an access point device to send and receive messages to and from another wearable device.
[0237] It will be appreciated that the interface connection relationships between modules shown in this embodiment of the present invention are merely an example for illustrative purposes and do not constitute limitations on the structure of the wearable device 100. In some other embodiments of the present application, the wearable device 100 may alternatively use a different interface connection method or combination of interface connection methods than the above embodiment.
[0238] The charging contacts are configured to connect to a charger to charge the wearable device 100. Alternatively, in some optional embodiments, a USB interface may be used to replace the charging contacts. The USB interface is an interface that complies with the specifications of the USB standard, and may be specifically a mini USB interface, a micro USB interface, a USB Type-C interface, etc. The USB interface may be configured to connect to a charger to charge the wearable device 100, may be configured to transmit data between the wearable device 100 and a peripheral device, or may be configured to connect to a headset to play audio through the headset. The interface may be configured to connect to other electronic devices, such as an AR device.
[0239] The charging management module 140 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive the wireless charging input via a wireless charging coil of the wearable device 100. When charging the battery 142, the charging management module 140 may further power the electronic device by using the power management module 141.
[0240] The power management module 141 is configured to be connected to the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives inputs from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the display 150, the wireless communication module 160, etc. The power management module 141 may be further configured to monitor parameters such as battery capacity, battery cycle count, and battery health (leakage or impedance). In some other embodiments, the power management module 141 may alternatively be located within the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 may alternatively be located within the same component.
[0241] It should be understood that in actual applications, the wearable device 100 may include more or less components than those shown in FIG. 1. This is not limited to this embodiment of the present application. The illustrated wearable device 100 is only an example. The wearable device 100 may have more or fewer components than those illustrated, may combine two or more components, or may have a different component configuration. The various components illustrated may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0242] In addition, the functional units in the embodiments of the present application may be integrated into one processing unit, or each of the units may exist physically alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0243] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, which, when executed by a processor, can perform the steps in the aforementioned method embodiments.
[0244] An embodiment of the present application further provides a computer program product, which, when executed on a wearable device, enables the wearable device to perform the steps in the aforementioned method embodiments.
[0245] An embodiment of the present application further provides a chip system, which includes a processor, coupled to a memory, for executing a computer program stored in the memory to perform the steps in the aforementioned method embodiments.
[0246] When the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated module / unit may be stored in a computer-readable storage medium. Based on such understanding, in this application, all or part of the process in the method of the above-mentioned embodiment may be alternatively implemented by using a computer program that instructs related hardware. The computer program may be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps in the above-mentioned method embodiment may be performed. The computer program includes a computer program code, and the computer program code may be in the form of source code, object code, executable file, some intermediate form, etc. The computer-readable storage medium may include any entity or device that can carry a computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, an electric communication signal, a software distribution medium, etc.
[0247] In the above embodiments, the description of each embodiment has its own focus. For the parts not described in detail or not recorded in the embodiments, please refer to the related description of another embodiment.
[0248] Those skilled in the art will understand that the units and algorithm steps in the examples described with reference to the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether a function is implemented by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to go beyond the scope of this application.
[0249] The units described as separate parts may or may not be physically separated, and the parts shown as units may or may not be physical units, i.e., may be located in one location or distributed among multiple network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.
[0250] The above embodiments are only used to describe the technical solutions of the present application, and are not intended to limit the present application. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions described in the above embodiments may still be modified or some of the technical features may be replaced by equivalents. These modifications or replacements should not be construed as limiting the scope of the present application, but should be understood to be consistent with the principles of the present application. Example This does not depart from the scope of the present application and is within the scope of protection of the present application.
[0251] Finally, the above description is merely a specific implementation of the present application, and is not intended to limit the scope of protection of the present application. Any modifications or replacements within the technical scope disclosed in this application shall be included in the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims.
Claims
1. 1. A physiological data collection method comprising: Detecting whether a user is asleep; When it is detected that the user is asleep, determining whether a first number of times that the user enters a long sleep within a first period is less than a number threshold, thereby detecting whether the user is awake; if the first number is less than the number threshold, enabling a first sensor and using the first sensor to collect first physiological data of the user; Disabling the first sensor if the user is detected to be awake; A physiological data collection method comprising:
2. Determining whether a first number of times that the user falls asleep within a first period is less than a number threshold when it is detected that the user falls asleep includes: When it is detected that the user is falling asleep, determining whether the time when the user falls asleep is within a second period, the second period being a period during which the user falls into a long sleep; and If the sleep onset time is within the second period, determining whether the first number of times that the user falls into a long sleep within the first period is less than the number threshold value; 2. The physiological data collection method of claim 1, comprising:
3. Prior to determining whether the sleep onset time is within a second time period, the method further comprises: acquiring historical sleep data for the user within a third time period; analyzing the historical sleep data to obtain the second time period; The physiological data collection method of claim 2 , further comprising:
4. Analyzing the historical sleep data to obtain the second time period includes: analyzing the historical sleep data to obtain sleep period data associated with k sleeps during which the user slept for the longest sleep duration each day and which are within the third time period, where k is equal to the count threshold; selecting, from the sleep period data, sleep period data related to a sleep period whose sleep duration is equal to or greater than a duration threshold, and reading a sleep onset time point included in each of the selected sleep period data; Obtaining the second period by analyzing the read sleep onset time point; 4. The physiological data collection method of claim 3, comprising:
5. if the user is detected as awake, collecting statistics relating to a first duration lasting from when the user falls asleep to when the user wakes up; If the first duration is equal to or greater than the duration threshold, determining that the sleep is a long sleep and updating the first number of times; The physiological data collection method of claim 4 further comprising:
6. if the user is detected as awake, collecting statistics relating to a first duration lasting from when the user falls asleep to when the user wakes up; if the first duration is less than the duration threshold, detecting whether the user is asleep; When it is detected that the user is asleep, detecting whether the user is awake, enabling the first sensor, and acquiring second physiological data of the user by using the first sensor; The physiological data collection method of claim 4 further comprising:
7. Acquiring historical sleep data for the user within a third time period includes: Identifying a period type for a current period; selecting a fourth period having a first period type from the third period; acquiring the historical sleep data within the fourth period of time; 5. The physiological data collection method according to claim 3 or 4, comprising:
8. Analyzing the historical sleep data to obtain the second time period includes: dividing the third period into a plurality of period sets and extracting sleep sub-data for each period set from the historical sleep data, where each period set includes only periods of the same period type, and different period sets are associated with different period types; analyzing the sleep sub-data associated with each set of periods respectively to obtain the second periods respectively associated with each period type; Correspondingly, when it is detected that the user has fallen asleep, determining whether the time point at which the user has fallen asleep is within a second period includes: When it is detected that the user is asleep, identifying a period type of a current period and acquiring a second type; obtaining the second period associated with the second type and determining whether the sleep onset time point is within the second period; 5. The physiological data collection method according to claim 3 or 4, comprising:
9. Determining whether a first number of times that the user falls asleep within a first period is less than a number threshold when it is detected that the user falls asleep includes: if the user is detected as falling asleep, determining whether the sleep is the first time the user has fallen asleep within the first time period; determining that the first number threshold is less than the number threshold if the sleep is a first sleep in which the user falls asleep within the first time period; 2. The physiological data collection method of claim 1, comprising:
10. The physiological data collection method of claim 1 , wherein the first sensor is a PPG sensor.
11. 11. An electronic device comprising a memory, a processor and a first sensor, the memory storing a computer program executable on the processor, and when the processor executes the computer program, steps of the method according to any one of claims 1 to 10 are performed.
12. The electronic device of claim 11 , wherein the electronic device is a wearable device.
13. 11. A computer readable storage medium storing a computer program which, when executed by a processor, performs the steps of the method according to any one of claims 1 to 10.
14. 11. A chip system, comprising a processor, the processor coupled to a memory, the processor executing a computer program stored in the memory to perform the physiological data collection method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Sleeping state judging device
JP2004254827A
Body weight management system
JP2010063788A
Biological information detection device
JP2016016203A
Biological information detecting device
US20160007916A1
Sleep monitoring method, apparatus and terminal
WO2018098719A1
