Sleep management method, device and equipment and storage medium

By obtaining the user's real-time routine and historical sleep data, the sleep reminder time is scientifically determined, which solves the problem of failing to flexibly adapt to the user's actual situation and sleep needs in the existing technology, and improves the effectiveness and user experience of sleep reminder.

CN119763825APending Publication Date: 2025-04-04DONGGUAN DERUCCI BEDDING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411828880.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The existing sleep reminder technology fails to consider the user's real-time routine and cannot flexibly adapt to the user's actual situation and sleep needs, reducing the effectiveness of sleep reminder.

Method used

By obtaining the object state detection information of the target object and the predetermined sleep attribute information, the sleep reminder time of the target object is scientifically determined based on this information, and a reminder is made when the set sleep reminder conditions are met.

Benefits of technology

Ensure that sleep reminders meet the user's sleep needs without disturbing the user's normal life, helping users establish regular sleep patterns and improve sleep quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119763825A_ABST
    Figure CN119763825A_ABST
Patent Text Reader

Abstract

The invention discloses a sleep management method and device, equipment and a storage medium. Object state detection information of a target object on a to-be-managed day is acquired, sleep attribute information predetermined relative to the target object is acquired, and the sleep attribute information is determined according to historical sleep data of the target object; determining sleep reminding time of the target object on the to-be-managed day according to the object state detection information and the sleep attribute information; and when it is determined that the set sleep reminding condition is met, performing sleep reminding on the target object according to the sleep reminding time. According to the method, the sleep reminding time of the target object on the to-be-managed day is scientifically determined according to the object state detection information and the sleep attribute information, and sleep reminding is performed on the target object according to the sleep reminding time when the set sleep reminding condition is met, so that the sleep reminding is ensured to meet the sleep requirement of a user, and the sleep reminding efficiency is improved. The normal life of the user is not disturbed, a regular sleep mode is established for the user, and the sleep quality is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home technology, and in particular to a sleep management method, device, equipment and storage medium. Background Art

[0002] Sleep reminder is a function designed to help users improve their sleeping habits and sleep quality. It is usually integrated into smartphones, smart watches or other smart wearable devices. Users can set the time according to their own schedule and sleep needs. When the set time is approaching, the device will remind the user to go to bed through sound, vibration or screen display.

[0003] Currently, the sleep reminder time is mainly set by the user or the time when the user usually goes to bed, but it does not take into account the user's real-time work and rest situation, and cannot flexibly adapt to the user's actual situation and sleep needs, which reduces the effectiveness of the sleep reminder. Summary of the invention

[0004] The present invention provides a sleep management method, device, equipment and storage medium to solve the problem that the current method of determining the sleep reminder time does not take into account the user's real-time work and rest situation and cannot flexibly adapt to the user's actual situation and sleep needs.

[0005] In a first aspect, an embodiment of the present invention provides a sleep management method, the method comprising:

[0006] Acquire object state detection information of the target object on the day to be managed, and acquire predetermined sleeping attribute information relative to the target object, wherein the sleeping attribute information is determined according to historical sleep data of the target object;

[0007] Determining a sleep reminder time for the target object on the day to be managed according to the object state detection information and the sleeping attribute information;

[0008] When it is determined that the set sleep reminder condition is met, a sleep reminder is given to the target object according to the sleep reminder time.

[0009] In a second aspect, an embodiment of the present invention provides a sleep management device, the device comprising:

[0010] An information acquisition module, used to acquire object state detection information of a target object on a day to be managed, and to acquire predetermined sleeping attribute information relative to the target object, wherein the sleeping attribute information is determined based on historical sleep data of the target object;

[0011] A reminder time determination module, used to determine the sleep reminder time of the target object on the day to be managed according to the object state detection information and the sleep attribute information;

[0012] The sleep reminder module is used to provide a sleep reminder to the target object according to the sleep reminder time when it is determined that the set sleep reminder condition is met.

[0013] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:

[0014] at least one processor;

[0015] and a memory communicatively coupled to the at least one processor;

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the sleep management method described in any embodiment of the present invention.

