Water erosion ditch identification method and system based on computer vision

Through the water erosion gully identification method based on computer vision, the semantic segmentation neural network is used to automatically identify water erosion gullies, which solves the problem of time and effort and reliance on human interpretation in the existing technology, and achieves precise positioning and large-scale dynamic monitoring of water erosion gullies. .

CN118570469APending Publication Date: 2024-08-30INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410647059.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing water erosion gully extraction methods rely on on-site surveys and remote sensing technology, which is time-consuming and labor-intensive, and remote sensing technology relies on human interpretation, making it difficult to achieve large-scale dynamic monitoring.

Method used

A water gully identification method based on computer vision is used, an extraction model is built through a semantic segmentation neural network, and multi-scale residual convolution, multi-scale contextual attention and feature fusion network are used to automatically identify water gully information from remote sensing images.

Benefits of technology

It achieves precise positioning and identification of water erosion ditches, saves time and labor costs, and is suitable for large-scale dynamic monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570469A
    Figure CN118570469A
Patent Text Reader

Abstract

The invention provides a computer vision-based water erosion ditch identification method, which comprises the following steps of: performing data acquisition to generate a water erosion ditch data set of a selected area; building a semantic segmentation neural network adopting a water erosion channel extraction algorithm, inputting the water erosion channel data set into the semantic segmentation neural network, and training a water erosion channel extraction model; and inputting a to-be-identified image into the water erosion trench extraction model for model reasoning, and identifying water erosion trench information from the to-be-identified image. The invention further provides a water erosion ditch recognition system based on computer vision, a storage medium and electronic equipment. Therefore, accurate positioning and accurate identification of the water erosion ditch can be automatically achieved, a large amount of time and labor cost can be saved, and the method is suitable for large-range dynamic monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water gully extraction of artificial intelligence computer vision and geographical environment, and in particular to a water gully recognition method, system, storage medium and electronic equipment based on computer vision. Background Art

[0002] Gullies are a type of degraded landform that is formed by water erosion and has a U-shaped or V-shaped cross section. If it is not managed, it will exist for a long time. Gullies damage arable land, causing the thinning of the arable layer and the decline of soil fertility. Currently, it is the concentrated manifestation of soil and water loss in the black soil region of Northeast China.

[0003] During the large-scale development and reclamation of black soil areas, serious water and soil erosion problems have occurred, mainly manifested in the loss of black soil layers in large areas of sloping farmland and the formation of water erosion gullies in the process of soil erosion. Water erosion gullies will cause the black soil layer of sloping farmland to become thinner year by year, the loss of soil organic matter, and the erosion of farmland, making large agricultural machinery unable to operate, reducing agricultural production efficiency, and restricting the development of agricultural modernization.

[0004] Therefore, analyzing remote sensing images, extracting gullies through semantic segmentation technology of computer vision, and determining the shape and range of gullies are of great significance for dynamically monitoring the degree of erosion, timely preventing and controlling gully erosion hazards, and guiding agricultural activities.

[0005] The existing methods for extracting gullies are mainly based on various field surveys and remote sensing technologies. Field surveys are a traditional and simple method for discovering gullies, collecting erosion information, and assessing the degree of erosion, but they waste a lot of time and manpower. In contrast, remote sensing technologies such as high-resolution optical remote sensing have been widely used in monitoring, disaster warning, etc. due to their advantages in long-distance detection. However, existing remote sensing technologies mostly use remote sensing visual interpretation, which relies too much on the interpretation experience and domain knowledge of experts, requires a large amount of human resources, and is not suitable for large-scale dynamic monitoring.

[0006] In summary, the prior art obviously has inconveniences and defects in practical use, so it is necessary to improve it. Summary of the invention

[0007] In view of the above-mentioned defects, the purpose of the present invention is to provide a water gully identification method, system, storage medium and electronic device based on computer vision, which can automatically realize the precise positioning and accurate identification of water gullies, thereby saving a lot of time and labor costs.

[0008] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:

[0009] In a first aspect, an embodiment of the present invention provides a method for identifying water gullies based on computer vision, comprising:

[0010] Conduct data collection to generate a water gully dataset for the selected area;

