Farmland parcel identification method and system and medium

By improving the farmland plot identification model, utilizing the ConvNeXt V2 module and CBAM attention mechanism, and combining multi-scale feature aggregation and skip connections, the problems of insufficient edge details and class imbalance in farmland plot identification in high-resolution remote sensing images are solved, achieving efficient and accurate identification of farmland plots and supporting arable land monitoring and management.

CN121616974AActive Publication Date: 2026-03-06JILIN AGRICULTURAL UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610139485.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-02
Publication Date
2026-03-06
Estimated Expiration
2046-02-02

AI Technical Summary

Technical Problem

Existing deep learning-based semantic segmentation models suffer from insufficient edge details, susceptibility to interference from complex backgrounds, and unbalanced pixel categories in farmland identification when processing high-resolution remote sensing images. This leads to missed detections, discontinuous identification, and coarse edges, affecting the accuracy and completeness of farmland location.

Method used

An improved model based on the UNet++ architecture is adopted, using the ConvNeXt V2 module as the encoder, and embedding a convolutional attention module CBAM at the output of each ConvNeXt V2 module. Combined with a multi-scale feature aggregation layer and a redesigned skip connection structure, the model is trained using a hybrid loss function to improve the accuracy of farmland plot identification.

Benefits of technology

It significantly improves the completeness and spatial accuracy of farmland plot extraction, and can effectively support large-scale, automated, and highly reliable farmland monitoring and management tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121616974A_ABST
    Figure CN121616974A_ABST
Patent Text Reader

Abstract

The invention discloses a farmland plot identification method and system and a medium, and belongs to the technical field of remote sensing image processing and deep learning. Comprising the following steps: acquiring satellite or aerial remote sensing image data; inputting the remote sensing image data into a pre-trained farmland plot recognition model, and outputting a farmland plot recognition result; wherein the model is an improved model based on a UNet + + architecture, all encoders of the model adopt ConvNeXt V2 modules, and the output end of each module is embedded into a convolutional attention module (CBAM); a decoder of the model is integrated with a multi-scale feature aggregation layer and is used for carrying out up-sampling and aggregation on feature maps generated by all output nodes; according to the model, a jump connection structure between an encoder and a decoder is redesigned, so that in any transverse hierarchy of the decoder, output features of all intermediate feature nodes in the hierarchy are only transmitted to a final output node of the hierarchy; the farmland plot identification precision is improved, and technical support is provided for farmland monitoring management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of remote sensing image processing and deep learning technology, and in particular to a method, system and medium for identifying farmland plots. Background Technology

[0002] Farmland plot identification is a key task in remote sensing agriculture applications, aiming to automatically and accurately extract farmland plot information from satellite or aerial imagery. Accurate farmland plot identification is of great significance for arable land area statistics, land use supervision, agricultural subsidy calculation, and precision agriculture management, and is an important technological foundation for realizing intelligent agricultural management and arable land protection.

[0003] Currently, semantic segmentation models based on deep learning have become the mainstream technical approach in this field, such as U-Net and DeepLab V3+. These methods automatically learn multi-level feature representations through convolutional neural networks and demonstrate strong capabilities in overall farmland identification. However, when processing high-resolution remote sensing images, the following problems still exist: the model is not responsive enough to edge details and weak plots, and is easily affected by complex backgrounds such as roads, buildings, and woodlands. In addition, since farmland pixels account for a small proportion of the overall image, there is a serious class imbalance. Ordinary loss functions tend to cause the model to predict the background class, resulting in frequent occurrences of plot omissions, discontinuous identification, and rough edges, which affect the accuracy and completeness of plot localization. Summary of the Invention

[0004] The purpose of this invention is to provide a method for identifying farmland plots, which improves the accuracy of farmland plot identification and provides technical support for farmland monitoring and management.

