CN115985066B - Method, device, system and storage medium for automatically waking up user - Google Patents

Method, device, system and storage medium for automatically waking up user Download PDF

Info

Publication number
CN115985066B
CN115985066B CN202310266353.5A CN202310266353A CN115985066B CN 115985066 B CN115985066 B CN 115985066B CN 202310266353 A CN202310266353 A CN 202310266353A CN 115985066 B CN115985066 B CN 115985066B
Authority
CN
China
Prior art keywords
sleep state
current
user
wake
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310266353.5A
Other languages
Chinese (zh)
Other versions
CN115985066A (en
Inventor
王炳坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
De Rucci Healthy Sleep Co Ltd
Original Assignee
De Rucci Healthy Sleep Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by De Rucci Healthy Sleep Co Ltd filed Critical De Rucci Healthy Sleep Co Ltd
Priority to CN202310266353.5A priority Critical patent/CN115985066B/en
Publication of CN115985066A publication Critical patent/CN115985066A/en
Application granted granted Critical
Publication of CN115985066B publication Critical patent/CN115985066B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Electric Clocks (AREA)

Abstract

The invention discloses a method, a device, a system and a storage medium for automatically waking up a user. The method for automatically waking up the user comprises the following steps: acquiring a preset wake-up rule; acquiring the current sleep state of a user; determining whether the current sleep state accords with the preset wake-up rule; if the current sleep state accords with the preset wake-up rule, wake-up information is sent out; and if the current sleep state does not accord with the preset wake-up rule, executing the step of determining whether the current sleep state accords with the preset wake-up rule. By adopting the scheme, the problem that the direct timed awakening of the user possibly causes poor physical and mental states after the user is awakened is solved.

Description

Method, device, system and storage medium for automatically waking up user
Technical Field
The present invention relates to the technical field of sleep, and in particular, to a method, apparatus, system, and storage medium for automatically waking up a user.
Background
With the increasing attention of people to sleep, various sleep monitoring and sleep-aiding products appear on the market, for example, the sleep of a person usually has a sleep cycle, each sleep cycle can be divided into a first sleep stage, a second sleep stage, a deep sleep stage, a dream sleep stage and other sleep states, the existing sleep monitoring products can usually detect whether a user is in the sleep state and which sleep state is in the sleep cycle when the user is in the sleep state, but the monitoring is usually only carried out simply, then the sleep quality of the user is scored according to the time of each sleep state, and the method for waking up the user in the sleep is less.
Among the existing wake-up methods, the timed wake-up is the most commonly used method, which is simple, direct and basically limited to the timed wake-up by sound and vibration. However, in medical research, it is found that drowsiness is felt after a deeper sleep state (e.g., second or deep sleep) is awakened, and that mental state is better if a complete sleep cycle is passed or sleep is shallow (e.g., first sleep), while the dream content is remembered when awakened during dream sleep. Therefore, the existing method for directly waking up the user at fixed time may cause the problem of poor physical and mental state after the user is woken up.
Disclosure of Invention
The invention provides a method, a device, a system and a storage medium for automatically waking up a user, which are used for solving the problem that the direct timed wake-up of the user may cause poor physical and mental states after the user is woken up.
According to an aspect of the present invention, there is provided a method of automatically waking up a user, the method of automatically waking up a user comprising:
acquiring a preset wake-up rule;
acquiring the current sleep state of a user;
determining whether the current sleep state accords with the preset wake-up rule;
if the current sleep state accords with the preset wake-up rule, wake-up information is sent out;
And if the current sleep state does not accord with the preset wake-up rule, executing the step of determining whether the current sleep state accords with the preset wake-up rule.
In an optional embodiment of the present invention, before determining whether the current sleep state meets the preset wake-up rule, the method further includes:
acquiring a preset wake-up time period;
acquiring the current time in real time;
determining whether the current time is in the preset wake-up time period;
if yes, executing the step of determining whether the current sleep state accords with the preset wake-up rule;
if not, executing the step of determining whether the current time is in a preset wake-up time period;
in an optional embodiment of the present invention, after the acquiring the current time in real time, the method further includes:
acquiring sleep state priority;
determining a first sleep state based on the sleep state priority and the preset wake-up time period, wherein the first sleep state is the sleep state with the highest priority in the preset wake-up time period;
correspondingly, the determining whether the current sleep state meets the preset wake-up rule includes:
determining whether the current sleep state is a first sleep state or whether the priority of the current sleep state is greater than the priority of the first sleep state;
If the current sleep state is a first sleep state or the priority of the current sleep state is greater than that of the first sleep state, determining that the current sleep state accords with the preset wake-up rule;
if the current sleep state is not the first sleep state and the priority of the current sleep state is smaller than or equal to the priority of the first sleep state, determining that the current sleep state does not accord with the preset wake-up rule.
In an optional embodiment of the invention, before the determining the first sleep state based on the sleep state priority and the preset wake-up period, the method further includes:
establishing a historical sleep state library of the user in the preset wake-up time period;
correspondingly, the determining the first sleep state based on the sleep state priority and the preset wake-up period includes:
acquiring the historical sleep state library of the user in the preset wake-up time period;
determining a sleep state with the highest priority in the historical sleep state library based on the sleep state priority;
and determining the sleep state with the highest priority in the historical sleep state library as a first sleep state.
In an optional embodiment of the present invention, the establishing a historical sleep state library of the user in the preset wake-up period includes:
acquiring a sleep state of a user history in the preset wake-up time period;
determining the occurrence probability of the sleep state which occurs in the preset wake-up time period;
determining the sleep state with the occurrence probability larger than the preset probability as a historical sleep state;
and storing the historical sleep state to form a historical sleep state library.
In an optional embodiment of the present invention, after determining whether the current sleep state meets the preset wake-up rule, the method further includes:
determining whether wake-up information is sent out in the preset wake-up time period;
if yes, sending out wake-up information at the last time point of the preset wake-up time period;
if not, executing the step of determining whether to send out the wake-up information in the preset wake-up time period.
In an optional embodiment of the invention, after the sending out the wake-up information, the method further includes:
determining whether a wake-up information closing instruction is acquired;
if yes, stopping sending the awakening information;
if not, continuously sending out the awakening information for a plurality of times, wherein the interval duration of the awakening information for two adjacent times is a first duration, and the duration of the awakening information for each time is a second duration;
And/or the awakening information comprises at least one of sound information, illumination information and vibration information;
and/or the sleep state comprises at least two of an awake state, a first-stage state of shallow sleep, a second-stage state of shallow sleep, a deep sleep state, and a dream sleep state.
According to another aspect of the present invention, there is provided an apparatus for automatically waking up a user, the apparatus for automatically waking up a user comprising:
the rule acquisition module is used for acquiring a preset wake-up rule;
the sleep acquisition module is used for acquiring the current sleep state of the user;
the rule determining module is used for determining whether the current sleep state accords with the preset wake-up rule;
the information sending module is used for sending awakening information if the current sleep state accords with the preset awakening rule;
and the rule execution module is used for executing the step of determining whether the current sleep state accords with the preset awakening rule or not if the current sleep state does not accord with the preset awakening rule.
According to another aspect of the present invention, there is provided a system for automatically waking up a user, the system for automatically waking up a user comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of automatically waking up a user according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a method of automatically waking up a user according to any embodiment of the present invention.
According to the technical scheme, the preset awakening rule is obtained firstly, then the current sleep state of the user is obtained, whether the current sleep state accords with the preset awakening rule is further determined, and finally awakening information is sent out when the current sleep state accords with the preset awakening rule. Therefore, the user can wake up in an expected sleep state according to the sleep state of the user, not only in a designated time, but also according to the self demand, the user can set a wake-up rule, and the problem that the direct timed wake-up of the user possibly causes poor physical and mental states after the user is awakened is solved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for automatically waking up a user according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for automatically waking up a user according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a method for automatically waking up a user according to a third embodiment of the present invention;
FIG. 4 is a flowchart of a method for automatically waking up a user according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for automatically waking up a user according to a fifth embodiment of the present invention;
Fig. 6 is a schematic diagram of a system for automatically waking up a user, which implements a method for automatically waking up a user according to an embodiment of the present invention.
Wherein: 51. a rule acquisition module; 52. a sleep acquisition module; 53. a rule determination module; 54. an information transmitting module; 55. and a rule execution module.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for automatically waking up a user according to an embodiment of the present invention, where the method for automatically waking up a user may be performed by a device for automatically waking up a user, the device for automatically waking up a user may be implemented in hardware and/or software, and the device for automatically waking up a user may be configured in a wearable device. As shown in fig. 1, the method for automatically waking up a user includes:
s110, acquiring a preset wake-up rule.
The preset wake-up rule refers to a condition that a preset wake-up user needs to satisfy in advance, for example, when the user needs to wake up in a specific sleep state in a specific time period, the preset wake-up rule is that the current time is in the preset wake-up time period and the current sleep state is the specific sleep state, when the user only needs to wake up in the specific sleep state, the preset wake-up rule includes that the current sleep state is the preset wake-up sleep state, and the like, and different users may want to wake up in different situations, and the preset wake-up rule also varies according to different user requirements, which is not limited in detail herein, but only by way of illustration. The preset wake-up rule may be manually entered by the user, for example when the method of automatically waking up the user is configured in hardware and/or software inside the wearable device, the user may be able to enter through the input means provided the wearable device is configured with the input means, and the user may be able to enter through the smart terminal provided the wearable device is able to communicate remotely with the smart terminal.
S120, acquiring the current sleep state of the user.
The current sleep state refers to a current specific sleep state of the user, and optionally, the sleep state comprises at least two of an awake state, a first-stage state of shallow sleep, a second-stage state of shallow sleep, a deep sleep state and a dream sleep state. The method and apparatus for obtaining the current sleep state are related to the prior art in the art, and are not described herein.
S130, determining whether the current sleep state accords with the preset wake-up rule.
If the current sleep state meets the preset wake-up rule, step S140 is executed, and if the current sleep state does not meet the preset wake-up rule, step S130 is executed to determine whether the current sleep state meets the preset wake-up rule.
The preset wake-up rule indicates a condition that a preset wake-up user needs to meet in advance, so that whether the user should be awakened at the moment can be determined by determining whether the current sleep state meets the preset wake-up rule.
S140, sending out wake-up information.
The wake-up information is information for assisting in waking up the user, and optionally, the wake-up information includes at least one of sound information, illumination information and vibration information. If the current sleep state accords with the preset wake-up rule, wake-up information can be sent to wake up the user at the moment, and the user is enabled to wake up in the expected sleep state.
According to the scheme, the preset awakening rule is acquired firstly, then the current sleep state of the user is acquired, whether the current sleep state accords with the preset awakening rule is further determined, and finally awakening information is sent out when the current sleep state accords with the preset awakening rule. Therefore, the user can wake up in an expected sleep state according to the sleep state of the user, not only in a designated time, but also according to the self demand, the user can set a wake-up rule, and the problem that the direct timed wake-up of the user possibly causes poor physical and mental states after the user is awakened is solved.
In an optional embodiment of the invention, after the sending out the wake-up information, the method further includes:
it is determined whether a wake-up information shutdown instruction is acquired.
If yes, stopping sending the awakening information.
If not, continuously sending out the awakening information for a plurality of times, wherein the interval duration of the awakening information for two adjacent times is the first duration, and the duration of the awakening information for each time is the second duration.
The wake-up information closing instruction is an instruction for closing wake-up information, and theoretically, when a user is awakened by the wake-up information, the wake-up information is actively closed, so that the user can be ensured to be awakened up continuously after the user is not awakened up by the wake-up information closing instruction, and the user is in a current sleep state in time by stopping sending the wake-up information after the wake-up information closing instruction is acquired and continuously sending the wake-up information for a plurality of times when the wake-up information closing instruction is not acquired.
Example two
Fig. 2 is a flowchart of a method for automatically waking up a user according to a second embodiment of the present invention, where the relationship between the first embodiment and the above embodiment is an improvement of the first embodiment, and optionally, before determining whether the current sleep state meets the preset wake-up rule, the method further includes: acquiring a preset wake-up time period; acquiring the current time in real time; determining whether the current time is in the preset wake-up time period; if yes, executing the step of determining whether the current sleep state accords with the preset wake-up rule; if not, executing the step of determining whether the current time is in a preset wake-up time period; as shown in fig. 2, the method includes:
s210, acquiring a preset wake-up rule.
S220, acquiring the current sleep state of the user.
S230, acquiring a preset wake-up time period.
The preset wake-up time period refers to a time period which is preset in advance by a user and is expected to be waken up.
S240, acquiring the current time in real time.
Wherein, the current time refers to the current specific time.
S250, determining whether the current time is in the preset wake-up time period.
If yes, go to step S260, if no, go to step S250.
When the current time is in the preset awakening time period, the user can be determined whether to awaken according to the sleeping state of the user, and when the current time is not in the preset awakening time period, the user can be awakened in the expected sleeping state in the expected time period, and the problem that the physical and mental states of the user are poor after the user is awakened in the direct timing is solved.
S260, determining whether the current sleep state accords with the preset wake-up rule.
If the current sleep state meets the preset wake-up rule, step S270 is executed, and if the current sleep state does not meet the preset wake-up rule, step S260 is executed to determine whether the current sleep state meets the preset wake-up rule.
S270, sending out wake-up information.
According to the scheme, whether the current sleep state accords with the preset wake-up rule is determined when the current time is in the preset wake-up time period, so that the user can be awakened in the expected sleep state in the expected time period, the physical and mental states of the user after the user wakes up are improved, and the problem that the physical and mental states of the user after the user is awakened up are possibly caused by direct timed wake-up is solved.
Example III
Fig. 3 is a flowchart of a method for automatically waking up a user according to a third embodiment of the present invention, where the relationship between the present embodiment and the above embodiment is an improvement of the second embodiment, and optionally, after the current time is obtained in real time, the method further includes: acquiring sleep state priority; determining a first sleep state based on the sleep state priority and the preset wake-up time period, wherein the first sleep state is the sleep state with the highest priority in the preset wake-up time period; correspondingly, the determining whether the current sleep state meets the preset wake-up rule includes: determining whether the current sleep state is a first sleep state or whether the priority of the current sleep state is greater than the priority of the first sleep state; if the current sleep state is a first sleep state or the priority of the current sleep state is greater than that of the first sleep state, determining that the current sleep state accords with the preset wake-up rule; if the current sleep state is not the first sleep state and the priority of the current sleep state is smaller than or equal to the priority of the first sleep state, determining that the current sleep state does not accord with the preset wake-up rule; as shown in fig. 3, the method for automatically waking up a user includes:
S310, acquiring a preset wake-up rule.
S320, acquiring the current sleep state of the user.
S330, acquiring a preset wake-up time period.
S340, acquiring the current time in real time.
S350, acquiring sleep state priority.
The sleep state priority refers to a priority order of different sleep states, for example, a sleep state of a first period of shallow sleep is set to have the highest priority, a sleep state of a dream is set to have the highest priority, or a deep sleep state is set to have the lowest priority, so that a user can order the priorities of a plurality of sleep states according to own needs, or two different sleep states can be set to have the same priority. The user may also adjust the priority of the awakened sleep state according to his own needs and preference, for example, the priority of the sleep state is increased, which is not limited herein.
S360, determining a first sleep state based on the sleep state priority and the preset wake-up time period, wherein the first sleep state is the sleep state with the highest priority in the preset wake-up time period.
Different sleep states may exist in different preset wake-up time periods, and the sleep state priority refers to the priority order of the different sleep states, so that the first sleep state can be determined according to the sleep state priority and the preset wake-up time period.
S370, determining whether the current time is in the preset wake-up time period.
If yes, go to step S380, if no, go to step S370.
S380, determining whether the current sleep state is a first sleep state or whether the priority of the current sleep state is greater than the priority of the first sleep state.
If the current sleep state is a first sleep state or the priority of the current sleep state is greater than that of the first sleep state, determining that the current sleep state accords with the preset wake-up rule; at this time, step S390 is executed to send out wake-up information, and if the current sleep state is not the first sleep state and the priority of the current sleep state is less than or equal to the priority of the first sleep state, it is determined that the current sleep state does not conform to the preset wake-up rule, step S380 is executed to determine whether the current sleep state is the first sleep state or whether the priority of the current sleep state is greater than the priority of the first sleep state.
When the current sleep state is a first sleep state or the priority of the current sleep state is greater than that of the first sleep state, the current sleep state is a sleep state which is preferably wakened in a preset wake-up time period, and the user is wakened by sending wake-up information at this time, so that the user is wakened in a specific sleep state in a desired time period, the physical and mental states of the user after waking up are improved, and the problem that the physical and mental states of the user after waking up may be poor due to direct timed wake-up of the user is solved.
S390, sending out wake-up information.
In an optional embodiment of the invention, before the determining the first sleep state based on the sleep state priority and the preset wake-up period, the method further includes:
and establishing a historical sleep state library of the user in the preset wake-up time period.
Correspondingly, the determining the first sleep state based on the sleep state priority and the preset wake-up period includes:
and acquiring the historical sleep state library of the user in the preset wake-up time period.
And determining the sleep state with the highest priority in the historical sleep state library based on the sleep state priority.
And determining the sleep state with the highest priority in the historical sleep state library as a first sleep state.
The historical sleep state library refers to a set of sleep states in which a user has more sleep states in a preset wake-up period in the past when sleeping. The sleep states of the user are different due to different time periods, and the first sleep state refers to the sleep state with the highest priority in the historical sleep state library in the preset wake-up time period. And determining the sleep state with the highest priority in the history sleep state library as a first sleep state by acquiring the history sleep state library of the user in the preset wake-up time period and determining the sleep state with the highest priority in the history sleep state library based on the sleep state priority. The first sleep state can be conveniently determined, and the user can be helped to wake up in a better sleep state.
On the basis of the foregoing embodiment, the establishing a historical sleep state library of the user in the preset wake-up period includes:
and acquiring a sleep state of the user history in the preset wake-up time period.
And determining the occurrence probability of the sleep state which occurs in the preset wake-up time period.
And determining the sleep state with the occurrence probability larger than the preset probability as a historical sleep state.
And storing the historical sleep state to form a historical sleep state library.
The occurrence probability refers to the proportion of the sleep state in all sleep states, and due to the fact that some sleep states with very small occurrence probability possibly exist in the sleep data of the user history, the situation is rare, the sleep states with the occurrence probability larger than the preset probability are determined to be the history sleep states, and then the history sleep states are stored to form a history sleep state library, so that the history sleep state library is accurate and accords with the actual sleep situation of the user.
In an optional embodiment of the present invention, after determining whether the current sleep state meets the preset wake-up rule, the method further includes:
and determining whether wake-up information is sent out in the preset wake-up time period.
If yes, sending out wake-up information at the last time point of the preset wake-up time period.
If not, executing the step of determining whether to send out the wake-up information in the preset wake-up time period.
The preset wake-up period is usually an entire period, and the last time point of the preset wake-up period refers to the last time in the period, for example, a T-M period, and the last time point is M. Due to uncertainty of sleep states, the first sleep state or the sleep state with priority higher than that of the first sleep state may not appear in the whole preset wake-up time period of the user, and at this time, the user is woke up at the last time point of the preset wake-up time period, so that the user can wake up in time, and the user is prevented from missing the preset wake-up time period.
Example IV
Fig. 4 is a flowchart of a method for automatically waking up a user according to a fourth embodiment of the present invention, where the relationship between the fourth embodiment and the above embodiment is that the second embodiment is improved, and optionally, the preset wake-up rule includes a preset wake-up sleep state, and the determining whether the current sleep state meets the preset wake-up rule includes: determining whether the current sleep state is the same as the preset wake-up sleep state; when the current sleep state is the same as the preset awakening sleep state, the current sleep state accords with the preset awakening rule, and when the current sleep state is different from the preset awakening sleep state, the current sleep state does not accord with the preset awakening rule. As shown in fig. 4, the method for automatically waking up a user includes:
S410, acquiring a preset wake-up rule.
S420, acquiring the current sleep state of the user.
S430, acquiring a preset wake-up time period.
S440, acquiring the current time in real time.
S450, determining whether the current time is in the preset wake-up time period.
If yes, go to step S460, otherwise go to step S450.
S460, determining whether the current sleep state is the same as the preset wake-up sleep state.
When the current sleep state is the same as the preset wake-up sleep state, the current sleep state accords with the preset wake-up rule, step S470 is executed, and when the current sleep state is different from the preset wake-up sleep state, the current sleep state does not accord with the preset wake-up rule, and step S460 is executed.
S470, sending out wake-up information.
The preset awakening sleep state refers to a sleep state which is preset in advance and expected to be awakened by a user, and the user can be awakened in the sleep state expected to be awakened by sending awakening information when the current sleep state is the same as the preset awakening sleep state, so that the physical and mental states of the user after awakening are improved, and the problem that the physical and mental states of the user after awakening are bad due to the fact that the user is awakened directly and regularly is solved.
Example five
Fig. 5 is a schematic structural diagram of a device for automatically waking up a user according to a fifth embodiment of the present invention. As shown in fig. 5, the apparatus for automatically waking up a user includes:
the rule acquisition module 51 is configured to acquire a preset wake-up rule;
a sleep acquisition module 52, configured to acquire a current sleep state of a user;
a rule determining module 53, configured to determine whether the current sleep state meets the preset wake-up rule;
the information sending module 54 is configured to send wake-up information if the current sleep state meets the preset wake-up rule;
the rule execution module 55 is configured to execute the step of determining whether the current sleep state meets the preset wake-up rule if the current sleep state does not meet the preset wake-up rule.
Optionally, the apparatus for automatically waking up a user further includes:
the time period acquisition module is used for acquiring a preset wake-up time period;
the time acquisition module is used for acquiring the current time in real time;
the time determining module is used for determining whether the current time is in the preset wake-up time period or not;
the state execution module is used for executing the step of determining whether the current sleep state accords with the preset awakening rule if yes;
The time execution module is used for executing the step of determining whether the current time is in a preset wake-up time period or not if not;
on the basis of the above embodiment, the apparatus for automatically waking up a user further includes:
the priority acquisition module is used for acquiring sleep state priority;
the preferred state determining module is used for determining a first sleep state based on the sleep state priority and the preset awakening time period, wherein the first sleep state is the sleep state with the highest priority in the preset awakening time period;
accordingly, the rule determining module 53 is further configured to determine whether the current sleep state is a first sleep state or whether the priority of the current sleep state is greater than the priority of the first sleep state.
The first state determining module is configured to determine that the current sleep state meets the preset wake-up rule if the current sleep state is a first sleep state or the priority of the current sleep state is greater than the priority of the first sleep state;
and the second state determining module is used for determining that the current sleep state does not accord with the preset awakening rule if the current sleep state is not the first sleep state and the priority of the current sleep state is smaller than or equal to the priority of the first sleep state.
On the basis of the above embodiment, the apparatus for automatically waking up a user further includes:
the building module is used for building a historical sleep state library of the user in the preset wake-up time period;
accordingly, a preferred state determination module includes:
the state library acquisition sub-module is used for acquiring the historical sleep state library of the user in the preset wake-up time period;
the state determining submodule is used for determining a sleep state with highest priority in the historical sleep state library based on the sleep state priority;
preferably, the determining submodule is used for determining the sleep state with the highest priority in the historical sleep state library as the first sleep state.
In an alternative embodiment of the invention, the establishing module comprises:
the state acquisition sub-module is used for acquiring a sleep state of the user history in the preset wake-up time period;
the probability determination submodule is used for determining the occurrence probability of the sleep state which occurs in the preset wake-up time period;
the historical sleep state determining submodule is used for determining the sleep state with the occurrence probability larger than the preset probability as a historical sleep state;
and the storage submodule is used for storing the historical sleep states to form a historical sleep state library.
In an alternative embodiment of the present invention, the apparatus for automatically waking up a user further includes:
the wake-up determining module is used for determining whether wake-up information is sent out in the preset wake-up time period;
the wake-up sending module is used for sending out wake-up information at the last time point of the preset wake-up time period if yes;
and the wake-up execution module is used for executing the step of determining whether wake-up information is sent out in the preset wake-up time period if not.
In an alternative embodiment of the present invention, the apparatus for automatically waking up a user further includes:
the instruction acquisition module is used for determining whether a wake-up information closing instruction is acquired;
the stopping module is used for stopping sending the awakening information if yes;
the continuous sending module is used for continuously sending the awakening information for a plurality of times if not, the interval duration of the awakening information for two adjacent times is a first duration, and the duration of the awakening information for each time is a second duration;
in an alternative embodiment of the present invention, the wake-up information includes at least one of sound information, illumination information, vibration information;
in an alternative embodiment of the present invention, the sleep state includes at least two of an awake state, a first-stage state of shallow sleep, a second-stage state of shallow sleep, a deep sleep state, and a dream sleep state.
The device for automatically waking up the user provided by the embodiment of the invention can execute the method for automatically waking up the user provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example six
Fig. 6 illustrates a schematic diagram of a system 10 for automatically waking up a user that may be used to implement an embodiment of the present invention. The system for automatically waking a user is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers, which can communicate with a detection device capable of detecting a user's sleep state to obtain a user's current sleep state. The system for automatically waking up a user may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the system 10 for automatically waking up a user includes at least one processor 11, and a memory such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc. communicatively connected to the at least one processor 11, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required to automatically wake up the user's operation of the system 10 may also be stored. The processor 11, the ROM12 and the RAM13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
The various components in the system 10 that automatically wake up the user are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the system 10, which automatically wakes up the user, to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a method of automatically waking up a user.
In some embodiments, the method of automatically waking a user may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the system 10 that automatically wakes up the user via the ROM12 and/or the communication unit 19. When the computer program is loaded into RAM13 and executed by processor 11, one or more of the steps of the method of automatically waking up a user described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of automatically waking up the user in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out 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, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described herein may be implemented on a system that automatically wakes up the user with: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or a trackball) through which a user can provide input to a system that automatically wakes up the user. Other kinds of devices may also be used to provide for interaction with a user; for example, 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, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (7)