[0011] Building a semantic segmentation neural network using a gully extraction algorithm, inputting the gully dataset into the semantic segmentation neural network, and training a gully extraction model;

[0012] The image to be identified is input into the gully extraction model for model inference, and the gully information is identified from the image to be identified.

[0013] According to the computer vision-based gully identification method of the present invention, the step of collecting data and generating a gully data set of a selected area includes:

[0014] Acquire a remote sensing image of the selected area to generate a water erosion gully data set of the selected area;

[0015] The steps of building a semantic segmentation neural network using a gully extraction algorithm, inputting the gully data set into the semantic segmentation neural network, and training a gully extraction model include:

[0016] The water gully dataset is randomly horizontally flipped, randomly vertically flipped and / or randomly rotated to obtain an enhanced water gully dataset;

[0017] defining the semantic segmentation neural network for extracting gullies in the selected area, wherein the semantic segmentation neural network adopts the gully extraction algorithm;

[0018] The enhanced gully data set is input into the semantic segmentation neural network to train a gully extraction model.

[0019] According to the computer vision-based gully identification method of the present invention, the gully extraction model further comprises:

[0020] The multi-scale residual convolution module contains a convolutional neural network with multiple layers of residual connections, which is used to extract information from feature maps and accept multi-scale inputs at the same time;

[0021] A multi-scale contextual attention module, including multiple layers of multi-head self-attention layers, extracts key information from the remote sensing image through a predetermined attention mechanism;

[0022] Feature fusion network, used to integrate the extraction results of structural features and content features;

[0023] The decoder upsampling module is used to implement upsampling of the remote sensing image through deconvolution and convolution operations, and upsample the remote sensing image to the same resolution as the image to be identified.

[0024] According to the water gully identification method based on computer vision of the present invention, the feature fusion network is used to receive base data and guidance data of different dimensions; the feature map of the base data and the feature map of the guidance data are fused through convolution layers and activation functions; the base data is weightedly screened using the guidance data to obtain weight data; and the weighted extraction result is obtained by combining the weight data with the base data.

[0025] According to the computer vision-based gully identification method of the present invention, the step of collecting data and generating a gully data set of a selected area includes:

[0026] Performing data collection to obtain remote sensing images of the selected area to form a data set;

[0027] Combining the remote sensing images with field survey verification to determine the location of the water gullies in the selected area;

[0028] Annotating the water gullies in the data set and building a water gully database for the selected area;

[0029] The labeled data set is divided into a training set and a test set to generate the water erosion gully data set of the selected area.

[0030] According to the computer vision-based gully identification method of the present invention, the step of dividing the labeled data set into a training set and a test set, and generating the gully data set of the selected area includes:

[0031] Filtering the labeled data set, retaining the remote sensing images whose gully ratio exceeds a predetermined threshold, and generating the filtered data set;

[0032] The filtered data set is divided into a training set and a test set to generate the water erosion gully data set of the selected area.

[0033] According to the computer vision-based gully identification method of the present invention, the step of inputting the image to be identified into the gully extraction model for model inference and identifying the gully information from the image to be identified includes:

[0034] Inputting the image to be identified into a water gully extraction model for model reasoning to obtain a reasoning result;

[0035] If the predicted value of the inference result is greater than a predetermined prediction threshold, it is determined that water gullies exist in the image to be identified.

[0036] In a second aspect, an embodiment of the present invention provides a computer vision-based gully identification system constructed based on any one of the methods described above, comprising:

[0037] A data acquisition module is used to collect data and generate a water erosion gully data set in a selected area;

[0038] A model generation module is used to build a semantic segmentation neural network using a gully extraction algorithm, input the gully data set into the semantic segmentation neural network, and train a gully extraction model;

[0039] The graphic recognition module is used to input the image to be recognized into the water gully extraction model for model reasoning, and recognize the water gully information from the image to be recognized.

[0040] In a third aspect, an embodiment of the present invention provides a storage medium for storing a computer program for executing any one of the water gully identification methods based on computer vision.

[0041] In a fourth aspect, an embodiment of the present invention provides a computer device, comprising a storage medium, a processor, and a computer program stored in the storage and executable on the processor, wherein when the processor executes the computer program, any one of the water erosion gully identification methods based on computer vision is implemented.

