Aquaculture pond change detection method, device and computer readable storage medium
Through the deep learning pond instance segmentation network model, the vector outline of the breeding pond in the remote sensing image is extracted, which solves the problem of insufficient efficiency and accuracy in the detection of changes in the breeding pond in the existing technology, and achieves efficient and accurate monitoring and supervision.
Patent Information
- Application Number
- CN202110377110.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-08
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-04-08
AI Technical Summary
Existing technology is difficult to efficiently and accurately extract the characteristics of breeding ponds from remote sensing images and monitor their changes, resulting in insufficient efficiency and accuracy in the supervision of breeding ponds.
A deep learning-based breeding pond instance segmentation network model is used. The model is trained through a pre-trained sample set, and the remote sensing images of the early and late stages are input for instance segmentation, and the vector outline is extracted to determine the amplification area of the breeding pond.
It achieves efficient and accurate monitoring of changes in breeding ponds, saves manual labeling labor, improves the accuracy and efficiency of breeding pond detection, and provides technical support for environmental protection.
Smart Images

Figure CN112990085B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision technology, and in particular to a method and device for detecting changes in aquaculture ponds, and a computer-readable storage medium. Background Art
[0002] Breeding ponds are artificially dug and constructed for breeding aquatic economic plants and animals such as fish, shrimp, ducks, geese, flowers, vegetables, etc., with water areas smaller than lakes. According to the nature of the water area, breeding ponds are divided into marine aquaculture and freshwater aquaculture. According to the breeding objects, breeding ponds are divided into fish, shrimps and crabs, algae, lotus roots, etc. Breeding ponds generally include ponds, fences, cages, etc., usually distributed at the seaside or beside waters such as rivers and lakes. my country's aquaculture industry is huge, and farmed aquatic products can provide economic support for the local area. Farmed products are an important part of my country's agricultural economy; they can make up for the lack of marine fishing, protect natural aquatic organisms, and maintain ecological balance; they provide raw materials for industry. Aquaculture is an important source for the pharmaceutical industry, chemical industry, feed industry, etc., and the development of aquaculture is of great significance.
[0003] Due to the economic benefits brought by aquaculture ponds, aquaculture workers will develop aquaculture industries on a large scale. However, excessive excavation of aquaculture ponds may cause damage to arable land, such as encroaching on basic farmland or protected forest land. In addition, if a large amount of wastewater discharged from aquaculture ponds is directly discharged into rivers and lakes without treatment, it will seriously pollute the local environment. Therefore, it is necessary to supervise the expansion and changes of aquaculture ponds. The traditional supervision method is for staff to conduct on-site inspections. This method wastes manpower and material resources. In addition, due to factors such as large supervision scope, insufficient personnel, and poor road network accessibility, manual inspections often fail to achieve good detection results. Aquaculture pond detection methods based on remote sensing images are applied. Remote sensing images generally refer to the use of satellite sensors to collect the reflection and radiation characteristics of objects. Remote sensing has the characteristics of wide detection range, high timeliness of data acquisition, short cycle, and low cost. It is widely used in ecological protection, environmental investigation, geological exploration, etc. Using visible light remote sensing images, aquaculture ponds can be more clearly identified, providing a new method for detecting changes in aquaculture ponds.
[0004] Based on the visual interpretation method, the aquaculture ponds in remote sensing data are monitored. The interpreters can interpret the remote sensing data according to the texture, color, shape and other features and experience of the interpretation target. However, this method has high requirements for the interpreters, a large workload, and cannot quickly process massive data and respond quickly to the supervision of aquaculture ponds. With the rapid development of deep learning, convolutional neural networks have shown excellent results in image processing, and the ability to extract image features using neural networks has been further improved. Deep learning has also been further used in scenes such as image classification, target extraction, and image segmentation. In order to overcome the drawbacks of the above methods, image segmentation based on deep learning is used to monitor aquaculture ponds in remote sensing images. Related technologies usually use semantic segmentation such as FCN and Unet to extract aquaculture pond image information in remote sensing images. Specifically, the multi-level features of the image are extracted by the encoder, and then the features at different levels are connected by jump connections and other methods. The pixels corresponding to the aquaculture ponds in the image can be obtained. However, all the aquaculture ponds obtained by this method exist in the same binary image, and the monomers of each aquaculture pond cannot be distinguished, and the accuracy is not high.
[0005] In view of this, how to efficiently and accurately extract the characteristics of aquaculture ponds from remote sensing images, so as to effectively and quickly identify the changes in aquaculture ponds, is a technical problem that technical personnel in the relevant field need to solve. Summary of the invention
[0006] The present application provides a method, device and computer-readable storage medium for detecting changes in aquaculture ponds, which effectively improve the detection accuracy and efficiency of aquaculture ponds based on remote sensing images.
[0007] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:
[0008] An embodiment of the present invention provides a method for detecting changes in aquaculture ponds, comprising:
[0009] Pre-training the aquaculture pond instance segmentation network model using the labeled aquaculture pond training sample set;
[0010] Inputting the early remote sensing image and the late remote sensing image of the aquaculture pond to be detected into the aquaculture pond instance segmentation network model respectively to obtain the corresponding instance segmentation result;
[0011] Based on the instance segmentation result, respectively extracting vector contours of the early remote sensing image and the late remote sensing image;
[0012] The amplified area of the aquaculture pond to be detected is determined according to the vector outline of the early remote sensing image and the vector outline of the late remote sensing image.
[0013] Optionally, before respectively inputting the early remote sensing image and the late remote sensing image of the aquaculture pond to be detected into the aquaculture pond instance segmentation network model, the method further includes:
[0014] Performing image preprocessing on the early remote sensing image and the late remote sensing image respectively;
[0015] Image registration is performed on the early remote sensing images and the later remote sensing images after image preprocessing.
[0016] Optionally, the training of the aquaculture pond instance segmentation network model using the labeled aquaculture pond training sample set includes:
[0017] Acquire a training sample set of aquaculture ponds, wherein the training sample set of aquaculture ponds includes a plurality of remote sensing image training samples;
[0018] Performing geometric correction processing, radiation calibration processing and atmospheric correction processing on each training sample in the aquaculture pond training sample set;
[0019] Mark the boundaries of the aquaculture ponds for each processed training sample;
[0020] The SOLOv2 model is trained using labeled training samples to obtain the aquaculture pond instance segmentation network model.
[0021] Optionally, the step of marking the boundaries of the aquaculture ponds for each processed training sample includes:
[0022] Create a surface element for each training sample, take the current training sample as the base map, mark the breeding ponds in the current training sample, and obtain a shpfile file;
[0023] Slice each training sample according to predefined cropping parameters to obtain multiple image blocks;
[0024] According to the coordinates of the training sample clipping, the shpfile file is clipped into vectors of corresponding slices;
[0025] According to the position of each slice, move the upper left corner of the coordinates in the slice vector to the origin of the coordinates to obtain the position information of the instance corresponding to a single slice, and convert it into the segmentation keyword in the coco format;
[0026] The image information corresponding to each slice vector and the width, height, bbox, and segmentation keyword information corresponding to the instance are stored in the json format of the standard coco data.
[0027] Optionally, the step of pre-training the aquaculture pond instance segmentation network model using a labeled aquaculture pond training sample set includes:
[0028] Using a fully convolutional neural network to extract image features of each training sample in the aquaculture pond training sample set;
[0029] For each training sample, a mask feature map is generated based on a mask core constructed by multiple masks of the current training sample, and for each grid of the current training sample, a non-maximum suppression method is used to screen out the optimal prediction instance from multiple prediction instances;
[0030] Based on a pre-constructed loss function, a learning rate matching the number of graphics cards is adopted and stochastic gradient descent training is used to obtain the aquaculture pond instance segmentation network model.
[0031] Optionally, the early remote sensing image and the late remote sensing image of the aquaculture pond to be detected are respectively input into the aquaculture pond instance segmentation network model to obtain the corresponding instance segmentation result, including:
[0032] Based on N train *200 / N test Determining the slice lengths of the early remote sensing image and the late remote sensing image, and cutting the early remote sensing image and the late remote sensing image into a plurality of image blocks based on the matching slice lengths; N train is the resolution of the training samples of the aquaculture pond training sample set, N test is the resolution of the remote sensing image of the aquaculture pond to be detected;
[0033] Each image block is input into the aquaculture pond instance segmentation network model to obtain the corresponding instance segmentation result.
[0034] Optionally, after respectively inputting the early remote sensing image and the late remote sensing image of the aquaculture pond to be detected into the aquaculture pond instance segmentation network model to obtain the corresponding instance segmentation result, the method further includes:
[0035] Perform contour extraction on each instance of each image block and calculate the polygon coordinate value corresponding to the binary mask of each instance;
[0036] Acquire index information of each slice in the entire remote sensing image saved during the cropping process of the remote sensing image of the aquaculture pond to be detected;
[0037] Based on the index information of the previous remote sensing image, the coordinates of each image block of the previous remote sensing image are converted into corresponding geographic coordinates, and a preliminary shpfile file of instance segmentation is established according to the geographic coordinates, the coordinates of the previous remote sensing image and the projection system;
[0038] Based on the index information of the late remote sensing image, the coordinates of each image block of the late remote sensing image are converted into corresponding geographic coordinates, and a late shpfile file of instance segmentation is established according to the geographic coordinates, the coordinates of the late remote sensing image and the projection system.
[0039] Another aspect of the present invention provides a device for detecting changes in aquaculture ponds, comprising:
[0040] An instance segmentation model pre-construction module is used to train aquaculture pond instance segmentation network model using a labeled aquaculture pond training sample set;
[0041] An instance segmentation result module is used to input the early remote sensing image and the late remote sensing image of the aquaculture pond to be detected into the aquaculture pond instance segmentation network model respectively to obtain the corresponding instance segmentation result;
[0042] A contour extraction module, used for respectively extracting the vector contours of the early remote sensing image and the late remote sensing image based on the instance segmentation result;
[0043] The change result generating module is used to determine the amplified area of the aquaculture pond to be detected according to the vector outline of the early remote sensing image and the vector outline of the late remote sensing image.
[0044] An embodiment of the present invention further provides a device for detecting changes in aquaculture ponds, comprising a processor, wherein the processor is configured to implement the steps of the method for detecting changes in aquaculture ponds as described in any of the preceding items when executing a computer program stored in a memory.
[0045] Finally, an embodiment of the present invention further provides a computer-readable storage medium, on which a breeding pond change detection program is stored. When the breeding pond change detection program is executed by a processor, the steps of the breeding pond change detection method as described in any of the preceding items are implemented.
[0046] The advantage of the technical solution provided in the present application is that the aquaculture pond instance segmentation network model obtained by training with the aquaculture pond training sample set in which the aquaculture pond areas have been labeled in the sample data can identify the aquaculture pond areas in the remote sensing images of the aquaculture ponds to be detected, thereby quickly and effectively detecting whether there are newly expanded areas in the aquaculture ponds in the previous and subsequent remote sensing images, thereby achieving efficient and accurate monitoring of changes in aquaculture ponds, saving labor for manual labeling of aquaculture ponds, and providing technical support for the supervision, monitoring and environmental protection of aquaculture ponds.
[0047] In addition, the embodiment of the present invention also provides a corresponding implementation device and a computer-readable storage medium for the method for detecting changes in aquaculture ponds, which further makes the method more practical, and the device and the computer-readable storage medium have corresponding advantages.
[0048] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 A schematic diagram of a flow chart of a method for detecting changes in aquaculture ponds provided by an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of an example segmentation result of a preliminary remote sensing image of an exemplary application scenario provided by an embodiment of the present invention;
[0052] Figure 3 A schematic diagram of an example segmentation result of a later remote sensing image in an exemplary application scenario provided by an embodiment of the present invention;
[0053] Figure 4 A schematic diagram of an example segmentation result of a preliminary remote sensing image of an exemplary application scenario provided by an embodiment of the present invention;
[0054] Figure 5 A schematic diagram of the framework of an instance segmentation model SOLOv2 provided in an embodiment of the present invention;
[0055] Figure 6 A schematic flow chart of another method for detecting changes in aquaculture ponds provided by an embodiment of the present invention;
[0056] Figure 7 A structural diagram of a specific implementation of the aquaculture pond change detection device provided by an embodiment of the present invention;
[0057] Figure 8 This is a structural diagram of another specific implementation of the aquaculture pond change detection device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0058] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application and the above drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0060] After introducing the technical solutions of the embodiments of the present invention, various non-limiting implementation methods of the present application are described in detail below.
[0061] See first Figure 1 , Figure 1 A flow chart of a method for detecting changes in aquaculture pond provided by an embodiment of the present invention, the embodiment of the present invention may include the following contents:
[0062] S101: Pre-training aquaculture pond instance segmentation network model using a labeled aquaculture pond training sample set.
[0063] Each training sample in the aquaculture pond training sample set in this embodiment is a remote sensing image containing aquaculture ponds. After obtaining the aquaculture pond training sample set, it is necessary to annotate each training sample in the aquaculture pond training sample set. For example, ArcGIS can be used to annotate the boundary of the aquaculture pond. During the annotation process, the water storage part of the aquaculture pond is annotated considering the contextual information of the target. In order to further use a variety of deep learning models and post-maintenance, the data can be cropped and converted into the coco format of conventional instance segmentation annotation.
[0064] S102: inputting the early remote sensing image and the late remote sensing image of the aquaculture pond to be detected into the aquaculture pond instance segmentation network model respectively to obtain the corresponding instance segmentation result.
[0065] The early remote sensing images and late remote sensing images in this embodiment refer to the remote sensing images collected at two critical time points of the changes in the aquaculture pond to be detected within a certain time period. For example, if the changes in the aquaculture pond within the time period of 2021.3.19-2021.3.29 are judged, the early remote sensing images are the remote sensing images collected on 2021.3.19, and the late remote sensing images are the remote sensing images collected on 2021.3.29. The aquaculture pond instance segmentation network model trained in the previous step is a neural network model based on instance segmentation. The aquaculture pond instance segmentation network model performs instance segmentation on the input image, and then performs image recognition on each image block after segmentation to obtain the instance segmentation result.
[0066] S103: Based on the instance segmentation result, vector contours of the early remote sensing image and the late remote sensing image are extracted respectively.
[0067] It is understandable that the changes in the aquaculture ponds are nothing more than expanding the original area, creating a new aquaculture area, or reducing the aquaculture area. The aquaculture areas all have fixed shapes, and the specific aquaculture areas can be determined by the contours. Based on this, after obtaining the instance segmentation results, this step can extract the vector contours of the early remote sensing images and the vector contours of the later remote sensing images based on the instance segmentation results.
[0068] S104: Determine the amplified area of the aquaculture pond to be detected according to the vector outline of the early remote sensing image and the vector outline of the late remote sensing image.
[0069] The amplified area in this step includes the area expanded on the basis of the original breeding area and the newly added breeding area. The vector contour can reflect the current area of the breeding pond when the remote sensing image is collected, and the changed part can be determined by comparing the two vector contours. Optionally, the former real-phase vector, that is, the vector contour of the early remote sensing image, can be erased to determine the changes in the breeding pond to be detected by the latter real-phase vector, that is, the vector contour of the later remote sensing image. Taking into account the errors in coordinates and data, the subtraction results are screened to remove the breeding pond surface elements with a change area of less than 2 square meters, and finally the area where the breeding pond is increased is obtained. Figure 2-4 As shown, Figure 2 It is the result of the early remote sensing image detection. Figure 3 This is the result of the later remote sensing image detection. The line segments in the figure represent the breeding ponds. Figure 4 The changing part between the two is represented by white surface elements.
[0070] In the technical solution provided by the embodiment of the present invention, the aquaculture pond instance segmentation network model obtained by training with the aquaculture pond training sample set in which the aquaculture pond area has been marked in the sample data can identify the aquaculture pond area in the remote sensing image of the aquaculture pond to be detected, so as to quickly and effectively detect whether there is a newly expanded area in the aquaculture pond in the previous and subsequent remote sensing images, thereby realizing efficient and accurate monitoring of the changes in the aquaculture ponds, saving the labor of manually marking the aquaculture ponds, and providing technical support for the supervision, monitoring and environmental protection of the aquaculture ponds.
[0071] It can be understood that in order to further improve the model recognition accuracy of the aquaculture pond instance segmentation network model, before using the labeled aquaculture pond training sample set to train the aquaculture pond instance segmentation network model, image preprocessing can be performed on each training sample data in the acquired aquaculture pond training sample set. The image preprocessing of each training sample data includes but is not limited to geometric correction processing, radiation calibration processing and atmospheric correction processing. Specifically, an implementation of the above S101 can be:
[0072] Obtaining a breeding pond training sample set, where the breeding pond training sample set includes multiple remote sensing image training samples;
[0073] Perform geometric correction, radiation calibration and atmospheric correction on each training sample in the aquaculture pond training sample set;
[0074] Mark the boundaries of the aquaculture ponds for each processed training sample;
[0075] The SOLOv2 model is trained using labeled training samples to obtain the aquaculture pond instance segmentation network model.
[0076] Among them, the aquaculture pond instance segmentation network model is constructed based on SOLOv2. The SOLOv2 model is improved on the basis of the SOLOv1 model. On the basis of SOLOv1, the algorithm introduces a dynamic mechanism, divides the mask branch into two parts: kernel branch and mask branch, and learns the convolution kernel weight. Of course, technicians in the relevant field can select the instance segmentation model framework according to actual conditions, and this application does not make any limitation on this.
[0077] Accordingly, in order to improve the recognition accuracy of the remote sensing image data of the aquaculture pond to be detected, the early remote sensing images and the late remote sensing images can also be subjected to image preprocessing respectively; image preprocessing includes but is not limited to geometric correction processing, radiation calibration processing and atmospheric correction processing. Since the monitoring of changes in aquaculture ponds requires comparison of different areas of the two previous and later remote sensing images, in order to improve the detection accuracy, the early remote sensing images and the later remote sensing images after image preprocessing can also be subjected to image registration processing, and any image registration method in the target tracking and recognition algorithm can be used for registration processing, which does not affect the implementation of this application.
[0078] This embodiment can weaken the influence of atmosphere and sensor errors in remote sensing images on images by performing data preprocessing on training sample image data and remote sensing image data to be detected, thereby facilitating model training and improving model recognition accuracy.
[0079] In the above embodiment, there is no limitation on how to execute step S101. In this embodiment, a method for labeling training samples is provided. The file format of the training samples may be a Shapefile file or a shpfile file for short. The shpfile file is a format of a non-topological entity vector data structure that describes the geometry and attribute features of spatial data. Specifically, the following steps may be included:
[0080] Create a surface feature for each training sample, take the current training sample as the base map, mark the aquaculture ponds in the current training sample, and obtain a shpfile file; slice each training sample according to the pre-defined cropping parameters, and crop to obtain multiple image blocks; according to the coordinates of the cropped training sample, crop the shpfile file into the vector of the corresponding slice; according to the position of each slice, move the upper left corner of the coordinate in the slice vector to the coordinate origin to obtain the position information of the instance corresponding to a single slice, and convert it into the segmentation keyword in the coco format; store the image information corresponding to each slice vector and the width, height, bbox, and segmentation keyword information corresponding to the instance into the json format of the standard coco data.
[0081] Among them, ArcGIS can be used to create surface features. The coordinate system is the same as the data to be annotated. With remote sensing data as the base map, all the breeding ponds in the image are annotated to obtain the shpfile file. Since the remote sensing data is too large, each training sample needs to be cut into blocks and become slices. Since some breeding ponds span multiple slices, overlapping areas can be set between each slice, and the overlapping area can be set to 200 pixels. Vector clipping: According to the coordinates of image clipping, the shpfile file is also clipped into the vector of the corresponding small slice, and then according to the position of the slice, the upper left corner of the coordinate in the slice vector is moved to the coordinate origin (0, 0), so that the location information of the instance corresponding to a single slice is obtained and converted into the segmentation keyword in the coco format. The image information corresponding to the vector, the width, height, bbox, segmentation and other information corresponding to the instance are stored in the json format of the standard coco data. As one of the detection indicators of the deep learning algorithm, bbox is the accuracy of the 2D detection box.
[0082] It is understandable that compared with semantic segmentation, instance segmentation is proposed on the basis of target detection, which can extract the objects to be extracted one by one. Common instance segmentation methods include Mask-rcnn. Mask-rcnn uses a feature extraction network to extract features, and then uses a region extraction network to extract candidate boxes, and then classifies and regresses the candidate boxes, and finally calculates the loss and trains. Although instance segmentation methods represented by Mask-rcnn have achieved certain results, because Mask-rcnn needs to select a large number of candidate boxes, the time complexity is high and the accuracy needs to be further improved. In order to solve this technical problem, the present application adopts the SOLOv2 model to construct a fish pond instance segmentation network model. This model is improved on the basis of the SOLOv1 model. On the basis of SOLOv1, the algorithm introduces a dynamic mechanism, divides the mask branch into two parts: kernel branch and mask branch, and learns the convolution kernel weights. At the same time, Matrix NMS is used to reduce the inference time. Figure 5 This is the framework diagram of the SOLOv2 model. The specific steps are as follows:
[0083] A fully convolutional neural network is used to extract image features of each training sample in the aquaculture pond training sample set. For each training sample, a mask feature map is generated based on a mask kernel constructed based on multiple masks of the current training sample. For each grid of the current training sample, a non-maximum suppression method is used to screen out the optimal prediction instance from multiple prediction instances. Based on a pre-constructed loss function and a learning rate that matches the number of graphics cards, a random gradient descent training is used to obtain the aquaculture pond instance segmentation network model.
[0084] In this embodiment, a feature extraction network is first used to extract features. Here, a fully convolutional neural network FCN is used to extract features. The process of generating a mask is similar to the YOLO algorithm. First, the image is "conceptually" divided into S*S grids. If the center of an object falls into a grid, this grid corresponds to a binary mask of the object. Therefore, one image corresponds to S*S masks. Construct a mask kernel. For a given backbone and FPN, a convolution kernel G can be obtained from each layer of the feature pyramid. First, the feature F obtained by FCN is IConvert it to the size of S*S*C, and then use 4 convolution kernels and a 3*3*D convolution to convert it to the size of S*S*D. Construct the mask feature map: The mask feature kernel is trained separately, so a mask can be calculated for each layer of FPN. The specific steps are: using a series of 3*3 convolutions, group norm, Relu activation function and two bilinear upsampling, the P2 to P5 level features of FPN are fused into a feature map that is only 1 / 4 of the original size. Starting from the feature map and convolution kernel obtained in the previous step, the model is divided into two branches, the kernel branch and the feature branch. Convolve the single-layer feature pyramid with the convolution kernel, denoted as M i,j =G i,j *F, where G i,j is the convolution kernel, M i,j Represents the mask corresponding to the instance whose center falls at the position (i, j), and F is the feature pyramid. Optimal prediction instance screening process: For each grid, since S*S masks are obtained, there may be at most S*S prediction instances. This embodiment uses NMS (non maximum suppression) to screen the optimal prediction instance from multiple prediction instances. Loss calculation: The loss function L of this embodiment can be expressed as: L=L cata +λL mask , L cata Represents the loss of the segmentation category, which can be calculated using Focal loss, L mask Represents the loss of the mask, which can be calculated using Dice loss, and λ is the weight parameter. The SGD method can be used to adjust the parameters. When training on a single graphics card, the learning rate can be set to 0.025 to control the learning speed.
[0085] As an optional implementation, S102 performs instance segmentation on the two images of the previous and next phases respectively. In the instance segmentation process, slices are firstly performed. Since the resolution of the images is different, the slice size is also different. The slice length is set to N. train *200 / N test That is, based on N train *200 / N test Determine the slice lengths of the early remote sensing image and the late remote sensing image, and cut the early remote sensing image and the late remote sensing image into multiple image blocks based on the matching slice lengths; N train is the resolution of the training samples in the aquaculture pond training sample set, N test is the resolution of the remote sensing image of the aquaculture pond to be detected. In this embodiment, if the slice length of the previous remote sensing image is calculated, then N test is the resolution of the early remote sensing image; if the slice length of the later remote sensing image is calculated, then Ntest is the resolution of the later remote sensing image. Input each image block into the aquaculture pond instance segmentation network model to obtain the corresponding instance segmentation result. When slicing, the overlapping part can be set to 200 pixels, and the index of each slice in the whole scene image can be saved. Input each slice into the trained model to obtain the instance segmentation result.
[0086] The above embodiment does not limit how to execute S103. The present application provides an implementation process of respectively extracting the vector outlines of the previous and next images and merging them, and creating a shpfile file, by way of an illustrative example, which may include:
[0087] Contour extraction is performed on each instance of each image block, and the polygon coordinate value corresponding to the binary mask of each instance is calculated; the index information of each slice in the entire remote sensing image saved during the cropping process of the remote sensing image of the aquaculture pond to be detected is obtained; based on the index information of the previous remote sensing image, the coordinates of each image block of the previous remote sensing image are converted into corresponding geographic coordinates, and according to the geographic coordinates, the coordinates of the previous remote sensing image and the projection system, a previous shpfile file of instance segmentation is established; based on the index information of the later remote sensing image, the coordinates of each image block of the later remote sensing image are converted into corresponding geographic coordinates, and according to the geographic coordinates, the coordinates of the later remote sensing image and the projection system, a later shpfile file of instance segmentation is established.
[0088] In this embodiment, contour extraction is performed on each instance in each slice. Here, the Suzuki boundary tracking topological analysis method can be used to calculate the polygon coordinates corresponding to the binary mask of the instance. Then, the previously saved index converts the coordinates of the single slice into the corresponding geographic coordinates, and establishes the instance segmentation shpfile file according to the geographic coordinates and the coordinates and projection system of the remote sensing data. Thus, two shpfile files are obtained from the two scenes of the previous and later stages.
[0089] See also Figure 6 , Figure 6 A flow chart of another method for detecting changes in aquaculture ponds provided by an embodiment of the present invention may include the following contents:
[0090] Step 1: Image preprocessing, the images include image data used as training data and two images used to detect changes in aquaculture ponds.
[0091] Step 2: Label the training data and establish a training sample data set for aquaculture ponds.
[0092] Step 3: Build the SOLOv2 model and train it.
[0093] Step 4: Use the trained model to perform instance segmentation on the images before and after the detection.
[0094] Step 5: For the two phases of images, extract the vector contours respectively and merge them to create a shpfile file.
[0095] Step 6: Erase the previous real-phase vector from the subsequent real-phase vector, that is, perform spatial subtraction on the vectors to obtain the changes in the aquaculture pond.
[0096] This embodiment first preprocesses the data, marks the training data in shpfile format, establishes a training sample data set for aquaculture ponds, then uses the SOLOv2 model to train the training data, saves the training model and parameters, then inputs the images of two phases that need to be detected, slices the data, saves the index of each slice in the image, and then inputs the slices into the trained model to obtain a binary image of instance segmentation, uses a topological analysis method to obtain the outline of each instance, converts the outline coordinates into the geographic coordinates of the vector according to the index of the slice, and merges the vectors of all slices to obtain the vector data of the aquaculture ponds of the two phases of images, erases the former real-phase vector from the latter real-phase vector, and obtains the extended part of the aquaculture pond. This method can quickly and effectively detect changes in aquaculture ponds in images, saves labor, and provides technical support for the supervision and monitoring of aquaculture ponds.
[0097] It should be noted that there is no strict order of execution between the steps in this application. As long as they comply with the logical order, these steps can be executed simultaneously or in a certain preset order. Figure 1 , Figure 5-Figure 6 This is just a schematic and does not mean that this is the only execution order.
[0098] The embodiment of the present invention also provides a corresponding device for the method for detecting changes in aquaculture ponds, which further makes the method more practical. The device can be described from the perspective of functional modules and hardware. The following is an introduction to the device for detecting changes in aquaculture ponds provided by the embodiment of the present invention. The device for detecting changes in aquaculture ponds described below and the method for detecting changes in aquaculture ponds described above can be referred to in correspondence with each other.
[0099] From the perspective of functional modules, see Figure 7 , Figure 7 A structural diagram of a breeding pond change detection device provided by an embodiment of the present invention in a specific implementation manner, the device may include:
[0100] The instance segmentation model pre-construction module 701 is used to train the aquaculture pond instance segmentation network model using the labeled aquaculture pond training sample set.
[0101] The instance segmentation result module 702 is used to input the early remote sensing image and the late remote sensing image of the aquaculture pond to be detected into the aquaculture pond instance segmentation network model respectively to obtain the corresponding instance segmentation result.
[0102] The contour extraction module 703 is used to extract the vector contours of the early remote sensing image and the late remote sensing image respectively based on the instance segmentation result.
[0103] The change result generating module 704 is used to determine the expansion area of the aquaculture pond to be detected according to the vector outline of the early remote sensing image and the vector outline of the late remote sensing image.
[0104] Optionally, in some implementations of the present embodiment, the above-mentioned device may also include image preprocessing, and the image preprocessing is used to perform image preprocessing on early remote sensing images and late remote sensing images respectively; and perform image registration processing on the early remote sensing images and late remote sensing images after image preprocessing.
[0105] Optionally, in some other implementations of this embodiment, the instance segmentation model pre-construction module 701 may be further used for:
[0106] A training sample set of aquaculture ponds is obtained, which includes multiple remote sensing image training samples; geometric correction, radiation calibration and atmospheric correction are performed on each training sample in the aquaculture pond training sample set; the boundaries of the aquaculture ponds are marked for each processed training sample; and the SOLOv2 model is trained using the marked training samples to obtain a network model for aquaculture pond instance segmentation.
[0107] As an optional implementation of this embodiment, the instance segmentation model pre-construction module 701 may be further used for:
[0108] Create a surface feature for each training sample, take the current training sample as the base map, mark the aquaculture ponds in the current training sample, and obtain a shpfile file; slice each training sample according to the pre-defined cropping parameters, and crop to obtain multiple image blocks; according to the coordinates of the cropped training sample, crop the shpfile file into the vector of the corresponding slice; according to the position of each slice, move the upper left corner of the coordinate in the slice vector to the coordinate origin to obtain the position information of the instance corresponding to a single slice, and convert it into the segmentation keyword in the coco format;
[0109] The image information corresponding to each slice vector and the width, height, bbox, and segmentation keyword information corresponding to the instance are stored in the json format of the standard coco data.
[0110] As another optional implementation of this embodiment, the above-mentioned instance segmentation model pre-construction module 701 can be further used to: use a fully convolutional neural network to extract image features of each training sample in the aquaculture pond training sample set; for each training sample, generate a mask feature map based on a mask kernel constructed by multiple masks of the current training sample, and for each grid of the current training sample, use a non-maximum suppression method to screen out the optimal prediction instance from multiple prediction instances; based on a pre-constructed loss function, use a learning rate that matches the number of graphics cards, and use stochastic gradient descent training to obtain aquaculture pond instance segmentation network model.
[0111] In some other implementations of this embodiment, the instance segmentation result module 702 may be further used to: train *200 / N test Determine the slice lengths of the early remote sensing image and the late remote sensing image, and cut the early remote sensing image and the late remote sensing image into multiple image blocks based on the matching slice lengths; N train is the resolution of the training samples in the aquaculture pond training sample set, N test is the resolution of the remote sensing image of the aquaculture pond to be detected; each image block is input into the aquaculture pond instance segmentation network model to obtain the corresponding instance segmentation result.
[0112] In some other implementations of the present embodiment, the above-mentioned device may also include a shpfile file generation module, which is used to extract the contour of each instance of each image block and calculate the polygon coordinate value corresponding to the binary mask of each instance; obtain the index information of each slice in the entire remote sensing image saved during the cropping process of the remote sensing image of the aquaculture pond to be detected; based on the index information of the previous remote sensing image, the coordinates of each image block of the previous remote sensing image are converted into corresponding geographic coordinates, and according to the geographic coordinates, the coordinates of the previous remote sensing image and the projection system, an early shpfile file of instance segmentation is established; based on the index information of the later remote sensing image, the coordinates of each image block of the later remote sensing image are converted into corresponding geographic coordinates, and according to the geographic coordinates, the coordinates of the later remote sensing image and the projection system, a later shpfile file of instance segmentation is established.
[0113] The functions of the various functional modules of the aquaculture pond change detection device described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0114] It can be seen from the above that the embodiments of the present invention can effectively improve the detection accuracy and efficiency of aquaculture ponds based on remote sensing images.
[0115] The aquaculture pond change detection device mentioned above is described from the perspective of functional modules. Furthermore, the present application also provides a aquaculture pond change detection device, which is described from the perspective of hardware. Figure 8 This is a structural diagram of another aquaculture pond change detection device provided in an embodiment of the present application. Figure 8 As shown, the device includes a memory 80 for storing computer programs; a processor 81 for implementing the steps of the method for detecting changes in aquaculture ponds as mentioned in any of the above embodiments when executing the computer programs.
[0116] Among them, the processor 81 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 81 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 81 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 81 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 81 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0117] The memory 80 may include one or more computer-readable storage media, which may be non-transitory. The memory 80 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 80 is at least used to store the following computer program 801, wherein, after the computer program is loaded and executed by the processor 81, it can implement the relevant steps of the aquaculture pond change detection method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 80 may also include an operating system 802 and data 803, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 802 may include Windows, Unix, Linux, etc. Data 803 may include but is not limited to data corresponding to the aquaculture pond change detection results, etc.
[0118] In some embodiments, the aquaculture pond change detection device may further include a display screen 82 , an input / output interface 83 , a communication interface 84 , a power supply 85 , and a communication bus 86 .
[0119] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the aquaculture pond change detection device, and may include more or fewer components than shown in the figure, for example, it may also include a sensor 87.
[0120] The functions of the functional modules of the aquaculture pond change detection device described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0121] It can be seen from the above that the embodiments of the present invention can effectively improve the detection accuracy and efficiency of aquaculture ponds based on remote sensing images.
[0122] It is understandable that if the aquaculture pond change detection method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk and other media that can store program codes.
[0123] Based on this, an embodiment of the present invention further provides a computer-readable storage medium storing a breeding pond change detection program, wherein the breeding pond change detection program, when executed by a processor, follows the steps of the breeding pond change detection method described in any of the above embodiments.
[0124] The functions of the functional modules of the computer-readable storage medium described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0125] It can be seen from the above that the embodiments of the present invention can effectively improve the detection accuracy and efficiency of aquaculture ponds based on remote sensing images.
[0126] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0127] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0128] The above is a detailed introduction to a method, device and computer-readable storage medium for detecting changes in aquaculture ponds provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A method for detecting changes in aquaculture ponds, It is characterized in that include: Pre-training the aquaculture pond instance segmentation network model using the labeled aquaculture pond training sample set; Perform image preprocessing on early remote sensing images and late remote sensing images respectively; Perform image registration processing on the early remote sensing images and the later remote sensing images after image preprocessing; Inputting the early remote sensing image and the late remote sensing image of the aquaculture pond to be detected into the aquaculture pond instance segmentation network model respectively to obtain the corresponding instance segmentation result; Based on the instance segmentation result, respectively extracting vector contours of the early remote sensing image and the late remote sensing image; Determining the amplified area of the aquaculture pond to be detected according to the vector outline of the early remote sensing image and the vector outline of the late remote sensing image; The early remote sensing image and the late remote sensing image of the aquaculture pond to be detected are respectively input into the aquaculture pond instance segmentation network model to obtain the corresponding instance segmentation results, including: Based on N train *200 / N test Determining the slice lengths of the early remote sensing image and the late remote sensing image, and cutting the early remote sensing image and the late remote sensing image into a plurality of image blocks based on the matching slice lengths; N train is the resolution of the training samples of the aquaculture pond training sample set, N test is the resolution of the remote sensing image of the aquaculture pond to be detected; Input each image block into the aquaculture pond instance segmentation network model to obtain a corresponding instance segmentation result; Wherein, the step of determining the amplified area of the aquaculture pond to be detected according to the vector outline of the early remote sensing image and the vector outline of the late remote sensing image comprises: The former real phase vector is erased from the latter real phase vector to obtain the change of the breeding pond; The method of training the aquaculture pond instance segmentation network model using the labeled aquaculture pond training sample set includes: Acquire the aquaculture pond training sample set, wherein the aquaculture pond training sample set includes a plurality of remote sensing image training samples; Performing geometric correction processing, radiation calibration processing and atmospheric correction processing on each training sample in the aquaculture pond training sample set; Creating a surface element for each training sample, taking the current training sample as the base map, marking the aquaculture ponds in the current training sample, and obtaining a shape file; Slice each training sample according to predefined cropping parameters to obtain multiple image blocks; According to the coordinates of the training sample clipping, clipping the shape file into vectors of corresponding slices; According to the position of each slice, move the upper left corner of the coordinates in the slice vector to the origin of the coordinates to obtain the position information of the instance corresponding to a single slice, and convert it into a segmentation keyword in the coco format; The image information corresponding to each slice vector, the width, height, bounding box, and segmentation keyword information corresponding to the instance are stored in the JSON format of the standard coco data to mark the boundaries of the aquaculture ponds for each processed training sample; The second version of the location segmentation object model is trained using the labeled training samples to obtain the aquaculture pond instance segmentation network model; The method of pre-training the aquaculture pond instance segmentation network model using the labeled aquaculture pond training sample set includes: Using a fully convolutional neural network to extract image features of each training sample in the aquaculture pond training sample set; For each training sample, a mask feature map is generated based on a mask core constructed by multiple masks of the current training sample, and for each grid of the current training sample, a non-maximum suppression method is used to screen out the optimal prediction instance from multiple prediction instances; Based on a pre-constructed loss function, a learning rate matching the number of graphics cards is used, and stochastic gradient descent training is used to obtain the aquaculture pond instance segmentation network model; The process of generating a mask feature map based on a mask kernel constructed by multiple masks of the current training sample and selecting the optimal prediction instance from multiple prediction instances by using a non-maximum suppression method for each grid of the current training sample includes: Divide the image into S*S grids. If the center of an object falls into a grid, the grid corresponds to a binary mask of the object. Therefore, one image corresponds to S*S masks. Construct mask kernel: For a given backbone network and feature pyramid network, obtain a convolution kernel G from each layer of the feature pyramid network. First, convolution kernel G is used to obtain the feature F obtained by the full convolution network. I Convert it to the size of S*S*C, then use 4 convolution kernels, each of which is 3*3*D, to convert it to the size of S*S*D; construct the mask feature map: train the mask kernel separately, and calculate a mask for each layer of the feature pyramid network: use multiple 3*3 convolutions, group normalization, rectified linear unit activation function and two bilinear upsampling, and fuse the P2 to P5 level features of the feature pyramid network into a feature map with only 1 / 4 of the original size; starting from the feature map and convolution kernel obtained in the previous step, the model is divided into two branches, the convolution kernel branch and the feature branch; convolve the single-layer feature pyramid network with the convolution kernel, denoted as M i,j =G i,j *F, where G i,j is the convolution kernel, M i,j represents the mask corresponding to the instance whose center falls at the position (i, j), and F is the feature pyramid network; the optimal prediction instance screening process: for each grid, since S*S masks are obtained, there are at most S*S prediction instances, and the non-maximum suppression method is used to screen out the optimal prediction instance from multiple prediction instances; Among them, loss calculation: the loss function L is expressed as: L = L cata +λL mask , L cata Represents the loss of the segmentation category, calculated using the focal loss method, L mask Represents the loss of the mask, calculated using Dick loss, λ is the weight parameter, and the parameter is adjusted using the stochastic gradient descent method.
2. The method for detecting changes in aquaculture ponds according to claim 1, It is characterized in that After the early remote sensing image and the late remote sensing image of the aquaculture pond to be detected are respectively input into the aquaculture pond instance segmentation network model to obtain the corresponding instance segmentation result, the method further includes: Perform contour extraction on each instance of each image block and calculate the polygon coordinate value corresponding to the binary mask of each instance; Acquire index information of each slice in the entire remote sensing image saved during the cropping process of the remote sensing image of the aquaculture pond to be detected; Based on the index information of the previous remote sensing image, the coordinates of each image block of the previous remote sensing image are converted into corresponding geographic coordinates, and a previous shape file of instance segmentation is established according to the geographic coordinates, the coordinates of the previous remote sensing image and the projection system; Based on the index information of the late remote sensing image, the coordinates of each image block of the late remote sensing image are converted into corresponding geographic coordinates, and a late shape file of instance segmentation is established according to the geographic coordinates, the coordinates of the late remote sensing image and the projection system.
3. A device for detecting changes in aquaculture ponds, It is characterized in that include: An instance segmentation model pre-construction module is used to train aquaculture pond instance segmentation network model using a labeled aquaculture pond training sample set; The image preprocessing module is used to perform image preprocessing on the early remote sensing images and the late remote sensing images respectively; and perform image registration processing on the early remote sensing images and the late remote sensing images after image preprocessing; An instance segmentation result module is used to input the early remote sensing image and the late remote sensing image of the aquaculture pond to be detected into the aquaculture pond instance segmentation network model respectively to obtain the corresponding instance segmentation result; A contour extraction module, used for respectively extracting the vector contours of the early remote sensing image and the late remote sensing image based on the instance segmentation result; A change result generating module, used for determining the amplified area of the aquaculture pond to be detected according to the vector outline of the early remote sensing image and the vector outline of the late remote sensing image; Wherein, the instance segmentation result module is also used for: Based on N train *200 / N test Determining the slice lengths of the early remote sensing image and the late remote sensing image, and cutting the early remote sensing image and the late remote sensing image into a plurality of image blocks based on the matching slice lengths; N train is the resolution of the training samples of the aquaculture pond training sample set, N test is the resolution of the remote sensing image of the aquaculture pond to be detected; Input each image block into the aquaculture pond instance segmentation network model to obtain a corresponding instance segmentation result; Wherein, the change result generating module is also used for: The former real phase vector is erased from the latter real phase vector to obtain the change of the breeding pond; The instance segmentation model pre-construction module is further used for: Acquire the aquaculture pond training sample set, wherein the aquaculture pond training sample set includes a plurality of remote sensing image training samples; Performing geometric correction processing, radiation calibration processing and atmospheric correction processing on each training sample in the aquaculture pond training sample set; Creating a surface element for each training sample, taking the current training sample as the base map, marking the aquaculture ponds in the current training sample, and obtaining a shape file; Slice each training sample according to predefined cropping parameters to obtain multiple image blocks; According to the coordinates of the training sample clipping, clipping the shape file into vectors of corresponding slices; According to the position of each slice, move the upper left corner of the coordinates in the slice vector to the origin of the coordinates to obtain the position information of the instance corresponding to a single slice, and convert it into a segmentation keyword in the coco format; The image information corresponding to each slice vector, the width, height, bounding box, and segmentation keyword information corresponding to the instance are stored in the JSON format of the standard coco data to mark the boundaries of the aquaculture ponds for each processed training sample; The second version of the location segmentation object model is trained using the labeled training samples to obtain the aquaculture pond instance segmentation network model; The instance segmentation model pre-construction module is further used for: Using a fully convolutional neural network to extract image features of each training sample in the aquaculture pond training sample set; For each training sample, a mask feature map is generated based on a mask core constructed by multiple masks of the current training sample, and for each grid of the current training sample, a non-maximum suppression method is used to screen out the optimal prediction instance from multiple prediction instances; Based on a pre-constructed loss function, a learning rate matching the number of graphics cards is used, and stochastic gradient descent training is used to obtain the aquaculture pond instance segmentation network model; The process of generating a mask feature map based on a mask kernel constructed by multiple masks of the current training sample and selecting the optimal prediction instance from multiple prediction instances by using a non-maximum suppression method for each grid of the current training sample includes: Divide the image into S*S grids. If the center of an object falls into a grid, the grid corresponds to a binary mask of the object. Therefore, one image corresponds to S*S masks. Construct mask kernel: For a given backbone network and feature pyramid network, obtain a convolution kernel G from each layer of the feature pyramid network. First, convolution kernel G is used to obtain the feature F obtained by the full convolution network. I Convert it to the size of S*S*C, then use 4 convolution kernels, each of which is 3*3*D, to convert it to the size of S*S*D; construct the mask feature map: train the mask kernel separately, and calculate a mask for each layer of the feature pyramid network: use multiple 3*3 convolutions, group normalization, rectified linear unit activation function and two bilinear upsampling, and fuse the P2 to P5 level features of the feature pyramid network into a feature map with only 1 / 4 of the original size; starting from the feature map and convolution kernel obtained in the previous step, the model is divided into two branches, the convolution kernel branch and the feature branch; convolve the single-layer feature pyramid network with the convolution kernel, denoted as M i,j =G i,j *F, where G i,j is the convolution kernel, M i,j represents the mask corresponding to the instance whose center falls at the position (i, j), and F is the feature pyramid network; the optimal prediction instance screening process: for each grid, since S*S masks are obtained, there are at most S*S prediction instances, and the non-maximum suppression method is used to screen out the optimal prediction instance from multiple prediction instances; Among them, loss calculation: the loss function L is expressed as: L = L cata +λL mask , L cata Represents the loss of the segmentation category, calculated using the focal loss method, L mask Represents the loss of the mask, calculated using Dick loss, λ is the weight parameter, and the parameter is adjusted using the stochastic gradient descent method.
4. A device for detecting changes in aquaculture ponds, It is characterized in that It includes a processor, which is used to implement the steps of the method for detecting changes in aquaculture ponds as claimed in claim 1 or 2 when executing a computer program stored in a memory.
5. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a breeding pond change detection program, and when the breeding pond change detection program is executed by the processor, the steps of the breeding pond change detection method according to claim 1 or 2 are implemented.
