Method, device and equipment for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring

By combining respiratory monitoring and video data processing, the dangerous sleeping postures of infants and young children are identified, which solves the problem of being unable to provide timely and accurate reminders in the existing technology, reduces the risk of suffocation, and improves the user experience.

CN117653079BActive Publication Date: 2024-09-17WUHAN SIMSHINE INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311702184.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-20
Publication Date
2024-09-17
Estimated Expiration
2043-03-20

AI Technical Summary

Technical Problem

Existing methods for detecting sleeping postures of infants and young children cannot promptly and accurately issue safety reminders to users when infants and young children are in poor sleeping postures, and are prone to false alarms and interfere with users' rest.

Method used

Using a method combined with respiratory monitoring, video data of infants and young children in sleeping scenes are obtained, decomposed into multi-frame images, and the preset facial key point detection model is used to extract the key points of the nose and mouth. Combined with the breathing detection model, the baby's facial features are determined. Breathing status, when abnormal breathing status is identified, a safety reminder is issued to the user.

Benefits of technology

It improves the accuracy of facial occlusion judgment for infants and young children, reduces the probability of suffocation, avoids false detections, improves the user's care experience, and ensures the healthy physical and mental growth of infants and young children.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117653079B
    Figure CN117653079B
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and solves the problem in the prior art that when an infant is in a bad sleeping position, a safety reminder message cannot be sent to the user in a timely and accurate manner, and provides a method, device and equipment for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring. The method comprises: acquiring real-time video data of an infant's sleeping scene, and decomposing the video data into multiple frames of images; inputting the multiple frames of images into a preset infant face key point detection model, and extracting images in which the nose key point and the mouth key point are not detected as target images; inputting each of the continuous target images into a preset respiratory detection model, and obtaining the infant's respiratory state information corresponding to each of the continuous target images; when the infant's respiratory state information is an abnormal respiratory state, it is identified as a dangerous sleeping position for the infant. The present invention reduces the probability of suffocation of infants and young children.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application filed on March 20, 2023, with the invention name “Intelligent identification and reminder method, device and equipment based on infant sleeping position” and application number 202310271760.5. Technical Field

[0002] The present invention relates to the field of image processing technology, and in particular to a method, device and equipment for identifying dangerous sleeping positions of infants and young children in combination with respiratory monitoring. Background Art

[0003] With the development and popularization of various smart terminals, the application of smart care equipment has become more and more extensive and gradually become a part of people's lives. At present, in the field of smart care for infants and young children, some infants and young children will unconsciously lie prone when sleeping. This "lying prone" posture will cause the mouth and nose to be compressed. However, some infants and young children have limited strength and insufficient control over their limbs and muscles. They cannot correct their sleeping posture by themselves, which can easily lead to dangerous situations such as suffocation.

[0004] The existing Chinese patent CN109886137A provides a method, device and computer-readable storage medium for detecting infant sleeping positions, the method comprising: obtaining a visible light-based video image of an infant's sleeping state; processing the video image through a three-layer convolutional neural network to determine whether there is a face target in the video image; if there is no face target, sending abnormal information to the mobile terminal; when the distance between the human target and the boundary of the safe rest area is less than a preset value, issuing a risk warning message. Although the above method can identify whether the infant's mouth and nose are blocked through a three-layer convolutional deep learning algorithm, whether the infant will suffocate depends on whether the infant's mouth and nose are continuously blocked. When the infant turns over and the mouth and nose are not blocked, the solution provided by the above patent will still cause a false alarm, disturbing the user's rest.

[0005] Therefore, how to send safety reminder messages to users in a timely and accurate manner when infants and young children are in bad sleeping positions, and how to prevent infants and young children from suffocating while avoiding users being "do not disturb" is an urgent problem to be solved. Summary of the invention

[0006] In view of this, the present invention provides a method for identifying dangerous sleeping positions of infants combined with respiratory monitoring, so as to solve the problem in the prior art that safety reminder messages cannot be sent to users in a timely and accurate manner when infants are in bad sleeping positions.

[0007] The technical solution adopted by the present invention is:

[0008] In a first aspect, the present invention provides a method for identifying dangerous sleeping positions of infants and young children in combination with respiratory monitoring, the method comprising:

[0009] Acquire real-time video data of a sleeping scene of an infant, and decompose the video data into multiple frames of images;

[0010] Inputting the multiple frames of images into a preset infant face key point detection model, and extracting images in which nose key points and mouth key points are not detected as target images;

[0011] Inputting each of the continuous target images into a preset breathing detection model to obtain the infant breathing state information corresponding to each of the continuous target images;

[0012] When the infant's breathing state information is an abnormal breathing state, it is identified as a dangerous sleeping position for the infant.

[0013] Preferably, in the step of inputting the multiple frames of images into a preset infant face key point detection model, before extracting the image without the nose key point and the mouth key point detected as the target image, the step includes:

[0014] Obtain training image data of infants and young children’s faces at different angles in sleeping scenes;

[0015] Based on the training image data, pre-marking the key points of the nose and mouth in the training image data;

[0016] According to the labeled image data, a facial key point detection model for infants and young children based on the YoloV6s structure is constructed.

[0017] Preferably, the step of inputting each of the continuous target images into a preset breathing detection model to obtain the infant breathing state information corresponding to each of the continuous target images comprises:

[0018] Determine the initial time point at which each of the target images appears, and obtain a preset duration;

[0019] When all images detected by the infant face occlusion judgment model are target images after the initial time point and outside the preset time range, determining the end time point of the last frame of the target image;

[0020] The multiple frames of target images between the initial time point and the end time point are input into a preset breathing detection model as continuous target images to obtain the infant breathing state information corresponding to the continuous target images.

[0021] Preferably, the step of inputting the multiple frames of target images between the initial time point and the end time point as consecutive target images into a preset breathing detection model to obtain the infant breathing state information corresponding to the consecutive frames of the target images includes:

[0022] According to each consecutive frame of the target image, data enhancement is performed on the image data corresponding to the infant's respiratory movement, thereby establishing a target Laplacian pyramid image representing a local area corresponding to the infant's respiratory movement;

[0023] The infant's respiratory state information is obtained according to the target Laplacian pyramid image and each consecutive frame of the target image.

[0024] Preferably, the step of performing data enhancement on the image data corresponding to the infant's respiratory movement based on each consecutive frame of the target image, thereby establishing a target Laplacian pyramid image representing a local area corresponding to the infant's respiratory movement, comprises:

[0025] According to the target images of the consecutive frames, a Gaussian pyramid corresponding to the target images of the consecutive frames is established, wherein the number of levels of each Gaussian pyramid is preset;

[0026] Filtering the corresponding pixel points of each continuous frame of the target image according to the pixel value of each pixel point in each level of the Gaussian pyramid to obtain each target pixel point belonging to weak motion;

[0027] According to each of the target pixel points, corresponding Laplacian pyramids of each layer are established;

[0028] The target Laplacian pyramid image is obtained according to each layer of the Laplacian pyramid.

[0029] Preferably, the step of filtering corresponding pixel points of each continuous frame of the target image according to the pixel value of each pixel point in each level of the Gaussian pyramid to obtain each target pixel point belonging to weak motion comprises:

[0030] The pixel value of each pixel in the Gaussian pyramid image is recorded as the first pixel value, and the pixel value of each pixel in the original image is recorded as the second pixel value;

[0031] Compare each first pixel value with each second pixel value to obtain a pixel value difference between any first pixel value and each second pixel value;

[0032] Each pixel value difference is compared with the pixel value threshold, and the second pixel value corresponding to the pixel value difference less than the pixel value threshold is recorded as the target pixel value, and the pixel point corresponding to the target pixel value is the target pixel point.

[0033] Preferably, the obtaining of the infant's respiratory state information according to the target Laplacian pyramid image and each consecutive frame of the target image comprises:

[0034] Superimposing the target Laplacian pyramid image with each consecutive frame of the target image to obtain a target video for data enhancement of image data with weak motion;

[0035] According to the video length of the target video and the number of times of the weak motion, the motion frequency of the weak motion corresponding to the target video is obtained;

[0036] The movement frequency is compared with a preset standard breathing frequency of an infant to obtain the breathing state information of the infant.

[0037] In a second aspect, the present invention provides a device for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring, the device comprising:

[0038] An image acquisition module is used to acquire real-time video data of infants and young children sleeping scenes and decompose the video data into multiple frames of images;

[0039] A target image extraction module, used for inputting the multiple frames of images into a preset infant face key point detection model, and extracting an image in which the nose key point and the mouth key point are not detected as a target image;

[0040] A breathing state recognition module, used for inputting each of the continuous target images into a preset breathing detection model to obtain the infant breathing state information corresponding to each of the continuous target images;

[0041] The dangerous sleeping position recognition module is used to identify the infant in a dangerous sleeping position when the infant's breathing status information is rapid or no breathing, and to issue a safety reminder to the user.

[0042] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method of the first aspect in the above-mentioned embodiment.

[0043] In a fourth aspect, an embodiment of the present invention further provides a storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method of the first aspect in the above-mentioned embodiment is implemented.

[0044] In summary, the beneficial effects of the present invention are as follows:

[0045] The present invention provides a method, device and equipment for identifying dangerous sleeping positions of infants and young children in combination with respiratory monitoring. The method includes: acquiring real-time video data of infants and young children sleeping scenes, and decomposing the video data into multiple frames of images; inputting the multiple frames of images into a preset infant and young children facial key point detection model, and extracting images in which nose key points and mouth key points are not detected as target images; inputting each consecutive target image into a preset respiratory detection model, and obtaining the infant and young children's respiratory state information corresponding to each consecutive target image; when the infant and young children's respiratory state information is an abnormal respiratory state, identifying the infant and young children as a dangerous sleeping position. On the one hand, since the occlusion of the infant's face is a dynamic and continuous process, the accuracy of the judgment of infant's face occlusion is improved by extracting continuous multi-frame target images for respiration detection. On the other hand, after the infant's face is successfully judged to be occluded, the respiration detection model is further used to obtain the infant's respiratory status information. The combination of face occlusion judgment and respiration detection further reduces the probability of suffocation of infants, which is beneficial to the healthy physical and mental growth of infants, avoids the misdetection of dangerous sleeping positions, prevents users from being disturbed by false alarm information, and thus improves the user's care experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.

[0047] Figure 1 This is a schematic diagram of the overall working process of the method for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring in Example 1 of the present invention;

[0048] Figure 2 This is a schematic diagram of the process of determining whether an infant's face is blocked in Embodiment 1 of the present invention;

[0049] Figure 3 This is a schematic diagram of the process of detecting the breathing of infants and young children in Example 1 of the present invention;

[0050] Figure 4 This is a schematic diagram of a process for determining infant respiratory status information in Embodiment 1 of the present invention;

[0051] Figure 5 This is a schematic diagram of the process of extracting a target Laplacian pyramid image in Embodiment 1 of the present invention;

[0052] Figure 6 Schematic diagram of a process for determining a respiratory state according to a respiratory frequency in Embodiment 1 of the present invention;

[0053] Figure 7This is a schematic diagram of a process of issuing a safety reminder to a user in Embodiment 1 of the present invention;

[0054] Figure 8 This is a structural block diagram of a device for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring in Example 2 of the present invention;

[0055] Fig. 9 It is a schematic diagram of the structure of the electronic device in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described in conjunction with the drawings in the embodiment of the present invention. It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the orientation or position relationship indicated by the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. Moreover, the term "include", "comprise" or any other variant thereof is 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 includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. In the absence of further restrictions, the elements defined by the phrase "comprising..." do not exclude the existence of other identical elements in the process, method, article or device comprising the elements. If there is no conflict, the embodiments of the present invention and the various features in the embodiments can be combined with each other, all within the protection scope of the present invention.

[0057] Example 1

[0058] See also Figure 1 Embodiment 1 of the present invention discloses a method for identifying dangerous sleeping positions of infants and young children in combination with respiratory monitoring, the method comprising:

[0059] S1: Acquire real-time video data of an infant sleeping scene, and decompose the video data into multiple frames of images;

[0060] Specifically, since infants and young children sleep for a long and irregular period of time, they may be in a sleeping state both during the day and at night. Real-time video data collected by the camera is obtained, and the video data includes video data based on visible light during the day and video data based on infrared light at night. This can achieve effective 24-hour care of the infants and young children's sleep state, and then the obtained video data is decomposed into multiple frames of images and input into the next program.

[0061] S2: inputting the multiple frames of images into a preset infant face occlusion judgment model, and extracting multiple frames of target images in which the infant face is occluded from the multiple frames of images;

[0062] Specifically, a preset infant face occlusion judgment model is used to judge whether the infant's face is occluded in the input multiple frames of images, and the image in which the infant's face is judged to be occluded is extracted as the target image, wherein the infant's face being occluded means that the infant's mouth and nose are occluded. At this time, the mouth and nose are part of the human respiratory system, and the infant is very likely to suffocate. The target image needs to be further analyzed and processed to prevent the infant from suffocating.

[0063] In one embodiment, see Figure 2 , said S2 comprises:

[0064] S21: Acquire multiple frames of images obtained by decomposing the real-time video data;

[0065] S22: Inputting the multiple frames of images into a preset infant facial key point detection model, extracting images in which infant facial key points are not detected as the target images, wherein the facial key points include at least: nose and mouth.

[0066] Specifically, a large number of training image data of infants and young children's faces at different angles (30°, 45° and 60°, etc.) in sleeping scenes are obtained. In actual sleeping scenes, infants and young children may have different facial orientations due to different sleeping postures such as supine, side and prone. A large number of training image data at different angles are used as the basis for training, which effectively improves the recognition accuracy of infants and young children's facial feature information. The nose and mouth key points in the training image data are pre-marked, and the marked image data is used as the basis for deep learning model training to build a target detection model based on the YoloV6s structure. Since YoloV6s has the characteristics of high detection accuracy and fast speed, it can improve recognition efficiency and accuracy. Through the pre-constructed target detection model based on the YoloV6s structure, a loss index is pre-defined, and the multiple frames of images are input into the target detection model for sequential detection. The larger the loss index obtained, the less fit the multiple frames of images are with the feature information in the target detection model, and the images with a low degree of fit with the target detection model are extracted as the images without detecting the key points of the infant's face as the target images.

[0067] S3: when multiple consecutive target image frames are detected, inputting the consecutive target image frames into a preset breathing detection model to obtain the infant breathing state information corresponding to the consecutive target image frames;

[0068] Specifically, the danger of suffocation will occur when the mouth, nose, etc. of an infant are blocked for a continuous period of time. In order to avoid disturbing the user by the alarm message when the infant is not suffocating, only when multiple frames of continuous target images are detected, the continuous target images are input into the preset breathing detection model to obtain the infant's breathing status information corresponding to the continuous target images.

[0069] In one embodiment, see Figure 3 , said S3 comprises:

[0070] S31: Determine the initial time point at which each target image appears, and obtain a preset duration;

[0071] Specifically, for example, the initial time point corresponding to the extracted frame of the target image is obtained as t1, and the preset duration is obtained. The system sets a preliminary preset duration according to the common suffocation situations of infants and young children. The user can also adjust the preset duration according to actual needs. Here, the preset duration is 3 minutes as an example. The longer the preset duration is set, the less timely the safety alarm will be issued, but the interference to the user will be reduced; the shorter the preset duration is set, the more timely the safety alarm will be issued, but the possibility of interference to the user will be greater.

[0072] S32: when all images detected by the infant face occlusion judgment model are target images after the initial time point and outside the preset time range, determining the end time point of the last frame of the target image;

[0073] Specifically, when all frame images within 3 minutes or more after the initial time point t1 are target images, the time point at which the last frame of the target image appears is taken as the termination time point t2.

[0074] S33: Input the multiple frames of target images between the initial time point and the end time point as continuous target images into a preset breathing detection model to obtain the infant breathing state information corresponding to the continuous target images.

[0075] Specifically, by inputting all target images between t1 and t2 into a preset breathing detection model, the breathing state information of the infant corresponding to each continuous target image is obtained. Since the input images are continuous, it can be ensured that the infant is in a continuous face-blocked state, and the face-blocking is combined with breathing detection to further reduce the probability of suffocation of the infant, which is beneficial to the healthy physical and mental growth of the infant.

[0076] In one embodiment, see Figure 4 , the S33 comprises:

[0077] S331: performing data enhancement on the image data corresponding to the infant's respiratory movement according to the continuous target images, so as to establish a target Laplacian pyramid image representing the local area corresponding to the infant's respiratory movement;

[0078] Specifically, data enhancement is performed on image data corresponding to the respiratory movement in the infant sleep video, specifically by amplifying the position offset distance of each pixel point in the image area caused by the respiratory movement, so as to establish a Laplace pyramid image corresponding to the image area of ​​the respiratory movement. The Laplace pyramid image has different levels, and has different spatial frequencies and signal-to-noise ratios. The fewer the levels, the lower the spatial frequency. Preferably, the Laplace pyramid image established has 3-6 levels.

[0079] In one embodiment, see Figure 5 , the S331 includes:

[0080] S3311: establishing a Gaussian pyramid corresponding to each of the continuous target images according to each of the continuous target images, wherein the number of levels of each Gaussian pyramid is preset;

[0081] S3312: Filtering corresponding continuous pixel points of the target images according to the pixel values ​​of each pixel point in each level of the Gaussian pyramid to obtain target pixel points belonging to weak motion;

[0082] Specifically, the pixel value of the pixel point in the Gaussian pyramid image is recorded as the first pixel value, and the pixel value of each pixel point in the original image is recorded as the second pixel value; each first pixel value is compared with each second pixel value to obtain the pixel value difference between any first pixel value and each second pixel value, and then each pixel value difference is compared with the pixel value threshold, and the second pixel value corresponding to the pixel value difference less than the pixel value threshold is recorded as the target pixel value. The pixel point corresponding to the target pixel value is the target pixel point. All target pixel points are screened out by this method. These target pixel points do not directly perform Laplace transformation to establish the Laplace pyramid image, because these target pixel points can be seen to change uniformly, so directly performing Laplace transformation will cause holes in the Laplace pyramid image, that is, the gradient of the area will disappear after the Laplace transformation, affecting the accuracy of breathing detection. Please refer to Figure 4 , Figure 4 The composition of the input signal is decomposed into wall edge, texture and smooth component. The strong edge is each pixel point with prominent pixel value representing the overall contour of the image. The texture is each pixel point with small difference in pixel value corresponding to each pixel point in the strong edge, that is, each pixel point representing the details of the image area corresponding to each pixel point in the strong edge. The smooth component is used to enhance the low-frequency component of the image and weaken the high-frequency component to achieve image smoothing. Laplace needs to be derived twice. If the Laplace transform is performed directly, the processing result will be 0 in the color uniform change or gradient area. The processed images in these areas become holes or disappear, which will affect the accuracy of respiratory monitoring.

[0083] S3313: establishing corresponding layers of Laplacian pyramids according to the target pixel points;

[0084] Specifically, after obtaining each target pixel, use the Gaussian function Adjust each target pixel so that the pixel value of each pixel in the image with weak motion presents non-uniform or non-gradient changes, avoiding holes or gradient disappearance in the Laplacian pyramid image with weak motion. Figure 5 , Figure 5In the method, -2, -1, 2 and 4 are taken for f respectively, so that the pixel value transformation of the weak motion area is non-gradual or uniform, thereby avoiding the pixel value of the area returning to zero after the Laplace transform, causing the image of the area to disappear. After completing a layer of Gaussian pyramid image, a new image is generated, and then the new image is converted into a corresponding layer of Laplace pyramid image. The operation is repeated to finally obtain the target Laplace pyramid image. In this way, the phenomenon of holes or disappearance of the image corresponding to the respiratory motion caused by the Laplace transform can be avoided, thereby ensuring the integrity of the respiratory motion data.

[0085] S3314: Obtain the target Laplacian pyramid image according to each layer of the Laplacian pyramid.

[0086] Specifically, obtain each layer of the Laplace pyramid; use the formula The Laplace pyramid of each layer is magnified and superimposed to obtain the target Laplace pyramid image of the weak movement in the infant sleep video; where I(x, t) is the brightness of the pixel at time t, δ(t) is the displacement distance of the corresponding pixel at time t compared to the previous time, α is the magnification coefficient, and f(x) is the pixel value of pixel x. For each layer of the newly generated local Laplace pyramid, according to the principle of constant brightness of the same pixel at the same time, the following formula is obtained:

[0087] I(x,t)=f(x+δ(t))

[0088] According to the brightness invariance principle, we have:

[0089] I(x,t)=f(x+(1+α)δ(t))

[0090] Considering that sleep breathing movement is a low-frequency movement, low-pass filtering is performed in the low-frequency band, so the first-order Taylor series is expanded as follows:

[0091]

[0092] make:

[0093]

[0094] B(x,t) is the image brightness change signal corresponding to the breathing signal at the spatial point position x and time t in the video channel.

[0095] After magnification and superposition, we get:

[0096]

[0097] By superimposing the enlarged Laplace pyramid image with the original image, we can get pyramid images at different scales. Then, by reconstructing these pyramid images, we can get the enlarged video we need. By amplifying the respiratory movement, it is helpful to increase the recognition speed and accuracy of the respiratory movement, thereby ensuring the accuracy of the detection.

[0098] S332: Obtaining the infant's respiratory status information according to the target Laplacian pyramid image and each of the consecutive target images.

[0099] In one embodiment, see Figure 6 , the S332 includes:

[0100] S3321: superimposing the target Laplacian pyramid image with each of the continuous target images to obtain a target video for which data enhancement is performed on image data of weak motion;

[0101] S3322: Obtaining a motion frequency of the weak motion corresponding to the target video according to the video duration of the target video and the number of weak motions;

[0102] S3323: Compare the movement frequency with a preset standard breathing frequency of an infant to obtain the infant's breathing status information.

[0103] Specifically, weak motion includes motion caused by breathing, slight movements of infants' hands, fluttering of hair, etc. The bands corresponding to the weak motions of the target video are studied to determine the motion frequency corresponding to the weak motions. Specifically, the motion frequency is obtained based on the video length and number of movements of the target video; the motion frequency is compared with the breathing frequency of the infant to obtain the breathing status information of the infant.

[0104] S4: Based on the infant's breathing status information, when it is detected that the infant's breathing status is abnormal, it is considered that the infant is in a dangerous sleeping position, and a safety reminder is issued to the user.

[0105] In one embodiment, see Figure 7 , said S4 comprises:

[0106] S41: Acquire the infant's respiratory status information, wherein the infant's respiratory status information includes: normal, rapid or no breathing;

[0107] S42: When the infant's breathing status information is rapid or no breathing, it is considered that the infant's breathing is abnormal, and a safety reminder is issued to the user.

[0108] Specifically, the breathing state can be further determined according to the movement frequency, and the breathing state includes normal, rapid and no breathing; the normal breathing rate of adults is 16-20 times / minute, and that of children is 30-40 times / minute. The breathing rate of newborns is 40-45 times / minute. Based on this data, the breathing rate of infants is set to be approximately within the range of 30-45 times / minute; according to the above breathing rate, the duration of each video of infant sleep is set to 20 seconds, that is, the band of the 20-second video is studied each time, and the corresponding number of breaths in the 20-second video is 10-15 times. If the number of weak movements is 10-15 times, it is considered to be weak movement caused by infant breathing, otherwise, it is considered to be weak movement caused by other actions. In order to improve the detection accuracy, it can be performed after multiple tests, and the comprehensive output results are used to judge the current breathing state; such as: judging by the output results of three consecutive research bands, if the corresponding frequency is not within the range of 10-15 times, it is considered that the frequency is not the frequency corresponding to the infant's breathing, and an alarm message is immediately sent to the user; if it is within this range, it is considered to be the infant's breathing frequency. Through breathing detection, the accuracy of dangerous sleeping position detection is further improved, reducing the probability of suffocation in infants and young children, which is beneficial to the healthy physical and mental growth of infants and young children. It also avoids false detection of dangerous sleeping positions and prevents users from being disturbed by false alarm information, thereby improving the user's care experience.

[0109] Example 2

[0110] See also Figure 8 Embodiment 2 of the present invention further provides a device for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring, the device comprising:

[0111] An image acquisition module is used to acquire real-time video data of infants and young children sleeping scenes and decompose the video data into multiple frames of images;

[0112] A target image extraction module, used for inputting the multiple frames of images into a preset infant face occlusion judgment model, and extracting multiple frames of target images in which the infant face is occluded from the multiple frames of images;

[0113] A breathing state recognition module is used to input each of the consecutive target images into a preset breathing detection model when a plurality of consecutive target images are detected, and obtain the infant breathing state information corresponding to each of the consecutive target images;

[0114] The safety reminder module is used to determine the infant's breathing state based on the infant's breathing state information and issue a safety reminder to the user when it detects that the infant's breathing state is abnormal.

[0115] Specifically, a device for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring according to Example 2 of the present invention is used, and the device includes: an image acquisition module, used to acquire real-time video data of infant sleeping scenes, and decompose the video data into multiple frames of images; a target image extraction module, used to input the multiple frames of images into a preset infant face occlusion judgment model, and extract multiple frames of target images in which the infant's face is occluded in the multiple frames of images; a respiratory state recognition module, used to input each of the consecutive target images into a preset respiratory detection model when multiple consecutive frames of target images are detected, and obtain the infant's respiratory state information corresponding to each of the consecutive target images; a safety reminder module, used to consider the infant to be in a dangerous sleeping position based on the infant's respiratory state information, and issue a safety reminder to the user when an abnormal infant's respiratory state is detected. On the one hand, since the occlusion of the infant's face is a dynamic and continuous process, the accuracy of the judgment of infant's face occlusion is improved by extracting continuous multi-frame target images for respiration detection. On the other hand, after the infant's face is successfully judged to be occluded, the respiration detection model is further used to obtain the infant's respiratory status information. The combination of face occlusion judgment and respiration detection further reduces the probability of suffocation of infants, which is beneficial to the healthy physical and mental growth of infants, avoids the misdetection of dangerous sleeping positions, prevents users from being disturbed by false alarm information, and thus improves the user's care experience.

[0116] Example 3

[0117] In addition, combined Figure 1 The method for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring according to Embodiment 1 of the present invention described above can be implemented by an electronic device. Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in Embodiment 3 of the present invention is shown.

[0118] The electronic device may include a processor and a memory storing computer program instructions.

[0119] Specifically, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.

[0120] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0121] The processor implements any one of the methods for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring in the above embodiments by reading and executing computer program instructions stored in the memory.

[0122] In one example, the electronic device may further include a communication interface and a bus. Fig. 9 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.

[0123] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.

[0124] Example 4

[0125] In addition, in combination with the method for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring in the above-mentioned embodiment 1, embodiment 4 of the present invention can also provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the methods for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring in the above-mentioned embodiments is implemented.

[0126] In summary, the embodiments of the present invention provide a method, device and apparatus for identifying dangerous sleeping positions of infants and young children in combination with respiratory monitoring.

[0127] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0128] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0129] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0130] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A method for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring, characterized in that: The method comprises: Acquire real-time video data of a sleeping scene of an infant, and decompose the video data into multiple frames of images; Inputting the multiple frames of images into a preset infant face key point detection model, and extracting images in which nose key points and mouth key points are not detected as target images; Inputting each of the continuous target images into a preset breathing detection model to obtain the infant breathing state information corresponding to each of the continuous target images; When the infant's breathing state information is an abnormal breathing state, identifying the infant as having a dangerous sleeping position; In the step of inputting the multiple frames of images into a preset infant face key point detection model, before extracting an image in which the nose key point and the mouth key point are not detected as a target image, the step includes: Obtain training image data of infants and young children’s faces at different angles in sleeping scenes; Based on the training image data, pre-marking the key points of the nose and mouth in the training image data; According to the labeled image data, a facial key point detection model for infants and young children based on the YoloV6s structure is constructed.

2. The method for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring according to claim 1, characterized in that: The step of inputting each of the continuous target images into a preset breathing detection model to obtain the infant breathing state information corresponding to each of the continuous target images includes: Determine the initial time point at which each of the target images appears, and obtain a preset duration; When all images detected by the infant face key point detection model are target images after the initial time point and outside the preset time range, determining the end time point of the last frame of the target image; The multiple frames of target images between the initial time point and the end time point are input into a preset breathing detection model as continuous target images to obtain the infant breathing state information corresponding to the continuous target images.

3. The method for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring according to claim 2, characterized in that: The step of inputting the multiple frames of target images between the initial time point and the end time point as consecutive target images into a preset breathing detection model to obtain the infant breathing state information corresponding to the consecutive frames of the target images includes: According to each consecutive frame of the target image, data enhancement is performed on the image data corresponding to the infant's respiratory movement, thereby establishing a target Laplacian pyramid image representing a local area corresponding to the infant's respiratory movement; The infant's respiratory state information is obtained according to the target Laplacian pyramid image and each consecutive frame of the target image.

4. The method for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring according to claim 3, characterized in that: The step of performing data enhancement on the image data corresponding to the infant's respiratory movement based on each consecutive frame of the target image, thereby establishing a target Laplacian pyramid image representing a local area corresponding to the infant's respiratory movement, includes: According to the target images of the consecutive frames, a Gaussian pyramid corresponding to the target images of the consecutive frames is established, wherein the number of levels of each Gaussian pyramid is preset; Filtering the corresponding pixel points of each continuous frame of the target image according to the pixel value of each pixel point in each level of the Gaussian pyramid to obtain each target pixel point belonging to weak motion; According to each of the target pixel points, corresponding Laplacian pyramids of each layer are established; The target Laplacian pyramid image is obtained according to each layer of the Laplacian pyramid.

5. The method for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring according to claim 4, characterized in that: The step of filtering the corresponding pixel points of each continuous frame of the target image according to the pixel value of each pixel point in each level of the Gaussian pyramid to obtain each target pixel point belonging to weak motion includes: The pixel value of each pixel in the Gaussian pyramid image is recorded as the first pixel value, and the pixel value of each pixel in the original image is recorded as the second pixel value; Compare each first pixel value with each second pixel value to obtain a pixel value difference between any first pixel value and each second pixel value; Each pixel value difference is compared with the pixel value threshold, and the second pixel value corresponding to the pixel value difference less than the pixel value threshold is recorded as the target pixel value, and the pixel point corresponding to the target pixel value is the target pixel point.

6. The method for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring according to claim 4, characterized in that: The step of obtaining the infant's respiratory status information based on the target Laplacian pyramid image and each consecutive frame of the target image includes: Superimposing the target Laplacian pyramid image with each consecutive frame of the target image to obtain a target video for data enhancement of image data with weak motion; According to the video length of the target video and the number of times of the weak motion, the motion frequency of the weak motion corresponding to the target video is obtained; The movement frequency is compared with a preset standard breathing frequency of an infant to obtain the breathing state information of the infant.

7. A device for identifying dangerous sleeping positions of infants and young children combined with respiratory monitoring, characterized in that: The device comprises: An image acquisition module is used to acquire real-time video data of infants and young children sleeping scenes and decompose the video data into multiple frames of images; A target image extraction module, used for inputting the multiple frames of images into a preset infant face key point detection model, and extracting an image in which the nose key point and the mouth key point are not detected as a target image; A breathing state recognition module, used for inputting each of the continuous target images into a preset breathing detection model to obtain the infant breathing state information corresponding to each of the continuous target images; A dangerous sleeping position recognition module is used to identify the infant in a dangerous sleeping position when the infant's breathing status information is rapid or no breathing, and to send a safety reminder to the user; In the step of inputting the multiple frames of images into a preset infant face key point detection model, before extracting an image in which the nose key point and the mouth key point are not detected as a target image, the step includes: Obtain training image data of infants and young children’s faces at different angles in sleeping scenes; Based on the training image data, pre-marking the key points of the nose and mouth in the training image data; According to the labeled image data, a facial key point detection model for infants and young children based on the YoloV6s structure is constructed.

8. An electronic device, characterized in that: include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 6.

9. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.