Crop planting area extraction method, system and device coupled with self-supervised learning and segmentation model

By coupling the self-supervised learning model with the segmentation model, using label-free remote sensing images for self-supervised learning and sharing parameters, the problem of insufficient recognition accuracy of crop recognition segmentation model is solved, and high-precision crop planting area recognition is achieved.

CN119625516AActive Publication Date: 2025-03-14SURVEYING & MAPPING INST LANDS & RESOURCE DEPT OF GUANGDONG PROVINCE
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411453440.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-17
Publication Date
2025-03-14
Estimated Expiration
2044-10-17

AI Technical Summary

Technical Problem

Due to the limitations of environmental factors and the small number of training samples, the existing technology has insufficient recognition accuracy of crop recognition segmentation models and cannot accurately identify the planting area of ​​crops.

Method used

By coupling the self-supervised learning model with the segmentation model, self-supervised learning is performed using label-free remote sensing images, multi-scale and multi-type features in the image are extracted, and parameters of the self-supervised learning model are shared with the feature extraction module of the segmentation model, shortening the model training cycle and improving the feature extraction and segmentation recognition capabilities of the segmentation model.

Benefits of technology

It realizes the identification and extraction of crop planting areas with high accuracy without labeling remote sensing images and a small number of labeling samples, and solves the problem of insufficient recognition accuracy in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119625516A_ABST
    Figure CN119625516A_ABST
Patent Text Reader

Abstract

The invention relates to a crop planting area extraction method, system and device coupled with self-supervised learning and a segmentation model, and the method comprises the steps: combining a self-supervised learning model with a segmentation model, and carrying out the feature extraction training of a first feature extraction module of the self-supervised learning model through an unlabeled remote sensing image sample, the first feature extraction module and the feature extraction module of the segmentation model share model parameters, then the training set is utilized to train the segmentation module of the segmentation model, the verification set and the model prediction result are utilized to perform parameter optimization, and the trained segmentation model is utilized to perform full-image identification prediction on the remote sensing image. According to the method, the crop planting area identification extraction result is obtained, so that the segmentation model capable of identifying and segmenting the crop planting area with high precision is trained by using the non-labeled samples and a small number of labeled samples, and the problem that the identification precision of the crop identification segmentation model is insufficient due to the fact that the prior art is limited by environmental factors and few training samples is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image recognition and processing technology, and in particular to a method, system and device for extracting crop planting areas by coupling self-supervised learning and segmentation models. Background Art

[0002] At present, it is of great significance to crop yield prediction, production management optimization and policy formulation. Taking Camellia oleifera as an example, Camellia oleifera, as a subtropical evergreen shrub and an important oil plant, is rich in unsaturated fatty acids and has significant nutritional value. It is widely planted in many countries around the world. How to quickly and accurately identify the distribution of Camellia oleifera is of great significance.

[0003] In the prior art, the identification of crop planting areas usually adopts model recognition, combined with satellite remote sensing technology to achieve the identification of crop planting areas, and the model recognition accuracy is highly dependent on training samples. However, due to the complexity of crop growth areas and growth environments, the training samples for model training are relatively small, which is prone to limited accuracy when processing large-scale data, affecting the objectivity of the results, and then leading to insufficient model accuracy, and unable to accurately extract useful information from the image. Specifically, taking oil tea as an example, the oil tea planting area is usually a hilly mountainous area with dense vegetation and complex terrain, which increases the difficulty of extracting oil tea information from remote sensing images. In addition, the complex forest structure in the south and the similarity of spectral characteristics between tree species are also prone to classification errors. Although the information of the oil tea growth area can still be captured, in actual operation, since oil tea is mostly distributed in mountainous areas with complex terrain, the drone signals for collecting samples are often interfered, and sample collection faces many challenges, making the number of high-quality labeled samples very limited. It can be seen that the prior art has the problem of insufficient recognition accuracy of crop recognition and segmentation models due to complex environmental factors and few training samples, and cannot accurately identify the planting area of ​​crops. Summary of the invention

[0004] The present application provides a method, system and device for extracting crop planting areas by coupling self-supervised learning and segmentation models. The self-supervised learning model and the segmentation model are combined. After the self-supervised learning model completes feature extraction training, the parameters of the self-supervised learning model are shared with the feature extraction module of the segmentation model, thereby shortening the model training cycle. High-precision model training can be completed with only unlabeled samples and a small number of labeled samples, and a high-precision segmentation model that can accurately identify and segment crop planting areas is obtained. Ultimately, efficient and accurate remote sensing identification of oil tea planting areas is achieved, solving the problem of insufficient recognition accuracy of crop identification and segmentation models in the prior art due to environmental factors and a small number of training samples.

[0005] In a first aspect, the present application provides a method for extracting crop planting areas by coupling self-supervised learning and segmentation models, comprising:

[0006] Obtain unlabeled remote sensing image samples and crop labeled samples from the sample area, and construct a combined self-supervised learning model and segmentation model;

[0007] According to a preset comparison learning strategy, a first feature extraction module of the self-supervised learning model is trained for feature extraction through the unlabeled remote sensing image samples, wherein the first feature extraction module is used to capture local and global pattern features from the input image in scenes of different complexity;

[0008] Sharing the model parameters of the first feature extraction module to the feature extraction module of the segmentation model, and migrating the training weights of the first feature extraction module to the segmentation module of the segmentation model;

[0009] Performing vectorization processing based on the crop labeled samples to obtain training image pair data, wherein the training image pair data includes a training set and a validation set;

[0010] Performing segmentation training on the segmentation model according to the training set to obtain a model prediction result output by the segmentation model;

[0011] Optimizing the parameters of the segmentation model according to the validation set and the model prediction result until the model accuracy of the segmentation model reaches a preset requirement, thereby obtaining a trained segmentation model;

[0012] The trained segmentation model is used to perform full-image recognition prediction including crop planting area extraction based on the remote sensing image of the target area, and vector conversion is performed based on the prediction results of the full-image recognition prediction to obtain the planting area recognition and extraction results of the crops to be identified in the target area.

[0013] Optionally, obtaining unlabeled remote sensing image samples and labeled crop samples from the sample area includes:

[0014] Acquire remote sensing image data from the sample area;

[0015] Performing correction and enhancement preprocessing on the remote sensing image data to obtain unlabeled remote sensing image samples that meet quality requirements;

[0016] Based on a preset drone collection instruction, collecting crop sample images from the sample area, wherein the drone collection instruction is used to control the drone to collect sample images from the sample area;

[0017] Acquire annotation information corresponding to the crop sample image, and generate annotated crop samples based on the crop sample image and the annotation information.

[0018] Optionally, performing feature extraction training on the first feature extraction module of the self-supervised learning model through the unlabeled remote sensing image samples according to a preset comparison learning strategy includes:

[0019] Acquire a preset comparison learning strategy and image cropping information, wherein the image cropping information includes input information of the self-supervised learning model and key image information;

[0020] Based on the input information and the image key information, preprocessing the unlabeled remote sensing image sample to obtain an input image sample, wherein the input image sample includes local image details and global scene information;

[0021] According to the comparison learning strategy, the structural features and semantic information in the image are extracted and learned from the input image samples through the first feature extraction module of the self-supervised learning model.

[0022] Optionally, extracting and learning structural features and semantic information in the image from the input image sample by using the first feature extraction module of the self-supervised learning model includes:

[0023] Inputting the input image sample into the self-supervised learning model;

[0024] Based on each sample image in the input sample, random enhancement is performed to obtain sample pair information corresponding to each sample image, wherein the sample pair information includes a positive sample pair and a negative sample pair;

[0025] The sample pair information is measured using cosine similarity to obtain the similarity of each sample pair of the sample pair information;

[0026] Perform comparison model training on the first feature extraction module according to the sample pair information and the similarity.

[0027] Optionally, the using cosine similarity to measure the sample pair information to obtain the similarity of each sample pair of the sample pair information includes:

[0028] The first feature extraction module is based on Measuring the similarity of different images in the sample pair information;

[0029] Among them, A·B represents the dot product obtained by multiplying the corresponding components of vector A and vector B and summing them up, which is used to reflect the relative direction relationship between the vectors. As the degree of similarity between the two vectors, if the two vectors have the same direction, the value corresponding to the dot product is large, and if the two vectors have opposite directions, the value corresponding to the dot product is small. A||||B represents the norm product of vector A and vector B, ||A|| is the Euclidean norm of vector A, and ||B|| is the Euclidean norm of vector B.

[0030] Optionally, performing comparison model training on the first feature extraction module according to the sample pair information and the similarity includes:

[0031] According to the formula guiding the first feature extraction model to distinguish positive sample pairs from negative sample pairs during the comparison learning process;

[0032] Among them, the eigenvector z i and the eigenvector z j are all feature representations of positive sample pairs, sim(z i ,z j ) is z i and z j The cosine similarity between them is used to measure the similarity of positive sample pairs, τ is the temperature parameter, which is used to adjust the similarity softening degree in contrastive learning, N is the number of sample pairs in the batch, exp(sim(z i ,z j ) / τ) represents the similarity score of the positive sample pair, It represents the sum of similarity scores between the positive sample pair and all negative sample pairs.

[0033] Optionally, performing vectorization processing based on the crop labeled samples to obtain training image pair data includes:

[0034] Performing vectorization based on the crop labeling samples to obtain vector data;

[0035] Affine transformation is performed on the vector data to obtain mapping data of the vector data on an image plane, and a target area associated with the crop sample is cropped from the mapping data to obtain training image pair data.

[0036] Optionally, the performing parameter optimization on the segmentation model according to the validation set and the model prediction result includes:

[0037] according to Performing quantitative evaluation on the segmentation model;

[0038] Among them, C is the number of categories, Prediction i is the prediction result of the i-th category, Ground Truth i is the true label corresponding to the prediction result of the i-th category.

[0039] In a second aspect, the present application provides a crop planting area extraction system, comprising:

[0040] The sample extraction and model building module is used to obtain unlabeled remote sensing image samples and crop labeled samples from the sample area, and to build a combined self-supervised learning model and segmentation model;

[0041] A feature extraction training module, used for performing feature extraction training on a first feature extraction module of the self-supervised learning model through the unlabeled remote sensing image samples according to a preset comparison learning strategy, wherein the first feature extraction module is used for capturing local and global pattern features from input images in scenes of different complexities;

[0042] A sharing module, used to share the model parameters of the first feature extraction module to the feature extraction module of the segmentation model, and to migrate the training weights of the first feature extraction module to the segmentation module of the segmentation model;

[0043] A vectorization processing module, used for performing vectorization processing based on the crop labeled samples to obtain training image pair data, wherein the training image pair data includes a training set and a verification set;

[0044] A segmentation training module, used to perform segmentation training on the segmentation model according to the training set to obtain a model prediction result output by the segmentation model;

[0045] A parameter optimization module, used to optimize the parameters of the segmentation model according to the validation set and the model prediction result, until the model accuracy of the segmentation model reaches a preset requirement, thereby obtaining a trained segmentation model;

[0046] The full-image recognition prediction module is used to perform full-image recognition prediction including crop planting area extraction based on the remote sensing image of the target area through the trained segmentation model, and to perform vector conversion based on the prediction results of the full-image recognition prediction to obtain the planting area recognition and extraction results of the crops to be identified in the target area.

[0047] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0048] Memory, used to store computer programs;

[0049] The processor is used to implement the steps of the crop planting area extraction method coupled with self-supervised learning and segmentation model as described in any embodiment of the first aspect when executing the program stored in the memory.

[0050] In summary, the embodiment of the present application constructs a combined self-supervised learning model and a segmentation model, and uses the unlabeled remote sensing image samples obtained from the sample area to perform model training on the first feature extraction module of the self-supervised learning model, so that the first feature extraction module can have the ability to capture global and local pattern features from the input image in scenes of different complexities, and then share the parameters of the first feature extraction module with the feature extraction module of the segmentation model, and then transfer the model training weights and training weights to the segmentation module of the segmentation model, use the crop labeled samples obtained from the sample area to perform vector processing and divide them into a training set and a verification set, use the training set to train the segmentation module, and use the verification set to verify the prediction results output by the segmentation model, and optimize the parameters of the segmentation model. Therefore, the present application uses unlabeled remote sensing images to perform self-supervised learning on the self-supervised learning module, fully mines and extracts multi-scale and multi-type features in the images, and completes the model training of the feature extraction module and the segmentation module of the segmentation model, shortens the model training cycle, and improves the feature extraction ability and segmentation recognition ability of the segmentation model, so as to obtain a high-precision segmentation model that can accurately identify and segment crop planting areas. The trained segmentation model is used to perform full-image recognition prediction and crop planting area extraction on the remote sensing image of the target area, and vector conversion is performed according to the prediction results of the full-image recognition prediction to obtain the planting area identification and extraction results of the crops to be identified in the target area, and finally realizes efficient and accurate remote sensing identification of crop planting areas, and solves the problem of insufficient recognition accuracy of crop recognition and segmentation models caused by environmental factors and small number of training samples in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0053] Figure 1 A schematic diagram of a process for extracting crop planting areas by coupling self-supervised learning and segmentation models provided in an embodiment of the present application;

[0054] Figure 2 It is a schematic diagram of the steps of a method for extracting crop planting areas by coupling self-supervised learning and segmentation models provided by an optional embodiment of the present application;

[0055] Figure 3It is a flow chart of a model training method for coupling self-supervised learning and segmentation model provided by an optional example of the present application;

[0056] Figure 4 It is a schematic diagram of the combination of the SimCLR model and the Segformer model provided by an optional example of the present application;

[0057] Figure 5 It is a spatial distribution diagram of camellia oleifera extraction results provided by an optional example of the present application;

[0058] Figure 6 A structural block diagram of a crop planting area extraction system coupled with a self-supervised learning and segmentation model provided in an embodiment of the present application;

[0059] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0061] To facilitate the understanding of the embodiments of the present application, further explanation will be given below in conjunction with the drawings and specific embodiments. The embodiments do not constitute a limitation on the embodiments of the present application.

[0062] Figure 1 A schematic diagram of a method for extracting crop planting areas by coupling self-supervised learning and segmentation models provided in an embodiment of the present application. Figure 1 As shown, the method for extracting crop planting areas by coupling self-supervised learning and segmentation models provided in the embodiment of the present application may specifically include the following steps:

[0063] Step 110, obtaining unlabeled remote sensing image samples and labeled crop samples from the sample area, and constructing a combined self-supervised learning model and segmentation model.

[0064] In this embodiment, the sample area can be understood as an area where target crops are planted. Unlabeled remote sensing image samples refer to remote sensing images corresponding to the sample area obtained by photographing the sample area, etc., as unlabeled remote sensing image samples for subsequent model training of the self-supervised learning model; labeled crop samples may include but are not limited to: remote sensing images of crops and labels corresponding to the remote sensing images.

[0065] For example, taking oil tea as an example, when training a segmentation model to identify oil tea planting areas, the oil tea planting areas can be used as sample areas, and the remote sensing images corresponding to the sample areas can be obtained by photographing the sample areas. Preferably, high-resolution remote sensing images with good quality can be selected; drones are used to collect corresponding remote sensing images containing oil tea planting areas from the sample areas as oil tea samples, and the oil tea samples are labeled to form vector results, thereby obtaining high-quality remote sensing images containing oil tea remote sensing images and corresponding labeled crop samples. Only a small number of labeled high-quality samples are needed to effectively improve the model recognition ability.

[0066] In the specific implementation, this embodiment constructs a segmentation model and a self-supervised learning model, and combines or couples the segmentation model and the self-supervised learning model. Among them, the segmentation model can use the Segformer model (Segformer semantic segmentation model), and the self-supervised learning model can use SimCLR self-supervised learning. In the related art, the existing Segformer semantic segmentation model has become an efficient semantic segmentation tool by virtue of its powerful multi-scale feature extraction capability and excellent segmentation performance. However, when training, the Segformer semantic segmentation model relies on a large number of labeled samples to give full play to its performance, and crops such as oil tea are limited by restrictions such as growth areas, and it is impossible to obtain a large number of labeled samples. To this end, this embodiment combines the SimCLR model and the Segformer model to simultaneously train the two models, reduce model parameters, and effectively reduce computing resource requirements. In addition, the use of SimCLR self-supervised learning can effectively reduce the demand for labeled samples, improve the accuracy of the model, and solve the problem of insufficient recognition accuracy of crop recognition segmentation models caused by the limited number of training samples in the prior art.

[0067] Step 120 , according to a preset comparison learning strategy, feature extraction training is performed on the first feature extraction module of the self-supervised learning model through the unlabeled remote sensing image samples.

[0068] The first feature extraction module is used to capture local and global pattern features from the input image in scenes of different complexity.

[0069] In this embodiment, the unlabeled remote sensing image is input into the self-supervised learning model. The self-supervised learning model gradually extracts and learns the structural features and semantic information in the image from the unlabeled remote sensing image according to the comparison learning strategy, so that it can effectively capture local and global pattern features in complex scenes, and significantly improve the model's ability in feature extraction and semantic expression.

[0070] Step 130: share the model parameters of the first feature extraction module to the feature extraction module of the segmentation model, and migrate the training weights of the first feature extraction module to the segmentation module of the segmentation model.

[0071] In this embodiment, since SimCLR is combined with the Segformer model, the parameters of the feature extraction module of SilmCLR can be shared with the feature extraction module (Encoder module) of the Segformer model, thereby completing the training of the feature extraction module of the Segformer model. This embodiment uses SimCLR self-supervised learning to perform self-supervised learning on unlabeled remote sensing images, fully mining and extracting multi-scale and multi-type features in the images. By sharing parameters with the Encoder module of the Segformer model, the Segformer model can also have the ability to fully mine and extract various features of the images, effectively retaining the global and local features learned by SimCLR. This embodiment uses SimCLR self-supervised learning to effectively reduce the demand for labeled samples, and there is no need to simultaneously learn and train the feature extraction capabilities of the two models, reducing parameters and reducing computing resource requirements.

[0072] In a specific implementation, this embodiment adopts a transfer learning strategy during the training process of the Segformer model. The encoder weights obtained by SimCLR pre-training are used for weight initialization of the encoder module of Segformer. The weights of the feature extraction part of the model (i.e., the Encoder part of Segformer) are transferred to the Encoder of Segformer used for image segmentation. The feature representation learned by SimCLR is applied to the segmentation task, thereby improving the model's ability to understand specific targets. Subsequently, model training can be performed for Segformer.

[0073] Step 140: performing vectorization processing based on the crop labeled samples to obtain training image pair data, wherein the training image pair data includes a training set and a validation set.

[0074] In a specific implementation, in this embodiment, the crop labeled samples can be first vectorized to obtain vector data, and then the vector data can be mapped to obtain training image pair data. The training image pair data can then be divided according to the division ratio to obtain a training set and a verification set. Preferably, the division ratio can be 7:3, that is, the ratio of the training set to the verification set is 7:3. Of course, in actual implementation, the ratio can also be set according to the actual division requirements, and this embodiment does not limit this.

