Convolutional neural network method for remote sensing image semantic segmentation integrating diffusion semantic features

By using the convolutional neural network method that fuses diffusion semantic features in the semantic segmentation of remote sensing images, combined with the attention module and the diffusion probability model, the information bottleneck problem is solved, the accuracy and efficiency of remote sensing image segmentation are improved, and the edge segmentation is significantly improved. and detail resolution.

CN118570614BActive Publication Date: 2024-10-15SHANDONG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411060071.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-15
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

In the semantic segmentation of remote sensing images, the existing technology has an information bottleneck problem, which results in the loss of small-scale and detailed features of the input remote sensing images, increases the heterogeneity and complexity of visual features, and limits the accuracy of ground object sample segmentation.

Method used

The convolutional neural network method for semantic segmentation of remote sensing images that fuses diffusion semantic features is adopted. The encoder and decoder structures are combined with attention modules, atrous convolutions, spatial pyramid pooling and diffusion probability models to adjust the number of channels and fuse multi-scale features. And use the SR3 super-resolution image generation model to generate high-quality high-resolution images to improve model performance and efficiency.

Benefits of technology

It significantly improves edge segmentation and detail resolution, enhances contour visualization and classification accuracy, alleviates the imbalance of ground object segmentation, and improves the performance and efficiency of the model in image processing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570614B_ABST
    Figure CN118570614B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of deep learning semantic segmentation, and specifically relates to a convolutional neural network method for semantic segmentation of remote sensing images that integrates diffusion semantic features. The steps include obtaining a data set of land use and land cover in a basin area based on remote sensing images; constructing a convolutional neural network model suitable for semantic segmentation based on an encoder and decoder structure; performing unsupervised training on a training set and a validation set using an SR3 super-resolution image generation model, generating a pre-trained SR3 image generation model to train a convolutional neural network model to obtain optimal parameters; and processing remote sensing image samples in a test set using a trained convolutional neural network model to generate a remote sensing semantic segmentation result map. The present invention alleviates the imbalance of ground object segmentation, improves the performance and efficiency of the model in image processing tasks, significantly improves edge segmentation and detail resolution, and enhances contour visualization and classification accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of deep learning semantic segmentation, and specifically relates to a convolutional neural network method for semantic segmentation of remote sensing images integrating diffusion semantic features. Background Art

[0002] Automatic semantic feature segmentation of remote sensing images and deep learning is a key research task in geographic information science and plays a vital role in remote sensing analysis applications. Compared with semantic segmentation based on computer vision, semantic segmentation of remote sensing images creates more complex and challenging problems. Remote sensing images usually involve vast geographical areas, where the features of objects are complex and diverse, resulting in highly heterogeneous and complex categories. This category complexity leads to challenges such as imbalance of sample categories and imbalance of object segmentation accuracy in the semantic segmentation process. These problems not only increase the difficulty of automatic semantic segmentation tasks, but also indirectly affect the accuracy and generalization ability of segmentation results. Therefore, more refined spatial information and texture details are required to achieve remote sensing semantic segmentation. In addition, the diversity of object features in morphology, texture and scale increases the difficulty of recognition and classification, which puts higher requirements on the design of automatic remote sensing image segmentation algorithms. These challenges are more obvious in large-scale land use and land cover segmentation.

[0003] In deep learning for land use and land cover segmentation, convolutional neural networks have become the mainstream framework. Various variants of convolutional neural networks, such as U-Net and Deeplab series, have improved segmentation quality by capturing multi-scale features with spatial significance and their integration capabilities. Networks with visual attention mechanisms further optimize segmentation accuracy and enhance the analysis capabilities of complex image data by fusing spatial features and channel information in remote sensing data. On the other hand, models with self-attention mechanisms, such as visual transformers, perform self-attention calculations through matrix multiplication to obtain the relationship between adjacent pixels in the image, which can effectively model global and local information in the image. Swin Transformer introduces a moving window mechanism to expand the receptive field, successfully integrates feature information at different scales, significantly improves feature extraction and content understanding capabilities in high-resolution image processing, and greatly improves land use and land cover segmentation tasks. In remote sensing semantic segmentation tasks based on convolutional neural networks and transformer architectures, feature extraction usually relies on deep networks. However, as the depth of the network increases, information loss occurs in the feedforward process of the data, forming the so-called information bottleneck. In remote sensing semantic segmentation, information bottlenecks can lead to the loss of small-scale and detail features of the input remote sensing images, increase the heterogeneity and complexity of visual features, and limit the accuracy of ground object sample segmentation. Summary of the invention