[0005] To address the aforementioned technical problems, embodiments of the present invention provide a method for identifying farmland plots, comprising the following steps: Acquire satellite or aerial remote sensing image data; Input satellite or aerial remote sensing image data into a pre-trained farmland plot identification model and output farmland plot identification results; The farmland plot recognition model is an improved model based on the UNet++ architecture. The encoder of the farmland plot recognition model adopts ConvNeXt V2 modules, and a convolutional attention module CBAM is embedded at the output of each ConvNeXt V2 module. A multi-scale feature aggregation layer is added after each decoder, and the skip connection structure between the encoder and decoder is redesigned. The skip connection structure ensures that the output features of all intermediate feature nodes in the horizontal hierarchy of each decoder are only passed to the final output node of that level. The ConvNeXt V2 module performs multi-level feature extraction on satellite or aerial remote sensing image data to obtain multi-scale feature representations of the image. The convolutional attention module CBAM performs channel attention weighting and spatial attention weighting on the multi-scale feature representations to output feature maps that enhance semantic and spatial information. The decoder receives features from each stage of the encoder through a skip connection structure and gradually restores spatial resolution by combining upsampling operations. The multi-scale feature aggregation layer upsamples the feature maps generated by all output nodes of the decoder and then stitches them together to output farmland plot identification results with clear boundaries and complete structure.

[0006] In some optional embodiments, the farmland plot identification model is trained using a hybrid loss function, specifically as follows: The hybrid loss function is a weighted sum of the binary cross-entropy loss function and the Dice loss function, expressed as: ; In the formula, and These are the weighting coefficients, and ; It is a mixed loss function; It is a binary cross-entropy loss function; This is the Dice loss function.

[0007] In some optional embodiments, the redesigned skip connection structure between the encoder and decoder generates the decoder's node feature map according to the following formula: ; In the formula, For node feature maps, For convolution operations, For downsampling, For downsampling, This is a feature map stitching operation. i Let be the depth of the node in the skip connection. j The width of the node in the jump connection.

[0008] In some optional embodiments, the ConvNeXt V2 module includes a deep convolutional layer, a first point convolutional layer, an activation function layer, a global response normalization layer, and a second point convolutional layer.

[0009] In some optional embodiments, the convolutional attention module (CBAM) specifically operates as follows: The convolutional attention module sequentially performs channel attention weighting and spatial attention weighting on the input feature map. The channel attention weighting is achieved by performing global average pooling and global max pooling on the input feature map, resulting in two pooled features. The two pooled feature vectors are then input into a shared fully connected layer to generate a channel weight map. The channel weight map is then multiplied element-wise with the input feature map to obtain a channel-weighted feature map. The spatial attention weighting is achieved by performing global average pooling and global max pooling on the channel-weighted feature map along the channel dimension, resulting in two two-dimensional feature maps. The two two-dimensional feature maps are concatenated and passed through a convolutional layer to generate a spatial weight map. The spatial weight map is then multiplied element-wise with the channel-weighted feature map to obtain the final weighted feature map.

[0010] In some optional embodiments, the calculation formulas for the channel attention weighting and spatial attention weighting are as follows: ; ; In the formula, This is a channel attention map. This is a spatial attention map. For activation function, For a shared connection layer, AvgPool For global average pooling, MaxPool For global max pooling, F is the channel attention-weighted input feature map. Input feature maps weighted for spatial attention. This is a convolution operation.

[0011] Embodiments of the present invention also provide a computer device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the above-described farmland plot identification method.

[0012] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when run by a processor, is capable of executing the above-described farmland plot identification method.

[0013] The farmland plot identification method provided by this invention has at least the following beneficial effects: The farmland plot identification method provided by this invention addresses the practical challenges of scattered, diverse, blurred, and complex backgrounds of farmland plots in high-resolution remote sensing images, proposing a complete deep identification scheme. This scheme achieves efficient extraction of farmland features, deep fusion of multi-scale information, and synergistic optimization of identification accuracy and computational efficiency, thereby significantly improving the completeness and spatial accuracy of farmland plot extraction. It can effectively support large-scale, automated, and highly reliable farmland monitoring and management tasks. Attached Figure Description

[0014] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings: Figure 1 This is a flowchart of a method for identifying farmland plots according to an embodiment of the present invention; Figure 2 This is a data augmentation diagram provided according to an embodiment of the present invention; Figure 3 This is a schematic diagram of a farmland plot identification model provided according to an embodiment of the present invention; Figure 4 This is an example diagram of the ConvNeXt V2 module provided according to an embodiment of the present invention; Figure 5 This is a schematic diagram of a Convolutional Block Attention (CBAM) module according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the module-by-module ablation results provided according to an embodiment of the present invention; Figure 7 This is a schematic diagram of the comparative experimental visualization results provided according to an embodiment of the present invention; Figure 8 This is a schematic diagram of farmland plot identification and mapping results provided according to an embodiment of the present invention. Detailed Implementation

[0015] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0016] One embodiment of the present invention relates to a method for identifying farmland plots. The implementation details of the farmland plot identification method of this embodiment are described in detail below. The following content is only for the convenience of understanding and is not necessary for implementing this solution.

[0017] The specific process of the farmland plot identification method in this embodiment can be described as follows: Figure 1 As shown, it includes: Step 101: Acquire satellite or aerial remote sensing image data; Taking a county in China as the core research area, the area is flat with concentrated arable land, covering an area of ​​approximately 4153.33 square kilometers. The farmland is mainly dryland farmland such as corn and soybeans, and is characterized by a combination of contiguous plots and scattered shelterbelts and irrigation canals, which is suitable for verifying the model's ability to identify farmland plots in complex backgrounds.

[0018] Experimental data was obtained from Sentinel-2 Level-2A imagery on a specified date (e.g., September 15, 2024) using the Google Earth Engine (GEE) cloud platform. Preprocessing, including radiometric calibration, atmospheric correction, and orthorectification, ensured data quality. Subsequently, farmland areas in the imagery were manually labeled using visual interpretation in ArcGIS software, generating .shp format vector plot files, which were then converted to .tif format binary mask labels. To adapt to the model input, a sliding window cropping method was used to uniformly crop the entire image and its corresponding labels into 256×256 pixel sample blocks, with a window overlap rate set to 0.1 (i.e., 25.6 pixels overlap) to reduce the loss of plot information during the cropping process. Based on this, invalid samples with less than 30% farmland pixel ratio and abnormal samples with cloud shadows or noise were removed according to the initial mask, retaining high-quality valid samples. To further improve the model's generalization ability, data augmentation was performed on the valid samples, such as... Figure 2 As shown, the image includes horizontal flipping, vertical flipping, and diagonal mirroring. Ultimately, a total of 5764 valid sample images were constructed, providing a foundation for the training and evaluation of the farmland plot recognition model.

[0019] Step 102: Input satellite or aerial remote sensing image data into the pre-trained farmland plot recognition model and output farmland plot recognition results; wherein, the farmland plot recognition model is an improved model based on the UNet++ architecture, the encoder of the farmland plot recognition model adopts ConvNeXt V2 modules, and a convolutional attention module CBAM is embedded at the output of each ConvNeXt V2 module, a multi-scale feature aggregation layer is added after each decoder, and the skip connection structure between the encoder and decoder is redesigned; the skip connection structure ensures that the output features of all intermediate feature nodes in the horizontal hierarchy of each decoder are only passed to the final output node of that level; The ConvNeXt V2 module performs multi-level feature extraction on satellite or aerial remote sensing image data to obtain multi-scale feature representations of the image. The convolutional attention module CBAM performs channel attention weighting and spatial attention weighting on the multi-scale feature representations to output feature maps that enhance semantic and spatial information. The decoder receives features from each stage of the encoder through a skip connection structure and gradually restores spatial resolution by combining upsampling operations. The multi-scale feature aggregation layer upsamples the feature maps generated by all output nodes of the decoder and then stitches them together to output farmland plot identification results with clear boundaries and complete structure.

[0020] Farmland plot identification model, such as Figure 3 As shown in the figure, the encoder of the farmland plot recognition model uses ConvNeXt V2 modules, and a convolutional attention module CBAM is embedded at the output of each ConvNeXt V2 module. The decoder integrates a multi-scale feature aggregation layer, and the skip connection structure between the encoder and decoder has been redesigned.

[0021] The sample dataset prepared in step 101 is input into a farmland plot identification model (called CSCNet) based on an improved UNet++ architecture for training, and the trained model is then used for farmland plot identification. The core architecture of this improved model is as follows: The encoder replaces the original UNet++ encoder entirely with ConvNeXt V2 modules. In a preferred embodiment, the encoder uses a ConvNeXt-Tiny configuration. The ConvNeXt V2 module includes a deep convolutional layer, a first point convolutional layer, an activation function layer, a global response normalization layer, and a second point convolutional layer. This encoder comprises four stages, with the ConvNeXt V2 blocks in each stage stacked in a 3:3:9:3 ratio. The number of channels in the output feature map is 96, 192, 384, and 768, respectively. This design aims to enhance feature representation capabilities through a deep network structure to capture the details and semantic information of farmland plots and their internal regions in satellite imagery. The ConvNeXt V2 module is as follows: Figure 4As shown in the figure, the input (256×256×3) first goes through convolution and layer normalization to enter stage 1 (64×64×96). Subsequently, it is processed through multiple downsampling + ConvNeXt V2 blocks (including depthwise convolution, GELU, full-layer response normalization layers, etc.) to stage 2 (32×32×192), stage 3 (16×16×384), and stage 4 (8×8×768). Finally, it is output after global average pooling and layer normalization. The whole process is a typical visual encoder process of "downsampling + feature block stacking".

[0022] Attention mechanism: A convolutional attention module (CBAM) is embedded at the output of each ConvNeXt V2 module. The CBAM is as follows: Figure 5 As shown, CBAM sequentially performs channel attention weighting and spatial attention weighting on the input feature map, enabling the model to adaptively focus on feature channels and spatial locations related to farmland plots and regions, thereby effectively suppressing interference from complex backgrounds such as roads and buildings. Channel attention weighting involves performing global average pooling and global max pooling on the input feature map to obtain two pooled feature vectors. These vectors are then fed into a shared fully connected layer to generate a channel weight map, which is then multiplied element-wise with the input feature map to obtain the channel-weighted feature map. Spatial attention weighting further performs global average pooling and global max pooling on the channel-weighted feature map along the channel dimension, resulting in two two-dimensional feature maps. These are concatenated and passed through a convolutional layer to generate a spatial weight map. Finally, this weight map is multiplied element-wise with the channel-weighted feature map to output the weighted feature map. The calculation formulas for channel attention weighting and spatial attention weighting are as follows: ; ; In the formula, This is a channel attention map. This is a spatial attention map. For activation function, For a shared connection layer, AvgPool For global average pooling, MaxPool For global max pooling, F is the channel attention-weighted input feature map. Input feature maps weighted for spatial attention. This is a convolution operation.

[0023] Decoder and Skip Connections: The dense skip connection structure between the encoder and decoder in the original UNet++ model was redesigned. The new connection rule stipulates that in any horizontal layer of the decoder, the output features of all intermediate feature nodes within that layer are only passed to the final output node of that layer. This design simplifies the connection path, reduces computational complexity, and enables effective selection and fusion of key features.

[0024] The formula for generating node feature maps using skip connections is as follows: ; In the formula, For node feature maps, For convolution operations, For downsampling, For downsampling, This is a feature map stitching operation. i Let be the depth of the node in the skip connection. j The width of the node in the jump connection.

