Infant sleep inducing method, device and equipment and storage medium

Through the reinforcement learning model, the multi-dimensional information on the crib is processed and the decision-making model is independently trained, which solves the problem of poor flexibility in crib control in the existing technology, and realizes flexible sleep control for all babies.

CN119226870AActive Publication Date: 2024-12-31HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310791543.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-29
Publication Date
2024-12-31
Estimated Expiration
2043-06-29

AI Technical Summary

Technical Problem

The existing crib control system needs to collect historical sleep-sleeping data in advance, and cannot flexibly control cribs that have not collected data. If there are few data records, the control will be fixed and repeated, resulting in poor flexibility.

Method used

The reinforcement learning model training method is adopted to obtain multi-dimensional information on the crib, and through information fusion and decision model optimization, we independently explore the environmental training decision model, without historical data, and is suitable for all babies to coax them to sleep.

Benefits of technology

Achieves improved cot control flexibility without historical data, suitable for all babies, avoiding fixed and repetitive control issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119226870A_ABST
    Figure CN119226870A_ABST
Patent Text Reader

Abstract

The invention discloses an infant sleep inducing method, device and equipment and a storage medium. The infant sleep inducing method comprises the steps of obtaining multi-dimensional information related to sleep of an infant on an infant bed; based on a preset information fusion model, performing multi-modal fusion processing on the multi-dimensional information to obtain target infant state information; and based on a preset decision-making model, analyzing and processing the target baby state information to obtain a target sleep-inducing decision-making scheme, and according to the target sleep-inducing decision-making scheme, controlling the crib to execute sleep-inducing operation for a baby on the crib. According to the method, a model training mode of reinforcement learning is adopted, and the decision model algorithm is optimized by taking the infant state change scores before and after the execution of the prediction sleep decision scheme as instant feedback, so that an environment training decision model can be autonomously explored on the premise of not needing historical sleep data, and other condition limitations do not exist; the baby crib is suitable for sleep inducing of all babies, so that the control flexibility of the baby crib is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer processing technology, and in particular to a method, device, equipment and storage medium for coaxing a baby to sleep. Background Art

[0002] Currently, many families purchase electric rocking beds or electric rocking chairs to help their babies fall asleep instead of using parents' hands. However, most electric rocking beds or electric rocking chairs cannot be controlled and require manual control of the switch, and the rocking frequency and amplitude are relatively fixed.

[0003] In the related art, the current time and the current baby status information are matched with the historical coaxing data to determine the coaxing operation to be performed by the crib, and the technical solution of controlling the crib to perform the corresponding coaxing operation is used to control the crib. However, this solution must collect the baby's historical coaxing data in advance to control the crib. For babies whose coaxing data has not been collected, control cannot be achieved. Moreover, if there are few records of historical coaxing data, the control of the crib will be fixed and repeated, which limits the control of the crib by this solution and leads to poor flexibility. Summary of the invention

[0004] The main purpose of the present application is to provide a method, device, equipment and storage medium for coaxing a baby to sleep, aiming to solve the technical problem in the prior art that there are limitations on the control of the baby crib, resulting in poor flexibility.

[0005] To achieve the above objectives, the present application provides a method for coaxing a baby to sleep, the method comprising:

[0006] Obtain multidimensional information related to infant sleep in the crib;

[0007] Based on a preset information fusion model, multimodal fusion processing is performed on the multi-dimensional information to obtain target infant status information;

[0008] Based on a preset decision model, the target baby state information is analyzed and processed to obtain a target coaxing-to-sleep decision plan, and the crib is controlled to perform a coaxing-to-sleep operation on the baby in the crib according to the target coaxing-to-sleep decision plan;

[0009] Among them, the decision model is obtained according to the following steps: inputting the baby state information sample into the preset first model to be trained to obtain a predicted coaxing to sleep decision plan; secondly, after controlling the baby crib to execute the predicted coaxing to sleep decision plan, obtaining the updated baby state information sample; then based on the baby state information sample and the updated baby state information sample, determining the state change score value; finally, judging whether the state change score value meets the preset first loss convergence condition. If the state change score value does not meet the preset first loss convergence condition, returning to the step of inputting the baby state information sample into the preset first model to be trained to obtain the predicted coaxing to sleep decision plan, until the state change score value meets the preset first loss convergence condition, and obtaining a decision model with satisfactory accuracy conditions; the baby state information sample is obtained by performing multimodal fusion processing on the baby coaxing to sleep information sample based on a preset information fusion model, and the first model to be trained is a reinforcement learning model.

[0010] Optionally, the multi-dimensional information includes infant body information, time information, and environmental information related to infant sleep.

[0011] Optionally, before the step of inputting the infant status information sample into a preset first model to be trained to obtain a predicted sleep-coaxing decision plan, the method includes:

[0012] Performing random information erasure processing on the baby coaxing to sleep information under the baby status information sample to obtain an erased baby coaxing to sleep information sample;

[0013] The erased baby coaxing to sleep information samples include some baby coaxing to sleep information samples of the baby status information samples, or the erased baby coaxing to sleep information samples include all baby coaxing to sleep information samples of the baby status information samples.

[0014] Optionally, after the step of determining a state change score value based on the infant state information sample and the updated infant state information sample, the method includes:

[0015] After controlling the crib to execute the predicted coaxing-to-sleep decision plan, obtaining a coaxing-to-sleep result for the baby;

[0016] The step of judging whether the state change score value satisfies the preset first loss convergence condition, and if the state change score value does not satisfy the preset first loss convergence condition, returning to the step of inputting the infant state information sample into the preset first to-be-trained model to obtain a step of predicting a decision plan for coaxing the baby to sleep, until the state change score value satisfies the preset first loss convergence condition, and obtaining a decision model having a satisfactory accuracy condition, comprises:

[0017] Determine whether the state change score value satisfies a preset first loss convergence condition, and determine whether the baby sleeping result satisfies a preset second loss convergence condition;

[0018] If the state change score value does not meet the preset first loss convergence condition or the baby sleeping result does not meet the preset second loss convergence condition, return to the step of inputting the baby state information sample into the preset first model to be trained to obtain a prediction step of the sleeping decision plan, until the state change score value meets the preset first loss convergence condition and the baby sleeping result meets the preset second loss convergence condition, so as to obtain a decision model that meets the accuracy conditions.

[0019] Optionally, before the step of acquiring multi-dimensional information related to infant sleep, the method includes:

[0020] Get sample baby sleep information;

[0021] Based on the baby coaxing sleep information sample, the preset second model to be trained and the preset first model to be trained are jointly trained by using reinforcement learning to obtain an information fusion model and a decision model that meet the accuracy conditions;

[0022] The second model to be trained is the initial training model of the information fusion model, and the first model to be trained is the initial training model of the decision model.

[0023] Optionally, the step of jointly training the preset second model to be trained and the preset first model to be trained by reinforcement learning based on the baby coaxing to sleep information sample to obtain an information fusion model and a decision model that meet the accuracy conditions includes:

[0024] Inputting the baby sleeping information sample into a preset second to-be-trained model to obtain a baby status information sample;

[0025] Inputting the infant status information sample into a preset first model to be trained to obtain a prediction and decision scheme for coaxing the infant to sleep, wherein the first model to be trained and the second model to be trained are both reinforcement learning models;

[0026] After controlling the crib to execute the predicted coaxing-to-sleep decision plan, obtaining an updated infant state information sample, and determining a state change score value based on the infant state information sample and the updated infant state information sample;

[0027] Determine whether the state change score value satisfies the preset first loss convergence condition. If the state change score value does not meet the preset loss convergence condition, return to the step of inputting the baby sleep information sample into the preset second model to be trained to obtain the baby state information sample, until the state change score value meets the preset first loss convergence condition, and obtain an information fusion model and a decision model that meet the accuracy conditions.