1. A method for automatically waking up a user, comprising:
acquiring a preset wake-up rule;
acquiring the current sleep state of a user;
determining whether the current sleep state accords with the preset wake-up rule;
if the current sleep state accords with the preset wake-up rule, wake-up information is sent out;
if the current sleep state does not accord with the preset wake-up rule, executing the step of determining whether the current sleep state accords with the preset wake-up rule;
Before determining whether the current sleep state meets the preset wake-up rule, the method further includes:
acquiring a preset wake-up time period;
acquiring the current time in real time;
determining whether the current time is in the preset wake-up time period;
if yes, executing the step of determining whether the current sleep state accords with the preset wake-up rule;
if not, executing the step of determining whether the current time is in a preset wake-up time period;
after the current time is obtained in real time, the method further comprises the following steps:
acquiring sleep state priority;
determining a first sleep state based on the sleep state priority and the preset wake-up time period, wherein the first sleep state is the sleep state with the highest priority in the preset wake-up time period;
correspondingly, the determining whether the current sleep state meets the preset wake-up rule includes:
determining whether the current sleep state is a first sleep state or whether the priority of the current sleep state is greater than the priority of the first sleep state;
if the current sleep state is a first sleep state or the priority of the current sleep state is greater than that of the first sleep state, determining that the current sleep state accords with the preset wake-up rule;
If the current sleep state is not the first sleep state and the priority of the current sleep state is smaller than or equal to the priority of the first sleep state, determining that the current sleep state does not accord with the preset wake-up rule;
before the first sleep state is determined based on the sleep state priority and the preset wake-up period, the method further includes:
establishing a historical sleep state library of the user in the preset wake-up time period;
correspondingly, the determining the first sleep state based on the sleep state priority and the preset wake-up period includes:
acquiring the historical sleep state library of the user in the preset wake-up time period;
determining a sleep state with the highest priority in the historical sleep state library based on the sleep state priority;
and determining the sleep state with the highest priority in the historical sleep state library as a first sleep state.
2. The method of automatically waking up a user of claim 1, wherein the establishing a historical sleep state library of the user over the preset wake-up period comprises:
acquiring a sleep state of a user history in the preset wake-up time period;
Determining the occurrence probability of the sleep state which occurs in the preset wake-up time period;
determining the sleep state with the occurrence probability larger than the preset probability as a historical sleep state;
and storing the historical sleep state to form a historical sleep state library.
3. The method of automatically waking up a user according to claim 1 or 2, wherein after determining whether the current sleep state meets the preset wake-up rule, further comprising:
determining whether wake-up information is sent out in the preset wake-up time period;
if yes, sending out wake-up information at the last time point of the preset wake-up time period;
if not, executing the step of determining whether to send out the wake-up information in the preset wake-up time period.
4. The method for automatically waking up a user according to claim 1 or 2, further comprising, after the issuing of the wake-up information:
determining whether a wake-up information closing instruction is acquired;
if yes, stopping sending the awakening information;
if not, continuously sending out the awakening information for a plurality of times, wherein the interval duration of the awakening information for two adjacent times is a first duration, and the duration of the awakening information for each time is a second duration;
And/or the awakening information comprises at least one of sound information, illumination information and vibration information;
and/or the sleep state comprises at least two of an awake state, a first-stage state of shallow sleep, a second-stage state of shallow sleep, a deep sleep state, and a dream sleep state.
5. An apparatus for automatically waking up a user, comprising:
the rule acquisition module is used for acquiring a preset wake-up rule;
the sleep acquisition module is used for acquiring the current sleep state of the user;
the rule determining module is used for determining whether the current sleep state accords with the preset wake-up rule;
the information sending module is used for sending awakening information if the current sleep state accords with the preset awakening rule;
the rule execution module is used for executing the step of determining whether the current sleep state accords with the preset awakening rule or not if the current sleep state does not accord with the preset awakening rule;
the apparatus for automatically waking up a user further comprises:
the time period acquisition module is used for acquiring a preset wake-up time period;
the time acquisition module is used for acquiring the current time in real time;
the time determining module is used for determining whether the current time is in the preset wake-up time period or not;
The state execution module is used for executing the step of determining whether the current sleep state accords with the preset awakening rule if yes;
the time execution module is used for executing the step of determining whether the current time is in a preset wake-up time period or not if not;
the priority acquisition module is used for acquiring sleep state priority;
the preferred state determining module is used for determining a first sleep state based on the sleep state priority and the preset awakening time period, wherein the first sleep state is the sleep state with the highest priority in the preset awakening time period;
correspondingly, the rule determining module is further configured to determine whether the current sleep state is a first sleep state or whether the priority of the current sleep state is greater than the priority of the first sleep state;
the first state determining module is configured to determine that the current sleep state meets the preset wake-up rule if the current sleep state is a first sleep state or the priority of the current sleep state is greater than the priority of the first sleep state;
the second state determining module is configured to determine that the current sleep state does not conform to the preset wake-up rule if the current sleep state is not the first sleep state and the priority of the current sleep state is less than or equal to the priority of the first sleep state;
The building module is used for building a historical sleep state library of the user in the preset wake-up time period;
accordingly, a preferred state determination module includes:
the state library acquisition sub-module is used for acquiring the historical sleep state library of the user in the preset wake-up time period;
the state determining submodule is used for determining a sleep state with highest priority in the historical sleep state library based on the sleep state priority;
preferably, the determining submodule is used for determining the sleep state with the highest priority in the historical sleep state library as the first sleep state.
6. A system for automatically waking a user, the system for automatically waking a user comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of automatically waking up a user of any one of claims 1-4.
7. A computer readable storage medium storing computer instructions for causing a processor to execute the method of automatically waking a user according to any one of claims 1-4.
CN202310266353.5A 2023-03-20 2023-03-20 Method, device, system and storage medium for automatically waking up user Active CN115985066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310266353.5A CN115985066B (en) 2023-03-20 2023-03-20 Method, device, system and storage medium for automatically waking up user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310266353.5A CN115985066B (en) 2023-03-20 2023-03-20 Method, device, system and storage medium for automatically waking up user