[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the sleep management method described in any embodiment of the present invention when executed.

[0018] The technical solution of the embodiment of the present invention obtains the object state detection information of the target object on the day to be managed, and obtains the predetermined sleeping attribute information relative to the target object, the sleeping attribute information is determined according to the historical sleep data of the target object; the sleeping reminder time of the target object on the day to be managed is determined according to the object state detection information and the sleeping attribute information; when it is determined that the set sleep reminder conditions are met, the target object is given a sleep reminder according to the sleep reminder time. This method scientifically determines the sleep reminder time of the target object on the day to be managed according to the object state detection information and the sleeping attribute information, and when the set sleep reminder conditions are met, the target object is given a sleep reminder according to the sleep reminder time, so as to ensure that the sleep reminder not only meets the user's sleep needs, but also does not disturb the user's normal life, and helps the user establish a regular sleep pattern and improve sleep quality.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A flowchart of a sleep management method provided by an embodiment of the present invention;

[0022] Figure 2 A schematic diagram of the structure of a sleep management device provided by an embodiment of the present invention;

[0023] Figure 3 A schematic diagram of the structure of an electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] It should be noted that the sleep reminder time in the current sleep reminder function is mainly determined by user settings or based on the user's regular sleeping time. It does not take into account the user's real-time work and rest situation, and cannot flexibly adapt to the user's actual situation and sleep needs, reducing the effectiveness of the sleep reminder.

[0027] Based on this, an embodiment of the present invention provides a sleep management method. Figure 1 A flowchart of a sleep management method provided in an embodiment of the present invention. The embodiment of the present invention is applicable to the scenario of sleep reminder. The method can be executed by a sleep management device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which is preferably a mobile terminal, a desktop computer, a laptop computer, a smart watch, a smart bracelet, and a server.

[0028] like Figure 1 As shown, the sleep management method provided by the embodiment of the present invention may specifically include:

[0029] S101 . Obtain object state detection information of a target object on a day to be managed, and obtain sleeping attribute information predetermined relative to the target object, where the sleeping attribute information is determined based on historical sleep data of the target object.

[0030] Among them, the target object can be understood as an individual with sleep management needs. The day to be managed can be understood as the date on which sleep management is required. The day to be managed is set by the user according to the needs, and the initialization setting of the sleep management device can also be adopted. It can be understood that when performing sleep management on the target object, it is necessary to collect sleep data of some dates in advance, so the day to be managed needs to be set after a certain time. The object state detection information can be understood as the state data of the target object on the day to be managed detected in real time, which may include the bed time, sleep state, heart rate and breathing rate of the target object on the day to be managed. The object state detection information can be detected in real time by the sleep monitoring sensor. The structure and principle of the sleep monitoring sensor are prior art and will not be repeated here. The sleeping attribute information can be understood as information related to the sleeping habits of the target object obtained based on the historical sleep data of the target object, such as the average time to fall asleep, the average sleep time, the sleep cycle, and the average sleep latency from going to bed to falling asleep. Historical sleep data can be understood as the target object's sleep record data over a period of time in the past. It is used to determine the target object's sleep pattern and habits by analyzing these data in order to set or adjust the sleep management of the target user. Historical sleep data may include the time of falling asleep and the time of going to bed.

[0031] In this embodiment, the object state detection information of the target object on the day to be managed can be obtained in real time through a wearable device such as a smart watch worn by the user or a device with a detection function such as a smart mattress, and the sleeping attribute information relative to the target object determined in advance based on the historical sleep data of the target object can be obtained. Exemplarily, the method of determining the sleeping attribute information relative to the target object based on the historical sleep data of the target object can be determined by statistical analysis or by artificial intelligence algorithm analysis.

[0032] It is understandable that the time for acquiring the object status detection information on the day to be managed can be set, such as real-time acquisition only from 17:00 to 3:00 on the day to be managed, to ensure the effectiveness of sleep management.

[0033] S102: Determine the sleep reminder time of the target object on the day to be managed according to the object state detection information and the sleeping attribute information.

[0034] Among them, the bed reminder time can be understood as the time to remind the target object to go to bed, which is set according to the habits and needs of the target object. It is used to help users regulate their sleeping habits and improve their sleep quality. The bed reminder time can be determined based on factors such as the user's sleeping habits, work schedule, and life habits.