[0028] The present application also provides a baby sleeping device, the baby sleeping device comprising:

[0029] An acquisition module, for acquiring multi-dimensional information related to the baby's sleep in the crib;

[0030] A fusion module, used for performing multimodal fusion processing on the multi-dimensional information based on a preset information fusion model to obtain target infant status information;

[0031] An execution module, configured to analyze and process the target baby status information based on a preset decision model, obtain a target coaxing-to-sleep decision plan, and control the crib to perform a coaxing-to-sleep operation on the baby in the crib according to the target coaxing-to-sleep decision plan;

[0032] Among them, the decision model is obtained according to the following steps: inputting the baby state information sample into the preset first model to be trained to obtain a predicted coaxing to sleep decision plan; secondly, after controlling the baby crib to execute the predicted coaxing to sleep decision plan, obtaining the updated baby state information sample; then based on the baby state information sample and the updated baby state information sample, determining the state change score value; finally, judging whether the state change score value meets the preset first loss convergence condition. If the state change score value does not meet the preset first loss convergence condition, returning to the step of inputting the baby state information sample into the preset first model to be trained to obtain the predicted coaxing to sleep decision plan, until the state change score value meets the preset first loss convergence condition, and obtaining a decision model with satisfactory accuracy conditions; the baby state information sample is obtained by performing multimodal fusion processing on the baby coaxing to sleep information sample based on a preset information fusion model, and the first model to be trained is a reinforcement learning model.

[0033] And / or, the baby coaxing sleep device further includes: an information erasing module, used for performing random information erasing processing on the baby coaxing sleep information under the baby status information sample to obtain the baby coaxing sleep information sample after erasure; wherein the baby coaxing sleep information sample after erasure includes part of the baby coaxing sleep information sample of the baby status information sample, or the baby coaxing sleep information sample after erasure includes all of the baby coaxing sleep information samples of the baby status information sample;

[0034] And / or, the baby coaxing sleep device further includes: a coaxing sleep result acquisition module, used for acquiring the baby coaxing sleep result after controlling the baby bed to execute the predicted coaxing sleep decision plan; a judgment module, used for judging whether the state change score value satisfies a preset first loss convergence condition, and judging whether the baby coaxing sleep result satisfies a preset second loss convergence condition; a second iterative training module, used for returning to the step of inputting the baby state information sample into a preset first model to be trained to obtain a predicted coaxing sleep decision plan if the state change score value does not satisfy the preset first loss convergence condition or the baby coaxing sleep result does not satisfy the preset second loss convergence condition, until the state change score value satisfies the preset first loss convergence condition, and the baby coaxing sleep result satisfies the preset second loss convergence condition, so as to obtain a decision model that satisfies the accuracy condition;

[0035] And / or, the baby coaxing sleep device further comprises: a joint training module, which is used to jointly train the preset second model to be trained and the preset first model to be trained based on the baby coaxing sleep information sample by using reinforcement learning to obtain an information fusion model and a decision model that meet the accuracy conditions; wherein the second model to be trained is the initial training model of the information fusion model, and the first model to be trained is the initial training model of the decision model;

[0036] And / or, the joint training module includes: a second state information sample determination module, which is used to input the baby sleep information sample into a preset second model to be trained to obtain a baby state information sample; a second plan prediction module, which is used to input the baby state information sample into a preset first model to be trained to obtain a predicted sleep decision plan, wherein the first model to be trained and the second model to be trained are both reinforcement learning models; a second change scoring module, which is used to obtain an updated baby state information sample after controlling the baby crib to execute the predicted sleep decision plan, and determine a state change score value based on the baby state information sample and the updated baby state information sample; a third iterative training module, which is used to determine whether the state change score value meets a preset first loss convergence condition. If the state change score value does not meet the preset loss convergence condition, return to the step of inputting the baby sleep information sample into the preset second model to be trained to obtain the baby state information sample, until the state change score value meets the preset first loss convergence condition, and obtain an information fusion model and a decision model that meet the accuracy condition.

[0037] The present application also provides a baby sleeping device, the baby sleeping device comprising: a memory, a processor, and a program stored in the memory for implementing the baby sleeping method.

[0038] The memory is used to store a program for implementing a method for lulling a baby to sleep;

[0039] The processor is used to execute a program for implementing the method for lulling a baby to sleep, so as to implement the steps of the method for lulling a baby to sleep.

[0040] The present application also provides a storage medium, on which is stored a program for implementing a method for coaxing a baby to sleep, and the program for implementing the method for coaxing a baby to sleep is executed by a processor to implement the steps of the method for coaxing a baby to sleep.

[0041] The present application provides a method, device, equipment and storage medium for coaxing a baby to sleep. Compared with the related art, in which historical coaxing data of the baby must be collected in advance to control the crib, and the corresponding control cannot be achieved for the baby without collecting the coaxing data, and if there are few data records of the historical coaxing data, the control of the crib will appear fixed and repetitive, which limits the control of the crib by the scheme and leads to poor flexibility, in the present application, multi-dimensional information related to the baby's sleep in the crib is obtained; based on a preset information fusion model, the multi-dimensional information is subjected to multi-modal fusion processing to obtain target baby status information; based on a preset decision model, the target baby status information is analyzed and processed to obtain a target coaxing decision plan, and the crib is controlled to perform the coaxing operation for the baby in the crib according to the target coaxing decision plan; wherein the decision model is obtained according to the following steps: The baby state information sample is input into a preset first model to be trained to obtain a predicted coaxing to sleep decision plan; secondly, after controlling the crib to execute the predicted coaxing to sleep decision plan, an updated baby state information sample is obtained; based on the baby state information sample and the updated baby state information sample, a state change score value is determined; finally, it is determined whether the state change score value satisfies a preset first loss convergence condition. If the state change score value does not meet the preset first loss convergence condition, the step of returning to inputting the baby state information sample into the preset first model to be trained to obtain a predicted coaxing to sleep decision plan is performed until the state change score value meets the preset first loss convergence condition, and a decision model with satisfied accuracy conditions is obtained; the baby state information sample is obtained by performing multimodal fusion processing on the baby coaxing to sleep information sample based on a preset information fusion model, and the first model to be trained is a reinforcement learning model. That is, in this application, a reinforcement learning model training method is adopted, and the decision model algorithm is optimized based on the infant state change score before and after the execution of the predicted coaxing to sleep decision plan as instant feedback, so that the decision model can be trained by autonomously exploring the environment without the need for historical coaxing to sleep data. There are no other conditions or restrictions, and it is suitable for all infants to coax to sleep, thereby improving the flexibility of crib control. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art description will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0043] Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application;

[0044] Figure 2 This is a flow chart of the first embodiment of the method for coaxing a baby to sleep of the present application;

[0045] Figure 3 This is a schematic diagram of the modules of the baby sleeping device of the present application;

[0046] Figure 4 This is a flowchart of a second embodiment of the method for coaxing a baby to sleep of the present application;

[0047] Figure 5 This is a flowchart of the third embodiment of the method for coaxing a baby to sleep of the present application.

[0048] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0049] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] like Figure 1 As shown, Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application.

[0051] The terminal in the embodiment of the present application can be a PC, or it can be a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a portable computer, or other portable terminal devices with display function.

[0052] like Figure 1As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0053] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.

[0054] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0055] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating device, a network communication module, a user interface module, and a baby sleeping program.

[0056] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the baby sleep program stored in the memory 1005.

[0057] Reference Figure 2 The embodiment of the present application provides a method for coaxing a baby to sleep, and the method for coaxing a baby to sleep comprises:

[0058] Step S100, obtaining multi-dimensional information related to the baby sleeping in the crib;

[0059] Step S200, based on a preset information fusion model, performing multimodal fusion processing on the multi-dimensional information to obtain target infant status information;

[0060] Step S300, analyzing and processing the target baby state information based on a preset decision model to obtain a target coaxing-to-sleep decision plan, and controlling the crib to perform a coaxing-to-sleep operation for the baby in the crib according to the target coaxing-to-sleep decision plan;

[0061] The decision model is obtained by iteratively training a preset first model to be trained in a reinforcement learning manner.

[0062] In this embodiment, the application scenarios are:

[0063] As an example, the scenario of coaxing a baby to sleep can be that the baby lies on an electric crib and is ready to fall asleep, and the baby is coaxed to sleep by the electric crib. In the related art, the current time and the current baby state information are matched with the historical coaxing data, the coaxing operation to be performed by the crib is determined, and the technical solution of controlling the crib to perform the corresponding coaxing operation is realized to control the crib. However, the scheme must collect the baby's historical coaxing data in advance to realize the control of the crib. For babies who have not collected coaxing data, the control cannot be realized, and if there are few data records of historical coaxing data, the control of the crib will be fixed and repeated, so that the scheme has restrictions on the control of the crib, resulting in poor flexibility. For this scenario, the baby coaxing method of this embodiment adopts a reinforcement learning model training method, and optimizes the decision model algorithm according to the baby state change score before and after the execution of the predicted coaxing decision scheme as immediate feedback, so as to realize the autonomous exploration of the environment training decision model without the need for historical coaxing data, without other conditions, and is applicable to all babies' coaxing, thereby improving the flexibility of the control of the crib.

[0064] As an example, the application scenario of coaxing a baby to sleep is not only the above-mentioned application scenario of coaxing a baby to sleep through an electric crib, but also includes various scenarios of coaxing a baby to sleep, which is not specifically limited here.

[0065] This embodiment aims to: improve the flexibility of controlling the baby crib.

[0066] In this embodiment, the method for coaxing a baby to sleep is applied to a device for coaxing a baby to sleep.

[0067] The specific steps are as follows:

[0068] Step S100, obtaining multi-dimensional information related to the baby sleeping in the crib;

[0069] As an example, when a baby is lying in an electric crib and is ready to fall asleep, and the parent turns on the baby coaxing function of the crib, the device obtains multi-dimensional information related to the baby's sleep in the crib, wherein the multi-dimensional information related to the baby's sleep includes at least two dimensions of information. Specifically, the multi-dimensional information related to the baby's sleep includes baby's body information, time information, and environmental information related to the baby's sleep. The baby's body information includes but is not limited to information on eye opening and closing, mouth opening and closing, eye line of sight direction information, body posture information, and sound information. The time information refers to the current time. The environmental information related to the baby's sleep includes but is not limited to temperature information, humidity information, lighting information, etc., surrounding the baby's environment. More specifically, the baby's body information (baby's facial information, limb information and voice information, etc.) is strongly correlated with its sleeping state; time information is weakly correlated with the baby's sleeping state, and the weak correlation between time information and sleeping state can be obtained by statistical data on whether the baby is sleepy or sleeping at different time periods every day. More specifically, since babies of different days have different sleeping times every day, but babies of the same day have roughly the same sleeping preferences, the relationship function can be established by statistics based on babies of different days; the environmental information related to the baby's sleep is weakly correlated with the current baby's sleeping state, that is, the environmental information related to the baby's sleep can be used to assist in judging the baby's sleeping state, but it cannot determine the judgment, that is, the correlation coefficient is low, but it can still be used.

[0070] As an example, the device may obtain multi-dimensional information related to a baby's sleep in a crib by collecting corresponding information based on relevant sensors (such as cameras, sound sensors, temperature sensors, humidity sensors, clocks, etc.) set on (around) the crib. For example, the device may collect real-time images of the baby and images of the baby's surrounding environment based on a preset camera, and perform image analysis to obtain information on the baby's eye opening and closing, mouth opening and closing, eye line of sight direction, human body posture, and ambient lighting. It may also be obtained by receiving multi-dimensional information related to the baby's sleep in the crib uploaded by a user.

[0071] It should be noted that the device obtains multi-dimensional information related to the baby's sleep in the crib only under the premise of obtaining authorization from the user (or parent), and the user has been informed that the collected multi-dimensional information related to the baby's sleep in the crib will be used to control the crib to coax the baby to sleep, and the collected multi-dimensional information related to the baby's sleep in the crib will not be used in other scenarios unrelated to this application.

[0072] Step S200, based on a preset information fusion model, performing multimodal fusion processing on the multi-dimensional information to obtain target infant status information;

[0073] As an example, the device performs multimodal fusion processing on the multidimensional information based on a preset information fusion model to obtain the target baby state information, wherein the information fusion model can be trained by a deep neural network learning method using reinforcement learning, or it can be trained by a supervised and unsupervised deep neural network learning method. The training of the information fusion model can be obtained by using reinforcement learning, or supervised, or unsupervised methods based on the baby coaxing information sample (training sample) for separate training; it can also be obtained by using reinforcement learning and joint training with the decision model based on the baby coaxing information sample. Specifically, the training material (baby coaxing information sample) of the information fusion model comes from the coaxing process data of multiple babies, and the baby coaxing process data is specifically at time = 0, T, 2T, 3T...nT, baby facial state information, limb information, external temperature, humidity, current time, etc., as well as the operating parameter information of the parents shaking the electric baby bed, and the current time t relative to the previous time tT baby sleep evaluation, for example, the baby sleep evaluation can be an evaluation of +1 for the baby being close to falling asleep, otherwise -1. Among them, the operation information (motor operation parameters) of parents rocking the electric baby bed can be obtained by the sensor in reverse, recorded and stored as a relationship training sample for the reinforcement learning intelligent algorithm, and other baby-related information can be recorded for backup. Multimodal fusion can adopt a hybrid fusion method of feature fusion and decision fusion based on the source characteristics of the information, perform multimodal fusion processing on the multi-dimensional information, and obtain the target baby status information.

[0074] Step S300, analyzing and processing the target baby state information based on a preset decision model to obtain a target coaxing-to-sleep decision plan, and controlling the crib to perform a coaxing-to-sleep operation for the baby in the crib according to the target coaxing-to-sleep decision plan;

[0075] Among them, the decision model is obtained according to the following steps: inputting the baby state information sample into the preset first model to be trained to obtain a predicted coaxing to sleep decision plan; secondly, after controlling the baby crib to execute the predicted coaxing to sleep decision plan, obtaining the updated baby state information sample; then based on the baby state information sample and the updated baby state information sample, determining the state change score value; finally, judging whether the state change score value meets the preset first loss convergence condition. If the state change score value does not meet the preset first loss convergence condition, returning to the step of inputting the baby state information sample into the preset first model to be trained to obtain the predicted coaxing to sleep decision plan, until the state change score value meets the preset first loss convergence condition, and obtaining a decision model with satisfactory accuracy conditions; the baby state information sample is obtained by performing multimodal fusion processing on the baby coaxing to sleep information sample based on a preset information fusion model, and the first model to be trained is a reinforcement learning model.

[0076] As an example, the device analyzes and processes the target baby status information based on a preset decision model to obtain a target coaxing-to-sleep decision plan, and controls the crib to perform the coaxing-to-sleep operation on the baby in the crib according to the target coaxing-to-sleep decision plan, wherein the target coaxing-to-sleep decision plan refers to a related decision plan for controlling the crib to achieve coaxing to sleep, and the crib achieves the coaxing-to-sleep function for the baby based on corresponding motor operating parameters. The specific target coaxing-to-sleep decision plan may be motor operating parameters. The device generates corresponding motor operating parameters based on the preset decision model and the current baby status information, and controls the crib to execute the target coaxing-to-sleep decision plan to achieve automatic control of coaxing the baby to sleep.

[0077] As an example, the decision model is obtained by iteratively training the preset first model to be trained using reinforcement learning, wherein reinforcement learning is a learning mechanism for learning how to map from state to behavior so as to maximize the reward obtained. The agent (decision model) needs to continuously experiment in the environment, and continuously optimize the state-behavior correspondence through the feedback (reward) given by the environment, wherein repeated experiments (iterative training) and delayed rewards (state change score value) are the two most important features of reinforcement learning. Therefore, the present application adopts a model training method of reinforcement learning, and trains the decision model by autonomously exploring the environment without the need for historical coaxing data to sleep, and there are no other conditions or restrictions. It is applicable to all babies coaxing to sleep, thereby improving the flexibility of crib control.

[0078] The present application provides a method for coaxing a baby to sleep. Compared with the related art, it is necessary to collect the baby's historical coaxing data in advance before the baby's coaxing data can be controlled. For the baby without collected coaxing data, the corresponding control cannot be achieved, and if there are few data records of the historical coaxing data, the control of the baby crib will appear fixed and repetitive, which limits the control of the baby crib by this scheme and leads to poor flexibility. In the present application, multi-dimensional information related to the baby's sleep in the crib is obtained; based on a preset information fusion model, the multi-dimensional information is subjected to multi-modal fusion processing to obtain target baby status information; based on a preset decision model, the target baby status information is analyzed and processed to obtain a target coaxing decision plan, and the crib is controlled to perform the coaxing operation for the baby in the crib according to the target coaxing decision plan; wherein the decision model is obtained according to the following steps: the baby status information sample is converted into This is input into the preset first model to be trained to obtain a predicted sleep-coaxing decision plan; secondly, after controlling the crib to execute the predicted sleep-coaxing decision plan, an updated baby state information sample is obtained; then based on the baby state information sample and the updated baby state information sample, a state change score value is determined; finally, it is determined whether the state change score value satisfies the preset first loss convergence condition. If the state change score value does not meet the preset first loss convergence condition, return to the step of inputting the baby state information sample into the preset first model to be trained to obtain a predicted sleep-coaxing decision plan, until the state change score value meets the preset first loss convergence condition, and a decision model that meets the accuracy condition is obtained; the baby state information sample is obtained by performing multimodal fusion processing on the baby sleep-coaxing information sample based on a preset information fusion model, and the first model to be trained is a reinforcement learning model. That is, in this application, a reinforcement learning model training method is adopted, and the decision model algorithm is optimized based on the infant state change score before and after the execution of the predicted coaxing to sleep decision plan as instant feedback, so that the decision model can be trained by autonomously exploring the environment without the need for historical coaxing to sleep data. There are no other conditions or restrictions, and it is suitable for all infants to coax to sleep, thereby improving the flexibility of crib control.

[0079] Based on the above first embodiment, the present application also provides another embodiment, referring to Figure 4 The method for coaxing a baby to sleep comprises the following steps A100-A500:

[0080] Step A100, when the user presses the relevant start button of the electric baby bed, the device starts the intelligent electric baby bed coaxing sleep control program, and the initial state starts from the default setting;

[0081] Step A200, the device obtains the baby's current facial and limb information, as well as external information such as temperature, humidity, and light;

[0082] Step A300, inputting the multiple information in step A200 into a pre-designed multimodal fusion model to obtain a comprehensive value for measuring the infant's sleeping state;

[0083] Step A400, inputting the baby sleeping state value of step A300 into the reinforcement learning model, calculating the baby bed control parameters, updating the rocking frequency / amplitude / angle of the electric rocking chair, and continuing to run for T time;

[0084] Step A500, monitor the baby's deep sleep, if the baby wakes up after a preset time, start the parent reminder operation, if the baby wakes up before the preset time or cries, return to step A200 and subsequent steps.

[0085] As an example, the reinforcement learning model training method is used to train the decision model through autonomous exploration of the environment without the need for historical coaxing-to-sleep data. There are no other restrictions and it is suitable for coaxing all babies to sleep, thereby improving the flexibility of crib control.

[0086] Based on the above first embodiment, the present application also provides another embodiment, referring to Figure 5 , the method for coaxing a baby to sleep comprises:

[0087] Before the step S100 of acquiring multi-dimensional information related to the baby sleeping in the crib, the method includes the following steps B100-B500:

[0088] Step B100, obtaining a sample of information on how to coax a baby to sleep;

[0089] As an example, the baby coaxing to sleep information sample is related to baby coaxing to sleep, and the sample used for model training comes from the data of multiple baby coaxing to sleep process, wherein, with reference to Figure 5 The data of the baby coaxing to sleep process specifically include the baby's facial state information, limb information, external temperature, humidity, current time, etc. at each moment of time = 0, T, 2T, 3T...nT, as well as the operating parameter information of the parents shaking the electric crib, and the baby's sleep evaluation at the current time t relative to the previous time tT, that is, the baby coaxing to sleep information sample includes but is not limited to the baby's facial state information, limb information, external temperature information, external humidity information, current time information, etc.

[0090] As an example, the device may obtain baby sleep information samples by collecting corresponding information based on relevant sensors (such as cameras, sound sensors, temperature sensors, humidity sensors, clocks, etc.); or it may obtain the samples by receiving baby sleep information samples uploaded by users.

[0091] It should be noted that the device can only obtain baby sleep information samples with the authorization of the user (or parent), and the user has been informed that the baby sleep information samples collected by the device are used to train the decision model, and the collected baby sleep information samples will not be used in other scenarios unrelated to this application.

[0092] Step B200, performing multimodal fusion processing on the baby sleeping information sample based on a preset information fusion model to obtain a baby status information sample;

[0093] As an example, the device performs multimodal fusion processing on the baby sleeping information sample based on a preset information fusion model to obtain a baby status information sample. The processing method of this step refers to step S200 and is not repeated here.

[0094] Step B300, inputting the infant status information sample into a preset first model to be trained to obtain a prediction sleep-coaxing decision plan, wherein the first model to be trained is a reinforcement learning model;

[0095] As an example, the device inputs the infant status information sample into a preset first model to be trained to obtain a predicted decision plan for coaxing to sleep, wherein the first model to be trained is a reinforcement learning model, the first model to be trained is the initial training model of the decision model, and the first model to be trained has the ability to process infant status information samples and obtain corresponding predicted decision plans for coaxing to sleep, and the only difference compared to the decision model is the prediction accuracy. Specifically, the reinforcement learning model (first model to be trained) operates on the infant status information sample to obtain new motor operation parameters (predicted decision plan for coaxing to sleep).

[0096] Step B400, after controlling the baby crib to execute the predicted coaxing-to-sleep decision plan, obtaining an updated baby state information sample, and determining a state change score value based on the baby state information sample and the updated baby state information sample;