Publications (2)

Publication Number Publication Date
CN115985066A CN115985066A (en) 2023-04-18
CN115985066B true CN115985066B (en) 2023-07-11

Family

ID=85965193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310266353.5A Active CN115985066B (en) 2023-03-20 2023-03-20 Method, device, system and storage medium for automatically waking up user

Country Status (1)

Country Link
CN (1) CN115985066B (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158956B (en) * 2014-07-21 2016-03-30 小米科技有限责任公司 Terminal carries out method and the device of sleep awakening
CN106730232B (en) * 2016-12-09 2018-06-12 山东瀚岳智能科技股份有限公司 A kind of intelligence awakening method and system
CN107561919A (en) * 2017-09-05 2018-01-09 深圳天珑无线科技有限公司 A kind of method of adjustment of timer, terminal and the device with store function
CN111357267B (en) * 2018-04-28 2021-10-22 华为技术有限公司 Alarm clock ringing time setting method and device and electronic equipment
CN108810300A (en) * 2018-04-28 2018-11-13 平安科技(深圳)有限公司 The method and its control method and device of adjustment intelligent terminal the tinkle of bells
JP2020174745A (en) * 2019-04-15 2020-10-29 西川株式会社 Pillow and sleep state control system
CN111077785A (en) * 2019-11-05 2020-04-28 珠海格力电器股份有限公司 Awakening method, awakening device, terminal and storage medium
CN111558120B (en) * 2020-05-07 2022-07-19 上海闻泰电子科技有限公司 Sleep wake-up method, device, computer equipment and computer readable storage medium
JP2022023282A (en) * 2020-07-27 2022-02-08 Not A Hotel株式会社 Awakening support system

Also Published As

Publication number Publication date
CN115985066A (en) 2023-04-18

Similar Documents

Publication Publication Date Title
CN112530056B (en) Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium
CN112445147A (en) Awakening method, system and device of intelligent equipment, electronic equipment and storage medium
CN115309462A (en) Equipment awakening method, device, system, electronic equipment and storage medium
CN104052861B (en) A kind of terminal and its awakening method
CN115904656A (en) State control method, device and equipment applied to chip and storage medium
US9612652B2 (en) Controlling power consumption by power management link
US8521855B2 (en) Centralized server-directed power management in a distributed computing system
CN112767935B (en) Awakening index monitoring method and device and electronic equipment
CN115985066B (en) Method, device, system and storage medium for automatically waking up user
CN113050783B (en) Terminal control method and device, mobile terminal and storage medium
CN116594563A (en) Distributed storage capacity expansion method and device, electronic equipment and storage medium
CN115426287B (en) System monitoring and optimizing method and device, electronic equipment and medium
CN104571461A (en) Terminal
EP4311480A1 (en) Method for monitoring sleep, apparatus, device, and storage medium
CN113256238A (en) Reminding method and device and electronic equipment
CN116147204A (en) Water consumption reminding method and device, electronic equipment and storage medium
CN115755859A (en) Network fault diagnosis method, device and medium based on local network
CN116503407B (en) Method and device for detecting foreign object region in image and electronic equipment
CN115616954A (en) Wake-up method and device for electric toothbrush, electronic equipment and storage medium
CN117290179B (en) Method, device, equipment and storage medium for determining event timeout state
CN108541053B (en) Power saving method and device and electronic equipment
CN115191935A (en) Physiological parameter monitoring method and device, intelligent wearable device and storage medium
CN116467136A (en) Smoothness monitoring method, device and equipment for application program and storage medium
CN116013464A (en) Sleep quality improving method, device, equipment and storage medium
CN117409776A (en) Voice interaction method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant