Water bloom area video monitoring and identification method under zero sample condition

By using fixed cameras and edge computing devices combined with the Dinov2 model and HSV domain segmentation technology under zero-sample conditions, the automatic identification and monitoring of cyanobacteria blooms is realized, solving the problems of low monitoring accuracy and high cost in the existing technology, and achieving Highly accurate and real-time algae bloom monitoring and early warning.

CN118609023APending Publication Date: 2024-09-06CHONGQING INST OF GREEN & INTELLIGENT TECH CHINESE ACAD OF SCI
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410733967.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing cyanobacteria bloom monitoring methods have problems such as low accuracy, high cost, non-real-time and inability to detect emergencies in a timely manner. Especially under zero-sample conditions that lack labeled data, it is difficult to achieve high efficiency, high accuracy and high real-time performance. Monitoring and early warning.

Method used

A zero-sample algae bloom real-time monitoring system is used to collect images through fixed cameras, use edge computing devices for image segmentation and enhancement processing, and combine the Dinov2 model and HSV domain segmentation technology to realize automatic identification and monitoring of cyanobacteria blooms and provide real-time feedback on the algae bloom area. and distribution.

Benefits of technology

It achieves high-accuracy and high-real-time cyanobacteria bloom monitoring, reduces monitoring costs, can effectively identify and warn under zero-sample conditions, and improves monitoring efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609023A
    Figure CN118609023A
Patent Text Reader

Abstract

The invention relates to a water bloom area video monitoring and identification method under a zero sample condition, and belongs to the field of image identification and classification. The method comprises the following steps: S1, image acquisition; s2, identifying and segmenting a water body region; s3, performing enhancement processing on the segmented water body image; s4, algae bloom segmentation; and S5, calculating the distribution and area of algae blooms, and feeding back. According to the method, the water area image collected by the terminal fixed camera is subjected to image segmentation and image enhancement processing, cyanobacterial bloom can be recognized, automation and intelligence of cyanobacterial bloom monitoring are achieved, the efficiency and accuracy of cyanobacterial bloom monitoring can be improved, and meanwhile real-time cyanobacterial bloom early warning is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for video monitoring and identification of water bloom area under zero-sample conditions, belongs to the field of image recognition and classification, and is particularly suitable for video monitoring and identification of water bloom area under zero-sample conditions. Background Art

[0002] Algal bloom refers to the aggregation of algae caused by the sudden and massive proliferation of algae in water bodies. Common algae blooms include cyanobacteria, green algae and diatoms, especially cyanobacterial blooms, which are an important ecological issue in inland lake management and water resource development and utilization. The hazards of algal blooms are mainly manifested in: a large number of algae gather on the surface of the water body, blocking light and air exchange, causing a decrease in dissolved oxygen in the water body and affecting the survival of other organisms; some harmful cyanobacteria secrete toxins, causing the death of fish and shrimp and polluting the landscape, endangering drinking water safety, causing economic losses and negative social impacts. Algal blooms have become an intensifying trend around the world, with unclear mechanisms, randomness, suddenness and potential risks. With the increasing attention paid to environmental protection and water resource management, research on early warning and prediction of algal blooms remains a global hot topic.

[0003] At present, the monitoring methods for cyanobacteria blooms (abbreviated as algae blooms) include satellite remote sensing technology, buoy observation-based methods, and shore fixed station methods. Although these methods can basically achieve the monitoring and early warning of cyanobacteria blooms, there are many problems. For example, satellite remote sensing technology is sensitive to environmental conditions, buoy observation methods are expensive, and shore fixed station methods cannot detect emergencies in a timely manner and require a long time to accumulate data. In addition, conventional monitoring methods such as field measurements and algae cell counting are limited by the uncertainty of the spatiotemporal domain of the bloom, and the manpower and economic costs are high, which is not conducive to long-term and wide-area monitoring. Therefore, there is an urgent need to introduce online remote sensing monitoring technology with the characteristics of quasi-real-time, high precision, large range, and low cost.