[0097] As an example, after the device obtains a predicted sleep-coaxing decision plan based on the first model to be trained, it controls the crib to execute the predicted sleep-coaxing decision plan, wherein the parents need to wait until a fixed time T for the sleep-coaxing process, but in the algorithm training, this T time is regarded as a sequential step and does not require actual waiting. After the crib is controlled to execute the predicted sleep-coaxing decision plan, the environment related to the baby's falling asleep (the environment includes the baby's body information, external information, the baby's sleeping state, etc.) changes accordingly, and the device re-acquires the baby's state information sample after the current change (i.e., the updated baby's state information sample), and determines the state change score value based on the baby's state information sample and the updated baby's state information sample, wherein the state change score value is the feedback (reward) given by the environment. Specifically, the present application uses the evaluation of the baby's sleep state (good or bad) twice before and after (or multiple times in multiple time periods) as immediate feedback or reward.

[0098] Step B500, determine whether the state change score value meets the preset first loss convergence condition. If the state change score value does not meet the preset first loss convergence condition, return to the step of inputting the baby state information sample into the preset first model to be trained to obtain a step of predicting a sleep-coaxing decision plan, until the state change score value meets the preset first loss convergence condition, and a decision model that meets the accuracy condition is obtained.

[0099] As an example, the device determines whether the state change score value satisfies the preset first loss convergence condition. If the state change score value does not meet the preset first loss convergence condition, it returns to the step of inputting the infant state information sample into the preset first model to be trained to obtain a step of predicting a decision plan for coaxing the baby to sleep, until the state change score value meets the preset first loss convergence condition, and a decision model that meets the accuracy condition is obtained, that is, the present application uses the state change score value as instant feedback or reward in reinforcement learning to optimize the algorithm. Specifically, if the state change score value does not meet the preset first loss convergence condition, it means that the relevant parameters in the algorithm of the current first model to be trained have not reached the convergence condition, then the device optimizes the relevant parameters in the algorithm of the current first model to be trained according to the state change score value, wherein the parameter optimization method may be to update the parameters in a gradient ascent manner, and to transfer the gradient from the state value back to the multimodal fusion model to update the parameters of each model therein. Based on the first model to be trained of the optimized algorithm, repeat the above steps B100-B500 until the state change score value meets the preset first loss convergence condition, which means that the relevant parameters in the algorithm of the current first model to be trained have reached the convergence condition, and the reinforcement learning model training is completed to obtain a decision model that meets the accuracy conditions.

[0100] As an example, the present application introduces a reinforcement learning algorithm, and obtains a decision model through training. The device makes decisions and controls the electric crib based on the decision model, which is in line with the process of human cognitive learning and the parents' observation of the baby's body, facial information and external information to determine the speed and direction of rocking the crib, so as to help the baby fall asleep. In order to enable the reinforcement learning algorithm to be trained and used, the key lies in how to involve incentives or feedback. The present application proposes to optimize the algorithm by using the evaluation of the sleep state (good or bad) twice before and after as instant feedback or reward, so as to realize the training of the decision model through autonomous exploration of the environment without the need for historical coaxing data to sleep, without other restrictions, and applicable to all babies to sleep, thereby improving the flexibility of the control of the crib.

[0101] Before the step B200 of performing multimodal fusion processing on the baby coaxing to sleep information sample based on a preset information fusion model to obtain the baby status information sample, the method includes the following steps C100:

[0102] Step C100, performing random information erasure processing on the baby coaxing to sleep information under the baby status information sample to obtain an erased baby coaxing to sleep information sample;

[0103] The erased baby coaxing to sleep information samples include some baby coaxing to sleep information samples of the baby status information samples, or the erased baby coaxing to sleep information samples include all baby coaxing to sleep information samples of the baby status information samples.

[0104] As an example, in the process of training the decision model, the device performs random information erasure processing on the baby coaxing information under the baby state information sample before performing multimodal fusion processing on the baby coaxing information sample based on the preset information fusion model to obtain the erased baby coaxing information sample, wherein the erased baby coaxing information sample includes part of the baby coaxing information sample of the baby state information sample, or the erased baby coaxing information sample includes all the baby coaxing information samples of the baby state information sample, that is, the random information erasure processing may be to erase part of the information, or may not erase any information, but there will be no situation where all the information is erased. Because some information is inevitably lacking when collecting samples of the baby coaxing process (such as time information is not recorded), the present application designs a module for random information erasure to realize intelligent control of the algorithm model in the case of partial information missing, thereby enhancing the robustness of the algorithm, so that the algorithm model can stably and reliably perform the corresponding information processing work when some information cannot be obtained in product applications.

[0105] Based on the first and second embodiments described above, the present application further provides another embodiment, wherein the method for coaxing a baby to sleep comprises:

[0106] In step B400, after controlling the crib to execute the predicted coaxing-to-sleep decision plan, obtaining an updated infant status information sample, and determining a status change score value based on the infant status information sample and the updated infant status information sample, the method includes the following steps D100-D300:

[0107] Step D100, after controlling the baby crib to execute the predicted coaxing-to-sleep decision plan, obtaining the baby coaxing-to-sleep result;

[0108] As an example, the baby coaxing sleep result refers to the result of whether the baby successfully falls asleep. After controlling the crib to execute the predicted coaxing sleep decision plan, the environment related to the baby falling asleep (the environment includes the baby's own information, external information, the baby's sleeping status, etc.) changes accordingly, and the device re-acquires the baby coaxing sleep information sample and the updated baby status information sample after the change. The device determines the baby coaxing sleep result based on the baby coaxing sleep information sample and / or the updated baby status information sample, wherein the baby coaxing sleep result can be analyzed according to the judgment method (or rules) related to whether the baby has successfully fallen asleep, to determine whether the current baby has successfully fallen asleep, and obtain the baby coaxing sleep result.

[0109] Step D200, determining whether the state change score value satisfies a preset first loss convergence condition, and determining whether the baby sleeping result satisfies a preset second loss convergence condition;

[0110] As an example, the device determines whether the state change score value satisfies the preset first loss convergence condition, and determines whether the baby coaxing to sleep result satisfies the preset second loss convergence condition. The present application proposes to use the two previous sleep state (good or bad) evaluations and the baby coaxing to sleep result as instant feedback or rewards. In each round of iteration cycle, the device obtains the state change score value and the baby coaxing to sleep result, and determines whether the state change score value satisfies the preset first loss convergence condition, and determines whether the baby coaxing to sleep result satisfies the preset second loss convergence condition. In this way, it is combined to determine whether the model converges.

[0111] Step D300, if the state change score value does not meet the preset first loss convergence condition or the baby sleeping result does not meet the preset second loss convergence condition, return to the step of inputting the baby state information sample into the preset first model to be trained to obtain a predicted sleeping decision plan, until the state change score value meets the preset first loss convergence condition and the baby sleeping result meets the preset second loss convergence condition, and a decision model that meets the accuracy conditions is obtained.

[0112] As an example, if the state change score value does not meet the preset first loss convergence condition or the baby coaxing to sleep result does not meet the preset second loss convergence condition, the device returns to the step of inputting the baby state information sample into the preset first model to be trained to obtain a predicted coaxing to sleep decision plan until the state change score value meets the preset first loss convergence condition and the baby coaxing to sleep result meets the preset second loss convergence condition, thereby obtaining a decision model that meets the accuracy conditions. Specifically, if the state change score value does not meet the preset first loss convergence condition or the baby coaxing to sleep result does not meet the preset second loss convergence condition, it means that the relevant parameters in the algorithm of the current first model to be trained have not reached the convergence condition, then the device optimizes the relevant parameters in the algorithm of the current first model to be trained according to the state change score value and the baby coaxing to sleep result, and repeats the above model training steps based on the first model to be trained of the optimized algorithm until the state change score value meets the preset first loss convergence condition and the baby coaxing to sleep result meets the preset second loss convergence condition, then it means that the relevant parameters in the algorithm of the current first model to be trained have reached the convergence condition, the reinforcement learning model training is completed, and a decision model that meets the accuracy conditions is obtained.

[0113] As an example, the present application proposes to use the sleep status (good or bad) evaluations twice before and after and the results of coaxing the baby to sleep as immediate feedback or rewards, that is, combining the sleep status evaluation and the results of coaxing the baby to sleep to judge the loss convergence of the model. Only when the state change score value and the baby coaxing result of the current model iteration cycle simultaneously meet the corresponding loss convergence conditions, the reinforcement learning model training is completed, and a decision model that meets the accuracy conditions is obtained, thereby improving the prediction accuracy of the decision model.

[0114] Based on the first, second and third embodiments described above, the present application further provides another embodiment, wherein the method for coaxing a baby to sleep comprises:

[0115] Before the step S100 of acquiring multi-dimensional information related to the baby sleeping in the crib, the method further includes the following steps E100-E200:

[0116] Step E100, obtaining a sample of information on how to coax a baby to sleep;

[0117] As an example, this step refers to the above step B100 and will not be repeated here.

[0118] Step E200, based on the baby coaxing to sleep information sample, a preset second model to be trained and a preset first model to be trained are jointly trained by using a reinforcement learning method to obtain an information fusion model and a decision model that meet the accuracy conditions;

[0119] The second model to be trained is the initial training model of the information fusion model, and the first model to be trained is the initial training model of the decision model.

[0120] As an example, since both the information fusion model and the decision model use the previous and subsequent sleep status (good or bad) evaluations as immediate feedback or rewards, the information fusion model and the decision model can be jointly trained. Specifically, the device uses reinforcement learning based on the baby sleep information sample to jointly train the preset second model to be trained and the preset first model to be trained to obtain an information fusion model and a decision model that meet the accuracy conditions, wherein the second model to be trained is the initial training model of the information fusion model, and the first model to be trained is the initial training model of the decision model.

[0121] Specifically, the step E200 includes the following steps E210-E240:

[0122] Step E210, inputting the baby sleeping information sample into a preset second to-be-trained model to obtain a baby status information sample;

[0123] As an example, the device inputs the baby sleep information sample into a preset second model to be trained to obtain a baby status information sample, the second model to be trained is the initial training model of the information fusion model, and the second model to be trained has the ability to process the baby sleep information sample and obtain the corresponding baby status information sample, and the only difference compared with the information fusion model is the prediction accuracy. Specifically, the reinforcement learning model (the second model to be trained) performs multimodal fusion processing on the baby sleep information sample to obtain the baby status information sample.

[0124] Step E220, inputting the infant status information sample into a preset first model to be trained to obtain a prediction and decision scheme for coaxing the infant to sleep, wherein both the first model to be trained and the second model to be trained are reinforcement learning models;

[0125] As an example, this step refers to the above step B300 and will not be repeated here.

[0126] Step E230, after controlling the crib to execute the predicted coaxing-to-sleep decision plan, obtaining an updated infant state information sample, and determining a state change score value based on the infant state information sample and the updated infant state information sample;

[0127] As an example, this step refers to the above step B400 and will not be repeated here.

[0128] Step E240, determines whether the state change score value satisfies the preset first loss convergence condition. If the state change score value does not meet the preset loss convergence condition, returns to the step of inputting the baby sleep information sample into the preset second model to be trained to obtain the baby state information sample, until the state change score value meets the preset first loss convergence condition, and obtains the information fusion model and decision model that meet the accuracy conditions.

[0129] As an example, the device determines whether the state change score value satisfies the preset first loss convergence condition. If the state change score value does not meet the preset loss convergence condition, it returns to the step of inputting the baby sleep information sample into the preset second model to be trained to obtain the baby state information sample until the state change score value meets the preset first loss convergence condition, thereby obtaining an information fusion model and a decision model that meet the accuracy conditions. Both the information fusion model and the decision model use the two previous sleep state (good or bad) evaluations as immediate feedback or rewards to optimize the second model to be trained and the first model to be trained. Specifically, if the state change score value does not meet the preset first loss convergence condition, it means that the relevant parameters in the algorithms of the current first model to be trained and the second model to be trained have not reached the convergence condition. Then, the device optimizes the relevant parameters in the algorithms of the current first model to be trained and the second model to be trained according to the state change score value, and repeats the above joint model training based on the first model to be trained and the second model to be trained of the optimized algorithm until the state change score value meets the preset first loss convergence condition, which means that the relevant parameters in the algorithms of the current first model to be trained and the second model to be trained have reached the convergence condition, and the reinforcement learning model training is completed to obtain an information fusion model and a decision model that meet the accuracy conditions.

[0130] The present application also provides a baby sleeping device, referring to Figure 3 , the baby sleeping device comprises:

[0131] An acquisition module 10, for acquiring multi-dimensional information related to the baby's sleep in the crib;

[0132] A fusion module 20 is used to perform multimodal fusion processing on the multi-dimensional information based on a preset information fusion model to obtain target infant status information;

[0133] An execution module 30 is used to analyze and process the target baby state information based on a preset decision model to obtain a target coaxing-to-sleep decision plan, and control the crib to perform a coaxing-to-sleep operation for the baby in the crib according to the target coaxing-to-sleep decision plan;

[0134] Among them, the decision model is obtained according to the following steps: inputting the baby state information sample into the preset first model to be trained to obtain a predicted coaxing to sleep decision plan; secondly, after controlling the baby crib to execute the predicted coaxing to sleep decision plan, obtaining the updated baby state information sample; then based on the baby state information sample and the updated baby state information sample, determining the state change score value; finally, judging whether the state change score value meets the preset first loss convergence condition. If the state change score value does not meet the preset first loss convergence condition, returning to the step of inputting the baby state information sample into the preset first model to be trained to obtain the predicted coaxing to sleep decision plan, until the state change score value meets the preset first loss convergence condition, and obtaining a decision model with satisfactory accuracy conditions; the baby state information sample is obtained by performing multimodal fusion processing on the baby coaxing to sleep information sample based on a preset information fusion model, and the first model to be trained is a reinforcement learning model.

[0135] And / or, the baby coaxing sleep device further includes: an information erasing module, used for performing random information erasing processing on the baby coaxing sleep information under the baby status information sample to obtain the baby coaxing sleep information sample after erasure; wherein the baby coaxing sleep information sample after erasure includes part of the baby coaxing sleep information sample of the baby status information sample, or the baby coaxing sleep information sample after erasure includes all of the baby coaxing sleep information samples of the baby status information sample;

[0136] And / or, the baby coaxing sleep device further includes: a coaxing sleep result acquisition module, used for acquiring the baby coaxing sleep result after controlling the baby bed to execute the predicted coaxing sleep decision plan; a judgment module, used for judging whether the state change score value satisfies a preset first loss convergence condition, and judging whether the baby coaxing sleep result satisfies a preset second loss convergence condition; a second iterative training module, used for returning to the step of inputting the baby state information sample into a preset first model to be trained to obtain a predicted coaxing sleep decision plan if the state change score value does not satisfy the preset first loss convergence condition or the baby coaxing sleep result does not satisfy the preset second loss convergence condition, until the state change score value satisfies the preset first loss convergence condition, and the baby coaxing sleep result satisfies the preset second loss convergence condition, so as to obtain a decision model that satisfies the accuracy condition;

[0137] And / or, the baby coaxing sleep device further comprises: a joint training module, which is used to jointly train the preset second model to be trained and the preset first model to be trained based on the baby coaxing sleep information sample by using reinforcement learning to obtain an information fusion model and a decision model that meet the accuracy conditions; wherein the second model to be trained is the initial training model of the information fusion model, and the first model to be trained is the initial training model of the decision model;

[0138] And / or, the joint training module includes: a second state information sample determination module, which is used to input the baby sleep information sample into a preset second model to be trained to obtain a baby state information sample; a second plan prediction module, which is used to input the baby state information sample into a preset first model to be trained to obtain a predicted sleep decision plan, wherein the first model to be trained and the second model to be trained are both reinforcement learning models; a second change scoring module, which is used to obtain an updated baby state information sample after controlling the baby crib to execute the predicted sleep decision plan, and determine a state change score value based on the baby state information sample and the updated baby state information sample; a third iterative training module, which is used to determine whether the state change score value meets a preset first loss convergence condition. If the state change score value does not meet the preset loss convergence condition, return to the step of inputting the baby sleep information sample into the preset second model to be trained to obtain the baby state information sample, until the state change score value meets the preset first loss convergence condition, and obtain an information fusion model and a decision model that meet the accuracy condition.

[0139] The specific implementation of the baby sleeping device of the present application is basically the same as the embodiments of the above-mentioned baby sleeping method, and will not be repeated here.

[0140] Reference Figure 1 , Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application.

[0141] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0142] Optionally, the baby coaxing device may also include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. The rectangular user interface may include a display screen (Display), an input submodule such as a keyboard (Keyboard), and the optional rectangular user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).