[0075] Step 150: Perform segmentation training on the segmentation model according to the training set to obtain a model prediction result output by the segmentation model.

[0076] Step 160, optimizing the parameters of the segmentation model according to the validation set and the model prediction result, until the model accuracy of the segmentation model reaches a preset requirement, thereby obtaining a trained segmentation model.

[0077] A unified description of steps 150 to 160 is given as follows:

[0078] In the specific implementation, the Segformer model combines the advantages of Transformer and convolutional neural network (CNN), can efficiently extract multi-scale features, and adopts a simple and efficient decoder to improve the performance of image segmentation, and can effectively deal with crops with complex growth environments. In this embodiment, the segmentation model can be trained using a training set. The segmentation model predicts the segmentation of the planting area according to the input training set to obtain the corresponding model prediction results. The accuracy of the model prediction results is then verified using a validation set to obtain a trained segmentation model. Taking oil tea as an example, this application uses labeled oil tea area sample data to supervise the training of the Segformer model. By continuously optimizing the parameters of the Segformer model, the segmentation accuracy of the model in the oil tea area is improved, and finally high-precision automatic segmentation of the oil tea area is achieved, achieving an efficient and accurate segmentation effect, and solving the problem of insufficient recognition accuracy of crop recognition segmentation models caused by the existing technology being limited by environmental factors and a small number of training samples.

[0079] Step 170, using the trained segmentation model to perform full-image recognition prediction including crop planting area extraction based on the remote sensing image of the target area, and performing vector conversion based on the prediction result of the full-image recognition prediction to obtain the planting area recognition and extraction result of the crops to be identified in the target area.

[0080] In actual implementation, after completing the model training of the Segformer semantic segmentation model in this embodiment, the Segformer semantic segmentation model with the highest segmentation accuracy can be selected and applied to the actual crop planting area segmentation and recognition. By acquiring the remote sensing image of the target area and inputting it into the trained Segformer semantic segmentation model, full-image recognition prediction is performed. The full-image recognition prediction includes but is not limited to: feature extraction, crop recognition, and crop planting area extraction, etc., to obtain the prediction result, and then convert the prediction result into a vector to form the final planting area recognition and extraction result of the crop to be identified in the target area.

[0081] It can be seen that the embodiment of the present application constructs a combined self-supervised learning model and a segmentation model, and uses the unlabeled remote sensing image samples obtained from the sample area to train the first feature extraction module of the self-supervised learning model, so that the first feature extraction module can have the ability to capture global and local pattern features from the input image in scenes of different complexity, and then share the parameters of the first feature extraction module with the feature extraction module of the segmentation model, and then transfer the model training weights and training weights to the segmentation module of the segmentation model, and use the crop labeled samples obtained from the sample area to perform vector processing and divide them into training sets and verification sets, and use the training set to train the segmentation module, and use the verification set to verify the prediction results output by the segmentation model, and optimize the parameters of the segmentation model. Therefore, the present application uses unlabeled remote sensing images to perform self-supervised learning on the self-supervised learning module, fully mines and extracts multi-scale and multi-type features in the image, and completes the model training of the feature extraction module and the segmentation module of the segmentation model, shortens the model training cycle, improves the feature extraction ability and segmentation recognition ability of the segmentation model, and obtains a high-precision segmentation model that can accurately identify and segment crop planting areas. The embodiment of the present application utilizes a trained segmentation model to perform full-image recognition prediction on the remote sensing image of the target area, and performs vector conversion based on the prediction results of the full-image recognition prediction, so as to obtain the identification and extraction results of the planting areas of the crops to be identified in the target area, and ultimately realize efficient and accurate remote sensing identification of crop planting areas, thereby solving the problem of insufficient recognition accuracy of crop recognition segmentation models caused by environmental factors and a small number of training samples in the prior art.

[0082] Reference Figure 2 , shows a schematic flow chart of the steps of a method for extracting crop planting areas by coupling self-supervised learning and segmentation models provided by an optional embodiment of the present application. The method may specifically include the following steps:

[0083] Step 210, obtaining unlabeled remote sensing image samples and labeled crop samples from the sample area, and constructing a combined self-supervised learning model and segmentation model.

[0084] In an optional embodiment, the embodiment of the present application obtains unlabeled remote sensing image samples and labeled crop samples from the sample area, which may specifically include: obtaining remote sensing image data from the sample area; performing correction and enhancement preprocessing on the remote sensing image data to obtain unlabeled remote sensing image samples that meet quality requirements; based on preset drone acquisition instructions, collecting crop sample images from the sample area, and the drone acquisition instructions are used to control the drone to collect sample images of the sample area; obtaining labeling information corresponding to the crop sample image, and generating labeled crop samples based on the crop sample image and the labeling information.

[0085] Among the related technologies, sample annotation is currently mainly carried out through visual interpretation and drone photography. The visual interpretation method is highly dependent on the professional experience and subjective judgment of the interpreter, which can easily lead to limited accuracy when processing large-scale data, affecting the objectivity of the results. Taking Camellia oleifera as an example, its growing area and growing environment are complex. Camellia oleifera is mostly distributed in mountainous areas with complex terrain. Drone signals are often interfered with. Sample collection faces many challenges, making the number of high-quality labeled samples very limited. Although drone photography can intuitively capture the information of the growing area of ​​Camellia oleifera, in actual operation, since Camellia oleifera is mostly distributed in mountainous areas with complex terrain, drone signals are often interfered with. Sample collection faces many challenges, making the number of high-quality labeled samples very limited.

[0086] In order to solve the problem of low model accuracy caused by insufficient sample quantity, this embodiment takes high-resolution remote sensing images from the sample area. Preferably, this embodiment can use high-resolution satellite images and select high-quality samples from them. Taking the oil tea planting area of ​​Long X County as an example, for unlabeled remote sensing image samples, this example selects remote sensing images with a resolution better than 1m in Long X County in autumn (September-November) for full-process preprocessing, including but not limited to: radiation correction, geometric correction and image enhancement, and obtains the final single, complete and non-obvious color difference remote sensing image file by georeferencing and mosaicking the remote sensing images; for crop labeling samples, this embodiment uses oil tea samples collected by drones, based on the remote sensing images better than one meter produced by this unit for vectorization, and multiple internal workers use human-computer interaction to outline the boundaries on the image according to the photos and shooting point information to form vector results. In order to improve the recognition ability, in addition to the 855 outlined oil tea samples, 41 samples of forest land are also added.

[0087] Step 220: Obtain a preset comparison learning strategy and image cropping information.

[0088] The image cropping information includes the input information of the self-supervised learning model and the key image information.

[0089] Step 230 : preprocessing the unlabeled remote sensing image sample based on the input information and the image key information to obtain an input image sample.

[0090] The input image sample contains local image details and global scene information.

[0091] A unified description of steps 220 to 230 is given as follows:

[0092] In this embodiment, the input information of the self-supervised learning model can be understood as the input requirements of the model, which is used to determine the image size of the input self-supervised learning model. Preferably, the image size of the input self-supervised learning model can be a slice size of 512*512. The key image information is mainly used to select remote sensing images that meet the quality requirements from unlabeled remote sensing images, ensuring that the selected unlabeled remote sensing images contain local details of the image while taking into account the global scene information.

[0093] In a specific implementation, the embodiment of the present application can pre-develop a special slicing tool, and use the slicing tool to crop the unlabeled remote sensing image according to the slice size represented by the input information, and crop the image to a size of 512×512 pixels. This size can ensure the local details of the image while taking into account the global scene information, thereby providing a suitable input scale for the SimCLR model and obtaining input image samples as training data for self-supervised learning of SimCLR.

[0094] Step 240: According to the comparison learning strategy, the first feature extraction module of the self-supervised learning model extracts and learns the structural features and semantic information in the image from the input image sample.

[0095] The first feature extraction module is used to capture local and global pattern features from the input image in scenes of different complexity.

[0096] In the specific implementation, refer to Figure 3 In this embodiment, the cropped 512×512 pixel image block, that is, the cropped input image sample, is input into the SimCLR framework for unsupervised training. SimCLR gradually extracts and learns the structural features and semantic information in the image through a comparative learning strategy, especially effectively capturing local and global pattern features in complex scenes, significantly improving the model's ability in feature extraction and semantic expression.

[0097] In an optional embodiment, the above-mentioned extraction and learning of structural features and semantic information in the image from the input image sample by the first feature extraction module of the self-supervised learning model may specifically include: inputting the input image sample into the self-supervised learning model; performing random enhancement based on each sample image in the input sample to obtain sample pair information corresponding to each sample image, the sample pair information including positive sample pairs and negative sample pairs; measuring the sample pair information using cosine similarity to obtain the similarity of each sample pair of the sample pair information; and performing comparison model training on the first feature extraction module based on the sample pair information and the similarity.

[0098] In the specific implementation, the use of SimCLR self-supervised learning can reduce the annotation cost. Compared with other self-supervised learning, its framework is concise, efficient and easy to implement. As long as there is enough input data, more discriminative features can be learned. This embodiment uses SimCLR self-supervised learning to construct a feature space with strong representation capabilities for the target area. When the SimCLR model is trained in this embodiment, SimCLR can use cosine similarity to measure the similarity of different image representations. Specifically, in the SimCLR framework, each input image generates two different views (called positive sample pairs) through two random data enhancements, and the task of the model is to learn to make the feature representations of these two views as close as possible. At the same time, different views of other images are regarded as negative sample pairs, and the model needs to learn to make the feature representations of these negative samples as far apart as possible. This embodiment uses InfoNCE Loss as the core mechanism to guide the model to distinguish between positive and negative samples in the contrastive learning process, which plays a key role in strengthening the feature expression of similar images and suppressing the interference of dissimilar images.

[0099] In an optional embodiment, the embodiment of the present application uses cosine similarity to measure the sample pair information to obtain the similarity of each sample pair of the sample pair information, which may specifically include: the feature extraction module according to Measures the similarity of different images in the sample pair information; A·B represents the dot product obtained by multiplying and summing the corresponding components of vector A and vector B, which is used to reflect the relative direction relationship between the vectors. As the degree of similarity between the two vectors, if the two vectors have the same direction, the value corresponding to the dot product is large, and if the two vectors have opposite directions, the value corresponding to the dot product is small. ||A||||B|| represents the norm product of vector A and vector B, ||A|| is the Euclidean norm of vector A, and ||B|| is the Euclidean norm of vector B. The Euclidean norm can also be understood as the length or modulus of a vector.

[0100] In an optional embodiment, the embodiment of the present application performs comparison model training on the first feature extraction module according to the sample pair information and the similarity, which may specifically include: according to the formula Guide the first feature extraction model to distinguish positive sample pairs from negative sample pairs during the comparison learning process; wherein the feature vector z i and the eigenvector z j are all feature representations of positive sample pairs, sim(z i , z j ) is z i and z j The cosine similarity between them is used to measure the similarity of positive sample pairs, τ is the temperature parameter, which is used to adjust the similarity softening degree in contrastive learning, N is the number of sample pairs in the batch, exp(sim(zi , z j ) / τ) represents the similarity score of the positive sample pair, It represents the sum of similarity scores between the positive sample pair and all negative sample pairs.

[0101] Step 250: Share the model parameters of the first feature extraction module with the feature extraction module of the segmentation model, and migrate the training weights of the first feature extraction module to the segmentation module of the segmentation model.

[0102] For example, refer to Figure 4 , combining the SimCLR model and the Segformer model. After completing the feature extraction training of the SimCLR model, the Encoder module of Segformer can obtain the parameters of the SimCLR feature extraction module to ensure that the global and local features learned by SimCLR are retained. Therefore, in the model feature extraction part of this embodiment, only the SimCLR model needs to be trained, so that the Encoder module of Segformer can also effectively capture local and global pattern features in complex scenarios, significantly improving the model's capabilities in feature extraction and semantic expression, and ensuring that the subsequent segmentation model still maintains high-quality segmentation effects under limited computing resources.

[0103] Step 260: vectorize the crop labeled samples to obtain vector data.

[0104] Step 270 , performing affine transformation according to the vector data to obtain mapping data of the vector data on the image plane, and cropping a target area associated with the crop sample from the mapping data to obtain training image pair data.

[0105] The training image pair data includes a training set and a validation set.

[0106] A unified description of steps 260 to 270 is given as follows:

[0107] In actual implementation, refer to Figure 3 ,This embodiment first vectorizes the crop label samples, and then uses the affine transformation technique to map the vector data to the image plane, and finally divides the training image pair data into a training set and a validation set according to a certain ratio.

[0108] Step 280, performing segmentation training on the segmentation model according to the training set to obtain a model prediction result output by the segmentation model.

[0109] Step 290, optimizing the parameters of the segmentation model according to the validation set and the model prediction result, until the model accuracy of the segmentation model reaches a preset requirement, thereby obtaining a trained segmentation model.

[0110] Step 300, using the trained segmentation model to perform full-image recognition prediction including crop planting area extraction based on the remote sensing image of the target area, and performing vector conversion based on the prediction result of the full-image recognition prediction to obtain the planting area recognition and extraction result of the crops to be identified in the target area.

[0111] A unified description of steps 280 to 300 is given as follows:

[0112] Reference Figure 3 As shown, during the training stage of the segmentation model, this embodiment uses the validation set to verify the accuracy of the model prediction results, and determines whether the model accuracy meets the accuracy requirement by presetting an accuracy requirement. If the model accuracy does not meet the accuracy requirement, the segmentation model can be retrained using the training set to optimize and adjust the model parameters of the segmentation model until the optimal model that meets the accuracy requirement is obtained.

[0113] Among them, the model recognition accuracy is shown in Table 1 below:

[0114]

[0115] Table 1 Recognition accuracy of the model

[0116] Further, as an example, after completing the Segformer segmentation model training, the Segformer model with the best accuracy can be used to perform full-map recognition prediction on the remote sensing image containing the oil-tea distribution in LongX County, Guangxi Province, and the obtained oil-tea prediction results are converted into vector data to obtain the final oil-tea classification results, where the oil-tea extraction results are as follows: Figure 5 shown.

[0117] Therefore, in order to address the problems of insufficient samples and low precision in the automatic identification of tea-oil planting areas under current high-resolution images, this embodiment uses SimCLR self-supervised learning and Segformer semantic segmentation models to propose a more efficient and accurate recognition method that can efficiently extract multi-scale features and adopts a simple and efficient decoder to improve the performance of image segmentation.

[0118] In an optional embodiment, the embodiment of the present application optimizes the parameters of the segmentation model according to the validation set and the model prediction result, which may specifically include: The segmentation model is quantitatively evaluated; where C is the number of categories, Prediction i is the prediction result of the i-th category, GroundTruth i is the true label corresponding to the prediction result of the i-th category.

[0120] In summary, the embodiment of the present application constructs a combined self-supervised learning model and a segmentation model, uses the unlabeled remote sensing image samples obtained from the sample area for preprocessing, obtains the input image samples, and then extracts the features of the first feature extraction module of the self-supervised learning model in combination with the input image samples according to the comparison learning strategy, and learns the structural features and semantic information in the image, so that the self-supervised learning model can effectively capture local and global pattern features in complex scenes, and significantly improves the model's ability in feature extraction and semantic expression. Then, the first feature extraction module of the self-supervised learning model is parameter-shared with the feature extraction module of the segmentation model to achieve training and learning of the feature extraction module of the segmentation model, and adopts a transfer learning strategy to transfer the training weights to the segmentation module of the segmentation model, and then uses the crop annotation samples collected from the sample area for vectorization and affine transformation, etc., to obtain a training set and a verification set, uses the training set to train the segmentation model to identify and segment the crop planting area from the input data, uses the verification set to verify the accuracy of the segmentation model, and applies the segmentation model with the best accuracy to the remote sensing image of the target area for full-map prediction to achieve the segmentation of the crop planting area. Therefore, this embodiment proposes an efficient method for extracting oil-tea-planting areas under the condition of limited labeled samples by comprehensively applying SimCLR and Segformer models. First, the SimCLR model is used to perform self-supervised learning on unlabeled remote sensing images, fully mining and extracting multi-scale and multi-type features in the images, and constructing a feature space with strong characterization capabilities for the target area. Subsequently, in the training process of the Segformer model, a transfer learning strategy is adopted, and the encoder weights obtained by SimCLR pre-training are used for weight initialization of the encoder module of Segformer, reducing the dependence on a large amount of labeled data. In the case of only a small number of labeled samples, the Segformer model can still achieve efficient and accurate extraction of oil-tea-planting areas, solving the problem of insufficient recognition accuracy of crop recognition and segmentation models due to the limitation of environmental factors and the small number of training samples in the existing technology.

[0121] It should be noted that, for the purpose of simple description, the method embodiments are expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited to the described order of actions, because according to the embodiments of the present application, certain steps may be performed in other orders or simultaneously.

[0122] like Figure 6 As shown, the embodiment of the present application also provides a crop planting area extraction system 600, including:

[0123] The sample extraction and model building module 610 is used to obtain unlabeled remote sensing image samples and labeled crop samples from the sample area, and to build a combined self-supervised learning model and segmentation model;

[0124] A feature extraction training module 620 is used to perform feature extraction training on a first feature extraction module of the self-supervised learning model through the unlabeled remote sensing image samples according to a preset comparison learning strategy, wherein the first feature extraction module is used to capture local and global pattern features from an input image in scenes of different complexity;

[0125] A sharing module 630, configured to share the model parameters of the first feature extraction module with the feature extraction module of the segmentation model, and to transfer the training weights of the first feature extraction module to the segmentation module of the segmentation model;

[0126] A vectorization processing module 640, configured to perform vectorization processing based on the crop labeled samples to obtain training image pair data, wherein the training image pair data includes a training set and a validation set;

[0127] A segmentation training module 650 is used to perform segmentation training on the segmentation model according to the training set to obtain a model prediction result output by the segmentation model;

[0128] A parameter optimization module 660 is used to optimize the parameters of the segmentation model according to the validation set and the model prediction result, until the model accuracy of the segmentation model reaches a preset requirement, thereby obtaining a trained segmentation model;

[0129] The full-image recognition prediction module 670 is used to perform full-image recognition prediction including crop planting area extraction based on the remote sensing image of the target area through a trained segmentation model, and to perform vector conversion based on the prediction results of the full-image recognition prediction to obtain the planting area recognition and extraction results of the crops to be identified in the target area.

[0130] Optionally, the sample extraction and model building module 610 includes:

[0131] A remote sensing image data acquisition submodule is used to acquire remote sensing image data from a sample area;

[0132] A first preprocessing submodule is used to perform correction and enhancement preprocessing on the remote sensing image data to obtain an unlabeled remote sensing image sample that meets quality requirements;

