Method, device and system for controlling sleep state of user and storage medium

文档序号:177283 发布日期:2021-11-02 浏览:24次 中文

阅读说明:本技术 用户睡眠状态的控制方法、装置、系统及存储介质 (Method, device and system for controlling sleep state of user and storage medium ) 是由 李昱 苏星琦 陈道远 宋德超 于 2021-08-03 设计创作,主要内容包括:本发明公开了一种用户睡眠状态的控制方法、装置、系统及存储介质,用户睡眠状态的控制方法包括:确定用户是否处于快速眼动睡眠期;在用户处于快速眼动睡眠期的情况下,根据用户的面部表情,确定用户是否处于不良睡眠状态;在用户处于不良睡眠状态的情况下,控制对用户进行物理干预,以使用户脱离不良睡眠状态。本发明的用户睡眠状态的控制方法解决了现有技术中用户容易因做噩梦而导致睡眠质量不佳的问题。(The invention discloses a method, a device and a system for controlling a user sleep state and a storage medium, wherein the method for controlling the user sleep state comprises the following steps: determining whether the user is in a rapid eye movement sleep period; under the condition that the user is in a rapid eye movement sleep period, determining whether the user is in an adverse sleep state according to the facial expression of the user; and under the condition that the user is in the poor sleep state, controlling physical intervention on the user so as to enable the user to be separated from the poor sleep state. The method for controlling the sleep state of the user solves the problem that the sleep quality is poor due to nightmare making of the user in the prior art.)

1. A method for controlling a sleep state of a user, comprising:

determining whether the user is in a rapid eye movement sleep period;

determining whether the user is in an adverse sleep state according to facial expressions of the user when the user is in the rapid eye movement sleep period;

controlling physical intervention to the user to take the user out of the poor sleep state when the user is in the poor sleep state.

2. The method of controlling the sleep state of a user according to claim 1, wherein determining whether the user is in a fast eye movement sleep period comprises:

acquiring basic physiological parameters of the user;

determining whether the user is in the rapid eye movement sleep session based at least on the base physiological parameter;

wherein the base physiological parameter comprises at least one of: heart rate, respiratory rate, physical movement.

3. The method for controlling the sleep state of the user according to claim 1, wherein determining whether the user is in an undesirable sleep state according to the facial expression of the user comprises:

matching the facial expression of the user with a plurality of preset expressions;

and determining whether the user is in a poor sleep state or not according to the matching result of the facial expression of the user and the plurality of preset expressions.

4. The method for controlling the sleep state of the user according to claim 3, wherein determining whether the user is in an undesirable sleep state according to the matching result of the facial expression of the user and the plurality of preset expressions comprises:

determining the current emotional state of the user to be calm, sad, scary or happy according to the matching result of the facial expression of the user and the plurality of preset expressions;

determining that the user is in the undesirable sleep state when the current emotional state of the user is sad or fear;

determining that the user is not in the poor sleep state when the current emotional state of the user is calm or happy.

5. The method for controlling a sleep state of a user according to any one of claims 1 to 4, wherein after controlling physical intervention on the user to take the user out of the poor sleep state, the method for controlling a sleep state of a user further comprises:

controlling to cease physical intervention on the user if the user is out of the rapid eye movement sleep session.

6. The method for controlling the sleep state of the user according to any one of claims 1 to 4, wherein controlling the physical intervention on the user to take the user out of the poor sleep state in the case that the user is in the poor sleep state comprises:

and controlling and adjusting the inclination angle of the bed where the user is located.

7. The method of controlling a sleep state of a user according to claim 6,

controlling and adjusting the inclination angle of the bed where the user is located, comprising: controlling a side of the bed proximate the user's head to be elevated;

after controlling the one side of the bed close to the head of the user to be lifted, the control method for the sleep state of the user further comprises the following steps: controlling the bed to resume an initial state if the user is out of the rapid eye movement sleep session.

8. A control apparatus for a sleep state of a user, comprising:

a first determination unit for determining whether the user is in a rapid eye movement sleep period;

a second determination unit configured to determine whether the user is in an adverse sleep state according to a facial expression of the user in a case where the user is in the rapid eye movement sleep period;

a first control unit, configured to control, when the user is in the poor sleep state, physical intervention on the user so as to cause the user to leave the poor sleep state.

9. A non-volatile storage medium, comprising a stored program, wherein when the program runs, a device in which the non-volatile storage medium is located is controlled to execute the control method for the user sleep state according to any one of claims 1 to 7.

10. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the method for controlling the sleep state of the user according to any one of claims 1 to 7 when running.

11. A system for controlling a sleep state of a user, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for controlling a sleep state of a user according to any one of claims 1 to 7 when executing the computer program.