[0035] In this embodiment, based on the object state detection information and the sleeping attribute information, the best time when the target object may or should fall asleep is predicted through preset rules, and the predicted best time is determined as the bed reminder time of the target object on the day to be managed.

[0036] S103: When it is determined that the set sleep reminder condition is met, a sleep reminder is given to the target object according to the sleep reminder time.

[0037] Among them, the sleep reminder conditions can be understood as the conditions for determining whether to perform a sleep reminder, which may include whether there is a certain sleep reminder time, whether the target object has entered a sleep state, whether the target object has gone to bed, or whether the target object is in a specific area, etc.

[0038] In this embodiment, the sleep reminder condition is preset according to actual needs. When the sleep reminder time is reached, if it is determined that the preset sleep reminder condition is met, the target object is reminded to sleep according to the sleep reminder time. Exemplarily, the sleep reminder can be in at least one of ringing, vibration, voice reminder or light emitting.

[0039] A sleep management method provided by an embodiment of the present invention obtains object state detection information of a target object on a day to be managed, and obtains predetermined sleeping attribute information relative to the target object, wherein the sleeping attribute information is determined according to the historical sleep data of the target object; determines the sleep reminder time of the target object on the day to be managed according to the object state detection information and the sleeping attribute information; and when it is determined that the set sleep reminder conditions are met, performs a sleep reminder on the target object according to the sleep reminder time. The method scientifically determines the sleep reminder time of the target object on the day to be managed according to the object state detection information and the sleeping attribute information, and performs a sleep reminder on the target object according to the sleep reminder time when the set sleep reminder conditions are met, so as to ensure that the sleep reminder not only meets the user's sleep needs, but also does not disturb the user's normal life, thereby helping the user to establish a regular sleep pattern and improve sleep quality.

[0040] As a first optional embodiment of this embodiment, based on the above embodiment, the step of determining the sleeping attribute information according to the historical sleep data of the target object can be concretized as follows:

[0041] a1) Obtaining historical sleep data of the target subject in a set number of historical days.

[0042] The historical days may be understood as the pre-set days for collecting and analyzing the sleep data of the target object.

[0043] In this embodiment, the real-time sleep data of the target object in each set historical day is collected and recorded in advance to form historical sleep data.

[0044] It is understandable that the time period for collecting and recording historical sleep data in historical days can be set according to needs, such as collecting and recording historical sleep data from 17:00 to 3:00 in set historical days, or collecting and recording historical sleep data from 11:00 to 2:00 in set historical days.

[0045] b1) According to the historical sleep data, the historical bedtime and historical sleep time of the target object on each of the set historical days are counted.

[0046] In this embodiment, according to the acquired historical sleep data, statistics are collected on the target object's historical bedtime and historical sleep time for each of the set historical days.

[0047] c1) determining the target object's sleeping attribute information according to the target object's daily historical bedtime and historical sleep onset time, wherein the sleeping attribute information includes a benchmark sleeping onset time point and a benchmark sleep latency duration of the target object.

[0048] The benchmark sleep onset time can be understood as the time when the target subject most often falls asleep in the set historical days. The benchmark sleep latency can be understood as the duration between the target subject's most accustomed historical bedtime and historical sleep onset time in the set historical days, that is, how long it usually takes for the target subject to fall asleep after going to bed.

[0049] In this embodiment, the sleeping attribute information of the target object is determined according to the historical bedtime and historical sleep time of each day.

[0050] Exemplarily, based on the historical bedtime and sleep onset time of each day, the benchmark sleep onset time point and the benchmark sleep latency duration in the target object's sleep attribute information are determined. The average value of the historical bedtime can be determined and used as the benchmark sleep onset time point, and the average value of the historical sleep onset time can be used, and the duration between the average value of the historical bedtime and the average value of the historical sleep onset time can be determined as the benchmark sleep latency duration.

[0051] Exemplarily, based on the historical bedtime and historical sleep onset time of each day, the benchmark sleep onset time and the benchmark sleep latency duration in the sleep attribute information of the target object are determined. Alternatively, the interval in which each historical bedtime is located is determined, and the minimum interval value, maximum interval value, or the average value within the interval with the highest proportion is selected as the benchmark bedtime; then the interval in which each historical sleep onset time is determined, and the minimum interval value, maximum interval value, or the average value within the interval with the highest proportion is selected as the benchmark sleep onset time point; and then the duration between the benchmark bedtime and the benchmark sleep onset time point is used as the benchmark sleep latency duration.

