CN115755564A - Alarm clock control method based on sleep stage prediction, radar and storage medium - Google Patents

Alarm clock control method based on sleep stage prediction, radar and storage medium Download PDF

Info

Publication number
CN115755564A
CN115755564A CN202211447791.3A CN202211447791A CN115755564A CN 115755564 A CN115755564 A CN 115755564A CN 202211447791 A CN202211447791 A CN 202211447791A CN 115755564 A CN115755564 A CN 115755564A
Authority
CN
China
Prior art keywords
sleep
period
current
alarm clock
index
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.)
Pending
Application number
CN202211447791.3A
Other languages
Chinese (zh)
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.)
Whst Co Ltd
Original Assignee
Whst 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 Whst Co Ltd filed Critical Whst Co Ltd
Priority to CN202211447791.3A priority Critical patent/CN115755564A/en
Publication of CN115755564A publication Critical patent/CN115755564A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application provides an alarm clock control method based on sleep stage prediction, a radar and a storage medium. The method comprises the following steps: acquiring echo signals obtained by detecting the surface area of the bed body by a radar in real time, and extracting sleep characteristics of the human body based on the echo signals; calculating a corresponding sleep stage index according to a preset period based on the sleep characteristics of the human body; if the monitored current time reaches the timing time of the alarm clock, predicting the sleep staging index of the Mth cycle after the current cycle based on the sleep staging indexes of the N last cycles; and determining a ringing scheme of the alarm clock according to the obtained sleep stage index, and controlling the alarm clock to ring based on the ringing scheme. According to the method and the device, sleep stage calculation can be carried out on the person by adopting a radar detection method, and the sleep stage index of the user at the alarm clock timing time is predicted, so that a corresponding alarm clock ringing scheme is determined according to the sleep stage index, and discomfort caused by alarm clock ringing to the person is reduced.

Description