[0042] In an embodiment of the present invention, data is first collected to generate a gully data set of a selected area; then a semantic segmentation neural network is built, the semantic segmentation neural network adopts a gully extraction algorithm, the gully data set is input into the semantic segmentation neural network, and a gully extraction model is trained; finally, the image to be identified is input into the gully extraction model for model reasoning to identify the gully information. The existing gully extraction model based on computer vision ignores the key structural information in the image, while the present invention can extract the key information of the gully by combining the gully extraction algorithm of the semantic segmentation neural network with artificial intelligence, thereby automatically locating and accurately identifying the gully, which can save a lot of time and labor costs, and is suitable for large-scale dynamic monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 1 is a flow chart of a method for identifying water erosion gullies based on computer vision provided in the first embodiment of the present invention;

[0044] Figure 2 1 is a flow chart of a method for identifying water erosion gullies based on computer vision provided in the second embodiment of the present invention;

[0045] Figure 3 is a schematic diagram of the structure of a water erosion gully identification system based on computer vision provided in Embodiment 1 of the present invention;

[0046] Figure 4is a schematic diagram of the structure of a water erosion gully identification system based on computer vision provided in Embodiment 2 of the present invention;

[0047] Figure 5 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0049] It should be noted that references to "one embodiment", "embodiment", "example embodiment", etc. in this specification refer to the embodiment described, which may include specific features, structures or characteristics, but not every embodiment must include these specific features, structures or characteristics. In addition, such expressions do not refer to the same embodiment. Furthermore, when describing specific features, structures or characteristics in conjunction with an embodiment, whether or not there is an explicit description, it has been shown that it is within the knowledge of those skilled in the art to combine such features, structures or characteristics into other embodiments.

[0050] In addition, certain words are used in the specification and subsequent claims to refer to specific components or parts. Those with ordinary knowledge in the relevant field should understand that manufacturers can use different nouns or terms to refer to the same component or part. This specification and subsequent claims do not use differences in names as a way to distinguish components or parts, but use differences in the functions of components or parts as the criteria for distinction. "Including" and "including" mentioned throughout the specification and subsequent claims are open-ended terms and should be interpreted as "including but not limited to". In addition, the word "connected" here includes any direct and indirect electrical connection means. Indirect electrical connection means include connection through other devices.

[0051] The following describes in detail the water erosion gully identification method based on computer vision provided by the embodiment of the present invention through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0052] Figure 1 : is a flow chart of a method for identifying water erosion gullies based on computer vision provided in the first embodiment of the present invention, wherein the method comprises at least the following steps:

[0053] Step S101, collect data to generate a water gully data set in a selected area.

[0054] Preferably, a remote sensing image of the selected area is obtained to generate a water gully data set of the selected area. Remote sensing image (RS) refers to a film or photo that records the size of electromagnetic waves of various ground objects, mainly divided into aerial photos and satellite photos. The selected area can be a geographical area arbitrarily selected by the user according to actual needs, such as the Northeast Black Soil Area, the North China Plain, the Hongta District of Yuxi City, Yunnan, the Lushan Nature Reserve, etc.

[0055] Preferably, the step S101 further comprises:

[0056] (11) Perform data collection and obtain remote sensing images of the selected area to form a data set. Preferably, data collection is performed on the selected area, and a high-resolution satellite is used to photograph the selected area to obtain a high-definition remote sensing image with a resolution of 0.5 m, that is, each pixel of the remote sensing image represents an area of ​​0.5 square meters. In other words, the smaller the ground area that each pixel can display, the higher the spatial resolution of the remote sensing image, and the more detailed information can be displayed.

[0057] (12) Combine remote sensing images with field survey verification to determine the specific location of gullies in the selected area.

[0058] (13) Label the gullies in the dataset and build a gully database for the selected area. Preferably, use a labeling tool to label the gullies in the dataset and build a gully database for the selected area. Better yet, use the labelme labeling tool to label the gullies in the dataset. The labelme labeling tool is an image labeling tool developed by the Computer Science and Artificial Intelligence Laboratory (CSAIL) of the Massachusetts Institute of Technology (MIT). The labelme labeling tool can be used to create customized labeling tasks or perform image labeling. The project source code has been open sourced.