[0052] Exemplarily, the benchmark sleeping time and the benchmark sleep latency duration in the sleeping attribute information of the target object are determined based on the historical bedtime and historical sleep onset time of each day. Alternatively, the interval in which each historical sleeping time is located is determined, and the minimum interval value, the maximum interval value, or the average value within the interval in the interval with the highest proportion is selected as the benchmark sleeping time; the difference between the historical bedtime and the historical bedtime of each day is determined as the corresponding sleep latency duration, and the sleep latency duration interval to which each sleep latency duration belongs is determined, and the minimum interval value, the maximum interval value, or the average value within the interval in the interval with the highest proportion is selected as the benchmark sleep latency duration.

[0053] The above technical scheme of this embodiment monitors and records the user's historical sleep data, and determines the sleeping attribute information of the target object according to the historical sleep data. The sleeping attribute information not only includes the benchmark sleeping time point of the target object, but also includes the benchmark sleep latency duration, which can better adapt to the user's actual sleeping habits, thereby improving the accuracy and fit of the subsequent determination of the bed reminder time, effectively helping users to regulate their sleeping habits, improve sleep quality, and thus improve user experience.

[0054] As one implementation method, this optional embodiment can further specify the sleep attribute information of the target object according to the historical bedtime and historical sleep time of each day as follows:

[0055] c11) Determine the sleeping time interval to which the historical sleeping time belongs each day, count the sleeping time interval with the highest proportion and record it as the benchmark sleeping time interval.

[0056] In this embodiment, the sleeping time is divided into multiple intervals in advance, for example, from 20:00 to 3:00, each half hour is an interval, such as 23:00-23:30. After acquiring the historical sleep data, the sleeping time interval to which the historical sleeping time belongs is determined, and the sleeping time interval in which each historical sleeping time falls the most is counted as the habitual sleeping time range of the target object, which is recorded as the benchmark sleeping time interval.

[0057] c12) determining the minimum interval value in the reference sleeping time interval as the reference sleeping time point of the target subject.

[0058] In this embodiment, the minimum interval value in the reference sleeping time interval is determined, that is, the earliest time in the reference sleeping time interval, and the minimum interval value is determined as the reference sleeping time point of the target object.

[0059] Exemplarily, the benchmark sleeping time interval is 23:00-23:30, and the benchmark sleeping time point is determined to be 23:00.

[0060] c13) determining the difference between the historical sleep onset time and the historical bedtime of each day as the corresponding sleep latency duration, and determining the sleep latency duration interval to which each sleep latency duration belongs.

[0061] In this embodiment, the sleep latency duration is pre-divided into multiple intervals, such as one interval for every half an hour, that is, the sleep latency duration interval can be set to 0-30 minutes, 30-60 minutes, etc. The corresponding sleep latency duration of each day is determined by calculating the time interval between the historical sleeping time and the historical bedtime in the historical sleep data, and the sleep latency duration interval to which each sleep latency duration belongs is determined.

[0062] c14) Counting the sleep latency duration intervals with the highest proportion and recording them as benchmark sleep latency duration intervals, and determining the minimum interval value in the benchmark sleep latency duration intervals as the benchmark sleep latency duration of the target object.

[0063] In this embodiment, the sleep latency duration interval in which each sleep latency duration falls most often is counted as the habitual sleep latency duration range of the target object, and the sleep latency duration interval is recorded as the benchmark sleep latency duration interval, and the minimum interval value in the benchmark sleep latency duration interval, that is, the earliest time, is determined as the benchmark sleep latency duration of the target object.

[0064] Exemplarily, if the reference sleep latency time interval is 30-60 minutes, the reference sleep latency time is determined to be 30 minutes.

[0065] c15) constructing sleep onset attribute information based on the benchmark sleep onset time point and the benchmark sleep latency duration.

[0066] In this embodiment, the sleeping attribute information includes a reference sleeping time point and a reference sleep latency duration, which are used to help understand the sleeping pattern and habits of the target object.