[0004] In view of the above deficiencies in the prior art, the purpose of the present invention is to provide a convolutional neural network method for semantic segmentation of remote sensing images that integrates diffuse semantic features, alleviates the imbalance of ground object segmentation, improves the performance and efficiency of the model in image processing tasks, significantly improves edge segmentation and detail resolution, and enhances contour visualization and classification accuracy.

[0005] To achieve the above objectives, the present invention provides a remote sensing image semantic segmentation convolutional neural network method integrating diffusion semantic features, comprising the following steps:

[0006] S1. Based on remote sensing images, obtain the data set of land use and land cover in the basin area, and divide the data set into training set, validation set and test set;

[0007] S2. Based on the encoder and decoder structure, a convolutional neural network model suitable for semantic segmentation is constructed. The encoder includes an attention module, a dilated convolution, a spatial pyramid pooling, a clustering module, and attention from a diffusion probability model. The decoder includes a diffusion probability model and a convolution layer. The decoder combines shallow features and deep features, adjusts the number of channels, fuses multi-scale features, and upsamples to restore to the original image size to complete the classification task.

[0008] S3, using the SR3 super-resolution image generation model to perform unsupervised training on the training set and the validation set to generate a pre-trained SR3 image generation model, generating high-quality high-resolution images based on the SR3 image generation model, and using the high-resolution images to train the convolutional neural network model to obtain optimal parameters;

[0009] S4. Use the trained convolutional neural network model to process the remote sensing image samples in the test set to generate a remote sensing semantic segmentation result map.

[0010] As a preferred solution of the present invention, in S1, the process of obtaining the land use and land cover dataset of the basin area is:

[0011] S11. Collect high-resolution remote sensing images of the basin area;

[0012] S12. Based on high-resolution remote sensing images of the basin area, typical landform features were mapped using artificial visual interpretation technology to produce a data set, which includes six typical landform types: Gobi, farmland, water body, wasteland, urban bare land and forest vegetation.

[0013] As a preferred embodiment of the present invention, in S1, the high-resolution remote sensing image is specifically a 0.59-meter high-resolution remote sensing image, and the data set is divided into a training set, a validation set, and a test set in a ratio of 6:2:2. The resolution of each image in the data set is 256×256.

[0014] As a preferred embodiment of the present invention, in S3, obtaining the optimal parameters is achieved by the following steps:

[0015] S31. Using the SR3 super-resolution image generation model, unsupervised training is performed on the 256×256 remote sensing image samples in the training set and the validation set to generate a pre-trained SR3 image generation model.

[0016] S32. Generate high-quality high-resolution images based on the SR3 image generation model, use the high-resolution images to train the convolutional neural network model, adjust the K value (the number of clusters in clustering analysis) in the clustering module through training, observe the impact of different numbers of clusters on semantic segmentation, and use the Gap statistic to determine the optimal K value.

[0017] As a preferred embodiment of the present invention, in the S31, during unsupervised training, a data enhancement strategy is used to improve the generalization performance of the SR3 super-resolution image generation model, and the data enhancement strategy includes random resizing, random horizontal flipping, and random cropping.

[0018] As a preferred embodiment of the present invention, in S32, the Gap statistic is used to determine the optimal number of clusters in cluster analysis, which is expressed as:

[0019] ;

[0020] ;

[0021] In the formula, k is the number of clusters, r=1, 2, ..., k; C j is the jth cluster; μ r Represents cluster C r The center of the sample point; X is the sample point; d represents the distance from the sample point X to μ r Distance; W k is the cluster dispersion; Indicates that in the reference distribution The expected value under ; n represents the number of data points; Represents the Gap statistic of n data points and k clusters; log is the logarithmic function;

[0022] Use the Gap statistic to evaluate and select the K value, and find the K value that maximizes the Gap function. As the optimal number of clusters, it is the optimal value of K. The argmax function is used to find the value of the independent variable that makes a function reach the maximum value.

[0023] As a preferred solution of the present invention, in said S4, the step of processing the remote sensing image samples in the test set using the trained convolutional neural network model to generate the remote sensing semantic segmentation result map is:

[0024] S41, the encoder uses dilated convolution to expand the receptive field and extract the semantic features of remote sensing image samples in the dataset;

[0025] S42, encoder uses selective convolution kernels and SK attention to capture spatial information and complex surface features in remote sensing image samples;

[0026] S43, the decoder adjusts the number of channels of the shallow features through the convolution layer to generate shallow features without reducing the resolution of the feature map;

[0027] S44, performing a splicing and fusing operation on the remote sensing image sample after the atrous convolution processing and the shallow features of the corresponding semantic features generated by the decoder to integrate the semantic features and the edge shape features;

[0028] S45. Apply the spatial pyramid pooling mechanism to further refine the texture and color detail features in remote sensing image samples and capture multi-scale semantic depth features;

[0029] S46, using the SK attention and clustering module to cluster and enhance the attention of the semantic features obtained in the previous step, using K-means clustering to cluster the deep features generated by the spatial pyramid pooling mechanism, grouping features with similar semantics, reducing redundant information in the features, determining the optimal clustering number K through the Gap statistic, and using the features processed by the SK attention and clustering modules for the final image segmentation task;

[0030] S47, the decoder uses a diffusion probability model to generate semantic features corresponding to remote sensing image samples, including shallow features and deep features;

[0031] S48, combining the deep features obtained by spatial pyramid pooling with the shallow features, and performing channel compression integration in the decoder;

[0032] S49, through upsampling operation, the integrated feature set is restored to the size of the original remote sensing image, and accurate reconstruction of land use and land cover is completed;

[0033] S410, performing final upsampling on the feature set that integrates the multi-level information, restoring it to the original remote sensing image size, and completing the pixel-by-pixel classification task;

[0034] S411. Based on the results of upsampling and classification, a semantic segmentation result map of the remote sensing image samples is generated to show the precise distribution of different land use and cover types.

[0035] As a preferred solution of the present invention, in S4, the implementation of SK attention is expressed as follows:

[0036] ;

[0037] ;

[0038] ;

[0039] ;

[0040] Where GlobalAvgPool represents global average pooling; M represents the number of convolution branches, i=1, 2, ..., M; U i Represents the feature map output by the i-th convolution branch; U represents the sum of the feature maps output by all convolution branches; S is a description of the global feature pooling output; Z is the low-dimensional space representation after feature mapping; Linear represents the fully connected layer; represents the fully connected layer of the i-th convolution branch; represents the normalized attention weight of the i-th convolution branch (Attention Weights is the normalized attention weight); is the activation function; V represents the feature map of the final output; A i represents the feature representation obtained by the fully connected layer of the i-th convolutional branch.

[0041] As a preferred solution of the present invention, in S4, the implementation of the dilated convolution is expressed as:

[0042] ;

[0043] In the formula, Represents the output feature map after the dilated convolution operation; y and x are the position coordinates on the output feature map; x represents the horizontal coordinate and y represents the vertical coordinate; dr is the dilation rate, which determines the size of the interval between adjacent elements in the convolution kernel; Indicates the specific position coordinates in the convolution kernel; Indicates that the convolution kernel is at position The weight value at .

[0044] As a preferred solution of the present invention, in S4, the implementation of the spatial pyramid pooling mechanism is expressed as follows:

[0045] ;

[0046] ;

[0047] ;

[0048] Where b i Represents the features generated by the i-th convolution branch; Represents the feature map output by the input feature map I through the i-th convolution branch; Indicates that the convolution operation is performed on the input feature map I, and the convolution kernel size is k i , the void rate is d i ; g represents the global feature branch; Represents the feature map after global average pooling, 1×1 convolution, batch normalization, ReLU activation and upsampling operations; Upsample represents upsampling operation; ReLU represents nonlinear activation function; BN represents batch normalization, which is used to accelerate model training and improve generalization ability; Represents a 1×1 convolution operation; Concat represents a concatenation operation; Represents the output feature map after the spatial pyramid pooling operation.

[0049] The algorithm involved in the present invention can be executed by an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the above algorithm calculation is implemented by executing the software by the processor.

[0050] The beneficial effects of the present invention are:

[0051] The present invention introduces the characteristics of the diffusion probability model. By integrating the features of the diffusion probability model decoder into the remote sensing semantic segmentation task, and using a machine learning clustering algorithm and a spatial attention mechanism to extract continuous diffusion probability model semantic features, the deep network combines the advantages of the diffusion probability model, thereby compensating for the problem of convolutional neural networks losing spatial details in the feature extraction process, alleviating the imbalance of ground object segmentation, and improving the performance and efficiency of the model in image processing tasks, significantly improving edge segmentation and detail resolution, and enhancing contour visualization and classification accuracy.

[0052] The segmentation effect of the present invention is better than that of the popular semantic segmentation model in the prior art, especially when processing training samples with extremely unbalanced categories. Visual analysis shows that the model of the present invention can more accurately depict feature contours and details, improving segmentation accuracy; the diffusion probability model is trained as an independent feature extractor through an unsupervised method, avoiding dependence on labeled data, and is suitable for processing large remote sensing data samples; the model weights are frozen, and only the parameters of the lightweight segmentation model are optimized, making feature migration more convenient for various types of remote sensing image segmentation; a high-resolution remote sensing image dataset with unbalanced categories for low sample density features in basin areas is created, specifically for semantic segmentation tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a flow diagram of the present invention. DETAILED DESCRIPTION

[0054] The embodiments of the present invention are further described below in conjunction with the accompanying drawings:

[0055] like Figure 1 As shown in FIG. 1 , the convolutional neural network method for semantic segmentation of remote sensing images integrating diffusion semantic features includes the following steps:

[0056] S1. Based on remote sensing images, obtain the data set of land use and land cover in the basin area, and divide the data set into training set, validation set and test set;

[0057] S2. Based on the encoder and decoder structure, a convolutional neural network model suitable for semantic segmentation is constructed. The encoder includes an attention module, a dilated convolution, a spatial pyramid pooling, a clustering module, and attention from a diffusion probability model. The decoder includes a diffusion probability model and a convolution layer. The decoder combines shallow features and deep features, adjusts the number of channels, fuses multi-scale features, and upsamples to restore to the original image size to complete the classification task.

[0058] S3, using the SR3 super-resolution image generation model to perform unsupervised training on the training set and the validation set to generate a pre-trained SR3 image generation model, generating high-quality high-resolution images based on the SR3 image generation model, and using the high-resolution images to train the convolutional neural network model to obtain optimal parameters;

[0059] S4. Use the trained convolutional neural network model to process the remote sensing image samples in the test set to generate a remote sensing semantic segmentation result map.

[0060] Among them, the SR3 super-resolution image generation model (Image Super-Resolution via IterativeRefinement) is a well-known technology.

[0061] In the field of deep generative models, frameworks such as generative adversarial networks, variational autoencoders, autoregressive models, and diffusion probabilistic models have shown significant potential in various applications such as image synthesis, super-resolution enhancement, and text-to-image and image-to-image conversion. These models can extract key features and learn the core semantics of images. In particular, the diffusion generative model (an application of the diffusion probabilistic model) uses Markov chains and Lanvin dynamics to demonstrate excellent performance in learning complex data distributions. The model has achieved remarkable results in high-resolution image generation and is able to generate realistic images and ground features.

[0062] In S1, the process of obtaining the land use and land cover dataset of the basin area is as follows:

[0063] S11. Based on Mapbox, collect high-resolution remote sensing images of the basin area. Mapbox is a platform that provides geographic information data for mobile and web applications. It provides a variety of online maps and map style designers, and provides location search services, navigation services and their APIs, and supports a variety of map data sources, including satellite images. Other well-known channels can also be used to obtain high-resolution remote sensing images of the basin area.

[0064] S12. Based on high-resolution remote sensing images of the basin area, typical landform features are drawn using artificial visual interpretation technology to produce a data set, which includes six typical landform types: Gobi, farmland, water body, wasteland, urban bare land and forest vegetation. Typical landform features can also be obtained based on other well-known technologies.

[0065] In S1, the high-resolution remote sensing image is specifically a 0.59-meter high-resolution remote sensing image. The data set is divided into a training set, a validation set, and a test set in a ratio of 6:2:2. The resolution of each image in the data set is 256×256.

[0066] For example, in a specific semantic segmentation task, the training set contains 11232 images, the validation set contains 3742 images, and the test set contains 3742 images.

