CN115985066A - 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
CN115985066A
CN115985066A CN202310266353.5A CN202310266353A CN115985066A CN 115985066 A CN115985066 A CN 115985066A CN 202310266353 A CN202310266353 A CN 202310266353A CN 115985066 A CN115985066 A CN 115985066A
Authority
CN
China
Prior art keywords
sleep state
preset
user
awakening
current
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.)
Granted
Application number
CN202310266353.5A
Other languages
Chinese (zh)
Other versions
CN115985066B (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 awakening rule; acquiring the current sleep state of a user; determining whether the current sleep state meets the preset awakening rule; if the current sleep state accords with the preset awakening rule, sending awakening information; and if the current sleep state does not accord with the preset awakening rule, executing a step of determining whether the current sleep state accords with the preset awakening rule. By adopting the scheme, the problem that the physical and mental states of the user are not good after the user is awakened due to direct timing awakening of the user is solved.

Description

Method, device, system and storage medium for automatically waking up user
Technical Field
The present invention relates to the field of sleep technologies, and in particular, to a method, an apparatus, a system, and a storage medium for automatically waking up a user.
Background
As people pay more attention to sleep, various sleep monitoring and sleep-assisting products appear in the market, for example, people usually have sleep cycles, each sleep cycle can be divided into sleep states such as a light sleep first period, a light sleep second period, deep sleep, sleep in dream and the like, the existing sleep monitoring products can usually detect whether a user is in the sleep state and which sleep state of the sleep cycle is specifically in the sleep state, but usually only carry out monitoring simply, then score the sleep quality of the user according to the time of each sleep state, and a few methods for waking up the user in sleep are available.
Of the existing wake-up methods, timed wake-up is the most common method, which is simple, straightforward and basically limited to 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., light second or deep sleep) is awakened, that mental state is better if the sleep state is awakened after a complete sleep cycle or when the sleep state is shallow (e.g., light first), and that awakening in dream sleep remembers the dream contents. Therefore, the conventional method for waking up the user directly at regular time may cause the problem that the physical and mental states of the user are not good 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 physical and mental states of the user are not good after the user is wakened up due to the fact that the user is wakened up directly at regular time.
According to an aspect of the present invention, there is provided a method of automatically waking up a user, the method comprising:
acquiring a preset awakening rule;
acquiring the current sleep state of a user;
determining whether the current sleep state meets the preset awakening rule;
if the current sleep state accords with the preset awakening rule, sending awakening information;
and if the current sleep state does not accord with the preset awakening rule, executing a step of determining whether the current sleep state accords with the preset awakening 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 awakening time period;
acquiring current time in real time;
determining whether the current time is in the preset wake-up time period;
if yes, executing a step of determining whether the current sleep state accords with the preset awakening rule;
if not, executing a step of determining whether the current time is in a preset awakening time period;
in an optional embodiment of the present invention, after the obtaining the current time in real time, the method further includes:
acquiring a sleep state priority;
determining a first sleep state based on the sleep state priority and the preset awakening time period, wherein the first sleep state is a sleep state with the highest priority in the preset awakening 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 a priority of the current sleep state is greater than a 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 meets the preset awakening rule;
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, determining that the current sleep state does not accord with the preset awakening rule.
In an optional embodiment of the present invention, before determining the first sleep state based on the sleep state priority and the preset wake-up time period, the method further includes:
establishing a historical sleep state library of the user in the preset awakening time period;
correspondingly, the determining the first sleep state based on the sleep state priority and the preset wake-up time period includes:
acquiring the historical sleep state library of the user in the preset awakening time period;
determining a sleep state with a 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 time period includes:
acquiring a sleep state of a user which appears in the history in the preset awakening time period;
determining the probability of occurrence of the sleep state occurring in the preset wake-up time period;
determining the sleep state with the occurrence probability larger than a 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 to send out awakening information within the preset awakening time period;
if so, sending out wake-up information at the last time point of the preset wake-up time period;
and if not, executing the step of determining whether to send out the awakening information in the preset awakening time period.
In an optional embodiment of the present invention, after sending the wake-up message, the method further includes:
determining whether a wake-up information closing instruction is acquired;
if so, stopping sending the awakening information;
if not, continuously sending the awakening information for multiple times, wherein the interval duration of the two adjacent awakening information is a first duration, and the duration of each awakening information 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 states comprise at least two of a waking state, a first-stage light sleep state, a second-stage light sleep state, a deep sleep state and a dreaming sleep state.
According to another aspect of the present invention, there is provided an apparatus for automatically waking up a user, the apparatus comprising:
the rule acquisition module is used for acquiring a preset awakening rule;
the sleep acquisition module is used for acquiring the current sleep state of the user;
a rule determining module, configured to determine whether the current sleep state meets the preset wake-up rule;
the information sending module is used for sending out 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 comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method of automatically waking a user according to any embodiment of the 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 implement the method of automatically waking up a user according to any one of the embodiments of the present invention when executed.
According to the technical scheme of the embodiment of the invention, the preset awakening rule is firstly obtained, then the current sleep state of the user is obtained, whether the current sleep state accords with the preset awakening rule or not is further determined, and finally the awakening information is sent out when the current sleep state accords with the preset awakening rule. Therefore, the user can wake up in the expected sleep state according to the sleep state of the user, the user can set the wake-up rule according to the self requirement instead of only waking up at the appointed time, and the problem that the physical and mental states of the user are not good after the user is wakened up by directly waking up the user regularly is solved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for automatically waking up a user according to an 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 an apparatus for automatically waking up a user according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a system for automatically waking up a user, which implements the method for automatically waking up a user according to the embodiment of the present invention.
Wherein: 51. a rule acquisition module; 52. a sleep acquisition module; 53. a rule determination module; 54. an information sending module; 55. and a rule execution module.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or 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 one
Fig. 1 is a flowchart of a method for automatically waking up a user according to an embodiment of the present invention, where the embodiment is applicable to a situation where the user wakes up the user while sleeping, the method for automatically waking up the user may be executed by a device for automatically waking up the user, the device for automatically waking up the user may be implemented in a form of hardware and/or software, and the device for automatically waking up the user may be configured inside a wearable device. As shown in fig. 1, the method for automatically waking up a user includes:
and S110, acquiring a preset awakening rule.
The preset wake-up rule refers to a condition that a preset wake-up user needs to meet, 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 in the specific sleep state, when the user only needs to wake up in the specific sleep state, the preset wake-up rule may include that the current sleep state is in the preset wake-up sleep state, and the like, different users may want to wake up in different situations, and the preset wake-up rule may be different according to different user requirements, which is not specifically limited herein, but is only exemplified. The preset wake-up rule may be manually input by a user, for example, when the method for automatically waking up a user is configured inside the wearable device in the form of hardware and/or software, the user can input through the input device if the wearable device is configured with the input device, and the user can input through the smart terminal if the wearable device can perform remote communication with the smart terminal.
And 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 includes at least two of an awake state, a light sleep first-stage state, a light sleep second-stage state, a deep sleep state, and a dream sleep state. The method and apparatus for acquiring the current sleep state are prior art in the field and will not be described herein.
S130, determining whether the current sleep state meets the preset awakening rule.
If the current sleep state meets the preset awakening rule, executing step S140, and if the current sleep state does not meet the preset awakening rule, executing step S130, and determining whether the current sleep state meets the preset awakening rule.
The preset awakening rule represents a condition which needs to be met by awakening a user preset 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 awakening rule or not.
And S140, sending out awakening information.
The wake-up information refers to information for assisting in waking up a 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 awakening rule, the awakening information can be sent to awaken the user at the moment, and the user can awaken in the expected sleep state.
According to the scheme, the preset awakening rule is firstly acquired, then the current sleep state of the user is acquired, whether the current sleep state meets the preset awakening rule or not is further determined, and finally the awakening information is sent out when the current sleep state meets the preset awakening rule. Therefore, the user can wake up in the expected sleep state according to the sleep state of the user, and not only can be awakened at the appointed time, but also can set an awakening rule according to the self requirement of the user, so that the problem that the physical and mental states of the user are not good after the user is awakened by directly awakening the user at regular time is solved.
In an optional embodiment of the present invention, after sending the wake-up message, the method further includes:
and determining whether a wake-up information closing instruction is acquired.
And if so, stopping sending the awakening information.
If not, the awakening information is continuously sent for multiple times, the interval duration of the two adjacent awakening information is the first duration, and the duration of the awakening information every time is the second duration.
The wake-up information closing instruction is an instruction for indicating to close wake-up information, and theoretically, after a user is awakened by the wake-up information, the wake-up information can be actively closed, so that the wake-up information is stopped being sent after the wake-up information closing instruction is obtained, the wake-up information is continuously sent for a plurality of times when the wake-up information closing instruction is not obtained, the interval duration of the two adjacent wake-up information is a first duration, the duration of the wake-up information every time is a second duration, the user can be continuously awakened after the wake-up information is sent for the first time and the user is not awakened, and the user can be awakened in the current sleep state in time.
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 a relationship between this embodiment and the foregoing embodiment is to improve 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 awakening 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 meets the preset awakening rule; if not, executing a step of determining whether the current time is in a preset awakening time period; as shown in fig. 2, the method includes:
s210, acquiring a preset awakening rule.
And S220, acquiring the current sleep state of the user.
And S230, acquiring a preset awakening time period.
The preset wake-up time period refers to a time period in which a user expects to be woken up, which is preset in advance.
And S240, acquiring the current time in real time.
Wherein, the current time refers to the current specific time.
And S250, determining whether the current time is in the preset awakening time period.
If so, go to step S260, otherwise go to step S250.
When the current time is in the preset awakening time period, the time period that the user expects to be awakened is indicated, whether the user needs to be awakened or not can be determined according to the sleep state of the user, and when the current time is not in the preset awakening time period, the time period that the user expects to be awakened is not indicated.
And S260, determining whether the current sleep state meets the preset awakening rule.
If the current sleep state meets the preset awakening rule, executing step S270, and if the current sleep state does not meet the preset awakening rule, executing step S260 and determining whether the current sleep state meets the preset awakening rule.
And S270, sending out awakening information.
According to the scheme, whether the current sleep state accords with the preset awakening rule or not is determined when the current time is in the preset awakening time period, so that the user can be awakened in the expected sleep state in the expected time period, the body and the mental state of the user after awakening are improved, and the problem that the body and the mental state of the user after awakening are not good due to the fact that the user is awakened at the direct timing 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 a relationship between this embodiment and the foregoing embodiment is an improvement of the second embodiment, and optionally, after the current time is obtained in real time, the method further includes: acquiring a sleep state priority; 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 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 a priority of the current sleep state is greater than a 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 meets the preset awakening 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, determining that the current sleep state does not accord with the preset awakening rule; as shown in fig. 3, the method for automatically waking up a user includes:
s310, obtaining a preset awakening rule.
And S320, acquiring the current sleep state of the user.
And S330, acquiring a preset awakening time period.
And S340, acquiring the current time in real time.
And S350, acquiring the priority of the sleep state.
The sleep state priority refers to a priority order of different sleep states, for example, the sleep state of the light sleep one-stage state is set to be the highest priority or the sleep state of the dream is set to be the highest priority, or the deep sleep state is set to be the lowest priority, so that a user can sort the priorities of a plurality of sleep states according to the needs of the user, or two different sleep states can be set to be the same priority. The user may also adjust the priority of the woken sleep state according to the needs and preferences of the user, for example, the priority of the dream sleep state is increased, which is not specifically limited herein.
S360, 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.
Different sleep states may exist in different preset wake-up time periods, and the sleep state priority refers to a priority sequence 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 periods.
And S370, determining whether the current time is in the preset wake-up time period.
If yes, go to step S380, otherwise 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 larger than that 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 meets the preset awakening rule; at this time, executing step S390, sending a wake-up message, 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, determining that the current sleep state does not conform to the preset wake-up rule, executing step S380, and determining 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 the first sleep state or the priority of the current sleep state is greater than the priority of the first sleep state, the current sleep state is a sleep state which is better to wake up in a preset wake-up time period, and the user is woken up in a specific sleep state in an expected time period by sending wake-up information at the time, so that the body and the mental state of the user after waking up are improved, and the problem that the body and the mental state of the user after waking up are not good due to the fact that the user is wakened up directly at regular time is solved.
And S390, sending out the awakening information.
In an optional embodiment of the present invention, before determining the first sleep state based on the sleep state priority and the preset wake-up time period, the method further includes:
and establishing a historical sleep state library of the user in the preset awakening time period.
Correspondingly, the determining the first sleep state based on the sleep state priority and the preset wake-up time period includes:
and acquiring the historical sleep state library of the user in the preset awakening time period.
Determining a highest priority sleep state 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 which are generated in a preset wake-up time period when a user sleeps in the past. The sleep states of the user are different in different time periods, and the first sleep state is the sleep state with the highest priority in the historical sleep state library in the preset awakening time period. Therefore, the sleep state with the highest priority in the historical sleep state library is determined as the first sleep state by acquiring the historical sleep state library of the user in the preset wake-up time period, determining the sleep state with the highest priority in the historical sleep state library based on the sleep state priority. The first sleep state can be conveniently determined, and the user is helped to be awakened in a better sleep state.
On the basis of the above embodiment, the establishing a historical sleep state library of the user in the preset wake-up time period includes:
and acquiring the sleep state of the user which appears in the history in the preset awakening time period.
And determining the occurrence probability of the sleep state occurring 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 ratio of the sleep state in all sleep states, some sleep states with very low occurrence probability may exist in the historical sleep data of the user, the situation is rare, the sleep state with the occurrence probability larger than the preset probability is determined to be the historical sleep state, and then the historical sleep state is stored to form a historical sleep state library, so that the historical sleep state library is accurate and meets 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 to send out awakening information in the preset awakening time period.
And if so, sending out the awakening information at the last time point of the preset awakening time period.
If not, executing the step of determining whether to send out the awakening information in the preset awakening time period.
The preset wakeup time period is usually a whole time period, the last time point of the preset wakeup time period refers to the last moment in the time period, for example, a T-M time period, and the last time point is M. Due to the uncertainty of the sleep state, the first sleep state or the sleep state with the priority higher than the priority 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 awakened 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 four
Fig. 4 is a flowchart of a method for automatically waking up a user according to a fourth embodiment of the present invention, where a relationship between this embodiment and the foregoing embodiments is to improve the second embodiment, 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 is proved to be in accordance with the preset awakening rule, and when the current sleep state is different from the preset awakening sleep state, the current sleep state is proved to be not in accordance with the preset awakening rule. As shown in fig. 4, the method for automatically waking up a user includes:
s410, acquiring a preset awakening rule.
And S420, acquiring the current sleep state of the user.
And S430, acquiring a preset awakening time period.
And S440, acquiring the current time in real time.
S450, determining whether the current time is in the preset awakening time period.
If yes, go to step S460, otherwise go to step S450.
And S460, determining whether the current sleep state is the same as the preset awakening sleep state.
When the current sleep state is the same as the preset wake-up sleep state, which indicates that the current sleep state conforms to the preset wake-up rule, step S470 is performed, and when the current sleep state is different from the preset wake-up sleep state, which indicates that the current sleep state does not conform to the preset wake-up rule, step S460 is performed.
And S470, sending out the awakening information.
The preset awakening sleep state refers to a sleep state which is preset by a user and expected to be awakened in advance, and the awakening information is sent when the current sleep state is the same as the preset awakening sleep state, so that the user can be awakened in the sleep state expected to be awakened, the body and the mental state of the user after being awakened are improved, and the problem that the body and the mental state of the user after being awakened are not good due to the fact that the user is awakened directly at regular time is solved.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an apparatus 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:
a rule obtaining module 51, configured to obtain a preset wake-up rule;
a sleep acquisition module 52, configured to acquire a current sleep state of the 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 out a wakeup information if the current sleep state meets the preset wakeup rule;
a rule executing module 55, configured to execute a 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 awakening time period;
the time acquisition module is used for acquiring the current time in real time;
a time determining module, configured to determine whether the current time is within the preset wake-up time period;
the state execution module is used for executing the step of determining whether the current sleep state accords with the preset awakening rule if the current sleep state accords with the preset awakening rule;
the time execution module is used for executing the step of determining whether the current time is in the preset awakening time period if the current time is not in the preset awakening time period;
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 the priority of the sleep state;
a preferred state determination module, configured to determine a first sleep state based on the sleep state priority and the preset wake-up time period, where the first sleep state is a sleep state with a highest priority within the preset wake-up time period;
correspondingly, 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.
A first state determination module, 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 a priority of the current sleep state is greater than a priority of the first sleep state;
and the second state determination 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 less 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 establishing module is used for establishing a historical sleep state library of the user in the preset awakening time period;
accordingly, a preferred state determination module includes:
the state library acquisition submodule is used for acquiring the historical sleep state library of the user in the preset awakening time period;
a state determination submodule for determining a sleep state with the highest priority in the historical sleep state library based on the sleep state priority;
and the preference determination 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 present invention, the establishing module includes:
the state acquisition submodule is used for acquiring a sleep state which is historically appeared in the preset awakening time period by the user;
a probability determination submodule, configured to determine occurrence probability of the sleep state occurring 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 state to form a historical sleep state library.
In an optional embodiment of the present invention, the apparatus for automatically waking up a user further comprises:
a wakeup determining module, configured to determine whether to send a wakeup message within the preset wakeup time period;
the wake-up sending module is used for sending wake-up information at the last time point of the preset wake-up time period if the preset wake-up time period is up;
and the awakening execution module is used for executing the step of determining whether to send awakening information in the preset awakening time period if not.
In an optional embodiment of the present invention, the apparatus for automatically waking up a user further comprises:
the instruction acquisition module is used for determining whether an awakening information closing instruction is acquired;
the stopping module is used for stopping sending the awakening information if the awakening information is received;
the continuous sending module is used for continuously sending the awakening information for multiple times if the awakening information is not sent for multiple times, the interval duration of the awakening information of every two adjacent times is a first duration, and the duration of the awakening information of each time is a second duration;
in an optional embodiment of the present invention, the wake-up information includes at least one of sound information, illumination information, and vibration information;
in an alternative embodiment of the invention, the sleep states include at least two of an awake state, a light first stage sleep state, a light second stage sleep state, a deep sleep state and a sleepy 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 corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 6 illustrates a block diagram of a system 10 for automatically waking 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 may communicate with a detection device capable of detecting a user's sleep state to obtain a current sleep state of the user. The system to automatically wake up the user may also represent various forms of mobile devices, such as personal digital processing, cellular phones, 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 communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can 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 a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required for the operation of the system 10 for automatically waking up the user can 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.
A number of components in the system 10 for automatically waking a user are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; 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.
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 dedicated Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The processor 11 performs the various methods and processes described above, such as the method of automatically waking 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 on the system 10 to automatically wake 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 steps of the method of automatically waking a user described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured by any other suitable means (e.g., by means of firmware) to perform a method of automatically waking up a user.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a 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 that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program 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, 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 performed. A computer program can execute entirely on a 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. A 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 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 an auto-wake user system having: 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 a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the system that automatically wakes the user. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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. A client and server are generally 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 host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for automatically waking a user, comprising:
acquiring a preset awakening rule;
acquiring the current sleep state of a user;
determining whether the current sleep state meets the preset awakening rule;
if the current sleep state accords with the preset awakening rule, sending awakening information;
and if the current sleep state does not accord with the preset awakening rule, executing a step of determining whether the current sleep state accords with the preset awakening rule.
2. The method of automatically waking a user according to claim 1, wherein before determining whether the current sleep state meets the preset wake-up rule, further comprising:
acquiring a preset awakening time period;
acquiring 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 meets the preset awakening rule;
and if not, executing the step of determining whether the current time is in a preset awakening time period.
3. The method of automatically waking a user according to claim 2, wherein after obtaining the current time in real time, further comprising:
acquiring the priority of a sleep state;
determining a first sleep state based on the sleep state priority and the preset awakening time period, wherein the first sleep state is a sleep state with the highest priority in the preset awakening 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 a priority of the current sleep state is greater than a 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 meets the preset awakening rule;
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, determining that the current sleep state does not accord with the preset awakening rule.
4. The method of automatically waking a user according to claim 3, wherein prior to determining a first sleep state based on the sleep state priority and the preset wake period, further comprising:
establishing a historical sleep state library of the user in the preset awakening time period;
correspondingly, the determining the first sleep state based on the sleep state priority and the preset wake-up time period includes:
acquiring the historical sleep state library of the user in the preset awakening time period;
determining a sleep state with a 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.
5. The method of automatically waking a user according to claim 4, wherein the establishing a historical sleep state library of the user within the preset wake-up time period comprises:
acquiring a sleep state of a user which occurs in the history in the preset awakening time period;
determining the probability of occurrence of the sleep state occurring in the preset wake-up time period;
determining the sleep state with the occurrence probability larger than a preset probability as a historical sleep state;
and storing the historical sleep state to form a historical sleep state library.
6. The method according to any of claims 2 to 5, wherein after determining whether the current sleep state meets the preset wake-up rule, further comprising:
determining whether to send out awakening information in the preset awakening time period;
if so, sending out wake-up information at the last time point of the preset wake-up time period;
and if not, executing the step of determining whether to send out the awakening information in the preset awakening time period.
7. Method for automatically waking a user according to any of claims 1 to 5, characterized in that after said issuing of a wake-up message, it further comprises:
determining whether a wake-up information closing instruction is acquired;
if so, stopping sending the awakening information;
if not, continuously sending the awakening information for multiple times, wherein the interval duration of the two adjacent awakening information is a first duration, and the duration of each awakening information 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 states include at least two of an awake state, a light first stage state, a light second stage state, a deep sleep state, and a dream sleep state.
8. An apparatus for automatically waking a user, comprising:
the rule acquisition module is used for acquiring a preset awakening rule;
the sleep acquisition module is used for acquiring the current sleep state of the user;
a rule determining module, configured to determine whether the current sleep state meets the preset wake-up rule;
the information sending module is used for sending out 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.
9. A system for automatically waking a user, the system comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
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 a user as claimed in any one of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform the method of automatically waking a user as recited in any one of claims 1-7 when executed.
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 true CN115985066A (en) 2023-04-18
CN115985066B 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)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158956A (en) * 2014-07-21 2014-11-19 小米科技有限责任公司 Method and device for sleep wakening through terminal
CN106730232A (en) * 2016-12-09 2017-05-31 山东瀚岳智能科技股份有限公司 A kind of intelligent 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
CN108810300A (en) * 2018-04-28 2018-11-13 平安科技(深圳)有限公司 The method and its control method and device of adjustment intelligent terminal the tinkle of bells
CN111077785A (en) * 2019-11-05 2020-04-28 珠海格力电器股份有限公司 Awakening method, awakening device, terminal and storage medium
CN111357267A (en) * 2018-04-28 2020-06-30 华为技术有限公司 Alarm clock ringing time setting method and device and electronic equipment
CN111558120A (en) * 2020-05-07 2020-08-21 上海闻泰电子科技有限公司 Sleep wake-up method, device, computer equipment and computer readable storage medium
JP2020174745A (en) * 2019-04-15 2020-10-29 西川株式会社 Pillow and sleep state control system
JP2022023282A (en) * 2020-07-27 2022-02-08 Not A Hotel株式会社 Awakening support system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158956A (en) * 2014-07-21 2014-11-19 小米科技有限责任公司 Method and device for sleep wakening through terminal
CN106730232A (en) * 2016-12-09 2017-05-31 山东瀚岳智能科技股份有限公司 A kind of intelligent 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
CN108810300A (en) * 2018-04-28 2018-11-13 平安科技(深圳)有限公司 The method and its control method and device of adjustment intelligent terminal the tinkle of bells
CN111357267A (en) * 2018-04-28 2020-06-30 华为技术有限公司 Alarm clock ringing time setting method and device and electronic equipment
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
CN111558120A (en) * 2020-05-07 2020-08-21 上海闻泰电子科技有限公司 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
CN115985066B (en) 2023-07-11