[0067] The above technical scheme of the present embodiment determines the benchmark sleep onset time interval and the benchmark sleep latency duration interval respectively by counting the highest proportion of the sleep onset time interval and the sleep latency duration interval in the historical sleep data of the target object, and determines the minimum interval value in the benchmark sleep onset time interval and the benchmark sleep latency duration interval as the benchmark sleep onset time point and the benchmark sleep latency duration respectively, thereby reducing the influence of randomness and realizing efficient and accurate personalized evaluation of the target object's sleep pattern and habits; the sleep onset attribute information is formed based on the benchmark sleep onset time point and the benchmark sleep latency duration. Since the benchmark sleep latency duration is added to the sleep onset attribute information, the real-time work and rest situation of the target object is taken into consideration, which provides strong support for providing the target object with flexible and accurate bed reminder time in the future.

[0068] As a second optional embodiment of this embodiment, the step of determining the sleep reminder time of the target object on the day to be managed according to the object state detection information and the sleeping attribute information can be specifically optimized into the following steps:

[0069] a2) If the object bedtime in the object state detection information is empty, then determining that the bedtime reminder time of the to-be-managed day is empty.

[0070] The object's bedtime can be understood as the initial moment when the target object's position is found to be in bed.

[0071] In this embodiment, if the object bedtime in the object state detection information is empty, that is, it is considered that the target object has not gone to bed on the day to be managed, then it is determined that the bedtime reminder time of the day to be managed is empty.

[0072] b2) When the subject's bedtime is less than or equal to the benchmark sleep onset time in the sleep attribute information, determine the time cumulative value of the subject's bedtime and the benchmark sleep latency duration in the sleep attribute information, and determine the minimum value of the time cumulative value and the benchmark sleep onset time as the bed reminder time.

[0073] In this embodiment, when the subject's bedtime is less than or equal to the benchmark sleep latency time in the sleep attribute information, the cumulative time of the subject's bedtime and the benchmark sleep latency duration in the sleep attribute information is determined, and the minimum value between the benchmark sleep time and the cumulative time, that is, the earliest time, is determined as the bed reminder time.

[0074] Exemplarily, when the subject's bedtime is less than or equal to the reference sleeping time in the sleeping attribute information, the method of determining the sleeping reminder time can be expressed as follows:

[0075] t sum =t d +t q ;

[0076] T 1 =min(t s ,t sum );

[0077] Among them, t sum is the accumulated value of time, t d is the subject's bedtime, t q is the baseline sleep latency, t s is the baseline sleep time, T 1 The sleep reminder time is when the subject's bedtime is less than or equal to the benchmark sleep time.

[0078] c2) When the subject's bedtime is greater than the benchmark sleeping time in the sleeping attribute information, the sleeping reminder time is determined according to a given sleeping time determination formula combined with the subject's bedtime, the benchmark sleeping time and the benchmark sleep latency duration.

[0079] In this embodiment, when the subject's bedtime is greater than the reference sleeping time in the sleeping attribute information, the given sleeping time determination formula can be expressed as:

[0080] T 2 =t d +max(0,0.5*t q -0.5*(t d -t s ));

[0081] Among them, T 2 The sleeping reminder time is when the subject's bedtime is greater than the reference sleeping time in the sleeping attribute information.

[0082] The above technical scheme of this embodiment provides a method for determining the sleep reminder time according to the different real-time work and rest situations of the target object. By flexibly determining the most suitable sleep reminder time for reminding the target object to go to bed according to the target object's sleep habits and real-time work and rest situations, it is more in line with the actual situation of the target object, and improves the effectiveness of helping the target object to develop regular sleep habits and improve sleep quality, thereby improving the user experience.

[0083] As a third optional embodiment of this embodiment, when it is determined that the set sleep reminder condition is met, the sleep reminder is given to the target object according to the sleep reminder time, which can be specifically implemented as the following steps:

[0084] a3) When the sleep reminder time is not empty, if the current time of the day to be managed reaches the sleep reminder time, and the object sleep state in the object state detection information is a non-sleep state, then a sleep reminder is triggered for the target object at the sleep reminder time.