[0059] (14) Divide the labeled data set into a training set and a test set to generate a water erosion gully data set of the selected area. Preferably, the labeled data set is divided into a training set and a test set according to a ratio of 8:2.

[0060] Preferably, the step (14) further comprises:

[0061] (141) Filter the annotated data set, retain the remote sensing images with a gully ratio exceeding a predetermined threshold, and generate a filtered data set. Preferably, retain the windows with a gully ratio exceeding 3%, and generate a filtered data set including the image and the annotation.

[0062] (142) The filtered dataset is divided into a training set and a test set to generate a water gully dataset in the selected area.

[0063] Step S102: construct a semantic segmentation neural network using a gully extraction algorithm, input the gully data set into the semantic segmentation neural network, and train a gully extraction model.

[0064] This step mainly involves building a gully extraction algorithm, and training a gully extraction model through the gully extraction algorithm and gully data. Semantic segmentation refers to assigning each pixel in an image to a corresponding category, and a semantic segmentation neural network refers to a neural network with semantic segmentation function.

[0065] Preferably, the step S102 further comprises:

[0066] (21) Data enhancement: The gully dataset is randomly flipped horizontally, randomly flipped vertically, and / or randomly rotated to obtain an enhanced gully dataset. Since the gully data is unbalanced in collection and the size of the data will affect the performance of the model, the cropped remote sensing images are randomly flipped horizontally, randomly flipped vertically, and randomly rotated to generate a new dataset to improve the robustness and adaptability of the model.

[0067] (22) Build a convolutional neural network to identify gullies from remote sensing images and customize a semantic segmentation neural network to extract gullies in the selected area. The semantic segmentation neural network uses a gully extraction algorithm.

[0068] (23) The enhanced gully dataset is input into the semantic segmentation neural network to optimize the model, and the gully extraction model is trained by adjusting parameters and other methods.

[0069] Step S103: input the image to be identified into the gully extraction model for model inference, and identify the gully information from the image to be identified.

[0070] Preferably, the step S103 further comprises:

[0071] (31) The image to be identified is input into the gully extraction model for model inference to obtain the inference result.

[0072] (32) If the predicted value of the inference result is greater than a predetermined prediction threshold, it is determined that there are gullies in the image to be identified. Preferably, the predicted value of the inference result of the gully extraction algorithm for extracting gullies in the selected area is greater than 0.5. If the predicted value is greater than 0.5 and meets the common gully type in the selected area, it is considered that the probability of the presence of gullies is high. If the detection result in the inference result is empty, there are no gullies.

[0073] The computer vision-based gully identification method provided in this embodiment first collects data to generate a gully data set of a selected area; then builds a semantic segmentation neural network, which uses a gully extraction algorithm, inputs the gully data set into the semantic segmentation neural network, and trains a gully extraction model; finally, the image to be identified is input into the gully extraction model for model reasoning to identify the gully information. The existing gully extraction model based on computer vision ignores the key structural information in the image, while the present invention can extract the key information of the gully by combining the gully extraction algorithm of the semantic segmentation neural network with artificial intelligence, thereby automatically locating and accurately identifying the gully, which can save a lot of time and labor costs, and is suitable for large-scale dynamic monitoring.

[0074] Figure 2 : is a flow chart of a method for identifying water erosion gullies based on computer vision provided in the second embodiment of the present invention, the method comprising the following steps:

[0075] Step S201, perform data collection to obtain remote sensing images of a selected area to form a data set.

[0076] Preferably, this embodiment mainly collects data for the selected Northeast Black Soil Region, and uses remote sensing images taken by high-precision remote sensing satellites to form a data set for the Northeast Black Soil Region.

[0077] Step S202, combining the remote sensing image with the on-site investigation verification to determine the location of the gullies in the selected area.

[0078] Preferably, this embodiment combines remote sensing images with field investigation and verification to determine the specific locations of water erosion gullies in the black soil region of Northeast China.

[0079] Step S203, marking the gullies in the data set and building a gully database for the selected area.