Alarm clock control method based on sleep stage prediction, radar and storage medium
Technical Field
The application relates to the technical field of radars, in particular to an alarm clock control method based on sleep stage prediction, a radar and a storage medium.
Background
Most people can set an alarm clock to wake themselves when needed, and the alarm clock provides a wake-up service according to a time point set in advance. However, people have fixed rules of sleeping and naturally wake up according to the rules of human body biological clocks. However, if a person is awakened suddenly from deep sleep, both the psychology and physiology of the person can be affected.
In order to research an alarm clock which can be waken up in a manner according with the biological clock rule of a human body, in the prior art, the sleep condition of the human body is generally analyzed based on the brain wave of the human body, and the fact that the human body controls the alarm clock to ring in a shallow sleep period is determined.
Disclosure of Invention
The application provides an alarm clock control method based on sleep stage prediction, a radar and a storage medium, and aims to solve the problem that human body discomfort is caused by alarm clock timed wake-up service.
In a first aspect, the present application provides an alarm clock control method based on sleep stage prediction, including:
acquiring echo signals obtained by detecting the surface area of the bed body by a radar in real time, and extracting the sleep characteristics of the human body based on the echo signals;
calculating a corresponding sleep stage index according to a preset period based on the human sleep characteristics;
if the current time reaches the timing time of the alarm clock, predicting the sleep staging index of the Mth cycle after the current cycle based on the sleep staging index of the latest N cycles;
and determining a ringing scheme of the alarm clock according to the sleep staging index of the current period and the sleep staging index of the Mth period after the current period, and controlling the alarm clock to ring based on the ringing scheme.
In a second aspect, the present application provides a radar comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method according to any one of the possible implementation manners of the first aspect.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the method according to any one of the possible implementation manners of the first aspect.
The embodiment of the application provides an alarm clock control method based on sleep stage prediction, a radar and a storage medium, wherein the method can acquire echo signals obtained by detecting a surface area of a bed body by the radar in real time and extract sleep characteristics of a human body based on the echo signals; calculating a corresponding sleep staging index according to a preset period based on the human sleep characteristics; if the current time reaches the timing time of the alarm clock, predicting the sleep staging index of the Mth cycle after the current cycle based on the sleep staging index of the latest N cycles; and determining a ringing scheme of the alarm clock according to the sleep stage index of the current period and the sleep stage index of the Mth period after the current period, and controlling the alarm clock to ring based on the ringing scheme. By the method, the sleep stage calculation can be carried out on the human body by adopting the radar detection method, and the sleep stage index of the user at the alarm clock timing time is predicted, so that the corresponding alarm clock ringing scheme is determined according to the sleep stage index, and the discomfort of the alarm clock ringing on the human body is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of an implementation of an alarm clock control method based on sleep stage prediction according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an alarm clock control device based on sleep stage prediction according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a radar provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
To make the objects, technical solutions and advantages of the present application more apparent, the following description is given by way of example with reference to the accompanying drawings.
Referring to fig. 1, it shows a flowchart of implementing the alarm clock control method based on sleep stage prediction according to the embodiment of the present application, which is detailed as follows:
s101: and acquiring echo signals obtained by detecting the surface area of the bed body by the radar in real time, and extracting the sleep characteristics of the human body based on the echo signals.
Specifically, the implementation subject of the embodiment is a radar, which includes a conventional radar detection module and an alarm clock for finding objects and determining their spatial positions by radio, and the radar detection module is in communication with the alarm clock.
Specifically, the radar detection module is erected above the central axis of the bed body and used for detecting the environment of the surface area of the bed body downwards, receiving the reflected echo signals and extracting the sleep characteristics of the human body according to the echo signals.
Human sleep characteristics include, but are not limited to, respiratory rate, heart rate, bed presence flag, and body movement flag. Wherein, the breathing frequency is used for expressing the number of breaths per minute, the unit is times/minute, and the typical value is 0 to 30; the heartbeat frequency is used for expressing the times of heartbeat per minute, and the unit is times/minute, and the typical value is 50-120; the in-bed mark is used for indicating whether a human body is detected in the surface area of the bed body, the typical value is 0 or 1,0 indicates that the human body is not in the bed, and 1 indicates that the human body is in the bed; the body movement mark is used for indicating whether the human body transforms movement, the typical value is 0 or 1,0 indicates that no body movement exists, and 1 indicates that body movement exists.
S102: and calculating a corresponding sleep stage index according to a preset period based on the human sleep characteristics.
In one possible embodiment, the human sleep characteristics include a breathing frequency, a heartbeat frequency, a bed presence flag, a body movement flag; the specific implementation process of S102 includes:
s201: judging whether a person exists in the surface area of the bed body in the current period based on the in-bed sign of the current period;
s202: if people exist in the surface area of the bed body in the current period, calculating a sleep stage index of the current period based on the respiratory frequency, the heartbeat frequency and the movement sign at each sampling moment in the latest K periods;
s203: and if no person exists in the surface area of the bed body in the current period, setting the sleep stage index of the current period as a first preset value.
In this embodiment, the radar detection module acquires an echo signal obtained by detecting the surface region of the bed body according to a preset sampling interval, and calculates the sleep characteristics of the human body after receiving the echo signal, where the preset sampling interval may be 1 minute. After the sleep characteristics of the human body are acquired, the radar detection module calculates the sleep staging index of one period according to a preset period, for example, if the preset period is 5 minutes, the radar detection module calculates the sleep staging index of the human body every five minutes.
Specifically, whether a person is in the surface area of the bed body in the period is judged every other preset period time based on the in-bed sign at any sampling moment in the period. If people exist in the surface area of the bed body in the current period, the sleep stage index of the current period can be calculated based on the respiratory frequency, the heartbeat frequency and the body movement marks of each sampling moment in the latest K periods.
Wherein, K may be 1, 2, 3, or 4, and may be specifically determined according to the preset cycle duration and the actual sleep cycle.
In a possible implementation manner, after S101, the method provided in this embodiment further includes:
judging whether a residual storage position exists in a current sliding window array used for storing human sleep characteristics, if no residual storage position exists in the current sliding window array, deleting the human sleep characteristics which are stored in the current sliding window array at the earliest time, and storing the human sleep characteristics corresponding to the current sampling time to the current sliding window array.
In this embodiment, after calculating the sleep characteristics of the human body, the radar detection module stores the sleep characteristics of the human body into the sliding window array, the sliding window array is used for storing the sleep characteristics of the human body in the latest K cycles, and when a new sleep characteristic of the human body to be stored is added, the earliest stored sleep characteristics of the human body in the current sliding window array are deleted, and the latest sleep characteristics of the human body are stored in the current sliding window array, so that the alarm clock control method based on sleep stage prediction can be realized by adopting a smaller storage space.
Specifically, the sliding window array comprises arrays corresponding to the respiratory frequency, the heartbeat frequency, the bed mark and the body movement mark, and the radar detection module stores various human body sleep characteristics into the corresponding arrays based on the storage method.
Correspondingly, the specific implementation flow of S202 includes:
and calculating the sleep stage index of the current period based on the respiratory frequency, the heartbeat frequency and the body movement sign of each sampling moment in the current sliding window array.
In a possible embodiment, the specific implementation flow of S202 further includes:
calculating the standard deviation of the respiratory frequency at each sampling moment, the standard deviation of the heartbeat frequency at each sampling moment and the mean value of the body movement signs at each sampling moment in the current sliding window array;
calculating a sleep stage index of the current cycle based on a sleep stage index calculation formula;
the sleep staging index calculation formula is as follows:
sleepFactor=k 1 ·breathStd+k 2 ·heartStd+k 3 ·moveFlagMean;
wherein sleepPhactor represents the sleep stage index, clearStd represents the standard deviation of respiratory rate, heatStd represents the standard deviation of heartbeat rate, moveFlagmean represents the mean of body movement marker, k 1 、k 2 、k 3 Respectively, are preset coefficients.
In some embodiments, k is 1 =0.3、k 2 =0.3、k 3 And (5). Of course in other embodiments, k 1 、k 2 、k 3 Other values are also possible.
In this embodiment, if the value of the bed flag is 0, the first preset value is-1.
In one embodiment, after the sleep stage index of each cycle is obtained through calculation, the sleep stage indexes of the latest N cycles are stored in an index storage array sleepFactionWin, that is, every time the sleep stage index of one cycle is newly calculated, the earliest stored sleep stage index in the index storage array sleepFactionWin is deleted, and the latest calculated sleep stage index is stored in an index storage array sleepFactionWin.
S103: and if the current time reaches the timing time of the alarm clock, predicting the sleep staging index of the Mth cycle after the current cycle based on the sleep staging index of the latest N cycles.
In a possible embodiment, the specific implementation flow of S103 includes:
performing polynomial fitting on the sleep stage indexes of the latest N periods to obtain a fitting formula;
and substituting the Mth cycle after the current cycle into the fitting formula to obtain the sleep staging index of the Mth cycle after the current cycle.
In this embodiment, establish communication connection between radar detection module and the alarm clock, specifically, can be through bluetooth or internet access between radar and the alarm clock. The alarm clock sends the control instruction to the radar detection module when the alarm clock reaches the timing time, and the radar detection module predicts the sleep staging index of the Mth cycle after the current cycle based on the sleep staging index of the latest N cycles when monitoring the control instruction of the alarm clock.
Illustratively, N may take a value of 18, m may take a value of 3, and the preset period is 5 minutes, for example, that is, the radar detection module predicts the sleep stage index 15 minutes after the timing time based on the sleep stage index 90 minutes before the timing time.
Specifically, the specific implementation process of S103 further includes:
performing quadratic curve fitting on the sleep stage indexes of the latest N periods to obtain a fitting formula as follows:
y=ax 2 +bx+c;
in the fitting formula, x represents the serial number of the period to be predicted, and y represents the sleep stage index.
And substituting the sequence number of the Mth period after the current period into a fitting formula to obtain the sleep stage index of the Mth period after the current period.
As another specific embodiment, in this embodiment, the sequence numbers of M + N continuous periods and the corresponding sleep staging indexes may also be taken as a training sample, a plurality of training sample training neural network models are obtained, after the training of the neural network model is completed, the sleep staging indexes and the sequence numbers of the first N periods of the current period are input into the neural network model, and the sleep staging index of the mth period after the current period is output.
S104: and determining a ringing scheme of the alarm clock according to the sleep staging index of the current period and the sleep staging index of the Mth period after the current period, and controlling the alarm clock to ring based on the ringing scheme.
In a possible embodiment, the specific implementation process of S104 includes:
s301: determining a sleep staging result of the current period according to the sleep staging index of the current period; the sleep staging results comprise a deep sleep period, a light sleep period and a waking period;
s302: determining a sleep staging result of the Mth cycle after the current cycle according to the sleep staging index of the Mth cycle after the current cycle;
s303: determining a ringing scheme of the alarm clock according to the sleep staging result of the current period and the sleep staging result of the Mth period after the current period; the alarm clock ringing scheme comprises immediate ringing and ringing at the Mth cycle arrival time after the current cycle.
In a possible embodiment, the specific implementation flow of S303 includes:
if the sleep staging result corresponding to the current period is a light sleep period or a waking period, controlling the alarm clock to ring immediately;
if the sleep staging result corresponding to the current period is a deep sleep period and the sleep staging result of the Mth period after the current period is the deep sleep period, controlling the alarm clock to ring immediately;
and if the sleep staging result corresponding to the current period is a deep sleep period and the sleep staging result of the Mth period after the current period is a shallow sleep period or a waking period, controlling the alarm clock to ring at the arrival time of the Mth period after the current period.
In a possible embodiment, the specific implementation flow of S301 includes:
if the sleep staging index of the current period is larger than a first preset threshold, judging that the sleep staging result of the current period is a waking period;
if the sleep staging index of the current cycle is less than or equal to the first preset threshold and greater than a second preset threshold, judging that the sleep staging result of the current cycle is a light sleep period; the first preset threshold is greater than the second preset threshold;
and if the sleep staging index of the current period is not greater than the second preset threshold, judging that the sleep staging result of the current period is a deep sleep period.
According to the embodiment, the ringing of the alarm clock can be controlled at the most appropriate time based on the sleep stage result of the human body through the method, discomfort of the human body caused by the alarm clock is reduced as much as possible, the human body can enter a better state quickly, in addition, the sleep characteristics and the sleep stage indexes of the human body are stored in a sliding window array mode, the storage space can be reduced, meanwhile, the sleep stage indexes are predicted in a linear fitting mode, the calculation method is simple, the calculation amount can be reduced, the method can be achieved in the radar, the sleep stage is not required to be completed after the data of a whole night is sent to a cloud platform, the real-time performance of the sleep stage prediction is improved, the alarm clock control accuracy is improved, meanwhile, the communication data amount between the radar and the cloud platform can be reduced, and the bandwidth is saved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In the following, embodiments of the apparatus of the present application are provided, and for details which are not described in detail therein, reference may be made to the corresponding method embodiments described above.
Fig. 2 shows a schematic structural diagram of an alarm clock control device based on sleep stage prediction according to an embodiment of the present application, and for convenience of description, only the parts related to the embodiment of the present application are shown, which are detailed as follows:
as shown in fig. 2, the alarm clock control apparatus 100 based on sleep stage prediction includes:
the sleep feature extraction module 110 is configured to obtain an echo signal obtained by detecting a surface area of a bed body by a radar in real time, and extract a sleep feature of a human body based on the echo signal;
a sleep staging index calculation module 120, configured to calculate, based on the human sleep characteristics, a corresponding sleep staging index according to a preset period;
a sleep staging index prediction module 130, configured to predict a sleep staging index of an mth cycle after a current cycle based on a sleep staging index of the latest N cycles if it is monitored that the current time reaches a timing time of an alarm clock;
and a ring control module 140, configured to determine a ring scheme of the alarm clock according to the sleep staging index of the current period and the sleep staging index of the mth period after the current period, and control the alarm clock to ring based on the ring scheme.
In one possible embodiment, the human sleep characteristics include a breathing frequency, a heartbeat frequency, a bed presence flag, a body movement flag; the sleep staging index calculation module 120 includes:
the bed-in judgment unit is used for judging whether a person exists in the surface area of the bed body in the current period based on the current period in-bed mark;
the first sleep staging index calculation unit is used for calculating the sleep staging index of the current period based on the respiratory frequency, the heartbeat frequency and the body movement sign of each sampling moment in the latest K periods if people exist in the surface area of the bed body in the current period;
and the second sleep staging index calculating unit is used for setting the sleep staging index of the current period as a first preset numerical value if no person exists in the surface area of the bed body in the current period.
In a possible implementation manner, the alarm clock control device based on sleep stage prediction provided in this embodiment further includes:
the sliding window storage module is used for judging whether a residual storage position exists in a current sliding window array for storing the human sleep characteristics, deleting the human sleep characteristics which are stored in the current sliding window array at the earliest time if the residual storage position does not exist in the current sliding window array, and storing the human sleep characteristics corresponding to the current sampling time into the current sliding window array;
accordingly, the first sleep staging index calculation unit includes:
and calculating the sleep stage index of the current period based on the respiratory frequency, the heartbeat frequency and the body movement mark of each sampling moment in the current sliding window array.
In one possible embodiment, the first sleep staging index calculation unit further comprises:
calculating the standard deviation of the respiratory frequency at each sampling moment, the standard deviation of the heartbeat frequency at each sampling moment and the mean value of the body movement signs at each sampling moment in the current sliding window array;
calculating a sleep stage index of the current cycle based on a sleep stage index calculation formula;
the sleep staging index calculation formula is as follows:
sleepFactor=k 1 ·breathStd+k 2 ·heartStd+k 3 ·moveFlagMean;
wherein sleepPhactor represents the sleep staging index, clearStd represents the standard deviation of respiratory frequency, heartStd represents the standard deviation of heartbeat frequency, moveFlagmean represents the mean of body movement marker, k 1 、k 2 、k 3 Respectively, are preset coefficients.
In one possible implementation, the sleep staging index prediction module 130 includes:
performing polynomial fitting on the sleep stage indexes of the latest N periods to obtain a fitting formula;
and substituting the Mth cycle after the current cycle into the fitting formula to obtain the sleep staging index of the Mth cycle after the current cycle.
In one possible implementation, the ring control module 140 includes:
a current staging result determining unit, configured to determine a sleep staging result of the current cycle according to the sleep staging index of the current cycle; the sleep staging results comprise a deep sleep period, a light sleep period and a waking period;
the staging result prediction unit is used for determining the sleep staging result of the Mth cycle after the current cycle according to the sleep staging index of the Mth cycle after the current cycle;
a ringing scheme determining unit, configured to determine a ringing scheme of the alarm clock according to a sleep stage result of a current period and a sleep stage result of an mth period after the current period; the alarm clock ringing scheme comprises immediate ringing and ringing at the Mth cycle arrival time after the current cycle.
In one possible embodiment, the alarm scenario determination unit includes:
if the sleep staging result corresponding to the current period is a light sleep period or a waking period, controlling the alarm clock to ring immediately;
if the sleep staging result corresponding to the current period is a deep sleep period and the sleep staging result of the Mth period after the current period is the deep sleep period, controlling the alarm clock to ring immediately;
and if the sleep staging result corresponding to the current period is a deep sleep period and the sleep staging result of the Mth period after the current period is a light sleep period or a waking period, controlling the alarm clock to ring at the arrival time of the Mth period after the current period.
In one possible embodiment, the current staging result determining unit includes:
if the sleep staging index of the current period is larger than a first preset threshold, judging that the sleep staging result of the current period is a waking period;
if the sleep staging index of the current period is less than or equal to the first preset threshold and greater than a second preset threshold, judging that the sleep staging result of the current period is a light sleep period; the first preset threshold is greater than the second preset threshold;
and if the sleep staging index of the current period is not greater than the second preset threshold, judging that the sleep staging result of the current period is a deep sleep period.
The embodiment of the application provides an alarm clock control device based on sleep stage prediction, which can acquire echo signals obtained by detecting a surface area of a bed body by a radar in real time and extract human sleep characteristics based on the echo signals; calculating a corresponding sleep staging index according to a preset period based on the human sleep characteristics; if the monitored current time reaches the timing time of the alarm clock, predicting the sleep staging index of the Mth cycle after the current cycle based on the sleep staging indexes of the N last cycles; and determining a ringing scheme of the alarm clock according to the sleep staging index of the current period and the sleep staging index of the Mth period after the current period, and controlling the alarm clock to ring based on the ringing scheme. According to the embodiment, the sleep stage calculation can be carried out on the human body by adopting a radar detection method, and the sleep stage index of the user at the alarm clock timing time is predicted, so that the corresponding alarm clock ringing scheme is determined according to the sleep stage index, and the discomfort of the alarm clock ringing to the human body is reduced.
Fig. 3 is a schematic diagram of a radar provided in an embodiment of the present application. As shown in fig. 3, the radar 3 of this embodiment includes: a processor 30, a memory 31 and a computer program 32 stored in said memory 31 and executable on said processor 30. The processor 30, when executing the computer program 32, implements the steps in each of the above-described embodiments of the alarm clock control method based on sleep stage prediction, such as the steps S101 to S104 shown in fig. 1. Alternatively, the processor 30, when executing the computer program 32, implements the functions of each module/unit in the above-mentioned device embodiments, such as the functions of the modules 110 to 140 shown in fig. 2.
Illustratively, the computer program 32 may be divided into one or more modules/units, which are stored in the memory 31 and executed by the processor 30 to accomplish/implement the solution provided herein. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 32 in the radar 3.
The radar 3 may include, but is not limited to, a processor 30, a memory 31. It will be appreciated by those skilled in the art that fig. 3 is merely an example of a radar 3 and does not constitute a limitation of the radar 3 and may include more or less components than those shown, or some components in combination, or different components, e.g. the radar may also include input output devices, network access devices, buses, etc.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may be an internal storage unit of the radar 3, such as a hard disk or a memory of the radar 3. The memory 31 may also be an external storage device of the radar 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the radar 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the radar 3. The memory 31 is used for storing the computer program and other programs and data required by the radar. The memory 31 may also be used to temporarily store data that has been output or is to be output.
It should be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is only used for illustration, and in practical applications, the above function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the apparatus may be divided into different functional units or modules to perform all or part of the above described functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/radar and method may be implemented in other ways. For example, the above-described apparatus/radar embodiments are merely illustrative, and for example, the division of the modules or units is only one type of logical function division, and other division manners may exist in actual implementation, for example, a plurality of 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 through some interfaces, indirect coupling or communication connection of devices or units, and may be in an electrical, mechanical 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 network 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 application 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 modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments may also be implemented by a computer program instructing related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the embodiments of the alarm clock control method based on sleep stage prediction. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
Furthermore, features of the embodiments shown in the drawings of the present application or of the various embodiments mentioned in the present description are not necessarily to be understood as embodiments independent of each other. Rather, each feature described in one example of one embodiment can be combined with one or more other desired features from other embodiments to yield yet further embodiments, which are not described in text or with reference to the accompanying drawings.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An alarm clock control method based on sleep stage prediction is characterized by comprising the following steps:
acquiring echo signals obtained by detecting a surface region of a bed body by a radar in real time, and extracting sleep characteristics of a human body based on the echo signals;
calculating a corresponding sleep staging index according to a preset period based on the human sleep characteristics;
if the current time reaches the timing time of the alarm clock, predicting the sleep staging index of the Mth cycle after the current cycle based on the sleep staging index of the latest N cycles;
and determining a ringing scheme of the alarm clock according to the sleep staging index of the current period and the sleep staging index of the Mth period after the current period, and controlling the alarm clock to ring based on the ringing scheme.
2. The alarm clock control method based on sleep stage prediction according to claim 1, wherein the human sleep characteristics comprise respiratory frequency, heartbeat frequency, in-bed flag, body movement flag;
the step of calculating the corresponding sleep stage index according to a preset period based on the human sleep characteristics comprises the following steps:
judging whether a person exists in the surface area of the bed body in the current period based on the in-bed sign of the current period;
if people exist in the surface area of the bed body in the current period, calculating a sleep stage index of the current period based on the respiratory frequency, the heartbeat frequency and the body movement mark at each sampling moment in the latest K periods;
and if no person exists in the surface area of the bed body in the current period, setting the sleep stage index of the current period as a first preset value.
3. The sleep stage prediction based alarm clock control method according to claim 2, wherein after the extracting of the human sleep features based on the echo signals, the method further comprises:
judging whether a residual storage position exists in a current sliding window array used for storing human body sleep characteristics, if the residual storage position does not exist in the current sliding window array, deleting the human body sleep characteristics which are stored in the current sliding window array at the earliest time, and storing the human body sleep characteristics corresponding to the current sampling time to the current sliding window array;
correspondingly, the calculating the sleep stage index of the current cycle based on the respiratory frequency, the heartbeat frequency and the body movement marker of each sampling time in the latest K cycles includes:
and calculating the sleep stage index of the current period based on the respiratory frequency, the heartbeat frequency and the body movement sign of each sampling moment in the current sliding window array.
4. The alarm clock control method based on sleep stage prediction according to claim 3, wherein the calculating of the sleep stage index of the current cycle based on the breathing frequency, the heartbeat frequency and the body movement flag at each sampling time in the current sliding window array comprises:
calculating the standard deviation of the respiratory frequency at each sampling moment, the standard deviation of the heartbeat frequency at each sampling moment and the mean value of the body movement signs at each sampling moment in the current sliding window array;
calculating a sleep stage index of the current cycle based on a sleep stage index calculation formula;
the sleep stage index calculation formula is as follows:
sleepFactor=k 1 ·breathStd+k 2 ·heartStd+k 3 ·moveFlagMean;
wherein sleepPhactor represents the sleep staging index, clearStd represents the standard deviation of respiratory frequency, heartStd represents the standard deviation of heartbeat frequency, moveFlagmean represents the mean of body movement marker, k 1 、k 2 、k 3 Respectively, are preset coefficients.
5. The alarm clock control method based on sleep stage prediction according to claim 1, wherein the predicting the sleep stage index of the mth cycle after the current cycle based on the sleep stage index of the latest N cycles comprises:
performing polynomial fitting on the sleep stage indexes of the latest N periods to obtain a fitting formula;
and substituting the Mth cycle after the current cycle into the fitting formula to obtain the sleep staging index of the Mth cycle after the current cycle.
6. The alarm clock control method based on sleep stage prediction as claimed in claim 1, wherein the determining the alarm clock ringing scheme according to the sleep stage index of the current period and the sleep stage index of the mth period after the current period comprises:
determining a sleep staging result of the current period according to the sleep staging index of the current period; the sleep staging results comprise a deep sleep period, a light sleep period and a waking period;
determining a sleep staging result of the Mth cycle after the current cycle according to the sleep staging index of the Mth cycle after the current cycle;
determining a ringing scheme of the alarm clock according to a sleep staging result of the current period and a sleep staging result of the Mth period after the current period; the alarm clock ringing scheme comprises immediate ringing and ringing at the Mth cycle arrival time after the current cycle.
7. The alarm clock control method based on sleep stage prediction according to claim 6, wherein the determining the alarm clock ringing scheme according to the sleep stage result of the current cycle and the sleep stage result of the mth cycle after the current cycle comprises:
if the sleep staging result corresponding to the current period is a light sleep period or a waking period, controlling the alarm clock to ring immediately;
if the sleep staging result corresponding to the current period is a deep sleep period and the sleep staging result of the Mth period after the current period is the deep sleep period, controlling the alarm clock to ring immediately;
and if the sleep staging result corresponding to the current period is a deep sleep period and the sleep staging result of the Mth period after the current period is a shallow sleep period or a waking period, controlling the alarm clock to ring at the arrival time of the Mth period after the current period.
8. The alarm clock control method based on sleep stage prediction according to claim 6, wherein the determining the sleep stage result of the current cycle according to the sleep stage index of the current cycle comprises:
if the sleep staging index of the current period is larger than a first preset threshold, judging that the sleep staging result of the current period is a waking period;
if the sleep staging index of the current period is less than or equal to the first preset threshold and greater than a second preset threshold, judging that the sleep staging result of the current period is a light sleep period; the first preset threshold is greater than the second preset threshold;
and if the sleep staging index of the current period is not greater than the second preset threshold, judging that the sleep staging result of the current period is a deep sleep period.
9. A radar comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor when executing the computer program realizes the steps of the sleep stage prediction based alarm clock control method according to any one of the preceding claims 1 to 8.
10. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the sleep stage prediction based alarm clock control method according to any one of the preceding claims 1 to 8.
CN202211447791.3A 2022-11-18 2022-11-18 Alarm clock control method based on sleep stage prediction, radar and storage medium Pending CN115755564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211447791.3A CN115755564A (en) 2022-11-18 2022-11-18 Alarm clock control method based on sleep stage prediction, radar and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211447791.3A CN115755564A (en) 2022-11-18 2022-11-18 Alarm clock control method based on sleep stage prediction, radar and storage medium

Publications (1)

Publication Number Publication Date
CN115755564A true CN115755564A (en) 2023-03-07

Family

ID=85373440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211447791.3A Pending CN115755564A (en) 2022-11-18 2022-11-18 Alarm clock control method based on sleep stage prediction, radar and storage medium

Country Status (1)

Country Link
CN (1) CN115755564A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116020037A (en) * 2023-03-30 2023-04-28 森思泰克河北科技有限公司 Sleep-aiding music control method based on radar, radar and storage medium
CN116449363A (en) * 2023-03-30 2023-07-18 森思泰克河北科技有限公司 Alarm clock control method and device based on radar, radar and storage medium
GB2619418A (en) * 2023-06-15 2023-12-06 Somvai Ltd Nap monitoring device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116020037A (en) * 2023-03-30 2023-04-28 森思泰克河北科技有限公司 Sleep-aiding music control method based on radar, radar and storage medium
CN116449363A (en) * 2023-03-30 2023-07-18 森思泰克河北科技有限公司 Alarm clock control method and device based on radar, radar and storage medium
CN116449363B (en) * 2023-03-30 2024-01-19 森思泰克河北科技有限公司 Alarm clock control method and device based on radar, radar and storage medium
GB2619418A (en) * 2023-06-15 2023-12-06 Somvai Ltd Nap monitoring device