[0133] A collection submodule, used to collect crop sample images from the sample area based on a preset drone collection instruction, wherein the drone collection instruction is used to control the drone to collect sample images from the sample area;

[0134] The labeled sample generation submodule is used to obtain the labeling information corresponding to the crop sample image, and to generate a crop labeled sample based on the crop sample image and the labeling information.

[0135] Optionally, the feature extraction training module 620 includes:

[0136] An image processing submodule, used to obtain a preset comparison learning strategy and image cropping information, wherein the image cropping information includes input information of the self-supervised learning model and key image information;

[0137] A third preprocessing submodule is used to preprocess the unlabeled remote sensing image sample based on the input information and the image key information to obtain an input image sample, wherein the input image sample contains local image details and global scene information;

[0138] The first learning submodule is used to extract and learn structural features and semantic information in the image from the input image sample through the first feature extraction module of the self-supervised learning model according to the comparison learning strategy.

[0139] Optionally, the first learning submodule includes:

[0140] An input unit, used for inputting the input image sample into the self-supervised learning model;

[0141] A random enhancement unit, used to perform random enhancement based on each sample image in the input sample to obtain sample pair information corresponding to each sample image, wherein the sample pair information includes a positive sample pair and a negative sample pair;

[0142] A measurement processing unit, used for measuring the sample pair information by using cosine similarity to obtain the similarity of each sample pair of the sample pair information;

[0143] A comparison training unit is used to perform comparison model training on the first feature extraction module according to the sample pair information and the similarity.

[0144] Optionally, the measurement unit is specifically used to: the first feature extraction module is based on Measures the similarity of different images in the sample pair information; where A·B represents the dot product obtained by multiplying the corresponding components of vector A and vector B and summing them up, which is used to reflect the relative direction relationship between the vectors. As the degree of similarity between the two vectors, if the two vectors have the same direction, the value corresponding to the dot product is large, and if the two vectors have opposite directions, the value corresponding to the dot product is small. ||A||||B|| represents the norm product of vector A and vector B, ||A|| is the Euclidean norm of vector A, and ||B|| is the Euclidean norm of vector B.

[0145] Optionally, the comparison training unit is specifically used to: according to the formula guiding the first feature extraction model to distinguish positive sample pairs from negative sample pairs during the comparison learning process;

[0147] Among them, the eigenvector z i and the eigenvector z j are all feature representations of positive sample pairs, sim(z i ,z j ) is z i and z j The cosine similarity between them is used to measure the similarity of positive sample pairs, τ is the temperature parameter, which is used to adjust the similarity softening degree in contrastive learning, N is the number of sample pairs in the batch, exp(sim(z i ,z j ) / τ) represents the similarity score of the positive sample pair, It represents the sum of similarity scores between the positive sample pair and all negative sample pairs.

[0148] Optionally, the vectorization processing module includes:

[0149] A vectorization submodule, used for performing vectorization based on the crop labeled samples to obtain vector data;

[0150] An affine transformation submodule, used for performing affine transformation according to the vector data to obtain mapping data of the vector data on an image plane;

[0151] The cropping submodule is used to crop the target area associated with the crop sample from the mapping data to obtain training image pair data.

[0152] Optionally, the parameter optimization module is specifically used to: The segmentation model is quantitatively evaluated; where C is the number of categories, Prediction i is the prediction result of the i-th category, Ground Truth i is the true label corresponding to the prediction result of the i-th category.

[0154] It should be noted that the crop planting area extraction system provided in the embodiment of the present application can execute the crop planting area extraction method coupled with self-supervised learning and segmentation model provided in any embodiment of the present application, and has the corresponding functions and beneficial effects of the execution method.

[0155] In a specific implementation, the crop planting area extraction system can be integrated into a device, so that the device can use sample data to train the coupled self-supervised learning model and the segmentation model, and after the segmentation model is trained, the planting area of ​​the crop to be identified is identified from the remote sensing image through the segmentation model. As an electronic device, it can use unlabeled samples and a small amount of labeled samples to train a segmentation model that can accurately identify and segment the crop planting area. The electronic device can be composed of two or more physical entities, or it can be composed of one physical entity. For example, the electronic device can be a personal computer (PC), a computer, a server, etc., and the embodiment of the present application does not impose specific restrictions on this.

[0156] like Figure 7 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114; the memory 113 is used to store computer programs; the processor 111 is used to implement the steps of the crop planting area extraction method coupled with self-supervised learning and segmentation model provided in any of the aforementioned method embodiments when executing the program stored in the memory 113. Exemplarily, the steps of the crop planting area extraction method coupled with self-supervised learning and segmentation models may include the following steps: obtaining unlabeled remote sensing image samples and labeled crop samples from the sample area, and constructing a combined self-supervised learning model and segmentation model; according to a preset comparison learning strategy, performing feature extraction training on a first feature extraction module of the self-supervised learning model through the unlabeled remote sensing image samples, the first feature extraction module being used to capture local and global pattern features from an input image in scenes of different complexities; sharing the model parameters of the first feature extraction module with the feature extraction module of the segmentation model, and migrating the training weights of the first feature extraction module to the segmentation model. A segmentation module of the type is provided; vectorization processing is performed based on the crop labeled samples to obtain training image pair data, wherein the training image pair data includes a training set and a validation set; segmentation training is performed on the segmentation model according to the training set to obtain a model prediction result output by the segmentation model; parameters of the segmentation model are optimized according to the validation set and the model prediction result until the model accuracy of the segmentation model reaches a preset requirement to obtain a trained segmentation model; full-image recognition prediction including crop planting area extraction is performed based on the remote sensing image of the target area through the trained segmentation model, and vector conversion is performed according to the prediction result of the full-image recognition prediction to obtain a planting area recognition and extraction result of the crop to be identified in the target area.

[0157] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for extracting crop planting areas by coupling self-supervised learning and segmentation models as provided in any of the aforementioned method embodiments are implemented.