[0080] Preferably, the labelme annotation tool is used to annotate the gullies in the dataset and build a gully database for the black soil region of Northeast China.

[0081] Step S204, dividing the labeled data set into a training set and a test set to generate a water erosion gully data set of the selected area.

[0082] Preferably, the step S204 further comprises:

[0083] The annotated data set is filtered, and remote sensing images with a gully ratio exceeding a predetermined threshold are retained to generate a filtered data set. Preferably, the image is cropped by a sliding window method, and filtered according to the gully ratio in the window, and the window with a gully ratio exceeding 3% is retained to generate a data set containing the image and the corresponding annotations.

[0084] The filtered data set is divided into a training set and a test set to generate a water erosion gully data set of the selected area. Preferably, the training set and the test set are divided into 8:2 according to the area.

[0085] Step S205, data enhancement: The water gully dataset is randomly horizontally flipped, randomly vertically flipped and / or randomly rotated to obtain an enhanced water gully dataset.

[0086] Preferably, due to the small number of data sets and in order to enhance the robustness of the model to data disturbances and noise, operations such as random horizontal flipping, random vertical flipping, and random rotation are performed during network training.

[0087] Step S206, building a convolutional neural network. Customize a semantic segmentation neural network for extracting gullies in the selected area, the semantic segmentation neural network uses a gully extraction algorithm. Build a convolutional neural network for identifying different gullies.

[0088] Preferably, in this embodiment, a semantic segmentation neural network for gully extraction in the black soil region of Northeast China is customized, which can comprehensively extract image information from both structural and content aspects, and fuse this information to enhance the performance of the model.

[0089] Step S207, model optimization: The enhanced gully data set is input into the semantic segmentation neural network to optimize the model, and the optimal gully extraction model is trained by adjusting hyperparameters and other methods.

[0090] Preferably, the gully extraction model further designs a multi-scale residual convolution (MSRC) module, a multi-scale context attention (MSCA) module, a feature fusion network (Feature Fusion Network), and a decoder upscale (DU) module, wherein:

[0091] The multi-scale residual convolution module comprises a convolutional neural network with multiple layers of residual connections, which is used to extract information from feature maps and accept multi-scale inputs. Preferably, the multi-scale residual convolution module comprises three layers of residual connections.

[0092] The multi-scale contextual attention module includes multiple layers of multi-head self-attention layers (Multi-Head Self-Attention), which effectively extracts key information in remote sensing images through a predetermined attention mechanism.

[0093] The feature fusion network is used to integrate the extraction results of structural features and content features. Preferably, the feature fusion network is used to receive data of two different dimensions: base data and guidance data; through convolutional layers and activation functions, the feature maps of the base data and the feature maps of the guidance data, the two feature maps of different dimensions are fused; the base data is weighted screened using the guidance data to obtain weighted data; and the weighted extraction results are obtained by combining the weighted data with the base data. The activation function is preferably a Sigmoid activation function. In information science, due to its monotonic and inverse monotonic properties, the Sigmoid activation function is often used as an activation function of a neural network to map variables between 0 and 1.

[0094] The decoder upsampling module is used to achieve upsampling of remote sensing images through deconvolution (transposed convolution) and convolution operations, and upsample the remote sensing images to the same resolution as the image to be identified, thereby providing accurate probability prediction for the classification of each pixel in the original image.

[0095] Step S208, inputting the image to be identified into the gully extraction model for model inference to obtain an inference result.

[0096] Step S209: If the predicted value of the inference result is greater than a predetermined prediction threshold, it is determined that there are water erosion gullies in the image to be identified.

[0097] Preferably, firstly, the result of the prediction value greater than 0.5 in the inference result of the gully extraction algorithm for the gullies in the Northeast Black Soil Region is extracted. If the prediction value is greater than 0.5 and meets the common gully type in the Northeast Black Soil Region, it is considered that the probability of the gullies appearing here is relatively high. If the detection result in the inference result is empty, there is no gully.