[0025] Multi-scale feature aggregation: At the end of the decoder, a multi-scale feature aggregation layer is integrated. This layer aggregates features from multiple different depths (e.g., corresponding to feature maps) in the decoder. x 0,4 ,x 1,3 ,x 2,2 ,x 3,1 The output feature map of the node is upsampled (e.g., 2x, 4x, and 8x upsampling respectively), and all upsampled feature maps are aggregated (e.g., stitched together) to achieve deep fusion of multi-scale features and improve the ability to identify fragmented and ambiguous plots.

[0026] Loss function: To overcome the class imbalance problem where farmland pixels are far fewer than non-farmland pixels, a hybrid loss function L is used during model training. com The mixed loss function is a weighted sum of the binary cross-entropy loss function and the Dice loss function, expressed as: ; In the formula, and These are the weighting coefficients, and ; It is a mixed loss function; It is a binary cross-entropy loss function; The Dice loss function is used. Experiments were conducted to verify the appropriate weight coefficients for the farmland extraction task. , The model performs optimally at that time.

[0027] Once the model is trained, it can be used for inference and recognition: input the satellite or aerial remote sensing image data to be identified into this pre-trained farmland plot recognition model, and the model will automatically output the corresponding farmland plot recognition result map (i.e., binary segmentation map).

[0028] A specific example: To verify the effectiveness of the farmland plot identification model (referred to as CSCNet) proposed in this invention, a systematic experiment was conducted.

[0029] To evaluate the impact of ConvNeXt V2, the redesigned skip connection structure, CBAM attention, and the hybrid loss function on model performance, the extraction effects of adding these four methods sequentially to the model in this study were tested on a county dataset. The ablation results of individual modules are shown in Table 1. The experimental results show that the model's precision, recall, F1 score, and intersection-over-union (IoU) all improved after each addition.

[0030] Table 1 Ablation results of a single module

[0031] The results of module-by-module ablation are as follows Figure 6 As shown in the figure, the first C in CSCNet represents the addition of the ConvNeXt V2 module, S represents the addition of a multi-scale fusion structure with redesigned skip connections and lateral output layers, and the second C represents the boundary optimization structure of CBAM attention and fusion loss function.

[0032] The results show that ConvNeXt V2 is the cornerstone of performance improvement, and the multi-scale fusion and boundary optimization modules further enhance the model's ability to accurately locate farmland plots and capture complex details.

[0033] CSCNet was compared with mainstream models such as PSPNet, SegNet, DeepLab V3+, UNet++, TransUNet, and SeaFormer on the same dataset. The results of the comparison experiment are shown in Table 2. Table 2 Comparison of experimental results

[0034] CSCNet significantly outperformed other comparative models across four evaluation metrics: precision (95.71%), recall (93.75%), F1 score (94.72%), and intersection-over-union (IoU) (90.17%). Visualization results of the comparative experiments are shown below. Figure 7 As shown in the figure, CSCNet performs best in terms of plot smoothness, small farmland plot identification, and plot adhesion suppression.

[0035] Applying CSCNet to Sentinel-2 imagery covering the entire county yielded the following results for farmland plot identification and mapping: Figure 8As shown in the figure, the results demonstrate that the model can completely reconstruct large areas of farmland, with smooth plots and clear spatial layout, making it suitable for practical applications such as macro-level land use analysis and arable land monitoring and management.

[0036] The steps of the various methods described above are only for clarity. In practice, they can be combined into one step or some steps can be split into multiple steps. As long as they include the same logical relationship, they are all within the protection scope of this invention. Adding insignificant modifications or introducing insignificant designs to the algorithm or process, without changing the core design of the algorithm and process, are also within the protection scope of this invention.

[0037] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the method embodiments described above.

[0038] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0039] Those skilled in the art will understand that the above embodiments are specific embodiments for implementing the present invention, and in practical applications, various changes can be made to them in form and detail without departing from the spirit and scope of the present invention.