[0143] Those skilled in the art will understand that Figure 1 The structure of the baby lulling device to sleep shown in the figure does not constitute a limitation of the baby lulling device to sleep, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0144] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module and a baby lulling program. The operating system is a program that manages and controls the hardware and software resources of the baby lulling device, and supports the operation of the baby lulling program and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication with other hardware and software in the baby lulling system.

[0145] exist Figure 1 In the baby-soothing device shown, the processor 1001 is used to execute the baby-soothing program stored in the memory 1005 to implement the steps of any of the above-mentioned baby-soothing methods.

[0146] The specific implementation of the baby sleeping device of the present application is basically the same as the above-mentioned embodiments of the baby sleeping method, and will not be repeated here.

[0147] The present application also provides a storage medium, on which is stored a program for implementing a method for lulling a baby to sleep, and the program for implementing a method for lulling a baby to sleep is executed by a processor to implement the method for lulling a baby to sleep as described below:

[0148] Obtain multidimensional information related to infant sleep in the crib;

[0149] Based on a preset information fusion model, multimodal fusion processing is performed on the multi-dimensional information to obtain target infant status information;

[0150] Based on a preset decision model, the target baby state information is analyzed and processed to obtain a target coaxing-to-sleep decision plan, and the crib is controlled to perform a coaxing-to-sleep operation on the baby in the crib according to the target coaxing-to-sleep decision plan;