Technical Field

The invention relates to the field of sleep health management, in particular to a method, a device and a system for controlling a sleep state of a user and a storage medium.

Background

In the related art, the equipment for detecting the sleep state of the user monitors the sleep state of the user, and can only analyze which stage of the sleep period the user is currently in, and basically improves the sleep state of the user by two modes, one mode is to adjust the temperature and light environmental factors, and the other mode is to release alpha brain waves. These sleep detection and sleep aid methods are not aware of the dream of the user during sleep, and if nightmares are made during sleep, they may be woken up and may be woken up with poor mood.

In view of the above problems, no effective solution has been proposed.

The above information disclosed in the background section is only for enhancement of understanding of the background of the technology described herein. The background art may therefore contain certain information that does not form the known prior art to those skilled in the art.

Disclosure of Invention

The embodiment of the invention provides a method, a device and a system for controlling a sleep state of a user and a storage medium, which are used for at least solving the problem that the sleep quality is poor due to nightmare in the prior art.

In order to achieve the above object, according to a first aspect of embodiments of the present invention, there is provided a method for controlling a sleep state of a user, including: determining whether the user is in a rapid eye movement sleep period; under the condition that the user is in a rapid eye movement sleep period, determining whether the user is in an adverse sleep state according to the facial expression of the user; and under the condition that the user is in the poor sleep state, controlling physical intervention on the user so as to enable the user to be separated from the poor sleep state.

Further, determining whether the user is in a rapid eye movement sleep session includes: acquiring basic physiological parameters of a user; determining whether the user is in a rapid eye movement sleep stage based at least on the basic physiological parameter; wherein the basic physiological parameter comprises at least one of: heart rate, respiratory rate, physical movement.

Further, determining whether the user is in an undesirable sleep state according to the facial expression of the user includes: matching the facial expression of the user with a plurality of preset expressions; and determining whether the user is in a poor sleep state or not according to the matching result of the facial expression of the user and the plurality of preset expressions.

Further, determining whether the user is in an adverse sleep state according to a matching result of the facial expression of the user and the plurality of preset expressions, includes: determining the current emotional state of the user to be calm, sad, fear or happy according to the matching result of the facial expression of the user and the multiple preset expressions; determining that the user is in an adverse sleep state under the condition that the current emotional state of the user is sad or feared; in the case where the current emotional state of the user is calm or happy, it is determined that the user is not in an undesirable sleep state.

Further, after controlling the physical intervention on the user to make the user get out of the poor sleep state, the method for controlling the sleep state of the user further comprises the following steps: in the event that the user is out of the rapid eye movement sleep session, control ceases physical intervention on the user.

Further, in a case where the user is in an undesirable sleep state, controlling physical intervention to the user to take the user out of the undesirable sleep state includes: the control adjusts the inclination angle of the bed where the user is located.

Further, controlling and adjusting the inclination angle of the bed where the user is located comprises: controlling the side of the bed near the user's head to be raised; after controlling the side of the bed close to the head of the user to be lifted, the control method for the sleep state of the user further comprises the following steps: and controlling the bed to return to the initial state under the condition that the user is out of the rapid eye movement sleep period.

According to a second aspect of the embodiments of the present invention, there is provided a control apparatus for a sleep state of a user, including: a first determination unit for determining whether the user is in a rapid eye movement sleep period; a second determination unit for determining whether the user is in an adverse sleep state according to a facial expression of the user in a case where the user is in a rapid eye movement sleep period; the first control unit is used for controlling physical intervention on the user under the condition that the user is in the poor sleep state so as to enable the user to be separated from the poor sleep state.

According to a third aspect of the embodiments of the present invention, there is provided a non-volatile storage medium, the non-volatile storage medium includes a stored program, wherein, when the program runs, a device in which the non-volatile storage medium is controlled to execute the control method for the user sleep state.

According to a fourth aspect of the embodiments of the present invention, there is provided a processor, configured to execute a program, where the program executes the control method for the sleep state of the user.

According to a fifth aspect of the embodiments of the present invention, there is provided a system for controlling a user sleep state, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for controlling the user sleep state when executing the computer program.

The method for controlling the sleep state of the user by applying the technical scheme of the invention comprises the following steps: determining whether the user is in a rapid eye movement sleep period; under the condition that the user is in a rapid eye movement sleep period, determining whether the user is in an adverse sleep state according to the facial expression of the user; and under the condition that the user is in the poor sleep state, controlling physical intervention on the user so as to enable the user to be separated from the poor sleep state. Therefore, whether the user is in the rapid eye movement sleep period or not can be determined, the current sleep stage of the user can be known, when the user is in the rapid eye movement sleep period, the brain neurons of the user are most active, dreaming is easy to occur, and if the user is in an adverse sleep state in the rapid eye movement period, awakening in dream and the like are easy to occur, so that the sleep quality is influenced. When the user is in quick eye movement sleep stage, whether the user is in bad sleep state at present can be known effectively through facial expression according to the user, carry out physical intervention to the user under the condition that the user is in bad sleep state, can realize the guide to the user, help the user to break away from current dream, thereby avoid appearing because of doing the situation that the nightmare arouses, help the user to improve the sleep quality, solved prior art user and leaded to the not good problem of sleep quality because of doing the nightmare easily.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:

FIG. 1 is a schematic flow chart diagram illustrating an alternative embodiment of a method for controlling a sleep state of a user in accordance with the present invention;

fig. 2 is a schematic diagram of an alternative embodiment of a control device for a user's sleep state according to the present invention.

Detailed Description

It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.

In order to make the technical solutions of the present invention better understood, 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 sequences other 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.

It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Also, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.

The sleep stage of human body is divided into four stages of wakefulness, light sleep, deep sleep and REM rapid eye movement. During the rapid eye movement period, the eyeball can rapidly move involuntarily. At this stage, the brain neurons are active as they were awake. Most of the more clear dreams that can be recalled after waking up occur during REM sleep. It is the shallowest of all sleep stages, and people waking up during REM sleep will be different from those in other sleep stages, but will be alert and full of mind, so if the user nightmare makes during REM, it is easily woken up and will remember more profoundly.

Fig. 1 is a method for controlling a sleep state of a user according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:

step S102, determining whether the user is in a rapid eye movement sleep period;

step S104, under the condition that the user is in the rapid eye movement sleep period, determining whether the user is in an adverse sleep state according to the facial expression of the user;

and step S106, controlling physical intervention on the user under the condition that the user is in the poor sleep state, so that the user is separated from the poor sleep state.

The method for controlling the sleep state of the user by adopting the scheme comprises the following steps: determining whether the user is in a rapid eye movement sleep period; under the condition that the user is in a rapid eye movement sleep period, determining whether the user is in an adverse sleep state according to the facial expression of the user; and under the condition that the user is in the poor sleep state, controlling physical intervention on the user so as to enable the user to be separated from the poor sleep state. Therefore, whether the user is in the rapid eye movement sleep period or not can be determined, the current sleep stage of the user can be known, when the user is in the rapid eye movement sleep period, the brain neurons of the user are most active, dreaming is easy to occur, and if the user is in an adverse sleep state in the rapid eye movement period, awakening in dream and the like are easy to occur, so that the sleep quality is influenced. When the user is in quick eye movement sleep stage, whether the user is in bad sleep state at present can be known effectively through facial expression according to the user, carry out physical intervention to the user under the condition that the user is in bad sleep state, can realize the guide to the user, help the user to break away from current dream, thereby avoid appearing because of doing the situation that the nightmare arouses, help the user to improve the sleep quality, solved prior art user and leaded to the not good problem of sleep quality because of doing the nightmare easily. Moreover, compared with the mode of continuously monitoring the facial expression of the user in the whole sleeping process of the user, the method has the advantages that the sleep quality control is more targeted on the rapid eye movement sleeping period, and the calculation amount can be effectively reduced.

Determining whether the user is in a rapid eye movement sleep session, comprising: acquiring basic physiological parameters of a user; determining whether the user is in a rapid eye movement sleep stage based at least on the basic physiological parameter; wherein the basic physiological parameter comprises at least one of: heart rate, respiratory rate, physical movement.

In specific implementation, the mode of acquiring the basic physiological parameters can be flexibly selected, and in order not to cause adverse effects on the user, the piezoelectric film sensor is preferably adopted to acquire the basic physiological parameters of the user. Based on the underlying physiological parameters, the sleep state of the user may be analyzed to determine whether the user is in a rapid eye movement sleep session.

Determining whether the user is in an undesirable sleep state according to the facial expression of the user, including: matching the facial expression of the user with a plurality of preset expressions; and determining whether the user is in a poor sleep state or not according to the matching result of the facial expression of the user and the plurality of preset expressions. When it is determined that the user is in the rapid eye movement sleep period, whether the user is in an adverse sleep state may be conveniently determined according to a matching result of the facial expression of the user, which may include, but is not limited to, feature data of areas such as eyebrows, eyes, nose, mouth, etc., and a plurality of preset expressions.