[0098] In order to demonstrate the beneficial effects of the gully extraction model of the present invention, the prediction effects of the gully extraction model of the present invention and the existing gully extraction model (DeepLabV3_resnet50 model) on the gully dataset in the black soil region of Northeast China are compared here. It can be seen from Table 1 that the gully extraction model of the present invention is higher than the existing gully extraction model in terms of evaluation indicators such as F1 value (harmonic mean of precision and recall), precision, recall rate, accuracy, and IoU (Intersection over Union), which is sufficient to prove the feasibility and advancement of the gully identification method based on computer vision of the present invention.

[0099]

[0100] Table 1

[0101] It should be noted that the computer vision-based gully identification method provided in the embodiment of the present invention can be executed by an electronic device, a computer vision-based gully identification system, or a control module in the computer vision-based gully identification system for executing the computer vision-based gully identification method. In the embodiment of the present invention, the computer vision-based gully identification system provided in the embodiment of the present invention is described by taking the computer vision-based gully identification system executing the computer vision-based gully identification method as an example.

[0102] Figure 3 1 is a schematic diagram of the structure of a water erosion gully identification system based on computer vision provided in Embodiment 1 of the present invention. The system 100 includes at least a data acquisition module 10, a model generation module 20 and a pattern recognition module 30, wherein:

[0103] The data acquisition module 10 is used to collect data and generate a water gully data set of the selected area. Preferably, the data acquisition module 10 is used to obtain a remote sensing image of the selected area and generate a water gully data set of the selected area.

[0104] The model generation module 20 is used to build a semantic segmentation neural network using a gully extraction algorithm, input the gully data set into the semantic segmentation neural network, and train a gully extraction model.

[0105] The graphic recognition module 30 is used to input the image to be recognized into the gully extraction model for model reasoning, and recognize the gully information from the image to be recognized.

[0106] Figure 4 1 is a schematic diagram of the structure of a water erosion gully identification system based on computer vision provided in Embodiment 2 of the present invention. The system 100 comprises at least a data acquisition module 10, a model generation module 20 and a pattern recognition module 30, wherein:

[0107] The data acquisition module 10 is used to collect data and generate a water gully data set of the selected area. Preferably, the data acquisition module 10 is used to obtain a remote sensing image of the selected area and generate a water gully data set of the selected area. More preferably, the data acquisition module 10 further includes an acquisition submodule 11, a combination submodule 12, a labeling submodule 13 and a segmentation submodule 14, wherein:

[0108] The acquisition submodule 11 is used for data acquisition and obtaining remote sensing images of a selected area to form a data set.

[0109] The combining submodule 12 is used to combine the remote sensing image with the field investigation verification to determine the location of the water erosion gully in the selected area.

[0110] The labeling submodule 13 is used to label the gullies in the data set and build a gully database in the selected area.

[0111] The segmentation submodule 14 is used to segment the labeled data set into a training set and a test set to generate a water erosion gully data set of the selected area.

[0112] Preferably, the data acquisition module 10 further includes a filtering submodule 15 .

[0113] The filtering submodule 15 is used to filter the labeled data set, retain the remote sensing images with gully ratio exceeding a predetermined threshold, and generate a filtered data set.

[0114] The segmentation submodule 14 is used to segment the filtered data set into a training set and a test set to generate a water erosion gully data set of the selected area.

[0115] The model generation module 20 is used to build a semantic segmentation neural network using a gully extraction algorithm, input the gully data set into the semantic segmentation neural network, and train a gully extraction model. Preferably, the model generation module 20 further includes an enhancement submodule 21, a definition submodule 22, and a training submodule 23, wherein:

[0116] The enhancement submodule 21 is used to randomly flip the water gully dataset horizontally, randomly flip the water gully dataset vertically and / or randomly rotate the water gully dataset to obtain an enhanced water gully dataset.

[0117] The definition submodule 22 is used to define a semantic segmentation neural network for extracting gullies in the selected area, and the semantic segmentation neural network adopts a gully extraction algorithm.

[0118] The training submodule 23 is used to input the enhanced gully data set into the semantic segmentation neural network to train a gully extraction model.

[0119] Preferably, the gully extraction model further comprises:

[0120] The multi-scale residual convolution module contains a convolutional neural network with multiple layers of residual connections, which is used to extract information from feature maps and accept multi-scale inputs.

[0121] The multi-scale contextual attention module contains multiple layers of multi-head self-attention layers, which extracts key information from remote sensing images through a predetermined attention mechanism.

