Sleep monitoring method, device, electronic device and computer readable medium
By combining screen status and physiological parameters, the user's sleep state is accurately identified, which solves the problem of large sleep monitoring errors in the existing technology in scenarios such as lying in bed and playing with mobile phones, and improves monitoring accuracy.
Patent Information
- Application Number
- CN202011052065.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-09-29
AI Technical Summary
Existing sleep monitoring methods have large errors in scenarios such as when users are lying in bed and playing with mobile phones, and cannot accurately monitor the user's sleep status.
By obtaining the screen status of the target terminal and the user's physiological parameters (such as body movement parameters and heart rate parameters), the user's sleep status, including falling asleep and awake, is determined by combining the two.
It improves the accuracy of sleep monitoring and can more accurately identify the user's sleep state and reduce errors in scenarios such as when the user is lying in bed and playing with his mobile phone.
Smart Images

Figure CN114343587B
Abstract
Description
Technical Field
[0001] The present application relates to the field of health monitoring technology, and more specifically, to a sleep monitoring method, device, electronic device and computer-readable medium. Background Art
[0002] With the popularity of wearable devices or mobile terminals such as smart phones, smart watches, and smart bracelets (abbreviated as: bracelets), sleep health monitoring technology based on smart devices has gradually matured. However, the accuracy of sleep monitoring is not high at present, especially for users who play with mobile phones in bed, the error of sleep monitoring will be greater. Summary of the invention
[0003] The present application proposes a sleep monitoring method, device, electronic device and computer-readable medium to improve the above-mentioned defects.
[0004] In a first aspect, an embodiment of the present application provides a sleep monitoring method, which is applied to an electronic device, and the method includes: obtaining a screen state of a target terminal; obtaining physiological parameters of a user, wherein the physiological parameters include at least one of body movement parameters and heart rate parameters; determining a sleep state of the user based on the screen state and the physiological parameters, wherein the sleep state includes a sleeping state and an awake state.
[0005] In a second aspect, an embodiment of the present application further provides a sleep monitoring device, comprising a first acquisition unit, a second acquisition unit, and a determination unit. The first acquisition unit is used to acquire the screen state of the target terminal. The second acquisition unit is used to acquire the physiological parameters of the user, and the physiological parameters include at least one of body movement parameters and heart rate parameters. The determination unit is used to determine the sleep state of the user according to the screen state and the physiological parameters, and the sleep state includes a sleeping state and an awake state.
[0006] In a third aspect, an embodiment of the present application also provides an electronic device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the above method.
[0007] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the readable storage medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the above method.
[0008] The sleep monitoring method, device, electronic device and computer-readable medium provided by the present application obtain the screen state of the target terminal and the physiological parameters of the user, and then determine the sleep state of the user according to the screen state and the physiological parameters, wherein the physiological parameters may be at least one of body movement parameters and heart rate parameters. Since the screen state can reflect the user's operation on the user terminal, and the operation can further reflect the user's sleep state, and the physiological parameters can also reflect the user's sleep state, therefore, combining the screen state and the physiological parameters can make the determined sleep state more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 The curve showing the change of acceleration value in the sleep state provided by the embodiment of the present application is shown;
[0011] Figure 2 The heart rate change curve in the sleeping state provided by the embodiment of the present application is shown;
[0012] Figure 3 A method flow chart of a sleep monitoring method provided by an embodiment of the present application is shown;
[0013] Figure 4 A method flow chart of a sleep monitoring method provided by another embodiment of the present application is shown;
[0014] Figure 5 A schematic diagram showing a sleep period determined based on acceleration values provided in an embodiment of the present application is shown;
[0015] Figure 6 A schematic diagram of a sleep period determined based on heart rate provided in an embodiment of the present application is shown;
[0016] Figure 7 A schematic diagram showing a sleep period determined based on a screen state provided in an embodiment of the present application is shown;
[0017] Figure 8 A method flow chart of a sleep monitoring method provided by another embodiment of the present application is shown;
[0018] Fig. 9 A schematic diagram of a sleep period determined based on HRV provided in an embodiment of the present application is shown;
[0019] Fig.10A module block diagram of a sleep monitoring device provided in an embodiment of the present application is shown;
[0020] Fig.11 A module block diagram of an electronic device provided in an embodiment of the present application is shown;
[0021] Fig.12 A storage unit provided in an embodiment of the present application for storing or carrying a program code for implementing an information processing method according to an embodiment of the present application is provided. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0023] With the accelerated pace of life and the increase of work pressure, sleep disorders have become a major problem for modern people, with more than 60% of people having sleep disorders. There are many types of sleep disorders, which can be summarized into three categories: insomnia, poor sleep and insufficient sleep. Sleep disorders can bring many inconveniences to our lives, and can more easily lead to accelerated aging of the human body, decreased immunity, and induced cardiovascular and cerebrovascular diseases. It can be seen that it is very important to maintain healthy sleep.
[0024] At present, the concept of preventive medicine is used to solve the problem of sleep disorders, that is, early detection and early treatment. The traditional method of evaluating sleep disorders is to fill out a sleep evaluation form or do a full-night PSG monitoring. Although these two methods are more accurate, considering the cost and convenience, it is not realistic to do long-term monitoring. Therefore, there is an urgent need for a convenient and low-cost sleep monitoring system to help us identify sleep disorders.
[0025] Due to the rapid development of wearable devices and smart phones, more and more sleep monitoring systems have been invented, which can be roughly divided into two categories: based on acceleration signals, based on heartbeat signals, and based on the joint detection of acceleration signals and heartbeat signals.
[0026] The inventors discovered during their research that the current sleep monitoring methods have many problems. Specifically, although the aforementioned method can accurately monitor the user's sleep state in some scenarios such as when the user is sleeping in bed, in some special scenarios, for example, when the user is lying in bed playing with a mobile phone or watching a video, the characteristic of this scenario is that the user remains awake but moves very little. In this special scenario, if the aforementioned monitoring results based on acceleration signals, heartbeat signals, and acceleration signals and heartbeat signals are used, the user will often fall asleep, that is, there will be a certain error.
[0027] For example, when a user is lying in bed watching a video or reading an article on his / her mobile phone, the acceleration signal of the user's body obtained by the test is as follows: Figure 1 As shown, and the measured heart rate results are as follows Figure 2 As shown, it can be seen that Figure 1 The acceleration value shows that the user's body movements are very small and the body is almost static. Figure 2 It can be seen from the heart rate value that the user's heart rate is relatively low and stable at this time. The physical characteristics of the user during sleep are that the body is relatively still, the body moves less, and the heart rate is low, that is, it is stable at the resting heart rate. Therefore, Figure 1 and Figure 2 It can be seen that the sleep monitoring results obtained through acceleration and / or heart rate at this time are all asleep. However, the user is lying in bed watching mobile phone videos at this time. Therefore, the sleep monitoring results do not match the user's actual sleep state, that is, the monitoring results are wrong.
[0028] Therefore, in order to improve the above defects, Figure 3 As shown, the embodiment of the present application provides a sleep monitoring method, which can be applied to a mobile terminal, a wearable device of a user, or a server, wherein the wearable device can be a bracelet or a smart watch, etc., and the mobile terminal can be a smart phone used by the user. That is to say, the execution subject of the method can be a mobile terminal, a wearable device, an audio and video playback device, or a server, wherein the server can obtain data from the mobile terminal and the wearable device. If the execution subject of the method is a mobile terminal, the mobile terminal can directly establish a connection with the wearable device and obtain the data of the wearable device through the established connection. If the execution subject of the method is a wearable device, the data of the mobile terminal can also be obtained through the established connection. Of course, the mobile terminal and the wearable device can also obtain data through the server, that is, one of the two transmits the data to the server, and the server forwards the data to the other party. Specifically, the execution subject of the method of the embodiment of the present application can be an electronic device, which can be at least one of the aforementioned mobile terminal, wearable device and server, and the method includes: S301 to S303.
[0029] S301: Acquire the screen status of the target terminal.
[0030] The target terminal may be at least one of the mobile terminal, wearable device and audio and video playback device mentioned above. The screen status may include the screen on / off status, unlock screen status, touch status and display status.
[0031] Among them, the screen's on and off states can include a screen-on state and a screen-off state. The screen displays a bright picture in the screen-on state, that is, the screen's backlight panel emits light; the screen displays a dark picture in the screen-off state, that is, the screen's backlight panel does not emit light or emits light at a weak brightness.
[0032] As an implementation method, the screen state may be the screen state of the mobile terminal, the screen state of the wearable device, or the audio and video playback device in the user's current environment. As an implementation method, the audio and video playback device may be a screen device. Specifically, the screen device may be a device with a screen installed, wherein the user's current environment may be determined based on the user's location. As an implementation method, the user's location information is determined by the mobile terminal or the user's wearable device, the user's current environment is determined based on the user's location information, and then the screen devices in the user's current environment are pre-determined. The screen devices in the home devices corresponding to the user's home address can be counted as the screen devices corresponding to the home address. After obtaining the user's location information, if the location information is the home address, it can be determined that the screen device in the user's current environment is the screen device in the user's home device, such as a TV set. As another implementation method, the user may configure a screen device for the home address. For example, although the user's home address includes multiple screen devices, the user can select at least one of the screen devices as the screen device corresponding to the user's home address. Furthermore, when it is determined that the user's location information is located at the user's home address, the user's location information can be determined based on indoor positioning technology to be located in a specific room of the home address, which can be recorded as the target room, and the screen device arranged in the target room can be regarded as the screen device in the user's current environment.
[0033] As an implementation method, the target terminal may be a terminal associated with a user, and specifically, the identity information corresponding to the user account of logging into the target terminal is the identity information of the user. For example, the identity ID of the real-name authentication of the user account is the same as the identity ID of the user. In some embodiments, when the user corresponds to multiple terminal devices, the target terminal can be determined by the user's usage data of each terminal device. Specifically, the usage data includes the user's operation on the terminal device, and the recently used terminal device is searched from multiple terminal devices through the usage data of each terminal device as the target terminal, thereby obtaining the screen state of the target terminal. In other embodiments, if the usage location of the target terminal matches the user's permanent address, it indicates that the target terminal is associated with the user, wherein the usage location is the location where the terminal is used, and the permanent address may include the location where the user often resides, such as the office address or the home address. Taking the target terminal as the above-mentioned audio and video playback device as an example, the installation location of the audio and video playback device is located within the specified range of the user's target address, which indicates that the audio and video playback device is associated with the user. Among them, the target address may be the user's home address, and the specified range can be set according to actual needs. For example, if the video playback device is a device with a screen as described above, then if the video playback device is a device with a screen in the user's smart home device, it indicates that the video playback device is associated with the user. In addition, the wearable device is a device associated with the user's mobile terminal. For details, please refer to the subsequent embodiments.
[0034] As an implementation method, if the screen state is the screen state of a mobile terminal or an audio and video player, the screen on state and screen off state can be detected by a program module in the system of the mobile terminal or the audio and video player. For example, the screen off state and screen on state are detected by the isScreenOn function of PowerManager. As another implementation method, the screen on state and screen off state of the mobile terminal or audio and video player can also be collected by the user's wearable device. Specifically, the wearable device is provided with a light sensor that can detect the light intensity of the surrounding environment. If the user wears the wearable device when using the mobile terminal, or the user places the mobile terminal or audio and video player beside him when wearing the wearable device. Since the screen of the mobile terminal or audio and video player has different light intensities when the screen is on and off, the screen on and screen off state can be monitored by collecting the light intensity of the screen of the mobile terminal or audio and video player through the wearable device.
[0035] Among them, the unlocked screen state of the screen includes a locked screen state and an unlocked state. As an implementation method, the broadcast Intent.ACTION_SCREEN_ON and Intent.ACTION_SCREEN_OFF are received through BroadcastReceiver, so as to determine whether the mobile terminal is in a locked screen state or an unlocked state.
[0036] The touch state of the screen may include a touched state and an untouched state. The touched state means that the screen is touched within a specified time length, and the untouched state means that the screen is touched within a specified time length. As an implementation method, it is possible to detect whether the screen is touched at the current moment. If touched, the touch state of the screen is determined to be a touched state, otherwise, the touch state of the screen is determined to be an untouched state.
[0037] As another implementation, it is also possible to detect whether the screen receives a touch operation within a specified time length before the current time, and determine the touch state of the screen based on the touch operation received by the screen detected within the specified time length. In some embodiments, if the screen receives a touch operation within the specified time length, that is, the screen has been touched, it can be considered that the touch state of the screen is in a touched state; if the screen does not receive a touch operation within the specified time length, it can be considered that the touch state of the screen is in an untouched state. In other embodiments, the number of touch operations received by the screen detected within the specified time length is obtained. If the number is greater than a second threshold, the touch state of the screen is determined to be a touched state; otherwise, if the number is less than or equal to the second threshold, the touch state of the screen is determined to be an untouched state.
[0038] The display state of the screen may include a desktop interface state and a non-desktop interface state, wherein the desktop interface state is used to indicate that the content currently displayed on the screen is the system desktop, on which icons of target installed applications are displayed, serving as an operation interface for users to select and operate applications from multiple applications, and the non-desktop interface state is used to indicate that the content currently displayed on the screen is not the system desktop. The non-desktop interface state may also determine multiple sub-states according to the type of content displayed, such as a video interface sub-state, a game interface sub-state, etc., wherein the video interface sub-state is used to indicate that the interface currently displayed on the screen is a video interface, i.e., the content displayed on the screen is a video, and the game interface sub-state is used to indicate that the interface currently displayed on the screen is a game interface, i.e., the content displayed on the screen is the interface of a game application.
[0039] S302: Acquire physiological parameters of the user.
[0040] Wherein, the physiological parameters include at least one of body motion parameters and heart rate parameters. The implementation method of obtaining the user's physiological parameters can be to obtain them through the user's wearable device. For example, the wearable device is provided with a sensor for collecting body motion parameters and heart rate parameters, wherein the sensor for collecting body motion parameters can be an acceleration sensor, and the sensor for collecting heart rate parameters can be a heart rate sensor.
[0041] In some embodiments, the body motion parameter may be data used to characterize the user's body motion. For example, the body motion parameter may be acceleration data of the user's body, and the acceleration data may be the acceleration generated when the user's body moves. For example, the acceleration data may be the acceleration value generated when the user's hand moves and the time point corresponding to each acceleration value.
[0042] S303: Determine the sleep state of the user according to the screen state and physiological parameters.
[0043] Among them, the sleep state includes a sleeping state and an awake state. As an implementation method, physiological parameters can determine the user's sleep state. For example, when the user is in a sleeping state, the body movement is small and the heart rate is a resting heart rate. If the physiological parameters include body motion parameters, and the body motion parameters are acceleration data, if the acceleration value is relatively small, it can be considered that the user is in a sleeping state. If the physiological parameters include heart rate parameters, if the heart rate parameters match the user's resting heart rate, it can be considered that the user is in a sleeping state.
[0044] Thus, it is possible to determine whether the user's sleep state is a sleeping state or a waking state according to the user's physiological parameters, and then the screen state can reflect the user's operation intention on the target terminal. Specifically, the operation intention may include an operation intention and no operation intention. For example, the screen state may include the on-off state of the screen. If the screen state is a bright screen state, the user's operation intention may be determined to have an operation intention, and if the screen state is an off screen state, the user's operation intention may be determined to have no operation intention. For another example, the screen state may include an unlocked screen state. If the screen state is an unlocked state, the user's operation intention may be determined to have an operation intention, and if the screen state is a locked screen state, the user's operation intention may be determined to have no operation intention. For another example, the screen state may include a touch state. If the screen state is a touched state, the user's operation intention may be determined to have an operation intention, and if the screen state is an untouched state, the user's operation intention may be determined to have no operation intention. If there is an operation intention, the user's sleep state may be considered to be a sleeping state, and if there is no operation intention, the user's sleep state may be considered to be a waking state.
[0045] Therefore, the user's sleep state can also be determined based on the screen state, recorded as the first result, and the user's sleep state can be determined based on the user's physiological parameters, recorded as the second result. By combining the first result and the second result, the user's sleep state can be determined.
[0046] Since the screen state can reflect the user's operation on the target terminal, and the operation can further reflect the user's sleep state, and the physiological parameters can also reflect the user's sleep state, therefore, combining the screen state and the physiological parameters can make the determined sleep state more accurate. Figure 4 As shown, the embodiment of the present application provides a sleep monitoring method, and the execution subject of the method can refer to the aforementioned Figure 3 The description of the execution subject of the method shown is not repeated here. Specifically, the method may include: S401 to S406.
[0047] S401: Get screen status.
[0048] S402: Acquire physiological parameters of the user.
[0049] S403: Determine the user's physical state according to the user's physiological parameters.
[0050] The body state may include a motion state and a heartbeat state, wherein the motion state corresponds to the above-mentioned body motion parameters, and the heartbeat state corresponds to the above-mentioned heart rate parameters.
[0051] Specifically, the user's motion state can be determined based on the user's body motion parameters, and the motion state includes a static state and a non-static state. When the user's body motion state is a static state, the user's body motion amplitude is relatively small, and it can be considered that the user's body is in a relatively static state. When the user's body motion state is a non-static state, the user's body motion amplitude is relatively large.
[0052] As an implementation, the body motion parameter is the acceleration data of the user's limbs, and the acceleration data of the user in the detection time period is obtained. If the acceleration data is in a small change range and the acceleration value is lower than the specified acceleration value, the user's motion state can be determined to be a static state, otherwise, the user's motion state is determined to be a non-static state. The specified acceleration value can be a relatively small value, for example, it can be set according to experience or usage requirements.
[0053] In some embodiments, the acceleration data of the user can be collected by a wearable device of the user worn on the user's limbs. For example, the wearable device can be a bracelet or a smart watch. When the watch or bracelet is worn, if the acceleration capability value is very small for a long time, it is in a sleeping state. Specifically, the wearable device can include a three-axis acceleration sensor, then the acceleration data of the user can include the acceleration value of each axis, then the specified acceleration value can include a second threshold value corresponding to each axis, and then, it is determined whether the acceleration value of each axis is less than the specified acceleration value corresponding to the axis. If the acceleration value of each week is less than the specified acceleration value corresponding to the axis, and it lasts for a certain length of time (for example, it can be 1 minute), then it can be determined that the movement state of the user's body is a static state, otherwise, it is determined that the movement state of the user's body is a non-static state.
[0054] As an implementation method, the user's heartbeat state may include a resting state and a non-resting state. After obtaining the heart rate parameter, the real-time heart rate information is determined according to the heart rate parameter. The real-time heart rate information is used to characterize the speed of the user's heartbeat in real time. It should be noted that the real-time heart rate does not represent the heart rate at the current moment, but may be the heart rate within a period of time before the current moment. The heart rate parameter is compared with the resting heart rate. If the heart rate parameter is not significantly increased compared with the resting heart rate, the user's state of mind can be determined to be a resting state, otherwise, the user's state of mind is determined to be a non-resting state. As an implementation method, the resting heart rate can be a heart rate parameter collected when the user is in a sleeping state within a preset time period, and the resting heart rate is obtained according to the heart rate parameter when in a sleeping state. The preset time period may be 1 to 3 days before the current moment, and the heart rate parameter when in a sleeping state within the preset time period is named as the historical resting heart rate. When the current heart rate is not significantly higher than the historical resting heart rate (a certain threshold range can be set), specifically, the absolute value of the difference between the current heart rate and the historical resting heart rate can be obtained. If the absolute value of the difference is less than the resting heart rate threshold and the length of time that it is continuously less than the threshold is longer than the resting time threshold, the user's state of mind is considered to be a resting state, otherwise, the user's state of mind is determined to be a non-resting state. The resting heart rate threshold is 20 bpm.
[0055] In addition, in some embodiments, the implementation method of obtaining the physiological parameters of the user is to obtain the physiological parameters of the user through the wearable device of the user, and the wearable device of the user is associated with the target terminal. As an implementation method, the target terminal can be a mobile terminal, and the mobile terminal and the wearable device are associated. Specifically, when the user uses the wearable device, the wearable device is bound in the mobile terminal, that is, if the binding relationship exists between the user device and the wearable device, it can be considered that the wearable device is associated with the mobile terminal. As another implementation method, both the mobile terminal and the wearable device need to log in with the user name to be able to use normally. If the user name currently logged in to the mobile terminal is the same as the user name currently logged in to the wearable device, it can be considered that the wearable device is associated with the mobile terminal.
[0056] As an implementation method, when the wearable device and the mobile terminal are used to monitor the user's sleep status, the two need to establish a communication connection. For example, the two are paired through Bluetooth, and then it is detected whether the wearable device is in the worn state. If the wearable device and the mobile terminal successfully establish a connection, that is, they are successfully paired, and the wearable device is in the worn state, then S401 and subsequent steps are executed.
[0057] S404: Determine whether the physical state meets a preset characteristic condition.
[0058] Among them, the preset characteristic condition may be a physical state characteristic of the user in a sleeping state.
[0059] As an implementation mode, the body state is an action state, and the implementation mode of judging whether the body state satisfies the preset characteristic conditions may be to judge whether the body state is a static state, and if it is a static state, then the body state is judged to satisfy the preset characteristic conditions, otherwise, the body state is judged to not satisfy the preset characteristic conditions.
[0060] As another implementation, the physical state is a heartbeat state, and the implementation method for determining whether the physical state satisfies the preset characteristic conditions may be to determine whether the heartbeat state is a resting state. If it is a resting state, then the physical state is determined to satisfy the preset characteristic conditions; otherwise, the physical state is determined to not satisfy the preset characteristic conditions.
[0061] As another implementation manner, the body state is an action state and a heartbeat state, and the implementation manner of judging whether the body state satisfies the preset characteristic condition may be to judge whether the body state is a stationary state and whether the heartbeat state is a resting state. If the body state is a stationary state and the heartbeat state is a resting state, then it is judged that the body state satisfies the preset characteristic condition; otherwise, it is judged that the body state does not satisfy the preset characteristic condition.
[0062] S405: Determine the sleep state of the user according to the screen state.
[0063] Specifically, the specific implementation method of determining the screen on state and screen off state can refer to the above embodiment, which will not be repeated here. According to the screen on and screen off state judgment result, it is determined whether the user is in a sleeping state.
[0064] Among them, the screen on and off status judgment result may include the screen status being the screen off state and the screen status being the screen on state.
[0065] As an implementation mode, when the physical state meets the preset characteristic conditions, the user's current sleep state can be considered to be a state of falling asleep. However, it is necessary to further determine the user's current sleep state based on the on / off state of the screen of the target terminal.
[0066] In some embodiments, if the screen state is the off state, the user's sleep state is determined to be the sleeping state. Because in the off state, it can be considered that the user is not using the target terminal, and if the user's physical state meets the preset characteristic conditions, it can be considered that the user has fallen asleep.
[0067] The on / off state of the target terminal screen can reflect a period of time that the user may be sleeping. Specifically, if the screen is on for a certain period of time (such as 1 minute), the user is awake, and if the screen is off for a certain period of time, the user is asleep. Thus, a sleeping period Tp can be determined. Therefore, the sleeping time is a subset of Tp. This method can be used to distinguish scenes where the user spends a long time lying in bed and watching videos on the phone.
[0068] As an implementation method, the implementation method of determining the user's sleep state according to the screen state and the physiological parameters may be to jointly determine the sleep period according to the body movement parameters, the heart rate parameters and the screen state, during the sleep period, the user's sleep state is a sleeping state, and during the time interval outside the sleep period, the user's sleep state is a wakeful state.
[0069] Specifically, a first sleeping time period is determined according to the physiological parameter; a second sleeping time period is determined according to the screen state; a target sleeping time period is determined according to the first sleeping time period and the second sleeping time period; and the sleeping state of the user in the target sleeping time period is determined to be a sleeping state. Specifically, a time interval shared by the first sleeping time period and the second sleeping time period is used as the target sleeping time period.
[0070] Among them, the physiological parameters can determine that the user is in a sleeping state, for example, the physiological parameters collected at each moment are determined, and the body state is determined based on the physiological parameters. If the body state meets the aforementioned preset characteristic conditions, it can be determined that the user is in a sleeping state, so that the sleeping time period determined based on the physiological parameters can be obtained, which is recorded as the first sleeping time period. As an implementation method, if the physiological parameters include body movement parameters and heart rate parameters, the third sleeping time period is determined based on the body movement parameters; the fourth sleeping time period is determined based on the heart rate parameters; and the time interval shared by the third sleeping time period and the fourth sleeping time period is used as the first sleeping time period.
[0071] Specifically, Figure 5 , Figure 6 and Figure 7 As shown, Figure 5 The sleep time period S1 of the user determined according to the acceleration value is shown. The sleep time period S1 is the third sleep time period mentioned above. It can be seen that within S1, the acceleration value is relatively small and relatively stable, wherein a1 is the sleep onset point of the sleep time period S1, and a2 is the wake-up point of the sleep time period S1, that is, a1 is the first sleep onset point, and a2 is the first wake-up point. Figure 6 The sleep time period S2 of the user determined according to the heart rate parameters is shown. The sleep time period S2 is the fourth sleep time period mentioned above. It can be seen that in S2, the heart rate is relatively small and is closer to the user's resting heart rate. Among them, b1 is the sleep onset point of the sleep time period S2, and b2 is the wake-up point of the sleep time period S2, that is, b1 is the second sleep onset point, and b2 is the second wake-up point. Figure 7 The user's sleep time period S3 determined according to the screen state is shown. The sleep time period S3 is the second sleep time period mentioned above. When the screen is in the on state, the state value is 1, and when the screen is in the off state, the state value is 0. It can be seen that in S3, the screen is continuously in the off state. In addition, the state value briefly changes to 1 in S3, which can be considered as the screen is briefly lit when the target terminal receives a reminder message or a push message in the off state. Among them, c1 is the sleep point of the sleep time period S3, and c2 is the wake-up point of the sleep time period S3, that is, c1 is the third sleep point, and c2 is the third wake-up point.
[0072] As an implementation method, the common time interval of the above three sleeping time periods can be determined, that is, the intersection of the three time periods is obtained, and the common part is the target sleeping time period, and the target sleeping time period reflects the sleeping time period that satisfies the three modes at the same time. Specifically, the latest sleeping point among the first sleeping point, the second sleeping point and the third sleeping point can be used as the user's real sleeping point, and the earliest waking point among the first waking point, the second waking point and the third waking point can be used as the user's real waking point, and the time period between the real sleeping point and the real waking point is the target sleeping time period.
[0073] In some embodiments, if the body state does not meet the preset characteristic condition, when the screen state is determined to be a bright screen state, the user's sleeping state is determined to be a wakeful state.
[0074] In other embodiments, if the screen state is in the bright screen state, other information can be combined to further determine that when the screen state is in the bright screen state, if the user's physical state meets the preset characteristic conditions, the user's sleeping state.
[0075] As an implementation method, when the user's physical state meets preset characteristic conditions and the screen state is in a bright screen state, the unlocked screen state of the target terminal's screen can be obtained. If the unlocked screen state is a locked screen state, it can be determined that the user's sleep state is the sleeping state. If the unlocked screen state is an unlocked state, it can be determined that the user's sleep state is a wakeful state.
[0076] As another implementation, when the user's physical state meets the preset characteristic conditions and the screen state is in the bright screen state, the display content on the screen of the target terminal can be obtained. If the category of the display content is a specified category, the user's sleep state can be determined to be the sleeping state. Otherwise, the user's sleep state can be determined to be the awake state. The specified category can be a category of content that is pre-acquired and easy to make the user fall asleep. As an implementation, the specified category can be pre-set by the user. For example, the user marks the content that is easy to fall asleep as a specified category, such as marking a drama movie as a specified category, etc. It can also be a statistical analysis of the content category of the display content on the screen of the target terminal when the user's physical state meets the preset characteristic conditions and the screen state is in the bright screen state within a specified reference time period, thereby obtaining multiple content categories of the specified reference time period, and determining the specified category based on the multiple content categories. For example, the category with the highest frequency of occurrence among the multiple content categories is used as the specified category.
[0077] In addition, the category of the displayed content can be determined according to the format of the content or according to the application corresponding to the content. For example, if the application corresponding to the content is a video type, then when the application is running, the category of the content displayed on the screen is determined to be a video type, because the user is prone to fall asleep while watching a video, and it is also possible that when the video is played, the playback interface is automatically exited and other interfaces of the video application are displayed. However, at this time, the user is already in a sleeping state. Therefore, determining the category of the displayed content according to the application that plays the displayed content can make the detection of the sleeping state more accurate.
[0078] The implementation method for determining the category of an application can be that the developer of the application sets the category for the application when developing it, or the user sets the category for the application after the application is installed on the electronic device. For example, when a user installs an application on an electronic device, after the installation is complete and the application is entered, a dialog box will be displayed to instruct the user to set the category for the application. The specific category to which the application belongs can be set by the user according to needs. For example, the user can set a social software to the audio category, the video category, or the social category.
[0079] An electronic device is installed with application installation software, such as the Appstore in the iOS system. The application installation software is provided with an application list, in which users can download, update and open applications, and the application installation software can display different applications by category, such as audio, video or game. Therefore, when the user uses the application installation software to install an application, he or she can already know the category of the application.
[0080] In addition, considering that some applications can play both video and audio, if the application supports the video playback function, the type of the application is set to the video type; if it does not support the video playback function but only supports the audio playback function, the type of the application is set to the audio type. Specifically, whether the application supports the video playback function can be determined by the function description contained in the function description information of the application, such as the supported playback format, to determine whether the video format is supported. It can also be determined by detecting whether the video playback module is played in the program module of the application, such as a certain video playback codec algorithm, so as to determine whether the application supports the video playback function.
[0081] Furthermore, if some applications have diversified functions, the category of the application needs to be determined based on the specific operation behaviors of the application. For example, if some applications can play videos and audio, such as some video playback software that can play pure audio files and videos, the category of the application can be determined based on the usage records of the application, that is, based on the usage records of the application within a certain period of time, determine whether the user tends to play videos or audio when using the application.
[0082] Specifically, the operation behavior data of all users of the application within a preset time period is obtained, wherein all users refer to all users who have installed the application, and the operation behavior data can be obtained from the server corresponding to the application, that is, when the user uses the application, he will use the user account corresponding to the user to log in to the application, and the operation behavior data corresponding to the user account will be sent to the server corresponding to the application, and the server will store the obtained operation behavior data in correspondence with the user account. In some embodiments, the electronic device sends an operation behavior query request for the application to the server corresponding to the application, and the server sends the operation behavior data of all users within a certain preset time period to the electronic device.
[0083] The operation behavior data includes the name and time of the audio file played, and the name and time of the video file played. By analyzing the operation behavior data, the number and total time of audio files played by the application within a certain preset time period can be determined, and the number and total time of video files played by the application can also be obtained. The category of the application is determined according to the proportion of the total playback time of the audio and video files in the preset time period. Specifically, the proportion of the total playback time of the audio and video files in the preset time period is obtained. For the convenience of description, the proportion of the total playback time of the audio files in the preset time period is recorded as the audio playback proportion, and the proportion of the total playback time of the video files in the preset time period is recorded as the video playback proportion. If the video playback proportion is greater than the audio playback proportion, the category of the application is set to the video type. If the audio playback proportion is greater than the video playback proportion, the category of the application is set to the audio type. For example, the preset time period is 30 days, or 720 hours, and the total playback time of audio files is 200 hours, then the audio playback ratio is 27.8%, and the total playback time of video files is 330 hours, then the video playback ratio is 45.8%. If the video playback ratio is greater than the audio playback ratio, the application category is set to the video type.
[0084] As another implementation, the user's sleep state may be determined based on the real-time heart rate information when the user's physical state meets the preset characteristic conditions and the screen state is in the bright screen state. Specifically, if it is determined that the screen state is in the bright screen state, the user's real-time heart rate information is obtained based on the heart rate parameter, and if the real-time heart rate information is less than a first threshold, the user's sleep state is determined to be the sleeping state. If the real-time heart rate information is not less than the first threshold, the user's sleep state is determined to be the awake state. The first threshold may be the aforementioned resting heart rate.
[0085] Specifically, if the physiological parameters used when determining the physical state are body motion parameters, then when the user is suspected of falling asleep based on the body motion parameters, and when the screen is on, the user's real-time heart rate information can be combined to determine whether the user's sleep state is awake or asleep when the user's movement amplitude is relatively small and the screen is on. Thus, the user's sleep state can be determined by combining the three elements of body motion parameters, screen status, and real-time heart rate information, which can make the result more accurate. If the physiological parameters used when determining the physical state include real-time heart rate information, the real-time heart rate information can be obtained again when the screen is on, thereby avoiding the situation where the user opens the target terminal after detecting that the user's heart rate information indicates that the user is asleep, resulting in inaccurate detection results.
[0086] As another implementation, considering that when the screen is on, the user may be operating the target terminal with a small movement amplitude and a resting heart rate. Therefore, if the screen state is on, the user's sleep state can be determined based on the user's heart rate variability information. For details, please refer to the subsequent embodiments.
[0087] Furthermore, it should be noted that when the user's physical state meets the preset characteristic conditions and the screen state is in the off state, in addition to using the above-mentioned implementation method to directly determine that the user's sleep state is the sleeping state, the heart rate parameters can also be combined to determine whether the user's sleep state is the sleeping state or the awake state when the screen state is in the off state.
[0088] As an implementation mode, if it is determined that the screen state is an off state, the real-time heart rate information of the user is obtained according to the heart rate parameter, and if the real-time heart rate information is greater than a third threshold, the user's sleep state is determined to be the awake state; if the real-time heart rate information is not greater than the third threshold, the user's sleep state is determined to be the asleep state. Among them, the third threshold value may be the same as the first threshold value, and both may be the resting heart rate mentioned above. Therefore, considering that when the user's body movement amplitude is relatively small and the screen is off, the user does not fall asleep even if he does not look at the screen, then at this time, it is possible to further determine whether the user is in a sleeping state through real-time heart rate information.
[0089] As an implementation manner, if it is determined that the screen state is the screen-off state, the heart rate variability information of the user is obtained according to the heart rate parameters, and the sleep state of the user is determined according to the heart rate variability information. For details, please refer to the subsequent embodiments.
[0090] S406: Determine whether the sleeping state of the user is awake.
[0091] If the user's physical state does not meet the preset characteristic condition, the user's sleeping state is determined to be awake. It should be noted that the steps not described in detail in the above method can refer to the above embodiments and will not be repeated here.
[0092] like Figure 8 As shown, the embodiment of the present application provides a sleep monitoring method, and the execution subject of the method can refer to the aforementioned Figure 3 and 4 The description of the execution subject of the method shown is not repeated here. In the embodiment of the present application, the method provided by the embodiment of the present application is described by taking the target terminal being a mobile terminal as an example. Specifically, the method may include: S801 to S809.
[0093] S801: Get screen status.
[0094] S802: Acquire physiological parameters of the user.
[0095] S803: Determine the user's physical state according to the user's physiological parameters.
[0096] S804: Determine whether the physical state meets a preset characteristic condition.
[0097] As an implementation, it is possible to determine whether the user's physical state meets the preset characteristic condition according to any one of the acceleration data and the heart rate parameter of the user. The specific implementation paradigm can refer to the above-mentioned embodiment.
[0098] As an implementation method, when it is determined that the body state meets the preset characteristic conditions, the user's current sleep state can be first determined as a pending sleep state, that is, the user is currently in a suspected sleep state. To further determine the user's more real sleep state, the screen on and off state can be combined to determine,
[0099] S805: Determine whether the screen status is off.
[0100] If the screen status is off, it means that the current user's physical condition meets the user's physical condition when sleeping, and the screen is in the off state. Since the user is unlikely to use the mobile terminal in the off state, it can be considered that the user is currently very likely to be asleep, that is, execute S808.
[0101] In addition, considering that when the user is lying in bed, he may just listen to music but not fall asleep, but at this time his body movements are relatively small and his heart rate is stable, and because the music playback software can run in the background of the mobile terminal, the mobile terminal may still turn off the screen when the music playback software is running. Therefore, at this time, if the result obtained according to step S805 should be that the user's sleep state is the sleeping state, it will cause an error.
[0102] Therefore, when the judgment result of S805 is the screen-off state, it can be determined whether the mobile terminal currently has an audio playback application running. Specifically, it can be determined whether there is an audio playback application running in the background. If not, S808 is executed, that is, the user's sleep state is determined to be the sleeping state. If yes, the surrounding ambient sound is collected through the mobile terminal or wearable device to determine whether there is a specified type of voice in the surrounding ambient sound. For example, the specified type of voice may be snoring. If there is a specified type of voice, S808 is executed, that is, the user's sleep state is determined to be the sleeping state. Otherwise, S809 is executed, that is, the user's sleep state is determined to be the awake state.
[0103] S806: Obtain the user's heart rate variability information.
[0104] If the screen state is on, obtain the user's heart rate variability information according to the heart rate parameter, and determine the user's sleep state according to the heart rate variability information.
[0105] In addition, considering that the screen of the mobile terminal may be temporarily lit if a push message or notification is received when the screen is off, if it is not necessary to obtain the user's heart rate variability information and determine the user's sleep state based on the heart rate variability information, the screen is in the off stage at this time, and the screen lit due to the push message or notification is only temporary. Therefore, if the screen state is the screen lit state, the implementation method of obtaining the user's heart rate variability information may be, if the screen state is the screen lit state, obtaining the first time length that the screen state is continuously in the screen lit state; if the first time length is greater than the first specified threshold, obtaining the user's heart rate variability information. Among them, the first specified threshold can be set based on experience, for example, a smaller value is set, for example, the first specified threshold can be 10 seconds, and the first specified threshold can also be set according to the notification reminder duration set by the mobile terminal, specifically, the first specified threshold can be greater than or equal to the notification reminder duration, therefore, if the first time length of the continuous screen lit is less than or equal to the first specified threshold, it can be considered that the current screen is lit and is temporary.
[0106] Heart rate variability (HRV) information refers to the changes in the difference between successive heartbeat cycles or the changes in the speed of the heartbeat. The autonomic nervous system in the human body regulates functions in the body that are not under human subjective control, including heartbeat, breathing, blood pressure and digestion. There are two types of autonomic nervous systems, the sympathetic nervous system of "fight or flight" and the parasympathetic nervous system of "relax or digest". HRV can reflect the working condition of your autonomic nervous system. If the user is in the sympathetic nervous system-dominated mode of "fight or flight", the user's HRV will be lower, that is, when the sympathetic nervous system is more active, the HRV is lower, that is, the higher the activity of the sympathetic nervous system, the lower the HRV. If the user is in the parasympathetic nervous system-dominated mode of "relax or digest", your HRV will be higher. Therefore, HRV can reflect the activity of the user's sympathetic nervous system.
[0107] Therefore, when the user is in a sleeping state, the sympathetic nerve activity is not high and the HRV value is high. When the user is awake, even if the body movement is small or the heartbeat is in a resting state, the sympathetic nerve activity is relatively high, so the HRV value is relatively low.
[0108] S807: Determine whether the heart rate variability information is higher than a second threshold.
[0109] The second threshold value can be set according to actual needs, for example, it can be a value between 0.2 and 0.3 kHz. Fig. 9As shown, at the position of d1, the HRV value increases, showing a high-frequency state, then it can be determined that the user is currently in a parasympathetic nervous system-dominated mode, that is, in a relatively relaxed state. Therefore, it can be considered that the user's current sleep state is a falling asleep state. At the position of d2, the HRV value becomes smaller, showing a low-frequency state, then it can be determined that the user is currently in a sympathetic nervous system-dominated mode, the sympathetic nervous system is relatively active, and the user's current sleep state is a wakeful state.
[0110] S808: Determine that the user's sleeping state is the sleeping state.
[0111] In addition, when the physical state meets the preset characteristic conditions and the screen state is in the off state, the heart rate variability information of the user is obtained according to the heart rate parameter; if the heart rate variability information is less than the fourth threshold, the sleep state of the user is determined to be the awake state; if the heart rate variability information is not less than the fourth threshold, the sleep state of the user is determined to be the asleep state. The fourth threshold may be the same as the aforementioned second threshold. Specifically, the contents of S806 to S807 may be referred to, which will not be described in detail here.
[0112] S809: Determine that the sleeping state of the user is the awake state.
[0113] As an implementation mode, when the physiological parameters of the user meet the preset characteristic conditions, if the screen state is in the bright screen state, the user's heart rate variability information can be obtained, and the user's sleep state can be determined based on the heart rate variability information. If the result of the determination is that the user's sleep state is the falling asleep state, then in order to avoid a temporary increase in HRV and misjudgment as a falling asleep state, the user's sleep state can be determined to be the falling asleep state when it is determined that the HRV is in an increase for a certain length of time.
[0114] Specifically, a second time length during which the heart rate variability information is continuously higher than a second threshold is obtained; if the second time length is greater than a second specified threshold, the user's sleep state is determined to be the falling asleep state. The second specified threshold can be set based on experience, for example, 10 to 20 minutes.
[0115] In addition, the above-mentioned physiological parameters may include at least one of body movement parameters, heart rate parameters, respiration, blood oxygen, body temperature and other data, and the operation data of the wearable device may also be added, wherein the operation data of the wearable device may include the screen status of the wearable device, the screen status is named the first screen status, and the screen status of the wearable device is named the second screen status.
[0116] Therefore, the above-mentioned implementation method of determining the user's sleep state according to the screen state and physiological parameters can be changed to determining the user's sleep state according to the first screen state, the second screen state and physiological parameters, and the above-mentioned implementation method of determining whether the screen state is the screen-off state or the screen-on state can be changed to determining the screen-on and screen-off state of the first screen state and the second screen state. The above-mentioned implementation method of determining that the user's sleep state is the sleeping state if the screen state is the screen-off state is changed to determining that the user's sleep state is the sleeping state if the first screen state and the second screen state are both the screen-off states. The above-mentioned implementation method of obtaining the user's heart rate variability information if the screen state is the screen-on state is changed to obtaining the user's heart rate variability information if the first screen state and the second screen state are both the screen-on states. The specific implementation method can be replaced with reference to the aforementioned embodiment and will not be repeated here.
[0117] See also Fig.10 , which shows a structural block diagram of a sleep monitoring device provided by an embodiment of the present application. The sleep monitoring device 1000 may include: a first acquisition unit 1001, a second acquisition unit 1002 and a determination unit 1003.
[0118] The first acquiring unit 1001 is configured to acquire the screen status of the target terminal.
[0119] The second acquisition unit 1002 is used to acquire physiological parameters of the user, where the physiological parameters include at least one of a body movement parameter and a heart rate parameter.
[0120] Furthermore, the second acquisition unit 1002 is further configured to acquire the physiological parameters of the user through a wearable device of the user, and the wearable device of the user is associated with the target terminal.
[0121] The determination unit 1003 is used to determine the sleep state of the user according to the screen state and physiological parameters.
[0122] Furthermore, the determination unit 1003 is also used to determine the user's physical state based on the user's physiological parameters; determine whether the physical state meets a preset characteristic condition, the preset characteristic condition being the physical state of the user in a sleeping state; if the preset characteristic condition is met, determine whether the screen state is an off state or a bright state; determine whether the user is asleep based on the screen-on-off state judgment result; if the preset characteristic condition is not met, determine that the user's sleeping state is an awake state.
[0123] Furthermore, the determination unit 1003 is further configured to determine that the user's sleep state is the sleeping state if the screen state is the screen-off state.
[0124] Furthermore, the determination unit 1003 is also used to obtain the user's heart rate variability information if the screen state is a bright screen state, and the heart rate variability information is used to characterize the sympathetic nerve activity of the user; if the heart rate variability information is higher than a second threshold, determine that the user's sleep state is the sleeping state; if the heart rate variability information is not higher than the second threshold, determine that the user's sleep state is the awake state.
[0125] Furthermore, the determination unit 1003 is also used to obtain a first time length that the screen state continues to be in the bright screen state if the screen state is the bright screen state; if the first time length is greater than a first specified threshold, obtain the user's heart rate variability information.
[0126] Furthermore, the determination unit 1003 is also used to obtain a second time length during which the heart rate variability information continues to be higher than the second threshold if the heart rate variability information is higher than a second threshold; if the second time length is greater than a second specified threshold, determine that the user's sleep state is the sleeping state.
[0127] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0128] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0129] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0130] Please refer to Fig.11 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may be the target terminal or server mentioned above.
[0131] The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a screen 130, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method as described in the aforementioned method embodiment.
[0132] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0133] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.
[0134] Please refer to Fig.12 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 1200 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0135] The computer readable storage medium 1200 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 1200 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1200 has storage space for program code 1210 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 1210 can be compressed, for example, in an appropriate form.
[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A sleep monitoring method, characterized in that: Used in electronic equipment, including: Get the screen status of the target terminal; Acquiring physiological parameters of the user, wherein the physiological parameters include heart rate parameters; Determine the user's physical state according to the physiological parameters, wherein the physical state includes a heartbeat state; Determining whether the body state meets a preset characteristic condition, wherein the preset characteristic condition is a body state characteristic corresponding to a sleep state; the sleep state includes a sleeping state and a wakeful state; If the physical state meets the preset characteristic condition, the sleep state of the user is determined according to the screen state, wherein the determining the sleep state of the user according to the screen state includes: if it is determined that the screen state is the screen-off state, the sleep state of the user is determined to be the sleeping state; if it is determined that the screen state is the screen-on state, the heart rate variability information of the user is obtained according to the heart rate parameter; if the heart rate variability information is greater than a second threshold, the sleep state of the user is determined to be the sleeping state; if the heart rate variability information is not greater than the second threshold, the sleep state of the user is determined to be the awake state; or, the determining the sleep state of the user according to the screen state includes: if it is determined that the screen state is the screen-on state, the sleep state of the user is determined to be the awake state; if it is determined that the screen state is the screen-off state, the heart rate variability information of the user is obtained according to the heart rate parameter; if the heart rate variability information is less than a fourth threshold, the sleep state of the user is determined to be the awake state; if the heart rate variability information is not less than the fourth threshold, the sleep state of the user is determined to be the sleeping state; If the body state does not satisfy the preset characteristic condition, the sleeping state of the user is determined to be the awake state.
2. The method according to claim 1, characterized in that: The determining that the screen state is a bright screen state includes: If the duration for which the screen state continues to be in the screen-on state is greater than a fifth threshold, it is determined that the screen state is the screen-on state.
3. The method according to claim 1, characterized in that: The obtaining of the screen status of the target terminal includes: Acquire a screen status of a target terminal associated with the user, the target terminal including at least one of a mobile terminal, a wearable device, and an audio and video playback device; The obtaining of the user's physiological parameters includes: Acquiring physiological parameters of the user through a wearable device worn by the user; Among them, there is an association relationship between the target terminal and the wearable device.
4. A sleep monitoring device, characterized in that: Applied to electronic equipment, the device comprises: A first acquisition unit, used to acquire the screen status of the target terminal; A second acquisition unit, configured to acquire physiological parameters of the user, wherein the physiological parameters include heart rate parameters; A determination unit is used to determine the user's physical state according to the physiological parameters, the physical state including the heartbeat state; determine whether the physical state meets a preset characteristic condition, the preset characteristic condition is a physical state characteristic corresponding to the sleep state; the sleep state includes a falling asleep state and a waking state; if the physical state meets the preset characteristic condition, determine the user's sleep state according to the screen state; if the physical state does not meet the preset characteristic condition, determine the user's sleep state to be the waking state; wherein, determining the user's sleep state according to the screen state includes: if it is determined that the screen state is the screen-off state, determine the user's sleep state to be the falling asleep state; if it is determined that the screen state is the screen-on state, obtain the user's sleep state according to the heart rate parameter Obtain the heart rate variability information of the user; if the heart rate variability information is greater than a second threshold, determine that the user's sleep state is the falling asleep state; if the heart rate variability information is not greater than the second threshold, determine that the user's sleep state is the awake state; or, determine the user's sleep state according to the screen state, including: if it is determined that the screen state is a bright screen state, determine that the user's sleep state is the awake state; if it is determined that the screen state is an off screen state, obtain the user's heart rate variability information according to the heart rate parameter; if the heart rate variability information is less than a fourth threshold, determine that the user's sleep state is the awake state; if the heart rate variability information is not less than the fourth threshold, determine that the user's sleep state is the falling asleep state.
5. An electronic device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1 to 3.
6. A computer-readable medium, characterized in that The computer-readable medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the method according to any one of claims 1 to 3.