[0151] Among them, the decision model is obtained according to the following steps: inputting the baby state information sample into the preset first model to be trained to obtain a predicted coaxing to sleep decision plan; secondly, after controlling the baby crib to execute the predicted coaxing to sleep decision plan, obtaining the updated baby state information sample; then based on the baby state information sample and the updated baby state information sample, determining the state change score value; finally, judging whether the state change score value meets the preset first loss convergence condition. If the state change score value does not meet the preset first loss convergence condition, returning to the step of inputting the baby state information sample into the preset first model to be trained to obtain the predicted coaxing to sleep decision plan, until the state change score value meets the preset first loss convergence condition, and obtaining a decision model with satisfactory accuracy conditions; the baby state information sample is obtained by performing multimodal fusion processing on the baby coaxing to sleep information sample based on a preset information fusion model, and the first model to be trained is a reinforcement learning model.

[0152] Optionally, the multi-dimensional information includes infant body information, time information, and environmental information related to infant sleep.

[0153] Optionally, before the step of inputting the infant status information sample into a preset first model to be trained to obtain a predicted sleep-coaxing decision plan, the method includes:

[0154] Performing random information erasure processing on the baby coaxing to sleep information under the baby status information sample to obtain an erased baby coaxing to sleep information sample;

[0155] The erased baby coaxing to sleep information samples include some baby coaxing to sleep information samples of the baby status information samples, or the erased baby coaxing to sleep information samples include all baby coaxing to sleep information samples of the baby status information samples.

[0156] Optionally, after the step of determining a state change score value based on the infant state information sample and the updated infant state information sample, the method includes:

[0157] After controlling the crib to execute the predicted coaxing-to-sleep decision plan, obtaining a coaxing-to-sleep result for the baby;

[0158] The step of judging whether the state change score value satisfies the preset first loss convergence condition, and if the state change score value does not satisfy the preset first loss convergence condition, returning to the step of inputting the infant state information sample into the preset first to-be-trained model to obtain a step of predicting a decision plan for coaxing the baby to sleep, until the state change score value satisfies the preset first loss convergence condition, and obtaining a decision model having a satisfactory accuracy condition, comprises:

[0159] Determine whether the state change score value satisfies a preset first loss convergence condition, and determine whether the baby sleeping result satisfies a preset second loss convergence condition;

[0160] If the state change score value does not meet the preset first loss convergence condition or the baby sleeping result does not meet the preset second loss convergence condition, return to the step of inputting the baby state information sample into the preset first model to be trained to obtain a prediction step of the sleeping decision plan, until the state change score value meets the preset first loss convergence condition and the baby sleeping result meets the preset second loss convergence condition, so as to obtain a decision model that meets the accuracy conditions.

[0161] Optionally, before the step of acquiring multi-dimensional information related to infant sleep, the method includes:

[0162] Get sample baby sleep information;

[0163] Based on the baby coaxing sleep information sample, the preset second model to be trained and the preset first model to be trained are jointly trained by using reinforcement learning to obtain an information fusion model and a decision model that meet the accuracy conditions;

[0164] The second model to be trained is the initial training model of the information fusion model, and the first model to be trained is the initial training model of the decision model.

[0165] Optionally, the step of jointly training the preset second model to be trained and the preset first model to be trained by reinforcement learning based on the baby coaxing to sleep information sample to obtain an information fusion model and a decision model that meet the accuracy conditions includes:

[0166] Inputting the baby sleeping information sample into a preset second to-be-trained model to obtain a baby status information sample;

[0167] Inputting the infant status information sample into a preset first model to be trained to obtain a prediction and decision scheme for coaxing the infant to sleep, wherein the first model to be trained and the second model to be trained are both reinforcement learning models;

[0168] After controlling the crib to execute the predicted coaxing-to-sleep decision plan, obtaining an updated infant state information sample, and determining a state change score value based on the infant state information sample and the updated infant state information sample;

[0169] Determine whether the state change score value satisfies the preset first loss convergence condition. If the state change score value does not meet the preset loss convergence condition, return to the step of inputting the baby sleep information sample into the preset second model to be trained to obtain the baby state information sample, until the state change score value meets the preset first loss convergence condition, and obtain an information fusion model and a decision model that meet the accuracy conditions.

[0170] The specific implementation of the storage medium of the present application is basically the same as the above-mentioned embodiments of the method for coaxing a baby to sleep, and will not be repeated here.

[0171] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned method for coaxing a baby to sleep when executed by a processor.

[0172] The specific implementation of the computer program product of the present application is basically the same as the above-mentioned embodiments of the method for coaxing a baby to sleep, and will not be repeated here.

[0173] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0174] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0175] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0176] The above are only preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the protection scope of the present application.

Claims

1. A method for coaxing a baby to sleep, characterized in that: include: Obtain multidimensional information related to infant sleep in the crib; Based on a preset information fusion model, multimodal fusion processing is performed on the multi-dimensional information to obtain target infant status information; Based on a preset decision model, the target baby state information is analyzed and processed to obtain a target coaxing-to-sleep decision plan, and the crib is controlled to perform a coaxing-to-sleep operation on the baby in the crib according to the target coaxing-to-sleep decision plan; The decision model is obtained according to the following steps: inputting the infant status information sample into a preset first to-be-trained model to obtain a predicted sleep-coaxing decision plan; Secondly, after controlling the crib to execute the predicted coaxing-to-sleep decision plan, an updated baby state information sample is obtained; then based on the baby state information sample and the updated baby state information sample, a state change score value is determined; finally, it is determined whether the state change score value satisfies a preset first loss convergence condition. If the state change score value does not meet the preset first loss convergence condition, the step of returning to input the baby state information sample into a preset first model to be trained to obtain a predicted coaxing-to-sleep decision plan is performed until the state change score value meets the preset first loss convergence condition, thereby obtaining a decision model that meets the accuracy condition; the baby state information sample is obtained by performing multimodal fusion processing on the baby coaxing-to-sleep information sample based on a preset information fusion model, and the first model to be trained is a reinforcement learning model.

2. The method for coaxing a baby to sleep as claimed in claim 1, characterized in that: The multi-dimensional information includes infant body information, time information, and environmental information related to infant sleep.

3. The method for coaxing a baby to sleep as claimed in claim 1, characterized in that: Before the step of inputting the infant status information sample into the preset first to-be-trained model to obtain a prediction decision plan for coaxing the infant to sleep, the method includes: Performing random information erasure processing on the baby coaxing to sleep information under the baby status information sample to obtain an erased baby coaxing to sleep information sample; The erased baby coaxing to sleep information samples include some baby coaxing to sleep information samples of the baby status information samples, or the erased baby coaxing to sleep information samples include all baby coaxing to sleep information samples of the baby status information samples.