[0004] In the context of the rapid development of modern Internet of Things and big data technology, it is of great significance to use existing technologies to achieve efficient, high-accuracy and high-real-time monitoring and early warning of cyanobacterial bloom area. However, existing machine learning methods also face challenges in the identification and detection of cyanobacterial bloom area. For example, the lack of key bands and insufficient use of spectral information lead to low monitoring accuracy of the inversion model; complex environmental factors such as sunlight and water turbidity interfere with the image content, resulting in unstable detection results; and for areas with little or no data, historical monitoring information of water blooms is very effective. In addition, the changes in cyanobacterial blooms in different regions and seasons require targeted model training and optimization, which increases the workload and technical difficulty. Existing machine learning methods require a large amount of labeled data for training, and the acquisition of high-quality data sets is also a major challenge. Therefore, it is imperative to study and develop more advanced and efficient cyanobacterial bloom monitoring technology for video monitoring and identification methods of water bloom area under zero-sample conditions to cope with the intensifying trend of water bloom outbreaks worldwide. Summary of the invention

[0005] In view of this, the present invention provides a method for video monitoring and identification of algal bloom area under zero-sample conditions. By performing image segmentation and image enhancement processing on the water area images collected by a terminal fixed camera, cyanobacterial blooms are identified, thereby realizing automation and intelligence in cyanobacterial bloom monitoring, improving monitoring efficiency and accuracy, and realizing real-time early warning of algal bloom outbreaks.

[0006] In order to achieve the above object, the present invention provides the following technical solutions:

[0007] A method for video monitoring and identification of algal bloom area under zero-sample conditions is implemented using a zero-sample algal bloom real-time monitoring system, which is composed of a fixed camera, an edge computing device, and a cloud server; the fixed camera is connected to the edge computing device; the fixed camera is aimed at the water area of ​​the monitoring area, and takes RGB images according to the sampling period and uploads them to the edge computing device; the edge computing device is a microprocessor, which is used to perform water body segmentation processing on the RGB image at the edge; the edge computing device communicates with the cloud server through the network; the cloud server enhances the water body image and identifies the cyanobacteria bloom, and feeds back the identification results to the user in real time through the network.

[0008] The specific steps include:

[0009] S1: Aim a fixed camera at the water area to be monitored, set a sampling period to collect RGB images and upload them to the edge computing device;

[0010] S2: The edge computing device uses image segmentation technology to realize water area recognition and segmentation;

[0011] S3: The cloud server performs enhancement processing on the segmented water body image;

[0012] S4: The cloud server performs algal bloom segmentation on the enhanced water image in the HSV domain;

[0013] S5: The cloud server calculates the distribution and area of ​​the algal bloom, determines the bloom result, and uploads the result to the cloud server for real-time feedback to the user.

[0014] Furthermore, the image segmentation technology described in step S2 is: Dinov2 (Data-efficient Image Noise-aware pre-training2) model, extracting the region of interest and outputting it as a water area binary mask water; The segmented water body image I w (x) = mask water I(x), where I(x) is the RGB image captured by a fixed camera and x is the pixel in the image. The dinov2 model is a powerful self-supervised learning model released by Meta AI, designed for computer vision tasks, and aims to efficiently learn robust visual features through self-supervision without the need for manually labeled data. This model is an existing technology, integrated in an edge computing device, and can be directly called: https: / / github.com / facebookresearch / dinov2 .

[0015] Preferably, the chip of the edge computing device is AX650N, which is a SoC chip with high computing power and high energy efficiency, integrating an octa-core Cortex-A55 CPU, 18TOPs@INT8 NPU (customized and optimized for the Transformer model), an ISP that supports 8K@30fps, and a VPU that supports H.264 and H.265 encoding and decoding. In terms of interfaces, AX650N supports 64bit LPDDR4x, multi-channel MIPI input, Gigabit Ethernet, USB, and HDMI 2.0b output, and supports 32-channel 1080p@30fps decoding.

[0016] Further, the step S3 is specifically as follows:

[0017] S301: Perform dark channel recognition on the segmented water body image to obtain a dark channel image Among them, J c (y) represents the water body image I after segmentation w The channel corresponding to color c (red r, green g, blue b) in (x), Ω(x) represents a local window centered on pixel x;

[0018] S302: Calculate the image after guided filtering in, is the unknown coefficient, which is solved by optimizing the objective;

[0019] S303: From dark channel image J dark In (x), the top 0.1% of pixels are taken according to the brightness, and the original segmented water image I corresponding to these pixels is w Find the value of the highest brightness point in (x) as A, the transmittance Among them, ω is an empirical parameter, usually taken as 0.95; C represents three channels;

[0020] S304: Calculate the enhanced output of the dark channel: Among them, t min It is the threshold to prevent the image from being overexposed; usually 0.1;

[0021] S305: Using gamma enhancement technology, an enhanced water image is obtained: J out (x) = J γ (x); where J γ (x) represents gamma enhancement of J(x).

[0022] Furthermore, the optimization objective equation described in step S302 is: w x is a window centered at x.

[0023] Further, the step S4 is specifically as follows:

[0024] S401: Enhanced water body image J out (x) Convert from RGB domain to HSV domain;

[0025] S402: Combine the expert knowledge base to screen out the color threshold range corresponding to the cyanobacteria bloom [h min ,h max ],[s min ,s max ],[v min , v max ]; where h min 、h max are the minimum and maximum values ​​corresponding to the hue, s min 、s max are the minimum and maximum values ​​corresponding to saturation, v min 、v max are the minimum and maximum values ​​corresponding to brightness respectively;

[0026] S403: From enhanced water image J out In (x), the pixel x within the color threshold range is selected and the algal bloom mask corresponding to the pixel is calculated.algal (x), get a 0-1 segmentation matrix mask algal ;

[0027] in,

[0028] S404: Using segmentation matrix mask algal Achieve algal bloom segmentation, that is, the segmentation result is J out (x) mask algal .

[0029] Preferably, select [h min ,h max ]=[35,77],[s min, s max ]=[43,255],[v min , v max ]=[46,255].

[0030] Further, the step S5 is specifically as follows:

[0031] S501: Calculate the distribution ratio of algal blooms That is, the percentage of algal bloom area to water area; where n is the number of pixels of the RGB image I(x) collected by the fixed camera;

[0032] S502: Calculate the proportion of water area

[0033] S503: Calculate the specific algal bloom area using the area of ​​the fixed camera image region;

[0034] S504: When the algal bloom area exceeds a set threshold, the algal bloom area and the segmented image are fed back to the user in real time.

[0035] Preferably, the selection of the algal bloom area threshold can be obtained by training a deep learning network on historical labeled data on the distribution ratio of algal blooms and the ratio of water area.

[0036] Preferably, for the segmentation matrix mask algal The rate of change of algal bloom can be obtained by calculating the rate of change using the optical flow method.

[0037] The beneficial effects of the present invention are as follows: the present invention provides a method for video monitoring and identification of water bloom area under zero-sample conditions, which utilizes an image segmentation model and a dark channel enhancement algorithm to segment algal blooms from water areas according to the color features of the algal blooms. It can identify algal blooms in images with high accuracy and real-time performance, segment them accurately, and obtain statistically relevant information on the area of ​​the algal blooms. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to make the purpose and technical solution of the present invention, the present invention provides the following drawings for explanation:

[0039] Figure 1 It is a flow chart of a method for video monitoring and identifying water bloom area under zero sample conditions of the present invention;

[0040] Figure 2 This is an architecture diagram of the zero-sample algal bloom real-time monitoring system in Example 1 of the present invention; wherein 1 is a fixed camera, 2 is an edge computing device, and 3 is a cloud server;

[0041] Figure 3 The binary mask image of the water area in Example 1 of the present invention;

[0042] Figure 4 This is a diagram of the algal bloom identification results in Example 1 of the present invention. DETAILED DESCRIPTION

[0043] In order to make the purpose and technical solution of the present invention more clearly understood, the present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0044] Example 1: In order to achieve real-time monitoring and early warning of blue algae blooms in the waters of Dianchi Lake, and because there is no historical data support, this example provides a "zero-sample condition video monitoring and identification method for blue algae bloom area", combined with Figure 2 ,, is implemented by using a zero-sample algae bloom real-time monitoring system, the zero-sample algae bloom real-time monitoring system is composed of a fixed camera (1), an edge computing device (2), and a cloud server (3); the fixed camera (1) is connected to the edge computing device (2); the fixed camera (1) is aimed at the water area of ​​the monitoring area, and takes RGB images according to the sampling period and uploads them to the edge computing device (2); the edge computing device (2) is a microprocessor, and in this embodiment, an NVIDIA Jetson TX2 chip based on an AI edge computing box gateway is used, the model is TurboEdge-8C8G64G-6T-3588JQ, which is used for the edge end (2) to perform water body segmentation processing on the RGB image; the edge computing device (2) communicates with the cloud server (3) through a network; the cloud server (3) enhances the water body image and performs blue algae bloom recognition, and feeds back the recognition result to the user in real time through the network.

[0045] Combination Figure 1 , the method comprises the following steps:

[0046] Step 1: Aim a fixed camera (1) at the water area of ​​the monitoring area, set a sampling period to collect RGB images and upload them to the edge computing device (2).

[0047] Step 2: The edge computing device (2) uses image segmentation technology to realize water body area recognition and segmentation, and uploads the segmented water body image to the cloud server (3).

[0048] The image segmentation technology is: Dinov2 model, extracting the region of interest and outputting it as a water area binary mask water ,like Figure 3 As shown; the segmented water body image I w (x) = mask water I(x), where I(x) is the RGB image captured by the fixed camera (1) and x is a pixel in the image.

[0049] Step 3: The cloud server (3) performs enhancement processing on the segmented water body image. Specifically:

[0050] S301: Perform dark channel recognition on the segmented water body image to obtain a dark channel image Among them, J c (y) represents the water body image I after segmentation w The channel corresponding to color c (red r, green g, blue b) in (x), Ω(x) represents a local window centered on pixel x;

[0051] S302: Calculate the image after guided filtering in, is the unknown coefficient, which is solved by optimizing the objective;

[0052] S303: From dark channel image J dark In (x), the top 0.1% of pixels are selected according to the brightness, and the value of the highest brightness point in the original segmented water image I(x)w corresponding to these pixels is found as A, and the transmittance Among them, ω is an empirical parameter, usually taken as 0.95; C represents three channels;

[0053] S304: Calculate the enhanced output of the dark channel: Among them, t min It is the threshold to prevent the image from being overexposed; usually 0.1;

[0054] S305: Using gamma enhancement technology, an enhanced water image is obtained: J out (x) = J γ (x); where J γ (x) represents gamma enhancement of J(x).

[0055] Furthermore, the optimization objective equation described in step S302 is: w x is a window centered at x.

[0056] Step 4: The cloud server (3) performs algae bloom segmentation on the enhanced water body image in the HSV domain. Specifically:

[0057] S401: Enhanced water body image J out (x) Convert from RGB domain to HSV domain;

[0058] S402: Combine the expert knowledge base to screen out the color threshold range corresponding to the cyanobacteria bloom [h min ,h max ],[s min ,s max ],[v min , v max ]; where h min 、h max are the minimum and maximum values ​​corresponding to the hue, s min 、s max are the minimum and maximum values ​​corresponding to saturation, v min 、v max are the minimum and maximum values ​​corresponding to brightness respectively;

[0059] S403: From enhanced water image J out In (x), the pixel x within the color threshold range is selected and the algal bloom mask corresponding to the pixel is calculated. algal (x), get a 0-1 segmentation matrix mask algal ;

[0060] in,

[0061] S404: Using segmentation matrix mask algal To achieve algal bloom segmentation, the segmentation result is out (x) mask algal .

[0062] Step 5: Combine Figure 4 The cloud server (3) calculates the distribution and area of ​​algal blooms, determines the results of algal blooms, and provides real-time feedback to users. Specifically:

[0063] S501: Calculate the distribution ratio of algal blooms That is, the percentage of algal bloom area to water area; where n is the number of pixels of the RGB image I(x) collected by the fixed camera (1);

[0064] S502: Calculate the proportion of water area

[0065] S503: Calculate the specific algal bloom area using the area of ​​the image region of the fixed camera (1);

[0066] S504: When the algal bloom area exceeds a set threshold, the algal bloom area and the segmented image are fed back to the user in real time.

[0067] Preferably, the selection of the algal bloom area threshold can be obtained by training a deep learning network on historical labeled data on the distribution ratio of algal blooms and the ratio of water area.

[0068] In order to better demonstrate the beneficial effects of the method of the present invention, UNet deepLabV3 is used to directly train and identify the historical data images of the region. Its recognition accuracy is only 31.86%, which is much lower than the 64.50% of the method of the present invention. In terms of efficiency, it takes 2.02 seconds, which is higher than the 1.19 seconds of the method of the present invention. It is undeniable that, on the one hand, thanks to the fact that the Dinov2 model used in the method of the present invention is a large model, the accuracy and efficiency of the segmented image are greatly improved. At the same time, the image enhancement and other processing methods of the method of the present invention can be more conducive to the recognition of the segmented image.

[0069] Example 2: In order to better exert the performance of the method of the present invention, for the scenario of Example 1, the present invention proposes an "improved video monitoring and identification method of water bloom area under zero-sample conditions", which truly realizes zero-sample real-time monitoring and is implemented using a zero-sample algal bloom real-time monitoring system. Its system architecture and method steps are roughly the same as those of Example 1, and will not be repeated here. The difference is:

[0070] In order to bring out the superior performance of the Dinov2 model, the chip of the edge computing device is AX650N, which is a SoC chip with high computing power and high energy efficiency, integrating an octa-core Cortex-A55 CPU, 18TOPs@INT8 NPU (customized and optimized for the Transformer model), ISP supporting 8K@30fps, and VPU for H.264 and H.265 encoding and decoding. In terms of interfaces, AX650N supports 64bit LPDDR4x, multi-channel MIPI input, Gigabit Ethernet, USB, and HDMI 2.0b output, and supports 32-channel 1080p@30fps decoding.

[0071] Based on experience, we select [h min ,h max ]=[35,77],[s min ,s max ]=[43,255],[v min , v max ]=[46, 255], which can achieve zero-sample training.

[0072] Preferably, for the segmentation matrix mask algalThe rate of change of algal bloom can be obtained by calculating the rate of change using the optical flow method.

[0073] Finally, it should be noted that the above preferred embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail through the above preferred embodiments, those skilled in the art should understand that various changes can be made in form and details without departing from the scope defined by the claims of the present invention.

Claims

1. A method for video monitoring and identification of water bloom area under zero-sample conditions, characterized in that: The invention is implemented by using a zero-sample algal bloom real-time monitoring system, which is composed of a fixed camera (1), an edge computing device (2), and a cloud server (3); the fixed camera (1) is connected to the edge computing device (2); the fixed camera (1) is aimed at the water area of ​​the monitoring area, and takes RGB images according to the sampling period and uploads them to the edge computing device (2); the edge computing device (2) is a microprocessor, which is used for edge end to perform water body segmentation processing on the RGB image; the edge computing device (2) communicates with the cloud server (3) through the network; the cloud server (3) enhances the water body image and performs blue algae bloom identification, and feeds back the identification results to the user in real time through the network; the method comprises the following steps: S1: A fixed camera (1) is installed towards the water area of ​​the monitoring area, and a sampling period is set to collect RGB images and upload them to the edge computing device (2); S2: The edge computing device (2) uses image segmentation technology to realize water area recognition and segmentation; S3: The edge computing device (2) performs enhancement processing on the segmented water body image; S4: The edge computing device (2) performs algal bloom segmentation on the enhanced water body image in the HSV domain; S5: The edge computing device (2) calculates the distribution and area of ​​the algal bloom, determines the algal bloom result, and uploads the result to the cloud server (3) to provide real-time feedback to the user.