[0085] In this embodiment, if the sleep reminder time of the day to be managed is not empty, that is, when the bedtime of the subject of the day to be managed is obtained, then when the current time reaches the determined sleep reminder time, the sleep state of the target subject is determined according to the sleep state of the subject in the object state detection information obtained in real time. If the sleep state of the subject is a non-sleep state, indicating that the target subject has not fallen asleep, a sleep reminder is triggered for the target subject at the sleep reminder time.

[0086] Exemplarily, when the bedtime of the object on the day to be managed is obtained, the sleep reminder time is determined, such as 22:34. Then, when the clock of the electronic device where the sleep management device is located reaches 22:34, the real-time detected object state detection information is obtained, and the sleep state of the object in the object state detection information is determined. If it is a non-sleep state, a sleep reminder is triggered.

[0087] The above technical scheme of this embodiment triggers accurate and effective sleep reminders by determining the sleep reminder time after confirming that the target object has gone to bed, and determining whether the object's sleep state is a non-sleep state after the sleep reminder time is reached, thereby ensuring that the sleep reminder meets the user's sleep needs and does not disturb the user's normal life.

[0088] As a fourth optional embodiment of this embodiment, based on the above embodiment, it also includes:

[0089] a4) when the sleep reminder time is empty, canceling the sleep reminder for the target object on the to-be-managed day.

[0090] In this embodiment, if the target object has not gone to bed on the day to be managed, the object's bedtime is empty and the corresponding sleep reminder time is also empty, that is, the effective sleep reminder time on the day to be managed is not determined. At this time, the sleep reminder for the target object on the day to be managed is canceled.

[0091] The above technical scheme of this embodiment does not trigger the sleep reminder for the target object when the sleep reminder time on the day to be managed is empty. The sleep reminder service is flexibly adjusted in real time according to the specific work and rest situation of the target object on the day to be managed, so as to avoid disturbing the user at inappropriate time or sending sleep reminder when it is unnecessary, thereby improving the flexibility, adaptability and personalization of sleep management and optimizing the user experience.

[0092] As a fifth optional embodiment of this embodiment, when it is determined that the set sleep reminder condition is met, the sleep reminder is given to the target object according to the sleep reminder time, which can be specifically implemented as the following steps:

[0093] a5) When the sleep reminder time is not empty, if the current time of the day to be managed reaches the sleep reminder time and the object sleep state in the object state detection information is the sleep state, then cancel the sleep reminder for the target object at the sleep reminder time.

[0094] In this embodiment, if the sleep reminder time of the day to be managed is not empty, when the current time of the day to be managed reaches the sleep reminder time, the object sleep state in the object state detection information is obtained. If the object sleep state is a sleeping state, it indicates that the target object has fallen asleep, that is, there is no need to provide a sleep reminder to the target object, then the sleep reminder for the target object at the sleep reminder time is canceled.

[0095] According to the above technical solution of this embodiment, when the sleep reminder time is not empty, if the sleep state of the object in the object state detection information is a sleep state when the current time reaches the sleep reminder time, the sleep reminder for the target object at the sleep reminder time is canceled to avoid mistakenly disturbing the target object who has fallen asleep, thereby ensuring the sleep quality and experience of the target object.

[0096] Figure 2 This is a schematic diagram of the structure of a sleep management device provided by an embodiment of the present invention. Figure 2 As shown, the device includes: an information acquisition module 21, a reminder time determination module 22 and a sleep reminder module 23, wherein:

[0097] An information acquisition module 21 is used to acquire object state detection information of a target object on a day to be managed, and acquire sleeping attribute information predetermined relative to the target object, wherein the sleeping attribute information is determined based on historical sleep data of the target object;

[0098] A reminder time determination module 22, used to determine the sleep reminder time of the target object on the day to be managed according to the object state detection information and the sleep attribute information;

[0099] The sleep reminder module 23 is used to provide a sleep reminder to the target object according to the sleep reminder time when it is determined that the set sleep reminder condition is met.