Determining whether the user is in a poor sleep state according to the matching result of the facial expression of the user and the plurality of preset expressions, wherein the determining step comprises the following steps: determining the current emotional state of the user to be calm, sad, fear or happy according to the matching result of the facial expression of the user and the multiple preset expressions; determining that the user is in an adverse sleep state under the condition that the current emotional state of the user is sad or feared; in the case where the current emotional state of the user is calm or happy, it is determined that the user is not in an undesirable sleep state. Preferably, the process of determining whether the user is in the poor sleep state according to the facial expression of the user is completed by the server, and after the server receives the facial expression of the user collected by the indoor camera, the facial expression feature is input into a pre-trained judgment model, so that a prediction result of whether the user is in the poor sleep state is obtained. Of course, according to the difference of the judgment models, the corresponding emotional state results such as calmness, sadness, fear or happiness can also be directly output by training aiming at different emotional states.

After controlling the physical intervention on the user to take the user out of the poor sleep state, the method for controlling the sleep state of the user further comprises the following steps: in the event that the user is out of the rapid eye movement sleep session, control ceases physical intervention on the user. Therefore, the method is beneficial to reducing the disturbance to the user, keeping the user in stable sleep and improving the sleep quality of the user.

In this embodiment, in a case where a user is in an undesirable sleep state, controlling physical intervention on the user to cause the user to leave the undesirable sleep state includes: the control adjusts the inclination angle of the bed where the user is located. Of course, the physical intervention may also be achieved by other means, such as controlling the bed vibration, controlling the sound emitting device to emit sound, controlling the user to flap slightly, etc. Of course, the realization of these functions needs to set up corresponding jacking structure, vibration structure, sound production structure, pat structure etc. and cooperate.

The control adjustment user lies in the inclination of bed, includes: controlling the side of the bed near the user's head to be raised; after controlling the side of the bed close to the head of the user to be lifted, the control method for the sleep state of the user further comprises the following steps: and controlling the bed to return to the initial state under the condition that the user is out of the rapid eye movement sleep period. Therefore, the comfortable sleeping posture of the user can be kept, and the sleeping quality of the user is improved.

As shown in fig. 2, an embodiment of the present invention further provides a device for controlling a sleep state of a user, including: a first determination unit for determining whether the user is in a rapid eye movement sleep period; a second determination unit for determining whether the user is in an adverse sleep state according to a facial expression of the user in a case where the user is in a rapid eye movement sleep period; the first control unit is used for controlling physical intervention on the user under the condition that the user is in the poor sleep state so as to enable the user to be separated from the poor sleep state.

The first determination unit comprises an acquisition module and a first determination module: the acquisition module is used for acquiring basic physiological parameters of a user; the first determination module is used for determining whether the user is in a rapid eye movement sleep period or not according to at least the basic physiological parameter; wherein the basic physiological parameter comprises at least one of: heart rate, respiratory rate, physical movement.

The second determination unit includes a matching module and a second determination module: the matching module is used for matching the facial expression of the user with a plurality of preset expressions; the second determining module is used for determining whether the user is in the poor sleep state or not according to the matching result of the facial expression of the user and the multiple preset expressions.

The second determination module includes a first determination submodule, a second determination submodule, and a third determination submodule: the first determining submodule is used for determining that the current emotional state of the user is calm, sad, scared or happy according to the matching result of the facial expression of the user and the multiple preset expressions; the second determining submodule is used for determining that the user is in an adverse sleep state under the condition that the current emotional state of the user is sad or feared; the third determining submodule is used for determining that the user is not in the poor sleep state under the condition that the current emotional state of the user is calm or happy.

The control device for the sleep state of the user further comprises a second control unit: the second control unit is used for controlling physical intervention on the user so as to enable the user to be out of the poor sleep state, and controlling the physical intervention on the user to be stopped when the user is out of the rapid eye movement sleep period.

The first control unit is used for: the control adjusts the inclination angle of the bed where the user is located.

The first control unit is used for: controlling the side of the bed near the user's head to be raised; the control device for the sleep state of the user further comprises a third control unit: the third control unit is used for controlling the bed to restore the initial state when the user is out of the rapid eye movement sleep period after the side of the bed close to the head of the user is lifted.

In addition, the embodiment of the invention also provides a nonvolatile storage medium, the nonvolatile storage medium comprises a stored program, and when the program runs, the device where the nonvolatile storage medium is located is controlled to execute the control method for the user sleep state.

The embodiment of the invention further provides a processor, wherein the processor is used for running the program, and the program executes the control method for the sleep state of the user when running.

Finally, the embodiment of the present invention further provides a system for controlling a user sleep state, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for controlling a user sleep state when executing the computer program.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. Moreover, the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions, and while a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than here.

In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.

The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种防回缩导管

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!