[0122] The feature fusion network is used to integrate the extraction results of structural features and content features. Preferably, the feature fusion network is used to receive base data and guidance data of different dimensions. The feature map of the base data and the feature map of the guidance data are fused through the convolution layer and the activation function. The base data is weighted and screened using the guidance data to obtain weighted data. By combining the weighted data with the base data, the weighted extraction result is obtained.

[0123] The decoder upsampling module is used to upsample the remote sensing image through deconvolution and convolution operations, and upsample the remote sensing image to the same resolution as the image to be recognized.

[0124] The graphic recognition module 30 is used to input the image to be recognized into the water erosion gully extraction model for model reasoning, and recognize the water erosion gully information from the image to be recognized. Preferably, the graphic recognition module 30 further includes a reasoning submodule 31 and a recognition submodule 32, wherein:

[0125] The reasoning submodule 31 is used to input the image to be identified into the gully extraction model for model reasoning to obtain a reasoning result.

[0126] The identification submodule 32 is used to determine whether there is a water erosion gully in the image to be identified if the predicted value of the inference result is greater than a predetermined prediction threshold.

[0127] The computer vision-based gully recognition system provided by the embodiment of the present invention can achieve the following Figure 1~Figure 2 To avoid repetition, the various processes implemented in the embodiment of the water erosion gully identification method based on computer vision are not described here.

[0128] The computer vision-based gully identification system provided by the embodiment of the present invention first collects data to generate a gully data set of a selected area; then builds a semantic segmentation neural network, which uses a gully extraction algorithm, inputs the gully data set into the semantic segmentation neural network, and trains a gully extraction model; finally, the image to be identified is input into the gully extraction model for model reasoning to identify the gully information. The existing gully extraction model based on computer vision ignores the key structural information in the image, while the present invention can extract the key information of the gully by combining the gully extraction algorithm of the semantic segmentation neural network with artificial intelligence, thereby automatically locating and accurately identifying the gully, which can save a lot of time and labor costs, and is suitable for large-scale dynamic monitoring.

[0129] The present invention also provides a storage medium for storing Figure 1~Figure 2A computer program of any of the water erosion gully identification methods based on computer vision. For example, a computer program instruction, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer, and can achieve the same technical effect. To avoid repetition, it will not be repeated here. The program instruction for calling the method of the present invention may be stored in a fixed or removable storage medium, and / or transmitted through a data stream in a broadcast or other signal-bearing medium and / or stored in a storage medium of a computer device running according to the program instruction.