Similar Documents

Publication Publication Date Title
CN112530056B (en) Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium
CN110097157B (en) Electronic shelf label awakening method and system and related components
US20170134249A1 (en) Methods and Apparatus for Device Management
CN104536739A (en) Method for arousing terminal system
KR20130095842A (en) Method and system for rapid entry into and for rapid exiting from sleep states for processors of a portable computing device
US20230237059A1 (en) Managing engagement methods of a digital assistant while communicating with a user of the digital assistant
CN115309462A (en) Equipment awakening method, device, system, electronic equipment and storage medium
CN114978883A (en) Network wake-up management method and device, electronic equipment and storage medium
US8521855B2 (en) Centralized server-directed power management in a distributed computing system
CN115904656A (en) State control method, device and equipment applied to chip and storage medium
CN104052861B (en) A kind of terminal and its awakening method
CN112948223A (en) Method and device for monitoring operation condition
CN115985066B (en) Method, device, system and storage medium for automatically waking up user
CN111045507B (en) List management and control method, device, mobile terminal and storage medium
CN113050783B (en) Terminal control method and device, mobile terminal and storage medium
CN112767935A (en) Awakening index monitoring method and device and electronic equipment
CN114327738B (en) Refreshing method and device of user interface, electronic equipment and readable storage medium
EP4311480A1 (en) Method for monitoring sleep, apparatus, device, and storage medium
CN115755859A (en) Network fault diagnosis method, device and medium based on local network
Wang et al. A low-power sensor polling for aggregated-task context on mobile devices
CN114987368B (en) Control method and device for vehicle quiescent current, electronic equipment and storage medium
CN115616954A (en) Wake-up method and device for electric toothbrush, electronic equipment and storage medium
CN116147204A (en) Water consumption reminding method and device, electronic equipment and storage medium
CN116631581A (en) Sleep quality improving method, device, equipment and storage medium
CN108541053B (en) Power saving method and device and electronic equipment

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