[0067] In S3, the optimal parameters are obtained by the following steps:

[0068] S31. Using the SR3 super-resolution image generation model, unsupervised training is performed on the 256×256 remote sensing image samples in the training set and the validation set to generate a pre-trained SR3 image generation model.

[0069] S32. Generate high-quality high-resolution images based on the SR3 image generation model, use the high-resolution images to train the convolutional neural network model, adjust the K value in the clustering module through training, observe the impact of different numbers of clusters on semantic segmentation, and use the Gap statistic to determine the optimal K value.

[0070] The results show that when K=5, the Gap statistic reaches its maximum value, which can generate semantic features with the most ground-truth characteristics and the least noise.

[0071] In S31, during unsupervised training, a data enhancement strategy is used to improve the generalization performance of the SR3 super-resolution image generation model. The data enhancement strategy includes random resizing, random horizontal flipping, and random cropping.

[0072] In S32, the Gap statistic is used to determine the optimal number of clusters in cluster analysis, expressed as:

[0073] ;

[0074] ;

[0075] In the formula, k is the number of clusters; C j is the jth cluster; μ r Represents cluster C r The center of the sample point; X is the sample point; d represents the distance from the sample point X to μ r Distance; W k is the cluster dispersion; Indicates that in the reference distribution The expected value under ; n represents the number of data points; Represents the Gap statistic for n data points and k clusters;

[0076] Use the Gap statistic to evaluate and select the K value, and find the K value that maximizes the Gap function. As the optimal number of clusters, it is the optimal K value.

[0077] In S4, the trained convolutional neural network model is used to process the remote sensing image samples in the test set to generate the remote sensing semantic segmentation result map in the following steps:

[0078] S41, the encoder uses dilated convolution to expand the receptive field and extract the semantic features of remote sensing image samples in the dataset;

[0079] S42, encoder uses selective convolution kernels and SK attention to capture spatial information and complex surface features in remote sensing image samples;

[0080] S43, the decoder adjusts the number of channels of the shallow features through the convolution layer to generate shallow features without reducing the resolution of the feature map;

[0081] S44, performing a splicing and fusing operation on the remote sensing image sample after the atrous convolution processing and the shallow features of the corresponding semantic features generated by the decoder to integrate the semantic features and the edge shape features;

[0082] S45. Apply the spatial pyramid pooling mechanism to further refine the texture and color detail features in remote sensing image samples and capture multi-scale semantic depth features;

[0083] S46, using the SK attention and clustering module to cluster and enhance the attention of the semantic features obtained in the previous step, using K-means clustering to cluster the deep features generated by the spatial pyramid pooling mechanism, grouping features with similar semantics, reducing redundant information in the features, determining the optimal clustering number K through the Gap statistic, and using the features processed by the SK attention and clustering modules for the final image segmentation task;

[0084] S47, the decoder uses a diffusion probability model to generate semantic features corresponding to remote sensing image samples, including shallow features and deep features;

[0085] S48, combining the deep features obtained by spatial pyramid pooling with the shallow features, and performing channel compression integration in the decoder;

[0086] S49, through upsampling operation, the integrated feature set is restored to the size of the original remote sensing image, and accurate reconstruction of land use and land cover is completed;

[0087] S410, performing final upsampling on the feature set that integrates the multi-level information, restoring it to the original remote sensing image size, and completing the pixel-by-pixel classification task;

[0088] S411. Based on the results of upsampling and classification, a semantic segmentation result map of the remote sensing image samples is generated to show the precise distribution of different land use and cover types.

[0089] In S4, the implementation of SK attention is expressed as:

[0090] ;

[0091] ;

[0092] ;

[0093] ;

[0094] In the formula, GlobalAvgPool represents global average pooling; M represents the number of convolution branches; U i Represents the feature map output by the i-th convolution branch; U represents the sum of the feature maps output by all convolution branches; S is a description of the global feature pooling output; Z is the low-dimensional space representation after feature mapping; Linear represents the fully connected layer; represents the fully connected layer of the i-th convolution branch; represents the normalized attention weight of the i-th convolution branch; Softmax is the activation function; V represents the feature map of the final output; A i represents the feature representation obtained by the fully connected layer of the i-th convolutional branch.

[0095] In S4, the implementation of dilated convolution is expressed as:

[0096] ;

[0097] In the formula, Represents the output feature map after the dilated convolution operation; y and x are the position coordinates on the output feature map; x represents the horizontal coordinate and y represents the vertical coordinate; dr is the dilation rate, which determines the size of the interval between adjacent elements in the convolution kernel; Indicates the specific position coordinates in the convolution kernel; Indicates that the convolution kernel is at position The weight value at .

[0098] In S4, the implementation of the spatial pyramid pooling mechanism is expressed as:

[0099] ;

[0100] ;

[0101] ;

[0102] Where b i Represents the features generated by the i-th convolution branch; Represents the feature map output by the input feature map I through the i-th convolution branch; Indicates that the convolution operation is performed on the input feature map I, and the convolution kernel size is k i , the void rate is d i ; g represents the global feature branch; Represents the feature map after global average pooling, 1×1 convolution, batch normalization, ReLU activation and upsampling operations; Upsample represents upsampling operation; ReLU represents nonlinear activation function; BN represents batch normalization, which is used to accelerate model training and improve generalization ability; Represents a 1×1 convolution operation; Concat represents a concatenation operation; Represents the output feature map after the spatial pyramid pooling operation.

Claims

1. A convolutional neural network method for semantic segmentation of remote sensing images integrating diffusion semantic features, characterized by The following steps are involved: S1. Based on remote sensing images, obtain the data set of land use and land cover in the basin area, and divide the data set into training set, validation set and test set; S2. Based on the encoder and decoder structure, a convolutional neural network model suitable for semantic segmentation is constructed. The encoder includes an attention module, a dilated convolution, a spatial pyramid pooling, a clustering module, and attention from a diffusion probability model. The decoder includes a diffusion probability model and a convolution layer. The decoder combines shallow features and deep features, adjusts the number of channels, fuses multi-scale features, and upsamples to restore to the original image size to complete the classification task. S3, using the SR3 super-resolution image generation model to perform unsupervised training on the training set and the validation set to generate a pre-trained SR3 image generation model, generating high-quality high-resolution images based on the SR3 image generation model, and using the high-resolution images to train the convolutional neural network model to obtain optimal parameters; S4, using the trained convolutional neural network model to process the remote sensing image samples in the test set to generate a remote sensing semantic segmentation result map; In S3, obtaining the optimal parameters is achieved by the following steps: S31, the resolution of each image in the dataset is 256×256. The SR3 super-resolution image generation model is used to perform unsupervised training on the 256×256 remote sensing image samples in the training set and the validation set to generate a pre-trained SR3 image generation model; S32. Generate high-quality high-resolution images based on the SR3 image generation model, use the high-resolution images to train the convolutional neural network model, adjust the K value in the clustering module through training, observe the impact of different cluster numbers on semantic segmentation, and use the Gap statistic to determine the optimal K value; In the S31, during unsupervised training, a data enhancement strategy is used to improve the generalization performance of the SR3 super-resolution image generation model, and the data enhancement strategy includes random resizing, random horizontal flipping, and random cropping; In S32, the Gap statistic is used to determine the optimal number of clusters in cluster analysis, and is expressed as: ; ; In the formula, k is the number of clusters; C j is the jth cluster; μ r Represents cluster C r The center of the sample point; X is the sample point; d represents the distance from the sample point X to μ r Distance; W k is the cluster dispersion; Indicates that in the reference distribution The expected value under ; n represents the number of data points; Represents the Gap statistic for n data points and k clusters; Use the Gap statistic to evaluate and select the K value, and find the K value that maximizes the Gap function. As the optimal number of clusters, it is the optimal K value.

2. The remote sensing image semantic segmentation convolutional neural network method integrating diffusion semantic features according to claim 1 is characterized in that: In S1, the process of obtaining the land use and land cover dataset of the basin area is as follows: S11. Collect high-resolution remote sensing images of the basin area; S12. Based on high-resolution remote sensing images of the basin area, typical landform features were mapped using artificial visual interpretation technology to produce a data set, which includes six typical landform types: Gobi, farmland, water body, wasteland, urban bare land and forest vegetation.

3. The remote sensing image semantic segmentation convolutional neural network method integrating diffusion semantic features according to claim 2 is characterized in that: In S1, the high-resolution remote sensing image is specifically a 0.59-meter high-resolution remote sensing image. The data set is divided into a training set, a validation set, and a test set in a ratio of 6:2:

2. The resolution of each image in the data set is 256×256.

4. The remote sensing image semantic segmentation convolutional neural network method integrating diffusion semantic features according to claim 1 is characterized in that: In the above S4, the steps of processing the remote sensing image samples in the test set using the trained convolutional neural network model to generate a remote sensing semantic segmentation result map are as follows: S41, the encoder uses dilated convolution to expand the receptive field and extract the semantic features of remote sensing image samples in the dataset; S42, encoder uses selective convolution kernels and SK attention to capture spatial information and complex surface features in remote sensing image samples; S43, the decoder adjusts the number of channels of the shallow features through the convolution layer to generate shallow features without reducing the resolution of the feature map; S44, performing a splicing and fusing operation on the remote sensing image sample after the atrous convolution processing and the shallow features of the corresponding semantic features generated by the decoder to integrate the semantic features and the edge shape features; S45. Apply the spatial pyramid pooling mechanism to further refine the texture and color detail features in remote sensing image samples and capture multi-scale semantic depth features; S46, using the SK attention and clustering module to cluster and enhance the attention of the semantic features obtained in the previous step, using K-means clustering to cluster the deep features generated by the spatial pyramid pooling mechanism, grouping features with similar semantics, reducing redundant information in the features, determining the optimal clustering number K through the Gap statistic, and using the features processed by the SK attention and clustering modules for the final image segmentation task; S47, the decoder uses a diffusion probability model to generate semantic features corresponding to remote sensing image samples, including shallow features and deep features; S48, combining the deep features obtained by spatial pyramid pooling with the shallow features, and performing channel compression integration in the decoder; S49, through upsampling operation, the integrated feature set is restored to the size of the original remote sensing image, and accurate reconstruction of land use and land cover is completed; S410, performing final upsampling on the feature set that integrates the multi-level information, restoring it to the original remote sensing image size, and completing the pixel-by-pixel classification task; S411. Based on the results of upsampling and classification, a semantic segmentation result map of the remote sensing image samples is generated to show the precise distribution of different land use and cover types.

5. The remote sensing image semantic segmentation convolutional neural network method integrating diffusion semantic features according to claim 4 is characterized in that: In S4, the implementation of SK attention is expressed as: ; ; ; ; In the formula, GlobalAvgPool represents global average pooling; M represents the number of convolution branches; U i represents the feature map output by the i-th convolution branch; U represents the sum of the feature maps output by all convolution branches; S is a description of the global feature pooling output; Z is the low-dimensional space representation after feature mapping; Linear represents the fully connected layer; represents the fully connected layer of the i-th convolution branch; represents the normalized attention weight of the i-th convolution branch; Softmax is the activation function; V represents the feature map of the final output; A i represents the feature representation obtained by the fully connected layer of the i-th convolutional branch.

6. The remote sensing image semantic segmentation convolutional neural network method integrating diffusion semantic features according to claim 4 is characterized in that: In S4, the implementation of the dilated convolution is expressed as: ; In the formula, Represents the output feature map after the dilated convolution operation; y and x are the position coordinates on the output feature map; x represents the horizontal coordinate and y represents the vertical coordinate; dr is the dilation rate, which determines the size of the interval between adjacent elements in the convolution kernel; Represents the specific position coordinates in the convolution kernel; Indicates that the convolution kernel is at position The weight value at .

7. The remote sensing image semantic segmentation convolutional neural network method integrating diffusion semantic features according to claim 4 is characterized in that: In S4, the implementation of the spatial pyramid pooling mechanism is expressed as follows: ; ; ; Where b i Represents the features generated by the i-th convolution branch; Represents the feature map output by the input feature map I through the i-th convolution branch; Indicates that the convolution operation is performed on the input feature map I, and the convolution kernel size is k i , the void rate is d i ; g represents the global feature branch; Represents the feature map after global average pooling, 1×1 convolution, batch normalization, ReLU activation and upsampling operations; Upsample represents upsampling operation; ReLU represents nonlinear activation function; BN represents batch normalization, which is used to accelerate model training and improve generalization ability; Represents a 1×1 convolution operation; Concat represents a concatenation operation; Represents the output feature map after the spatial pyramid pooling operation.