[0130] According to one embodiment of the present invention, the present invention also provides a Figure 5 The electronic device 400 shown in the figure may optionally include a storage medium 200 for storing a computer program and a processor 300 for executing the computer program, wherein when the computer program is executed by the processor 300, any of the above-mentioned water erosion gully identification methods based on computer vision is implemented, triggering the electronic device 400 to execute the methods and / or technical solutions based on the aforementioned multiple embodiments, and the same technical effects can be achieved. To avoid repetition, it is not repeated here. It should be noted that the electronic devices in the embodiments of the present invention include mobile electronic devices and non-mobile electronic devices. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, a super mobile personal computer, a netbook or a personal digital assistant, etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (Personal Computer, PC), a television (Television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiments of the present invention.

[0131] It should be noted that the present invention can be implemented in software and / or a combination of software and hardware, for example, it can be implemented using an application-specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device. In one embodiment, the software program of the present invention can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present invention (including related data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and the like. In addition, some steps or functions of the present invention can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.

[0132] The present invention can be implemented on a computer as a computer-implemented method, or implemented in dedicated hardware, or implemented in a combination of the two. The executable code or part thereof for the method according to the present invention can be stored on a computer program product. Examples of computer program products include memory devices, optical storage devices, integrated circuits, servers, online software, etc. Optionally, the computer program product includes a non-temporary program code component stored on a computer-readable medium so as to perform the method according to the present invention when the program product is executed on a computer.

[0133] In an alternative embodiment, the computer program comprises computer program code means adapted to perform all the steps of the method according to the invention when the computer program is run on a computer. Optionally, the computer program is embodied on a computer readable medium.

[0134] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present invention is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0135] Of course, the present invention may have many other embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art may make various corresponding changes and modifications based on the present invention, but these corresponding changes and modifications should all fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for identifying water gullies based on computer vision, characterized in that: include: Conduct data collection to generate a water gully dataset for the selected area; Building a semantic segmentation neural network using a gully extraction algorithm, inputting the gully dataset into the semantic segmentation neural network, and training a gully extraction model; The image to be identified is input into the gully extraction model for model inference, and the gully information is identified from the image to be identified.

2. The method for identifying water erosion gullies based on computer vision according to claim 1, characterized in that: The step of collecting data and generating a water gully data set of the selected area includes: Acquire a remote sensing image of the selected area to generate a water erosion gully data set of the selected area; The steps of building a semantic segmentation neural network using a gully extraction algorithm, inputting the gully data set into the semantic segmentation neural network, and training a gully extraction model include: The water gully dataset is randomly horizontally flipped, randomly vertically flipped and / or randomly rotated to obtain an enhanced water gully dataset; defining the semantic segmentation neural network for extracting gullies in the selected area, wherein the semantic segmentation neural network adopts the gully extraction algorithm; The enhanced gully data set is input into the semantic segmentation neural network to train a gully extraction model.

3. The computer vision-based gully identification method according to claim 2, characterized in that: The gully extraction model further comprises: The multi-scale residual convolution module contains a convolutional neural network with multiple layers of residual connections, which is used to extract information from feature maps and accept multi-scale inputs at the same time; A multi-scale contextual attention module, including multiple layers of multi-head self-attention layers, extracts key information from the remote sensing image through a predetermined attention mechanism; Feature fusion network, used to integrate the extraction results of structural features and content features; The decoder upsampling module is used to implement upsampling of the remote sensing image through deconvolution and convolution operations, and upsample the remote sensing image to the same resolution as the image to be identified.

4. The computer vision-based gully identification method according to claim 3, characterized in that: The feature fusion network is used to receive base data and guidance data of different dimensions; through convolution layers and activation functions, the feature map of the base data and the feature map of the guidance data are fused; the base data is weightedly screened using the guidance data to obtain weight data; and the weighted extraction result is obtained by combining the weight data with the base data.

5. The method for identifying water erosion gullies based on computer vision according to claim 1, characterized in that: The step of collecting data and generating a water gully data set of the selected area includes: Performing data collection to obtain remote sensing images of the selected area to form a data set; Combining the remote sensing images with field survey verification to determine the location of the water gullies in the selected area; Annotating the water gullies in the data set and building a water gully database for the selected area; The labeled data set is divided into a training set and a test set to generate the water erosion gully data set of the selected area.

6. The method for identifying water erosion gullies based on computer vision according to claim 5, characterized in that: The step of dividing the labeled data set into a training set and a test set to generate the water erosion gully data set of the selected area comprises: Filtering the labeled data set, retaining the remote sensing images whose gully ratio exceeds a predetermined threshold, and generating the filtered data set; The filtered data set is divided into a training set and a test set to generate the water erosion gully data set of the selected area.

7. The method for identifying water gullies based on computer vision according to claim 1, characterized in that: The step of inputting the image to be identified into the gully extraction model for model inference and identifying the gully information from the image to be identified comprises: Inputting the image to be identified into a water gully extraction model for model reasoning to obtain a reasoning result; If the predicted value of the inference result is greater than a predetermined prediction threshold, it is determined that water gullies exist in the image to be identified.

8. A computer vision-based gully identification system constructed based on the method described in any one of claims 1 to 7, characterized in that: include: A data acquisition module is used to collect data and generate a water erosion gully data set in a selected area; A model generation module is used to build a semantic segmentation neural network using a gully extraction algorithm, input the gully data set into the semantic segmentation neural network, and train a gully extraction model; The graphic recognition module is used to input the image to be recognized into the water gully extraction model for model reasoning, and recognize the water gully information from the image to be recognized.

9. A storage medium, characterized in that: Used to store a computer program for executing the water gully identification method based on computer vision as described in any one of claims 1 to 7.

10. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method for identifying gullies based on computer vision described in any one of claims 1 to 7 is implemented.