[0158] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" 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, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0159] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A method for extracting crop planting areas by coupling self-supervised learning and segmentation models, characterized in that: include: Obtain unlabeled remote sensing image samples and crop labeled samples from the sample area, and construct a combined self-supervised learning model and segmentation model; According to a preset comparison learning strategy, a first feature extraction module of the self-supervised learning model is trained for feature extraction through the unlabeled remote sensing image samples, wherein the first feature extraction module is used to capture local and global pattern features from the input image in scenes of different complexity; Sharing the model parameters of the first feature extraction module to the feature extraction module of the segmentation model, and migrating the training weights of the first feature extraction module to the segmentation module of the segmentation model; Performing vectorization processing based on the crop labeled samples to obtain training image pair data, wherein the training image pair data includes a training set and a validation set; Performing segmentation training on the segmentation model according to the training set to obtain a model prediction result output by the segmentation model; Optimizing the parameters of the segmentation model according to the validation set and the model prediction result until the model accuracy of the segmentation model reaches a preset requirement, thereby obtaining a trained segmentation model; The trained segmentation model is used to perform full-image recognition prediction including crop planting area extraction based on the remote sensing image of the target area, and vector conversion is performed based on the prediction results of the full-image recognition prediction to obtain the planting area recognition and extraction results of the crops to be identified in the target area.

2. The method according to claim 1, characterized in that The step of obtaining unlabeled remote sensing image samples and labeled crop samples from the sample area includes: Acquire remote sensing image data from the sample area; Performing correction and enhancement preprocessing on the remote sensing image data to obtain unlabeled remote sensing image samples that meet quality requirements; Based on a preset drone collection instruction, collecting crop sample images from the sample area, wherein the drone collection instruction is used to control the drone to collect sample images from the sample area; Acquire annotation information corresponding to the crop sample image, and generate annotated crop samples based on the crop sample image and the annotation information.

3. The method according to claim 1, characterized in that The method of performing feature extraction training on the first feature extraction module of the self-supervised learning model through the unlabeled remote sensing image samples according to the preset comparison learning strategy includes: Acquire a preset comparison learning strategy and image cropping information, wherein the image cropping information includes input information of the self-supervised learning model and key image information; Based on the input information and the image key information, preprocessing the unlabeled remote sensing image sample to obtain an input image sample, wherein the input image sample includes local image details and global scene information; According to the comparison learning strategy, the structural features and semantic information in the image are extracted and learned from the input image samples through the first feature extraction module of the self-supervised learning model.

4. The method according to claim 3, characterized in that The extracting and learning structural features and semantic information in the image from the input image sample by the first feature extraction module of the self-supervised learning model includes: Inputting the input image sample into the self-supervised learning model; Based on each sample image in the input sample, random enhancement is performed to obtain sample pair information corresponding to each sample image, wherein the sample pair information includes a positive sample pair and a negative sample pair; The sample pair information is measured using cosine similarity to obtain the similarity of each sample pair of the sample pair information; Perform comparison model training on the first feature extraction module according to the sample pair information and the similarity.

5. The method according to claim 4, characterized in that The using cosine similarity to measure the sample pair information to obtain the similarity of each sample pair of the sample pair information includes: The first feature extraction module is based on Measuring the similarity of different images in the sample pair information; Among them, A·B represents the dot product obtained by multiplying the corresponding components of vector A and vector B and summing them up, which is used to reflect the relative direction relationship between the vectors. As the degree of similarity between the two vectors, if the two vectors have the same direction, the value corresponding to the dot product is large, and if the two vectors have opposite directions, the value corresponding to the dot product is small. ‖A‖‖B‖ represents the norm product of vector A and vector B, ||A|| is the Euclidean norm of vector A, and ||B|| is the Euclidean norm of vector B.

6. The method according to claim 5, characterized in that The performing comparison model training on the first feature extraction module according to the sample pair information and the similarity includes: According to the formula guiding the first feature extraction model to distinguish positive sample pairs from negative sample pairs during the comparison learning process; Among them, the eigenvector z i and the eigenvector z j are all feature representations of positive sample pairs, sim(z i ,z j ) is z i and z j The cosine similarity between them is used to measure the similarity of positive sample pairs, τ is the temperature parameter, which is used to adjust the similarity softening degree in contrastive learning, N is the number of sample pairs in the batch, exp(sim(z i ,z j ) / τ) represents the similarity score of the positive sample pair, It represents the sum of similarity scores between the positive sample pair and all negative sample pairs.

7. The method according to claim 1, characterized in that The vectorization processing is performed based on the crop labeled samples to obtain training image pair data, including: Performing vectorization based on the crop labeling samples to obtain vector data; Affine transformation is performed on the vector data to obtain mapping data of the vector data on an image plane, and a target area associated with the crop sample is cropped from the mapping data to obtain training image pair data.

8. The method according to claim 1, characterized in that The step of optimizing parameters of the segmentation model according to the validation set and the model prediction result includes: according to Performing quantitative evaluation on the segmentation model; Among them, C is the number of categories, Prediction i is the prediction result of the i-th category, Ground Truth i is the true label corresponding to the prediction result of the i-th category.

9. A crop planting area extraction system, characterized in that: include: The sample extraction and model building module is used to obtain unlabeled remote sensing image samples and crop labeled samples from the sample area, and to build a combined self-supervised learning model and segmentation model; A feature extraction training module, used for performing feature extraction training on a first feature extraction module of the self-supervised learning model through the unlabeled remote sensing image samples according to a preset comparison learning strategy, wherein the first feature extraction module is used for capturing local and global pattern features from input images in scenes of different complexities; A sharing module, used to share the model parameters of the first feature extraction module to the feature extraction module of the segmentation model, and to migrate the training weights of the first feature extraction module to the segmentation module of the segmentation model; A vectorization processing module, used for performing vectorization processing based on the crop labeled samples to obtain training image pair data, wherein the training image pair data includes a training set and a verification set; A segmentation training module, used to perform segmentation training on the segmentation model according to the training set to obtain a model prediction result output by the segmentation model; A parameter optimization module, used to optimize the parameters of the segmentation model according to the validation set and the model prediction result, until the model accuracy of the segmentation model reaches a preset requirement, thereby obtaining a trained segmentation model; The full-image recognition prediction module is used to perform full-image recognition prediction including crop planting area extraction based on the remote sensing image of the target area through the trained segmentation model, and to perform vector conversion based on the prediction results of the full-image recognition prediction to obtain the planting area recognition and extraction results of the crops to be identified in the target area.

10. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the steps of the method for extracting crop planting areas by coupling self-supervised learning and segmentation models as described in any one of claims 1 to 8 when executing the program stored in the memory.

Citation Information

Patent Citations

  • Remote sensing image semantic segmentation method based on self-supervised contrast learning

    CN113011427A

  • Brain magnetic resonance segmentation method and system based on combined dual-task auto-encoder

    CN117274599A

  • Remote sensing identification method for agricultural planting structure

    WO2022214039A1