[0100] A sleep management device provided by an embodiment of the present invention obtains object state detection information of a target object on a day to be managed, and obtains predetermined sleeping attribute information relative to the target object, wherein the sleeping attribute information is determined according to the historical sleep data of the target object; determines the sleep reminder time of the target object on the day to be managed according to the object state detection information and the sleeping attribute information; and when it is determined that the set sleep reminder condition is met, gives the target object a sleep reminder according to the sleep reminder time. This method scientifically determines the sleep reminder time of the target object on the day to be managed according to the object state detection information and the sleeping attribute information, and gives the target object a sleep reminder according to the sleep reminder time when the set sleep reminder condition is met, so as to ensure that the sleep reminder not only meets the user's sleep needs, but also does not disturb the user's normal life, thereby helping the user to establish a regular sleep pattern and improve sleep quality.

[0101] Furthermore, the sleep management device further includes a sleeping attribute information determination module, and the sleeping attribute information determination module may specifically include:

[0102] A unit, used to obtain the historical sleep data of the target object in a set number of historical days;

[0103] A unit, for counting the historical bedtime and historical sleep time of the target object on each of the set historical days according to the historical sleep data;

[0104] The unit is used to determine the sleeping attribute information of the target object according to the historical bedtime and historical sleep onset time of each day, wherein the sleeping attribute information includes a reference sleeping onset time point and a reference sleep latency duration of the target object.

[0105] Furthermore, the unit can be used to:

[0106] Determine the sleeping time interval to which the historical sleeping time belongs each day, count the sleeping time interval with the highest proportion and record it as the benchmark sleeping time interval;

[0107] Determining the minimum interval value in the reference sleeping time interval as the reference sleeping time point of the target object;

[0108] The difference between the historical sleep onset time and the historical bedtime of each day is determined as the corresponding sleep latency duration, and the sleep latency duration interval to which each sleep latency duration belongs is determined;

[0109] Counting the sleep latency duration interval with the highest proportion and recording it as the benchmark sleep latency duration interval, and determining the minimum interval value in the benchmark sleep latency duration interval as the benchmark sleep latency duration of the target object;

[0110] The sleep onset attribute information is formed based on the reference sleep onset time point and the reference sleep latency duration.

[0111] Furthermore, the reminder time determination module 22 can be specifically used for:

[0112] If the object bedtime in the object state detection information is empty, then it is determined that the bedtime reminder time of the to-be-managed day is empty; otherwise,

[0113] When the subject's bedtime is less than or equal to the benchmark sleep latency time in the sleep attribute information, determining a time accumulation value of the subject's bedtime and the benchmark sleep latency in the sleep attribute information, and determining the minimum value of the time accumulation value and the benchmark sleep latency as the sleep reminder time;

[0114] When the subject's bedtime is greater than the benchmark sleeping time in the sleeping attribute information, the sleeping reminder time is determined according to a given sleeping time determination formula combined with the subject's bedtime, the benchmark sleeping time and the benchmark sleep latency duration.

[0115] Furthermore, the sleep reminder module 23 can be specifically used for:

[0116] When the sleep reminder time is not empty, if the current time of the day to be managed reaches the sleep reminder time, and the object sleep state in the object state detection information is a non-sleep state, a sleep reminder is triggered for the target object at the sleep reminder time.

[0117] Furthermore, the sleep management device also includes a first sleep reminder cancellation module, which can be specifically used to:

[0118] When the sleep reminder time is empty, the sleep reminder for the target object on the to-be-managed day is canceled.

[0119] Furthermore, the sleep management device also includes a second sleep reminder cancellation module, which can be specifically used to:

[0120] When the sleep reminder time is not empty, if the current time of the to-be-managed day reaches the sleep reminder time and the object sleep state in the object state detection information is the sleep state, the sleep reminder for the target object at the sleep reminder time is canceled.

[0121] The sleep management device provided in the embodiment of the present invention can execute the sleep management method provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.

[0122] Figure 3A schematic diagram of the structure of an electronic device 30 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0123] like Figure 3 As shown, the electronic device 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 32 or the computer program loaded from the storage unit 38 to the random access memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 can also be stored. The processor 31, the ROM 32, and the RAM 33 are connected to each other through a bus 34. An input / output (I / O) interface 35 is also connected to the bus 34.

[0124] A number of components in the electronic device 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disk, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0125] The processor 31 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 31 performs the various methods and processes described above, such as the sleep management method.

