Infant sleep recording and coaxing device and use method thereof

Through the human posture recognition algorithm and physiological detection sensor system, combined with the automated sleep-inducing mechanism, it solves the problem of infant sleep data collection and management, achieves accurate assessment and automatic adjustment of infant sleep quality, and promotes the healthy growth of infants and family harmony.

CN118105037BActive Publication Date: 2024-08-23JIAXING YUANBEIBEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410254089.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-06
Publication Date
2024-08-23
Estimated Expiration
2044-03-06

AI Technical Summary

Technical Problem

Existing technology makes it difficult to scientifically and effectively collect and record babies' sleep data, making it difficult for guardians to understand the baby's sleep habits and quality, and affecting the baby's healthy growth.

Method used

Using a human posture recognition algorithm and physiological detection sensor system, through DIC digital image correlation detection and smart necklaces, the baby's posture and physiological data are collected to construct a sleep quality assessment, and combined with an automated sleep-inducing mechanism, provide customized sleep management solutions .

Benefits of technology

It achieves accurate assessment and automatic adjustment of infant sleep quality, helps infants enter a deeper sleep state, develops good sleep habits, promotes their healthy growth, reduces the burden on guardians, and improves the harmony of family life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118105037B
    Figure CN118105037B
Patent Text Reader

Abstract

The present invention provides a baby sleep recording and coaxing mechanism and a method of using the mechanism, including a body data recognition module, a physiological data recognition module and a baby coaxing module. The present invention aims at the baby's sleep problem, uses a computer vision algorithm and a sensor system to collect and identify the baby's sleep behavior and quality, helps parents better manage and understand the baby's sleep habits, and improves the baby's sleep quality. For inexperienced parents, the present invention has great application potential and value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of housekeeping, in particular to a baby sleep recording and coaxing device and a use method thereof. Background Art

[0002] The sleep problem of infants has always been one of the focuses of parents' attention, because good sleep is a key factor in the healthy growth of infants. How to scientifically and effectively collect and record infants' sleep data has become a very meaningful task. This work can not only provide guardians with an opportunity to gain an in-depth understanding of infants' sleep habits and quality, but also help to formulate a more reasonable sleep management plan, thereby improving the quality of life of infants. In today's highly developed technology, the collection and recording of sleep data has become more convenient and accurate. An innovative method is based on a human posture recognition algorithm and a physiological detection sensor system, through which the sleep quality of infants can be comprehensively and meticulously evaluated. This system can monitor physiological indicators such as infants' posture, breathing, heart rate, etc., and provide guardians with comprehensive and detailed sleep data. Through these data, guardians can better understand important information such as infants' sleep patterns, deep and shallow sleep cycles, etc., which helps to timely discover and solve possible sleep problems. This not only helps to improve the infant's sleep experience, but also reduces the burden on guardians and makes the whole family life more harmonious. The present invention has a wide range of applications and can be extended to social applications, bringing good housekeeping benefits. Summary of the invention

[0003] The object of the present invention is to provide a baby sleep recording and coaxing device and a method of using the same to solve the problems raised in the above-mentioned background technology.

[0004] To achieve the above-mentioned purpose, a baby sleep recording and coaxing device and a method of using the device are provided, including a posture data recognition module, a physiological data recognition module and a baby coaxing module; the specific process is described as follows:

[0005] S1. Arrange DIC (Digital Image Correlation) digital image correlation detection electronic equipment within the baby's sleeping space to collect the baby's body information and determine whether the baby is currently in a sleeping state;

[0006] S2. Based on the improved DIC digital image correlation detection algorithm, identify the current sleeping posture of the baby, mark the baby's deep sleep level according to the baby's movement amplitude per unit time, evaluate the sleep quality reflected by the current baby's posture, and record it on the cloud platform;

[0007] S3. Build a wearable lightweight smart necklace, which is used to detect the baby's heart rate and voice, collect heart rate and voice data in real time, build a sleep quality function, and evaluate the sleep quality reflected by the baby's current physiological state;

[0008] S4. Based on the sleep quality reflected by the infant's body state and physiological state, the correlation between these two types of data is analyzed to obtain a comprehensive sleep quality assessment of the infant;

[0009] S5. According to the infant's sleep quality, an automated sleep-lubricating mechanism is constructed to achieve automatic adjustment and promote infant sleep. At the same time, the whole process data of the infant's sleep is collected as an updated data set for the iterative algorithm to ensure that the mechanism has customized functions and data storage for each infant.

[0010] Furthermore, in the S1, electronic equipment for DIC digital image correlation detection is arranged within the sleeping space of the baby to collect the body information of the baby. The sleeping space of the baby is defined as a rectangular space with a height of 50 cm, 30 cm from the upper and lower distance between the baby's head and feet, and 30 cm to the left and right with the arms open. A visual camera is placed at a standard height in the center of the rectangular space, with the lens parallel to the baby's body.

[0011] Furthermore, the process of marking whether the baby is currently in a sleeping state in S1 is as follows:

[0012] (1) Image processing of infant body space

[0013] The electronic device based on DIC digital image correlation detection defines the baby's body posture information that changes over time as a digital image per second. A circular marker with RGB values ​​is attached to the baby's clothes for easy image recognition, so that the DIC device can accurately detect the grayscale value of the point at different times to match the baby's body posture; the baby's body posture is represented by the grayscale value of the image, which is used to measure the displacement change of each pixel point in the image, recorded as L x and L y The horizontal and vertical displacement fields representing the position of a point in the image are calculated as follows:

[0014]

[0015]

[0016] Among them, u is the horizontal axis pixel point, v is the vertical axis pixel point, is the gray value of the reference image at the pixel (u,v), is the gray value of the target image at the pixel (u, v); and are the average grayscale values ​​of the reference image and the target image, respectively. The target image and the reference image are images at two different moments;

[0017] (2) Determine the infant's sleeping state

[0018] The mean square grayscale value of the image per unit time is used to reflect the intensity of the baby's movement changes. The baby's movement amplitude within 1 minute is used to determine whether the baby is in a sleeping state. The calculation method is as follows:

[0019]

[0020]

[0021] Among them, P is the intensity of the baby's movement change, F is the grayscale change rate of the key point within 1 minute, which is used to represent the change rate of the baby's movement amplitude, and T is the calculation time period, which is 60 seconds.

[0022] Furthermore, in S2, based on the improved DIC digital image correlation detection algorithm, the current sleeping posture of the infant is identified, the deep sleeping degree of the infant is marked according to the amplitude of the infant's movements per unit time, and the sleep quality reflected by the current infant's posture information is evaluated. The detailed process is as follows:

[0023] (1) Optical flow technology is introduced to improve the stability of DIC calculation. Optical flow is a technology that describes the movement of pixels in an image. It can be used to improve the DIC algorithm's accurate estimation of the displacement of objects in an image, thereby accurately describing the sleep quality reflected by the current infant's body posture information. The calculation process of the horizontal displacement field U and the vertical displacement field V is as follows:

[0024]

[0025]

[0026] Among them, Δu and Δv represent the change marks of the image in the horizontal and vertical directions respectively, and their square terms are multiplied by weight parameters α, β, which are used to normalize the influence of the optical flow gradient to ensure that the calculation of the displacement field is less affected by the change of the image gradient; α and β∈[1,2] are weight parameters, which are used to ensure that the change amount acts to balance the difference between DIC and optical flow;

[0027] (2) Building a labeled relational database based on MySQL to store the relationship data between the infant's sleeping movement amplitude and sleep level;

[0028] (3) Based on the matching of movement amplitude and sleep level, the sleep quality Q reflected by the current baby's body state is obtained 1 ,

[0029]

[0030] Q 1 =ln[I(B;D)]

[0031] Among them, I(B;D) is the mutual information matching degree between movement amplitude and sleep degree, P(b,d) is the joint probability distribution function, P(b) and P(d) are the marginal probability distribution functions of infant movement amplitude and sleep degree, respectively, and μ is the error correction parameter.

[0032] Furthermore, a smart sensor is placed in S3 to detect the baby's heart rate and sound, wherein the smart sensor is placed under the mattress and is non-contact with the baby, ensuring that the sensor does not affect the baby's activity space.

[0033] Furthermore, in S3, a sleep quality function is constructed to evaluate the sleep quality reflected by the current physiological state of the infant. The detailed process is as follows:

[0034] The baby's heart rate and sound detected by the smart sensor placed under the mattress are stored in the cloud and a relational database is built. Based on this, the sleep quality reflected by the baby's physiological state is defined, and the logarithmic function is used to fit the baby's sleep quality reflected by the two data:

[0035]

[0036]

[0037]

[0038] Among them, Q 2 It is the sleep quality reflected by the baby's physiological state. The baby's heart rate monitoring data is obtained in real time by the smart sensor in S3, and S is the baby's sound monitoring data; the sound detection is easily affected by other sounds in the space. is the parameter affecting the infant's heart rate, where X max is the baby's maximum heart rate, X min is the minimum heart rate of the infant; γ is the parameter of the infant’s voice, s c is the current sound monitoring data, s 0 is the standard data of indoor noise, Δs J It is the floating range of sound detection data within one minute.

[0039] Furthermore, in S4, based on the sleep quality reflected by the baby's body state and physiological state, the correlation between these two types of data is analyzed, and a comprehensive sleep quality assessment of the baby is obtained. The detailed process is as follows:

[0040] Sleep quality Q based on infant's body posture 1 Sleep quality Q reflected by physiological state 2 Use linear functions to construct a comprehensive infant sleep quality assessment function Q.

[0041] Q=Q 1 +Q 2 +Q 3

[0042]

[0043] Among them, Q 1 It is the sleep quality reflected by the baby's body posture. 2 It is the sleep quality reflected by the infant's physiological state. 3 It is the guardian's involvement in assisting the quality of the baby's sleep.

[0044] Furthermore, in S5, an automatic coaxing mechanism is constructed according to the baby's sleep quality to achieve automatic adjustment and promote the baby's sleep, including: when the baby is crying due to physical factors during sleep, and there is no guardian around, the baby is connected to the automatic coaxing mechanism according to the sleep quality assessment; the automatic coaxing mechanism is constructed by an intelligent mechanical compartment, including a soft music player located in the annular crib, and a mechanical panel located on the bed board fitting surface that simulates gentle up and down movement, which is used to replace the guardian's coaxing method.

[0045] Furthermore, as an updated data set for the iterative algorithm, it ensures that the agency has customized functions and data storage for each baby. Baby data is private to parents, and babies with different physiques have different sleep quality and behavior. For this reason, the sleep-coaxing agency stores the data in the cloud database while monitoring the data, and provides the guardian with the baby's sleep information based on the user password. The data is also distributed to the agency's authority and used as a training data set for adjusting the algorithm for evaluating the baby's sleep quality. As the usage time increases, the agency will better understand the baby's sleep behavior and realize adaptive and self-increasing sleep data recording and sleep-coaxing functions.

[0046] Beneficial effects of the present invention: The present invention describes a baby sleep recording and coaxing mechanism and a method of using the mechanism, including a posture data recognition module, a physiological data recognition module and a baby coaxing module. First, the posture of the baby during sleep is collected based on the DIC image detection method, and the optical flow algorithm is introduced to enhance the evaluation accuracy based on the DIC processing result, and the baby sleep quality Q1 based on the posture information response is constructed; then, the physiological data of the baby during sleep is collected based on the physiological sensor, and the sleep quality Q2 of the baby based on the physiological information response is constructed, so as to obtain a comprehensive baby sleep evaluation quality Q; based on the sleep data collected by these systems, an intelligent coaxing system is developed to provide substantial assistance for improving the baby's sleep quality. When the system detects that the baby's sleep quality is poor, the intelligent coaxing system can be automatically mobilized to help the baby enter a deeper sleep state through soft music, gentle cradle movement and other methods. The use of an intelligent coaxing system can also cultivate good sleeping habits for babies and promote the healthy development of their bodies and brains. In the long run, developing good sleeping habits has a positive impact on the growth and development of babies and emotional balance. Therefore, scientifically collecting sleep data and applying advanced technical means to assist in adjustment not only affects the health of infants, but also has a profound impact on the happiness and harmony of the entire family. In general, the application of infant sleep data collection and intelligent coaxing system based on human posture recognition algorithm and physiological detection sensor system is not only an innovative technical work, but also provides substantial help to families and safeguards the healthy growth of infants. This method of comprehensive use of scientific and technological means has brought sleep management to a higher level, allowing both infants and parents to benefit greatly from it. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The invention is further illustrated by the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the invention. A person skilled in the art can obtain other drawings based on the following drawings without creative work.

[0048] Figure 1 It is a schematic diagram of the structure of the present invention. DETAILED DESCRIPTION

[0049] The present invention is further described in conjunction with the following examples.

[0050] See also Figure 1 The present invention aims to provide a baby sleep recording and coaxing device and a method of using the same to solve the problems raised in the above-mentioned background technology.

[0051] To achieve the above-mentioned purpose, a baby sleep recording and coaxing device and a method of using the device are provided, including a posture data recognition module, a physiological data recognition module and a baby coaxing module; the specific process is described as follows:

[0052] S1. Arrange electronic equipment for DIC digital image correlation detection within the baby's sleeping space to collect the baby's body information. The baby's sleeping space is defined as a rectangular space with a height of 50 cm, 30 cm from the baby's head and feet, and 30 cm to the left and right with the arms open. Place a visual camera at the standard height in the center of the rectangular space with the lens parallel to the baby's body; and mark whether the baby is currently in a sleeping state. The process is as follows:

[0053] (1) Image processing of infant body space

[0054] The electronic device based on DIC digital image correlation detection defines the baby's body posture information that changes over time as a digital image per second. A circular marker with RGB values ​​is attached to the baby's clothes for easy image recognition, so that the DIC device can accurately detect the grayscale value of the point at different times to match the baby's body posture; the baby's body posture is represented by the grayscale value of the image, which is used to measure the displacement change of each pixel point in the image, recorded as L x and L y The horizontal and vertical displacement fields representing the position of a point in the image are calculated as follows:

[0055]

[0056]

[0057] Among them, u is the horizontal axis pixel point, v is the vertical axis pixel point, is the gray value of the reference image at the pixel (u,v), is the gray value of the target image at the pixel (u, v); and are the average grayscale values ​​of the reference image and the target image, respectively. The target image and the reference image are images at two different moments;

[0058] (2) Determine the infant's sleeping state

[0059] The mean square grayscale value of the image per unit time is used to reflect the intensity of the baby's movement changes. The baby's movement amplitude within 1 minute is used to determine whether the baby is in a sleeping state. The calculation method is as follows:

[0060]

[0061]

[0062] Among them, P is the intensity of the baby's movement change, F is the grayscale change rate of the key point within 1 minute, which is used to represent the change rate of the baby's movement amplitude, and T is the calculation time period, which is 60 seconds.

[0063] S2. Based on the improved DIC digital image correlation detection algorithm, the current sleeping posture of the baby is identified, the deep sleep degree of the baby is marked according to the movement amplitude of the baby per unit time, the sleep quality reflected by the current posture of the baby is evaluated, and the data is recorded on the cloud platform. The detailed process is as follows:

[0064] (1) Optical flow technology is introduced to improve the stability of DIC calculation. Optical flow is a technology that describes the movement of pixels in an image. It can be used to improve the DIC algorithm's accurate estimation of the displacement of objects in an image, thereby accurately describing the sleep quality reflected by the current infant's body posture information. The infant's movement amplitude is reflected by the horizontal displacement field U and the vertical displacement field V. The calculation process of the horizontal displacement field U and the vertical displacement field V is as follows:

[0065]

[0066]

[0067] Among them, Δu and Δv represent the change marks of the image in the horizontal and vertical directions respectively, and their square terms are multiplied by weight parameters α, β, which are used to normalize the influence of the optical flow gradient to ensure that the calculation of the displacement field is less affected by the change of the image gradient; α and β∈[1,2] are weight parameters, which are used to ensure that the change amount acts to balance the difference between DIC and optical flow;

[0068] (2) Building a labeled relational database based on MySQL to store the relationship data between the infant's sleeping movement amplitude and sleep level;

[0069] (3) Based on the matching of movement amplitude and sleep level, the sleep quality Q reflected by the current baby's body state is obtained 1 ,

[0070]

[0071] Q 1 =ln[I(B;D)]

[0072] Among them, I(B; D) is the mutual information matching degree between the infant's movement amplitude and sleep degree, P(b, d) is the joint probability distribution function, P(b) and P(d) are the marginal probability distribution functions of the infant's movement amplitude and sleep degree, respectively, and μ is the error correction parameter.

[0073] S3. Place smart sensors to detect the baby's heart rate and voice, collect heart rate and voice data in real time, build a sleep quality function, and evaluate the sleep quality reflected by the baby's current physiological state. The smart sensor is placed under the mattress and is not in contact with the baby to ensure that the sensor does not affect the baby's activity space. Then, build a sleep quality function to evaluate the sleep quality reflected by the baby's current physiological state. The detailed process is as follows:

[0074] The baby's heart rate and sound detected by the smart sensor placed under the mattress are stored in the cloud and a relational database is built. Based on this, the sleep quality reflected by the baby's physiological state is defined, and the logarithmic function is used to fit the baby's sleep quality reflected by the two data:

[0075]

[0076]

[0077]

[0078] Among them, Q 2 It is the sleep quality reflected by the baby's physiological state. The baby's heart rate monitoring data is obtained in real time by the smart sensor in S3, and S is the baby's sound monitoring data; the sound detection is easily affected by other sounds in the space. is the parameter affecting the infant's heart rate, where X max is the baby's maximum heart rate, X min is the minimum heart rate of the infant; γ is the parameter of the infant’s voice, s c is the current sound monitoring data, s 0 is the standard data of indoor noise, Δs J It is the floating range of sound detection data within one minute.

[0079] S4. Based on the sleep quality reflected by the infant’s body shape and physiological state, the correlation between these two types of data is analyzed to obtain a comprehensive sleep quality assessment of the infant:

[0080] Sleep quality Q based on infant's body posture 1 Sleep quality Q reflected by physiological state 2 Use linear functions to construct a comprehensive infant sleep quality assessment function Q.

[0081] Q=Q 1 +Q 2 +Q 3

[0082]

[0083] Among them, Q 1It is the sleep quality reflected by the baby's body posture. 2 It is the sleep quality reflected by the infant's physiological state. 3 It is the guardian's involvement in assisting the quality of the baby's sleep.

[0084] S5. According to the sleep quality of the infant, an automated sleep-coaxing mechanism is constructed to achieve automatic adjustment and promote infant sleep. In order to be more beneficial to the infant's brain, the automatic sleep-coaxing mechanism is constructed by an intelligent mechanical warehouse, including a soft music player located in the annular crib, and a mechanical panel located on the bed board fitting surface that simulates gentle up and down movement, which is used to replace the guardian's sleep coaxing method; at the same time, the whole process data of the infant's sleep is collected as an updated data set for the iterative algorithm to ensure that the mechanism has customized functions and data storage for each infant. Infant data is private data for parents, and infants with different physiques have different sleep quality and behavior. For this reason, the sleep-coaxing mechanism stores the data in the cloud database while monitoring the data, and provides the guardian with the infant's sleep information based on the user password. The data is also distributed to the institution's authority and used as a training data set for adjusting the algorithm for evaluating the infant's sleep quality. As the use time increases, the institution will have a better understanding of the infant's sleep behavior and achieve adaptive and self-increasing sleep data recording and sleep-coaxing functions.

[0085] Beneficial effects of the present invention: The present invention describes a baby sleep recording and coaxing mechanism and a method of using the mechanism, including a posture data recognition module, a physiological data recognition module and a baby coaxing module. First, the posture of the baby during sleep is collected based on the DIC image detection method, and the optical flow algorithm is introduced to enhance the evaluation accuracy based on the DIC processing result, and the baby sleep quality Q1 based on the posture information response is constructed; then, the physiological data of the baby during sleep is collected based on the physiological sensor, and the sleep quality Q2 of the baby based on the physiological information response is constructed, so as to obtain a comprehensive baby sleep evaluation quality Q; based on the sleep data collected by these systems, an intelligent coaxing system is developed to provide substantial assistance for improving the baby's sleep quality. When the system detects that the baby's sleep quality is poor, the intelligent coaxing system can be automatically mobilized to help the baby enter a deeper sleep state through soft music, gentle cradle movement and other methods. The use of an intelligent coaxing system can also cultivate good sleeping habits for babies and promote the healthy development of their bodies and brains. In the long run, developing good sleeping habits has a positive impact on the growth and development of babies and emotional balance. Therefore, scientifically collecting sleep data and applying advanced technical means to assist in adjustment not only affects the health of infants, but also has a profound impact on the happiness and harmony of the entire family. In general, the application of infant sleep data collection and intelligent coaxing system based on human posture recognition algorithm and physiological detection sensor system is not only an innovative technical work, but also provides substantial help to families and safeguards the healthy growth of infants. This method of comprehensive use of scientific and technological means has brought sleep management to a higher level, allowing both infants and parents to benefit greatly from it.

[0086] The present invention also provides a computer-readable storage medium, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the above method. The computer-readable storage medium may be a ROM, a random access memory, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc. The instructions stored therein may be loaded by a processor in a terminal to execute the above method.

[0087] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.

[0088] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0089] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A baby sleep recording and coaxing device, characterized in that: It includes a posture data recognition module, a physiological data recognition module and a baby coaxing module; the specific operation process of the coaxing mechanism is described as follows: S1. Arrange DIC (Digital Image Correlation) digital image correlation detection electronic equipment within the baby's sleeping space to collect the baby's body information and determine whether the baby is currently in a sleeping state; S2. Based on the improved DIC digital image correlation detection algorithm, identify the current sleeping posture of the baby, mark the baby's deep sleep level according to the baby's movement amplitude per unit time, evaluate the sleep quality reflected by the current baby's posture, and record it on the cloud platform; S3. Place smart sensors to detect the baby's heart rate and voice, collect heart rate and voice data in real time, build a sleep quality function, evaluate the sleep quality reflected by the baby's current physiological state, and record it on the cloud platform; S4. Based on the sleep quality reflected by the infant's body state and physiological state, the correlation between these two types of data is analyzed to obtain a comprehensive sleep quality assessment of the infant; S5. According to the sleep quality of infants, an automated sleep-coaxing mechanism is constructed to achieve automatic adjustment and promotion of infant sleep. At the same time, the whole process data of infant sleep is collected as the update data set of the iterative algorithm to ensure that the mechanism has customization and data storage functions for each infant; In S1, it is determined whether the baby is currently in a sleeping state, and the process is as follows: (1) Image processing of infant body space The electronic device based on DIC digital image correlation detection defines the baby's body posture information that changes over time as a digital image per second. A circular marker with RGB values ​​is attached to the baby's clothes for easy image recognition, so that the DIC device can accurately detect the grayscale value of the point at different times to match the baby's body posture; the baby's body posture is represented by the grayscale value of the image, which is used to measure the displacement change of each pixel point in the image, recorded as L x and L y The horizontal and vertical displacement fields representing the position of a point in the image are calculated as follows: Among them, u is the horizontal axis pixel point, v is the vertical axis pixel point, is the gray value of the reference image at the pixel (u,v), is the gray value of the target image at the pixel (u, v); and are the average grayscale values ​​of the reference image and the target image, respectively. The target image and the reference image are images at two different moments; (2) Determine the infant's sleeping state The mean square grayscale value of the image per unit time is used to reflect the intensity of the baby's movement changes. The baby's movement amplitude within 1 minute is used to determine whether the baby is in a sleeping state. The calculation method is as follows: Among them, P is the intensity of the baby's movement change, F is the grayscale change rate of the key point within 1 minute, which is used to represent the change rate of the baby's movement amplitude, and T is the calculation time period, which is 60 seconds; In S2, based on the improved DIC digital image correlation detection algorithm, the current sleeping posture of the infant is identified, the deep sleeping degree of the infant is marked according to the amplitude of the infant's movements per unit time, and the sleep quality reflected by the current infant's posture information is evaluated. The detailed process is as follows: (1) Optical flow technology is introduced to improve the stability of DIC calculation. Optical flow is a technology that describes the movement of pixels in an image. It can be used to improve the DIC algorithm's accurate estimation of the displacement of objects in an image, thereby accurately describing the sleep quality reflected by the current infant's body posture information. The infant's movement amplitude is reflected by the horizontal displacement field U and the vertical displacement field V. The calculation process of the horizontal displacement field U and the vertical displacement field V is as follows: Among them, Δu and Δv represent the change marks of the image in the horizontal and vertical directions respectively, and their square terms are multiplied by weight parameters α, β, which are used to normalize the influence of the optical flow gradient to ensure that the calculation of the displacement field is less affected by the change of the image gradient; α and β∈[1,2] are weight parameters, which are used to ensure that the change amount acts to balance the difference between DIC and optical flow; (2) Building a labeled relational database based on MySQL to store the relationship data between the infant's sleeping movement amplitude and sleep level; (3) Based on the matching of movement amplitude and sleep degree, the sleep quality Q1 reflected by the current infant's body posture information is obtained. Q1=ln[I(B;D)] Among them, I(B; D) is the mutual information matching degree between the infant's movement amplitude and sleep degree, P(b, d) is the joint probability distribution function, P(b) and P(d) are the marginal probability distribution functions of the infant's movement amplitude and sleep degree, respectively, and μ is the error correction parameter.

2. The baby sleep recording and coaxing device according to claim 1, characterized in that: In the S1, electronic equipment for DIC digital image correlation detection is arranged within the baby's sleeping space to collect the baby's body information. The baby's sleeping space is defined as a rectangular space with a height of 50 cm, 30 cm from the upper and lower distance between the baby's head and feet, and 30 cm to the left and right with the arms open. A visual camera is placed at a standard height in the center of the rectangular space, with the lens parallel to the baby's body.

3. The baby sleep recording and coaxing device according to claim 1, characterized in that: In the S3, a smart sensor is placed to detect the heart rate and sound of the baby, wherein the smart sensor is placed under the mattress and is not in contact with the baby, ensuring that the sensor does not affect the baby's activity space.

4. The baby sleep recording and coaxing device according to claim 1, characterized in that: In S3, a sleep quality function is constructed to evaluate the sleep quality reflected by the current physiological state of the infant. The detailed process is as follows: The baby's heart rate and sound detected by the smart sensor placed under the mattress are stored in the cloud and a relational database is built. Based on this, the sleep quality reflected by the baby's physiological state is defined, and the logarithmic function is used to fit the baby's sleep quality reflected by the two data: Among them, Q2 is the sleep quality reflected by the baby's physiological state. is the baby's heart rate monitoring data, which is obtained in real time by the smart sensor in S3, and S is the baby's sound monitoring data; the detection of sound is easily affected by other sounds in the space. is the parameter affecting the infant's heart rate, where X max is the baby's maximum heart rate, X min is the minimum heart rate of the baby; γ is the parameter of the baby's voice, s c is the current sound monitoring data, s0 is the standard data of indoor noise, Δs J It is the floating range of sound detection data within one minute.

5. The baby sleep recording and coaxing device according to claim 1, characterized in that: In S4, based on the sleep quality reflected by the baby's body state and physiological state, the correlation between these two types of data is analyzed, and a comprehensive sleep quality assessment of the baby is obtained. The detailed process is as follows: Based on the sleep quality Q1 reflected by the baby's body state and the sleep quality Q2 reflected by the physiological state, a comprehensive sleep quality evaluation function Q for the baby is constructed using a linear function. Q=Q1+Q2+Q3 Among them, Q1 is the sleep quality reflected based on the baby's body state, Q2 is the sleep quality reflected based on the baby's physiological state, and Q3 is the quality of the guardian's participation in assisting the baby's sleep.

6. The baby sleep recording and coaxing device according to claim 1, characterized in that: In the S5, an automatic coaxing mechanism is constructed according to the baby's sleep quality to achieve automatic adjustment and promote the baby's sleep, including: when the baby cries due to physical factors during sleep, and there is no guardian around, the baby is connected to the automatic coaxing mechanism according to the sleep quality assessment; the automatic coaxing mechanism is constructed by an intelligent mechanical compartment, including a soft music player located in the ring-shaped crib, and a mechanical panel located on the bed board fitting surface that simulates gentle up and down movement, which is used to replace the guardian's coaxing method.

7. The baby sleep recording and coaxing device according to claim 1, characterized in that: The sleep-coaxing agency stores the data in the cloud database while monitoring it, and provides the guardian with the baby's sleep information based on the user password. The baby's sleep information serves as a training data set for adjusting the algorithm for evaluating the baby's sleep quality. As the usage time increases, the agency will better understand the baby's sleep behavior and realize adaptive and self-increasing sleep data recording and sleep-coaxing functions.