A method for judging infant drowning based on video surveillance
Through video surveillance and target detection technology, using nine-square grid segmentation and foreground proportion analysis, it is possible to accurately judge the drowning status of infants and young children, solve the problems of inaccurate monitoring and equipment discomfort in the existing technology, and improve the quality of infant and young child swimming venues. Security.
Patent Information
- Application Number
- CN202010154992.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technology cannot effectively monitor and prevent drowning events in infant and young child swimming venues, especially the hidden danger of drowning caused by negligence in supervision. The existing equipment is not accurate and reliable enough to monitor infants and young children, and the wearable equipment is uncomfortable, easy to fall off, and can be accidentally used. Judgment and other issues.
Real-time images are obtained through video surveillance, and target detection technology is used to frame the infants and young children in the swimming pool for image processing. Nine-square grid segmentation and foreground proportion extraction methods are used to analyze feature values to determine the drowning status. Combined with cameras and alarm systems, real-time drowning can be achieved Judgment and alarm.
It achieves accurate judgment of the drowning status of infants and young children, avoids the inconvenience and misjudgment of wearing equipment, improves the accuracy and reliability of monitoring, and reduces the risk of drowning death.
Smart Images

Figure CN111353456B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer image processing and relates to a method for determining whether swimming infants are in a safe state by using video monitoring in an infant swimming venue. Background Art
[0002] 1. Problem description
[0003] Infant swimming refers to a specific, staged early health care activity in water for newborns (newborns are those from the day of birth to 28 days old) or infants under 2 years old, under the care of professional caregivers or trained parents, using professional infant swimming equipment. It is divided into two parts: orderly, positional and skillful infant passive swimming exercises and independent swimming.
[0004] At present, hundreds of thousands of babies aged 0-1 in most central cities in China are receiving baby swimming training in hospital swimming centers, baby swimming pools, and at home. The positive effects of baby swimming on the baby's physique, psychology, and intelligence have made young parents praise baby swimming. With the progress of society, more and more babies will enjoy the fun and health brought by baby swimming, and the development of baby swimming is going well. In order to develop baby swimming, government agencies and academic groups in many countries actively advocate baby swimming and encourage more babies to participate in swimming training in various ways.
[0005] However, as the infant swimming industry continues to develop and expand, more and more parents send their children to infant swimming venues. Although there are swimming rings for protection, the safety monitoring and protection measures are not updated in time. Infant drowning incidents occur frequently. The momentary negligence of parents or staff can lead to tragedies. The following describes several infant drowning incidents that have occurred.
[0006] "In May 2017, a two or three-year-old child in Zhaoyuan, Shandong accidentally drowned in a swimming pool upside down for 72 seconds. No one noticed until the child was dying and was rescued." "On May 17, 2018, Ms. Zhang from Quanzhou, Fujian, took her 7-month-old baby to the baby swimming pool and drowned for 46 seconds. Her baby had an accident in less than two minutes while she was buying milk powder!" "At 5 p.m. on July 31, a one-year-old baby girl on Zhaoyu Road, Cangshan District, Fuzhou, Fujian, died just as her mother, Ms. Wu, turned to go to Within a minute or two of taking the phone, the baby drowned! It is said that when she came out, she asked Ms. Li, an employee inside, to take a look, but when she came back, Ms. Li told her that the baby had fallen into the water. When Ms. Zhang picked up the baby, her lips were purple and the whole person was unresponsive. "On August 15, 2018, a girl in Suining, Sichuan, drowned while swimming in a community swimming pool. The girl's parents and lifeguards were not present at the time of the incident." "In September 2018, in a kindergarten in Zhangjiakou, Hebei, a child under the age of three drowned during a swimming class. Fortunately, he was found and rescued in time."
[0007] It can be seen that there is still a risk of infant drowning in this industry due to negligent supervision.
[0008] This invention aims to solve the above hidden dangers. With the continuous development of the Internet, computers have been able to help human production and life become safer and more reliable. For the safety of infant swimming pools, computers can also provide assistance in drowning judgment. Regardless of whether there is someone watching the children in the infant swimming pool, there will be safety guarantees, real-time monitoring and alarms at the moment of danger, so that children in accidents can get timely help from their parents, reducing the chance of drowning death.
[0009] (II) Analysis of drowning situations
[0010] The plan involving drowning is mainly divided into three stages: early drowning prevention, drowning judgment, timely alarm and post-drowning rescue.
[0011] In the early stage, drowning prevention was mostly achieved by improving swimming rings and swimming pools to reduce the possibility of drowning. However, no equipment is foolproof, so monitoring is still required and an alarm is issued in time if there is danger. After drowning, because this invention mainly involves infants and young children, infants and young children have no ability to save themselves and can only be rescued by adults, so an alarm to notify adults that infants and young children are drowning is an important means to prevent serious consequences of drowning. The present invention considers the drowning judgment stage.
[0012] (III) Existing relevant implementation solutions
[0013] In addition to manual monitoring, existing drowning judgment and monitoring solutions mainly include the following categories: wearable drowning monitoring equipment, external sensor drowning sensing equipment, video drowning monitoring processing and feedback system, etc.
[0014] 1) Wearable devices include: anti-drowning clothes, anti-drowning swimming caps, anti-drowning headbands, anti-drowning watches, anti-drowning bracelets, anti-drowning collars, drowning monitoring goggles, etc. They are mainly worn on the body to judge whether a person is drowning based on changes in water pressure, pulse, etc.
[0015] 2) External sensor equipment includes: light sensors installed on the wall of the swimming pool, sonar sensors installed on the wall of the swimming pool, etc. It mainly judges by sensing the changes in light or receiving the sent sonar. If someone has no activity for a long time, it is judged that they are drowning.
[0016] 3) Video monitoring and drowning feedback system is divided into: underwater monitoring system and water monitoring system. It mainly collects real-time images, processes them, and alarms after determining drowning.
[0017] (IV) Deficiencies of the Existing Technology
[0018] 1) The above-mentioned wearable drowning sensing device. It mainly judges whether a person is drowning by judging the changes in water pressure, pulse, etc. after wearing it on the body. First, the wearable device will definitely feel like a foreign body, and infants and young children will not agree to wear it if they feel uncomfortable, or will take it off by themselves; second, the wearable device is easy to fall off, and once it falls off, it will not play a monitoring role; third, the pulse of infants and young children is different from that of adults, and the use of ordinary sensing equipment cannot play a good drowning monitoring role for infants and young children, and no wearable drowning sensing equipment designed specifically for infants and young children has been found. Therefore, this solution cannot be widely used in the infant swimming industry.
[0019] 2) The above-mentioned external sensor equipment. It mainly senses the change of light or receives the sent sonar judgment. If someone is found to be inactive for a long time, it is judged as drowning. First, infants and young children's swimming is special compared to adults. Infants and young children need to be protected by swimming rings all the time, and they are not so free to move. Second, infants and young children move slowly in the water, and their swimming in and out of the water is different from that of adults. Therefore, it is easy to misjudge infants and young children who are in normal water activities as drowning through this solution. Third, the sonar device requires a voltage of several hundred volts, but according to relevant safety regulations, the application voltage near the swimming pool is strictly prohibited from exceeding 12V or 24V. Therefore, the usage rate of this solution is not high.
[0020] 3) The above-mentioned video monitoring and drowning feedback system. It mainly collects real-time images, processes them, and alarms after judging drowning. First, some solutions of this type of method only propose a new camera installation and deployment structure in the venue, and do not give a specific video processing drowning judgment method. Only the entire system framework is given, so that the monitor can observe the activities in the swimming pool more clearly, conveniently and comprehensively, and find the drowning person in time. However, people are still needed to observe whether someone is drowning at all times. The swimming pool for infants and young children is originally a small space. It is because of the negligence of parents and staff that drowning incidents cannot be rescued in time. If there are special monitoring personnel who pay attention to the situation of the swimming pool at all times, there will be no tragedy of drowning for a long time without rescue; second, some solutions give specific drowning analysis methods, but the applicable objects are children or adults swimming in the swimming pool, and infants and young children must wear swimming rings to carry out activities in specific swimming pools. Most of the drowning of infants and young children is that the swimming ring flips upside down in the water or falls into the water from the swimming ring. The drowning state is different from that of adults. Therefore, this existing solution is not suitable for drowning judgment and monitoring of infants and young children. Summary of the invention
[0021] The present invention attempts to obtain real-time video of an infant swimming pool, frame a target infant swimming in the swimming pool through a target detection method, process the framed target image, and make a drowning judgment based on eigenvalue analysis.
[0022] The present invention mainly relates to a method for judging the drowning behavior of infants and young children, which is performed by extracting and analyzing the features of the target infant image after processing. First, the characteristics of the drowning behavior of infants and young children are analyzed, and then a method for judging the drowning of infants and young children is proposed. The creativity of the present invention lies in: 1. The drowning characteristics are obtained by analyzing the drowning behavior of infants and young children in the early stage, so as to judge whether the analysis target is in a drowning state; 2. The drowning characteristics are obtained by cutting the image into a nine-square grid and then extracting the foreground proportion, which is as follows:
[0023] 1. Analysis of characteristics of drowning behavior in infants and young children
[0024] Nine images of three groups of states, normal, drowning tendency, and drowning, were selected and segmented, such as Figure 2a-2f As shown:
[0025] After binarization of the three groups of images, binary images are obtained. The feature values of the nine sub-images of each image divided into 3*3 are extracted, that is, the proportion of the foreground, such as Figure 3a-3fWe call the white part corresponding to the value "255" in the binary image the background area (in this scenario, it refers to the area other than the target infant), and the black part corresponding to the value "0" is the foreground area (in this scenario, it refers to the detected target infant). The foreground is the foreground area mentioned above, which refers to the detected infant, and the foreground ratio is the ratio of the pixels in the foreground area to the total pixels in the image.
[0026] Then, for each picture, sum the eigenvalues of the three columns to obtain Table 1-1; then take the middle row of each picture to obtain Table 1-2, as shown below.
[0027] Table 1-1 Eigenvalues of each column in the Nine-square grid
[0028]
[0029] Table 1-2 Eigenvalues of the middle row of the Nine-square grid
[0030]
[0031] It can be seen that under normal safety conditions, that is, when there is no drowning or drowning tendency, the corresponding Figure 2a , the foreground proportion of the middle column is obviously greater than that of the left and right columns, and the foreground proportion of the middle grid must be greater than 50%. In the case of drowning tendency and drowning, the corresponding Figure 2c , 2e , the foreground proportion of the middle column is greater than that of the left and right columns, and the foreground proportion of the middle grid is greater than 50%. The above two conditions will not be met at the same time. Therefore, in this algorithm, we take the sum of the foreground proportion of the middle column to be greater than that of the left and right columns, and the foreground proportion of the middle grid must be greater than 50% as a safety condition. We call the foreground proportion of each equal part of the nine-square grid image and the calculated sum of the proportions of the three columns as eigenvalues. Next, we use this safety condition as the basis for drowning judgment.
[0032] (II) Methods for judging drowning in infants and young children
[0033] Drowning judgment is mainly divided into the following parts: (1) reading and preprocessing the original image, (2) extracting the feature values of the nine-square grid image, and (3) judging drowning based on the feature values.
[0034] Beneficial Effects
[0035] The present invention mainly obtains real-time frames from video surveillance of swimming infants and young children, and uses target detection technology to intercept the moving part of the infants and young children to make drowning judgments. Compared with the existing technology:
[0036] 1) This invention does not involve wearable devices, will not cause inconvenience or discomfort to infants and young children, and will not cause misjudgment due to the falling off of wearable devices.
[0037] 2) This invention involves a fixed group and is specially invented for infants and young children who drown while swimming, so it is more targeted and the judgment is more accurate.
[0038] 3) The equipment involved in this invention is simple. In addition to the judgment and processing system, only a camera and an alarm system are needed. Ordinary swimming pools for infants and young children can have them, and it is highly practical.
[0039] 4) The equipment involved in this invention is simple and easy to operate. After professionals install the relevant system, ordinary people can use it, and it has strong operability. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 , flow chart of the method of the present invention;
[0041] Figure 2a , normal state diagram;
[0042] Figure 2b , normal state segmentation diagram;
[0043] Figure 2c , drowning trend chart;
[0044] Figure 2d , drowning trend segmentation map;
[0045] Figure 2e , drowning pictures;
[0046] Figure 2f , drowning segmentation map;
[0047] Figure 3a , the binary processing image corresponding to the normal state segmentation image;
[0048] Figure 3b , the eigenvalues corresponding to the normal state segmentation map;
[0049] Figure 3c , Binarization processing map corresponding to the drowning trend segmentation map;
[0050] Figure 3d , the eigenvalues corresponding to the drowning trend segmentation map;
[0051] Figure 3e , Binarization processing image corresponding to the drowning segmentation image;
[0052] Figure 3f , the eigenvalues corresponding to the drowning segmentation map.
[0053] Figure 4 , basic process of preprocessing;
[0054] Figure 5 , Nine-grid feature extraction DETAILED DESCRIPTION
[0055] The specific judgment process is as follows, which is mainly divided into the following steps:
[0056] (1) Raw image reading and preprocessing
[0057] First, read the original image captured by target detection, compress it to a fixed preset size (for later processing and analysis), and then convert it into a grayscale image. Next, we binarize the grayscale image and convert it into a binary image. When a position greater than the binarization threshold is detected, its value corresponds to the white value "255", and the remaining positions less than the threshold correspond to the black value "0". Then we cut the image into nine squares in a 3×3 format.
[0058] (2) Feature value extraction of nine-grid image
[0059] Based on the nine binarized images B1 to B9, each with a total number of pixels N, the foreground ratio is extracted.
[0060] The foreground refers to the detected infants and young children. The foreground pixel numbers M1 to M9 of the nine sub-images are obtained respectively, and the foreground proportions b1 to b9 are calculated by the following formula, which are the required feature values.
[0061]
[0062] (3) Determine drowning based on characteristic values
[0063] According to the conclusions drawn from the analysis of infants' drowning behaviors, if the safety conditions are met, it is marked as safe; if not, it is marked as dangerous. The details are as follows:
[0064] L1=b1+b4+b7
[0065] L2=b2+b5+b8
[0066] L3=b3+b6+b9
[0067] L2>L1 and L2>L3 and B5>0.5 (safety conditions)
Claims
1. A method for judging infant drowning based on video surveillance, characterized in that The following steps are involved: Step 1: Read and preprocess the original image: Read the original image of the target infant image obtained by target detection, compress it into a fixed preset size, then convert it into a grayscale image, and convert the grayscale image into a binary image; Step 2: Extraction of feature values of the nine-grid image: Use the nine-grid image segmentation method to cut the binary image obtained in step 1 into nine parts, and calculate the foreground proportion of each part, that is, the required eigenvalue; The nine parts are divided into three columns: left, middle and right, and each column is divided into three parts: upper, middle and lower; The white part corresponding to the value "255" in the binary image is the background area, that is, the area except the target infant; the black part corresponding to the value "0" is the foreground area, that is, the target infant to be detected, referred to as the foreground; the foreground proportion is the ratio of the pixels in the foreground area to the total pixels in the image; Step 3: Determine drowning based on characteristic values: Set the sum of the eigenvalues of the left column of the nine-square grid to L1, the sum of the eigenvalues of the middle column of the nine-square grid to L2, the sum of the eigenvalues of the right column of the nine-square grid to L3, and the eigenvalue of the middle square of the middle column to B5; When the safety situation judgment conditions are met, it is marked as safe, if not, it is marked as dangerous; The safety situation judgment conditions are: L2>L1 and L2>L3 and B5>0.5.