[0126] In some embodiments, the sleep management method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the sleep management method described above may be performed. Alternatively, in other embodiments, the processor 31 may be configured to perform the sleep management method in any other appropriate manner (e.g., by means of firmware).

[0127] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0128] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0129] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0130] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0131] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0132] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0133] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0134] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A sleep management method, characterized in that: include: Acquire object state detection information of the target object on the day to be managed, and acquire predetermined sleeping attribute information relative to the target object, wherein the sleeping attribute information is determined according to historical sleep data of the target object; Determining a sleep reminder time for the target object on the day to be managed according to the object state detection information and the sleeping attribute information; When it is determined that the set sleep reminder condition is met, a sleep reminder is given to the target object according to the sleep reminder time.

2. The method according to claim 1, characterized in that: The step of determining the sleeping attribute information according to the historical sleep data of the target object comprises: Obtaining historical sleep data of the target subject in a set number of historical days; According to the historical sleep data, the historical bedtime and historical sleep time of the target subject are counted for each of the set historical days; The target object's sleeping attribute information is determined according to the target object's daily historical bedtime and historical sleep onset time. The sleeping attribute information includes a benchmark sleep onset time point and a benchmark sleep latency duration of the target object.

3. The method according to claim 2, characterized in that The step of determining the target object's sleeping attribute information based on the target object's historical bedtime and sleeping time every day includes: Determine the sleeping time interval to which the historical sleeping time belongs each day, count the sleeping time interval with the highest proportion and record it as the benchmark sleeping time interval; Determining the minimum interval value in the reference sleeping time interval as the reference sleeping time point of the target object; The difference between the historical sleep onset time and the historical bedtime of each day is determined as the corresponding sleep latency duration, and the sleep latency duration interval to which each sleep latency duration belongs is determined; Counting the sleep latency duration interval with the highest proportion and recording it as the benchmark sleep latency duration interval, and determining the minimum interval value in the benchmark sleep latency duration interval as the benchmark sleep latency duration of the target object; The sleep onset attribute information is formed based on the reference sleep onset time point and the reference sleep latency duration.

4. The method according to claim 1, characterized in that: The step of determining the sleep reminder time of the target object on the day to be managed according to the object state detection information and the sleep attribute information includes: If the object bedtime in the object state detection information is empty, then it is determined that the bedtime reminder time of the to-be-managed day is empty; otherwise, When the subject's bedtime is less than or equal to the benchmark sleep latency time in the sleep attribute information, determining a time accumulation value of the subject's bedtime and the benchmark sleep latency in the sleep attribute information, and determining the minimum value of the time accumulation value and the benchmark sleep latency as the sleep reminder time; When the subject's bedtime is greater than the benchmark sleeping time in the sleeping attribute information, the sleeping reminder time is determined according to a given sleeping time determination formula combined with the subject's bedtime, the benchmark sleeping time and the benchmark sleep latency duration.

5. The method according to claim 1, characterized in that When it is determined that the set sleep reminder condition is met, the target object is given a sleep reminder according to the sleep reminder time, including: When the sleep reminder time is not empty, if the current time of the day to be managed reaches the sleep reminder time, and the object sleep state in the object state detection information is a non-sleep state, a sleep reminder is triggered for the target object at the sleep reminder time.

6. The method according to claim 1, characterized in that Also includes: When the sleep reminder time is empty, the sleep reminder for the target object on the to-be-managed day is canceled.

7. The method according to claim 1, characterized in that Also includes: When the sleep reminder time is not empty, if the current time of the to-be-managed day reaches the sleep reminder time and the object sleep state in the object state detection information is the sleep state, the sleep reminder for the target object at the sleep reminder time is canceled.

8. A sleep management device, characterized in that: include: An information acquisition module, used to acquire object state detection information of a target object on a day to be managed, and to acquire predetermined sleeping attribute information relative to the target object, wherein the sleeping attribute information is determined based on historical sleep data of the target object; A reminder time determination module, used to determine the sleep reminder time of the target object on the to-be-managed day according to the object state detection information and the sleep attribute information; The sleep reminder module is used to provide a sleep reminder to the target object according to the sleep reminder time when it is determined that the set sleep reminder condition is met.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the sleep management method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the sleep management method according to any one of claims 1 to 7 when executed.