Claims

1. A method for identifying farmland plots, characterized in that, The method comprises: acquiring satellite or aerial remote sensing image data; inputting the satellite or aerial remote sensing image data into a pre-trained farmland plot recognition model to output a farmland plot recognition result; The farmland plot recognition model is an improved model based on a UNet++ architecture, all encoders of the farmland plot recognition model adopt ConvNeXt V2 modules, a convolution attention module CBAM is embedded at the output end of each ConvNeXt V2 module, a multi-scale feature aggregation layer is added after each decoder, and the skip connection structure between the encoder and the decoder is redesigned; the skip connection structure causes the output features of all intermediate feature nodes in the transverse level of each decoder to be transmitted only to the final output node of the level; The ConvNeXt V2 module performs multi-level feature extraction on the satellite or aerial remote sensing image data to obtain a multi-scale feature representation of the image; the convolution attention module CBAM performs channel attention weighting and spatial attention weighting on the multi-scale feature representation to output a feature map with enhanced semantic and spatial information; the decoder receives the features at each stage of the encoder through the skip connection structure and gradually restores the spatial resolution in combination with the upsampling operation; the multi-scale feature aggregation layer splices the feature maps generated by all output nodes of the decoder after being upsampled to output a farmland plot recognition result with clear boundaries and complete structure.

2. The farmland plot identification method according to claim 1, characterized by, The farmland plot recognition model is trained by a hybrid loss function, and the specific process is as follows: The hybrid loss function is a weighted sum of a binary cross-entropy loss function and a Dice loss function, and is expressed as: ; wherein and are weight coefficients, and ; is a hybrid loss function; is a binary cross-entropy loss function; is a Dice loss function.

3. The farmland plot identification method of claim 1, wherein The skip connection structure between the encoder and the decoder is redesigned, and the node feature map of the decoder is generated according to the following formula: ; wherein, is a node feature map, is a convolution operation, is a down-sampling, is a down-sampling, is a feature map concatenation operation, i is a depth of a node in a skip connection, j is a width of a node in a skip connection.

4. The farmland plot identification method of claim 1, wherein The ConvNeXt V2 module includes a deep convolution layer, a first point convolution layer, an activation function layer, a global response normalization layer, and a second point convolution layer.

5. The farmland plot identification method of claim 1, wherein, The convolution attention module CBAM has the following specific process: The convolution attention module sequentially performs channel attention weighting and spatial attention weighting on the input feature map; the channel attention weighting is performed by performing global average pooling and global maximum pooling on the input feature map to obtain two pooling features; The two pooling feature vectors are input into a shared fully connected layer to generate a channel weight map; the channel weight map and the input feature map are multiplied element by element to obtain a channel weighted feature map; the spatial attention weighting is performed by performing global average pooling and global maximum pooling on the channel weighted feature map in the channel dimension to obtain two two-dimensional feature maps; the two two-dimensional feature maps are spliced and then input into a convolution layer to generate a spatial weight map, and the spatial weight map and the channel weighted feature map are multiplied element by element to obtain a final weighted feature map.

6. The farmland plot identification method according to claim 5, characterized by, The calculation formulas of the channel attention weighting and the spatial attention weighting are as follows: ; ; wherein, is a channel attention map, is a spatial attention map, is an activation function, is a shared connection layer, AvgPool is a global average pooling, MaxPool is a global max pooling, F is an input feature map weighted by channel attention, is an input feature map weighted by spatial attention, is a convolution operation.

7. A computer system, characterized by comprises: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the farmland plot identification method according to any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is capable of performing the farmland plot identification method according to any one of claims 1 to 6 when the computer program is run by the processor.

Citation Information

Patent Citations

  • Farmland parcel identification method based on optical-Ka frequency band SAR (Synthetic Aperture Radar) feature fusion

    CN120544048A

  • Liver CT image segmentation method and system based on full-scale skip connection

    WO2025020373A1