4. The method for coaxing a baby to sleep as claimed in claim 1, characterized in that: After the step of determining the state change score value based on the infant state information sample and the updated infant state information sample, the method includes: After controlling the crib to execute the predicted coaxing-to-sleep decision plan, obtaining a coaxing-to-sleep result for the baby; The step of judging whether the state change score value satisfies the preset first loss convergence condition, and if the state change score value does not satisfy the preset first loss convergence condition, returning to the step of inputting the infant state information sample into the preset first to-be-trained model to obtain a step of predicting a decision plan for coaxing the baby to sleep, until the state change score value satisfies the preset first loss convergence condition, and obtaining a decision model having a satisfactory accuracy condition, comprises: Determine whether the state change score value satisfies a preset first loss convergence condition, and determine whether the baby sleeping result satisfies a preset second loss convergence condition; If the state change score value does not meet the preset first loss convergence condition or the baby sleeping result does not meet the preset second loss convergence condition, return to the step of inputting the baby state information sample into the preset first model to be trained to obtain a prediction step of the sleeping decision plan, until the state change score value meets the preset first loss convergence condition and the baby sleeping result meets the preset second loss convergence condition, so as to obtain a decision model that meets the accuracy conditions.

5. The method for coaxing a baby to sleep as claimed in claim 1, characterized in that: Prior to the step of obtaining multi-dimensional information related to infant sleep, the method includes: Get sample baby sleep information; Based on the baby coaxing sleep information sample, the preset second model to be trained and the preset first model to be trained are jointly trained by using reinforcement learning to obtain an information fusion model and a decision model that meet the accuracy conditions; The second model to be trained is the initial training model of the information fusion model, and the first model to be trained is the initial training model of the decision model.

6. The method for coaxing a baby to sleep as claimed in claim 5, characterized in that: The step of jointly training the preset second model to be trained and the preset first model to be trained by reinforcement learning based on the baby coaxing to sleep information sample to obtain an information fusion model and a decision model that meet the accuracy conditions includes: Inputting the baby sleeping information sample into a preset second to-be-trained model to obtain a baby status information sample; Inputting the infant status information sample into a preset first model to be trained to obtain a prediction and decision scheme for coaxing the infant to sleep, wherein the first model to be trained and the second model to be trained are both reinforcement learning models; After controlling the crib to execute the predicted coaxing-to-sleep decision plan, obtaining an updated infant state information sample, and determining a state change score value based on the infant state information sample and the updated infant state information sample; Determine whether the state change score value satisfies the preset first loss convergence condition. If the state change score value does not meet the preset loss convergence condition, return to the step of inputting the baby sleep information sample into the preset second model to be trained to obtain the baby state information sample, until the state change score value meets the preset first loss convergence condition, and obtain an information fusion model and a decision model that meet the accuracy conditions.

7. A baby sleeping device, characterized in that: The baby sleeping device comprises: An acquisition module, for acquiring multi-dimensional information related to the baby's sleep in the crib; A fusion module, used for performing multimodal fusion processing on the multi-dimensional information based on a preset information fusion model to obtain target infant status information; An execution module, configured to analyze and process the target baby status information based on a preset decision model, obtain a target coaxing-to-sleep decision plan, and control the crib to perform a coaxing-to-sleep operation on the baby in the crib according to the target coaxing-to-sleep decision plan; Among them, the decision model is obtained according to the following steps: inputting the baby state information sample into the preset first model to be trained to obtain a predicted coaxing to sleep decision plan; secondly, after controlling the baby crib to execute the predicted coaxing to sleep decision plan, obtaining the updated baby state information sample; then based on the baby state information sample and the updated baby state information sample, determining the state change score value; finally, judging whether the state change score value meets the preset first loss convergence condition. If the state change score value does not meet the preset first loss convergence condition, returning to the step of inputting the baby state information sample into the preset first model to be trained to obtain the predicted coaxing to sleep decision plan, until the state change score value meets the preset first loss convergence condition, and obtaining a decision model with satisfactory accuracy conditions; the baby state information sample is obtained by performing multimodal fusion processing on the baby coaxing to sleep information sample based on a preset information fusion model, and the first model to be trained is a reinforcement learning model.

8. The baby sleeping device according to claim 7, characterized in that: The baby sleeping device also includes: An information erasing module is used to perform random information erasure processing on the baby coaxing to sleep information under the baby status information sample to obtain the baby coaxing to sleep information sample after erasure; wherein the baby coaxing to sleep information sample after erasure includes part of the baby coaxing to sleep information sample of the baby status information sample, or the baby coaxing to sleep information sample after erasure includes all the baby coaxing to sleep information samples of the baby status information sample; And / or, the baby coaxing sleep device further includes: a coaxing sleep result acquisition module, used for acquiring the baby coaxing sleep result after controlling the baby bed to execute the predicted coaxing sleep decision plan; a judgment module, used for judging whether the state change score value satisfies a preset first loss convergence condition, and judging whether the baby coaxing sleep result satisfies a preset second loss convergence condition; a second iterative training module, used for returning to the step of inputting the baby state information sample into a preset first model to be trained to obtain a predicted coaxing sleep decision plan if the state change score value does not satisfy the preset first loss convergence condition or the baby coaxing sleep result does not satisfy the preset second loss convergence condition, until the state change score value satisfies the preset first loss convergence condition, and the baby coaxing sleep result satisfies the preset second loss convergence condition, so as to obtain a decision model that satisfies the accuracy condition; And / or, the baby coaxing sleep device further comprises: a joint training module, which is used to jointly train the preset second model to be trained and the preset first model to be trained based on the baby coaxing sleep information sample by using reinforcement learning to obtain an information fusion model and a decision model that meet the accuracy conditions; wherein the second model to be trained is the initial training model of the information fusion model, and the first model to be trained is the initial training model of the decision model; And / or, the joint training module includes: a second state information sample determination module, which is used to input the baby sleep information sample into a preset second model to be trained to obtain a baby state information sample; a second plan prediction module, which is used to input the baby state information sample into a preset first model to be trained to obtain a predicted sleep decision plan, wherein the first model to be trained and the second model to be trained are both reinforcement learning models; a second change scoring module, which is used to obtain an updated baby state information sample after controlling the baby crib to execute the predicted sleep decision plan, and determine a state change score value based on the baby state information sample and the updated baby state information sample; a third iterative training module, which is used to determine whether the state change score value meets a preset first loss convergence condition. If the state change score value does not meet the preset loss convergence condition, return to the step of inputting the baby sleep information sample into the preset second model to be trained to obtain the baby state information sample, until the state change score value meets the preset first loss convergence condition, and obtain an information fusion model and a decision model that meet the accuracy condition.

9. A baby sleeping device, characterized in that: The baby coaxing device to sleep comprises: a memory, a processor, and a program stored in the memory for implementing the baby coaxing method to sleep, The memory is used to store a program for implementing a method for lulling a baby to sleep; The processor is used to execute a program for implementing the method for lulling a baby to sleep, so as to implement the steps of the method for lulling a baby to sleep as claimed in any one of claims 1 to 6.

10. A storage medium, characterized in that: The storage medium stores a program for implementing a method for lulling a baby to sleep, and the program for implementing a method for lulling a baby to sleep is executed by a processor to implement the steps of the method for lulling a baby to sleep as claimed in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Robot sleep inducing method and robot

    CN107953346A

  • Method and device for automatically lulling baby to sleep, storage medium and intelligent crib

    CN108536996A

  • Auxiliary sleeping coaxing control method and device, storage medium and intelligent crib

    CN110780622A

  • Sleep intervention action output method and device, computer equipment and storage medium

    CN116251280A

  • Non-face-to-face baby care education system and its service method

    KR102370891B1