Similar Documents

Publication Publication Date Title
CN115755564A (en) Alarm clock control method based on sleep stage prediction, radar and storage medium
CN108876284B (en) User behavior prompt generation method and terminal equipment
CN106956271B (en) Predict the method and robot of affective state
AU2020202572B2 (en) Methods and systems for forecasting seizures
CN107647860B (en) Heart rate detection method and device, electronic equipment and storage medium
EP3876191B1 (en) Estimator generation device, monitoring device, estimator generation method, estimator generation program
CN109363659B (en) Heart rate monitoring method and device based on deep learning and storage medium
EP3229202A1 (en) Information processing device, information processing method, and program
CN106470601A (en) System and method for determining and show sleep recovery level
CN104615851A (en) Sleep monitoring method and terminal
CN110111815A (en) Animal anomaly sound monitoring method and device, storage medium, electronic equipment
WO2020187987A1 (en) Population-level gaussian processes for clinical time series forecasting
CN111387936B (en) Sleep stage identification method, device and equipment
CN114781439A (en) Model acquisition system, gesture recognition method, device, equipment and storage medium
CN108245171B (en) Method for obtaining parameter model, fatigue detection method and device, medium and equipment
CN113869599A (en) Fish epidemic disease development prediction method, system, equipment and medium
CN113406990A (en) Method and device for compensating time measurement errors based on BP neural network
CN111079560A (en) Tumble monitoring method and device and terminal equipment
CN111554406B (en) Physiological data processing method, device, electronic equipment and storage medium
CN111563078B (en) Data quality detection method and device based on time sequence data and storage device
CN109345258B (en) Safe payment method and device and intelligent wearable device
CN113130024A (en) Medical event prediction method, wearable device and computer-readable storage medium
CN111743552A (en) Psychological measurement and intervention system and method
EP3446623A1 (en) Reducing physiological data size
KR20180135800A (en) Method for processing biological signals based on parallel processing and apparatus for the same

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