2. The method for video monitoring and identification of water bloom area under zero-sample conditions according to claim 1, characterized in that: The image segmentation technology described in step S2 is: Dinov2 model, extracting the region of interest and outputting it as a water area binary mask water ; The segmented water body image I w (x) = mask water I(x), where I(x) is the RGB image captured by the fixed camera (1) and x is a pixel in the image.

3. The method for video monitoring and identification of water bloom area under zero-sample conditions according to claim 1, characterized in that: The step S3 is specifically as follows: S301: Perform dark channel recognition on the segmented water body image to obtain a dark channel image Among them, J c (y) represents the water body image I after segmentation w The channel corresponding to color c (red r, green g, blue b) in (x), Ω(x) represents a local window centered on pixel x; S302: Calculate the image after guided filtering in, is the unknown coefficient, which is solved by optimizing the objective; S303: From dark channel image J dark In (x), the top 0.1% of pixels are taken according to the brightness, and the original segmented water image I(x) corresponding to these pixels is w Find the value of the highest brightness point in the equation as A, and the transmittance Among them, ω is an empirical parameter; C represents three channels; S304: Calculate the enhanced output of the dark channel: Among them, t min is the threshold to prevent the image from being overexposed; S305: Using gamma enhancement technology, an enhanced water image is obtained: J out (x) = J γ (x): where J γ (x) represents gamma enhancement of J(x).

4. The method for video monitoring and identification of water bloom area under zero-sample conditions according to claim 3, characterized in that: The optimization objective equation described in step S302 is: w x is a window centered at x.

5. The method for video monitoring and identification of water bloom area under zero-sample conditions according to claim 1, characterized in that: The step S4 is specifically as follows: S401: Enhanced water body image J out (x) Convert from RGB domain to HSV domain; S402: Combine the expert knowledge base to screen out the color threshold range corresponding to the cyanobacteria bloom [h min ,h max ],[s min ,s max ],[v min , v max ]; where h min 、h max are the minimum and maximum values ​​corresponding to the hue, s min 、s max are the minimum and maximum values ​​corresponding to saturation, v min 、v max are the minimum and maximum values ​​corresponding to brightness respectively; S403: From enhanced water image J out In (x), the pixel x within the color threshold range is selected and the algal bloom mask corresponding to the pixel is calculated. algal (x), get a 0-1 segmentation matrix mask algal ; in, S404: Using segmentation matrix mask algal Achieve algal bloom segmentation, that is, the segmentation result is J out (x) mask algal .

6. The method for video monitoring and identification of water bloom area under zero-sample conditions according to claim 5, characterized in that: The step S402 selects [h min ,h max ]=[35,77],[s min ,s max ]=[43,255],[v min , v max ]=[46,255].

7. The method for video monitoring and identification of water bloom area under zero-sample conditions according to claim 1, characterized in that: The step S5 is specifically as follows: S501: Calculate the distribution ratio of algal blooms That is, the percentage of algal bloom area to water area; where n is the number of pixels of the RGB image I(x) collected by the fixed camera (1); S502: Calculate the proportion of water area S503: Calculate the specific algal bloom area using the area of ​​the image region of the fixed camera (1); S504: When the algal bloom area exceeds a set threshold, the algal bloom area and the segmented image are fed back to the user in real time.

8. The method for video monitoring and identifying water bloom area under zero-sample conditions according to claim 7, characterized in that: The selection of the algal bloom area threshold described in step S504 can be obtained by training the historical labeled data of the distribution ratio of algal blooms and the water area ratio using a deep learning network.

9. The method for video monitoring and identification of water bloom area under zero-sample conditions according to claim 1, characterized in that: For the segmentation matrix mask algal The rate of change of algal bloom can be obtained by calculating the rate of change using the optical flow method.

Citation Information

Cited By

  • Multi-scale collaborative algal bloom assessment method fusing underwater video

    CN119495019A

  • Artificial intelligence-based enteromorpha prevention and control early warning method and system

    CN119516750A