Scene situation generation method based on remote sensing image change detection

Through the combination of Swin Transformer and graph convolution network, it solves the shortcomings of single machine vision understanding in remote sensing scene situation generation, achieves rapid and accurate situation generation of remote sensing changing scenes, and solves the problem of false changes caused by cloud and fog occlusion and seasonal changes. , improving the comprehensiveness and accuracy of detection.

CN118736431AActive Publication Date: 2024-10-01BEIJING SATELLITE INFORMATION ENG RES INST

Patent Information

Application Number
CN202410739940.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-01
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

Existing remote sensing scene situation generation technology relies on a single machine vision understanding, which is not very practical and difficult to quickly, accurately and comprehensively detect changes in remote sensing images, resulting in false changes such as cloud and fog obstruction, seasonal changes, and missed detection of changing objects.

Method used

The dual-branch U-net change detection network and graph convolutional neural network based on Swin Transformer are used to construct edge sets and adjacency matrices through change detection of dual-temporal remote sensing images, and graph convolution and attention mechanisms are used to model spatial relationships. Carry out multi-task synchronous training and generate scene situations.

Benefits of technology

It realizes the automatic generation of remote sensing changing scenes, improves the level of situational awareness, can effectively eliminate false changes, improves the accuracy and comprehensiveness of detection, and is suitable for scientific decision-making in agriculture, environment, transportation and other fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736431A_ABST
    Figure CN118736431A_ABST
Patent Text Reader

Abstract

The invention relates to a scene situation generation method based on remote sensing image change detection, and the method comprises the steps: obtaining two high-resolution satellite remote sensing images of different time phases in the same region, and carrying out the preprocessing; a double-branch U-net change detection network based on a Swin Transform is constructed, and change detection is carried out on the two high-resolution satellite remote sensing images of different time phases; modeling the spatial relationship according to the boundary information of the changed surface features output by the change detection network, constructing a graph convolutional neural network, and generating an edge set and an adjacent matrix; training the graph convolutional neural network by using a manually labeled remote sensing change detection data set to obtain a scene situation generation model based on remote sensing image change detection; and testing the data in the test set by using the trained scene situation generation model based on remote sensing image change detection to obtain the situation of the remote sensing change image. According to the method, rich semantic information of the dual-temporal remote sensing image is fully utilized, and the change scene situation is automatically generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of remote sensing image processing, and in particular to a scene situation generation method based on remote sensing image change detection. Background Art

[0002] Remote sensing image change detection refers to the detection of the difference between a remote sensing image of one time phase and a reference image of another time phase. With the rapid development of earth observation technology, the temporal resolution of remote sensing imaging has been rapidly improved, providing a rich data source for remote sensing ground object change monitoring. However, in the current field of remote sensing change detection, there are still problems such as pseudo changes in observed targets caused by cloud and fog occlusion, seasonal changes, and missed detection caused by the fact that the changed object occupies fewer pixels in a large-scale remote sensing scene.

[0003] Remote sensing scene situation generation refers to the generation of scene development situation by analyzing the differences in ground object changes based on remote sensing images observed at different times through methods such as change detection. It is conducive to the rapid extraction of information on ground object changes in large remote sensing scenes, the transmission of ground object change information, and the interpretation of the content of the changing scenes. It aims to provide guidance for scientific decision-making in the fields of agriculture, environment, and transportation. With the development of remote sensing technology, the number of remote sensing satellites has increased several times each year. Both the temporal resolution and spatial resolution of remote sensing images have been greatly increased, providing a richer and more reliable data source for scene situation generation. However, the current remote sensing scene situation generation technology still mainly relies on a single machine vision understanding, which is not very practical. It is urgent to have a fast, accurate, and comprehensive situation generation method based on change detection to improve the situation cognition level of remote sensing change scenes. Summary of the invention

[0004] In order to solve the technical problems existing in the above-mentioned prior art, the purpose of the present invention is to provide a scene situation generation method based on remote sensing image change detection, which can generate the situation of a remote sensing scene with changing objects within a period of time.

[0005] To achieve the above-mentioned object of the invention, the present invention provides a scene situation generation method based on remote sensing image change detection, comprising the following steps:

[0006] Step S1, obtaining two high-resolution satellite remote sensing images of the same area at different phases and performing preprocessing;

[0007] Step S2, constructing a dual-branch U-net change detection network based on Swin Transformer to perform change detection on the two high-resolution satellite remote sensing images in different phases;

[0008] Step S3, modeling the spatial relationship according to the boundary information of the changed objects output by the change detection network, constructing a graph convolutional neural network, and generating an edge set and an adjacency matrix;

[0009] Step S4: Use the manually annotated remote sensing change detection dataset to train the graph convolutional neural network to obtain a scene situation generation model based on remote sensing image change detection;

[0010] Step S5: Using the trained scene situation generation model based on remote sensing image change detection, the data in the test set is tested to obtain the situation of the remote sensing change image.

[0011] According to a technical solution of the present invention, in step S1, after acquiring two high-resolution satellite remote sensing images of the same area at different phases, the images are divided into blocks and processed into images of size 256×256, and the two high-resolution satellite remote sensing images at different phases are preprocessed.

[0012] The preprocessing includes at least data enhancement, cloud and fog simulation, season simulation, and environmental noise simulation.

[0013] According to a technical solution of the present invention, the step S2 specifically includes:

[0014] Step S21, performing spot segmentation and linear embedding on the preprocessed image respectively;

[0015] Step S22, constructing a dual-branch U-net change detection network based on Swin Transformer as the backbone network of the change detection part;

[0016] Step S23, using the dual-branch three-stage encoder part of the backbone network to extract features of the dual-phase remote sensing images step by step and convert them into feature tokens;

[0017] Step S24, inputting the highest-level features extracted by the dual-branch encoder into a feature fusion module to fuse the dual-phase feature graph;

[0018] Step S25, using the three-level decoder part of the backbone network to sequentially fuse the features of each level extracted by the encoder, gradually restore the change information, and obtain the change information with both high-level features and low-level features, and the change information change category, change type and change position;

[0019] Step S26: perform the last upsampling, insert the channel attention module to reduce information loss, and output change detection information.

[0020] According to a technical solution of the present invention, step S3 specifically includes:

[0021] Step S31: Treat the changed objects of various types of ground features as nodes V = [v1, v2, v3, ... v n ], the change type and change state of the features are used as node features, and the spatial distance between each node is defined as the edge E = [e1, e2, e3, ... e n ], get the node set V and edge set E, and construct the graph neural network G = {V, E};

[0022] Step S32: introducing the boundary position information of the changed object (box), box i =[y1,x1,y2,x2] To model the spatial relationship, normalize the location information of each variable feature, generate the edge set E and the adjacency matrix A, then:

[0023]

[0024] e ij =∥∥d i -d j ∥∥,

[0025]

[0026] Among them, w and h are the width and height of the remote sensing image, e ij is the edge between the changing features i and j, a ij is an element of the adjacency matrix A;

[0027] Step S33: construct the degree matrix D and the Laplace matrix L based on the adjacency matrix:

[0028]

[0029]

[0030] Construct the weight matrix W, combine the Laplacian matrix and the adjacency matrix to update the node features, and the formula for graph convolution is as follows:

[0031]

[0032] Where σ is a nonlinear activation function, the parameters of W are learned by gradient descent and randomly initialized, and Z is represented as the output;

[0033] Step S34: Introduce the attention mechanism, assuming that any node v in the constructed remote sensing image scene content graph i The corresponding feature vector at layer l is h i After the representation information feature aggregation of the edges of adjacent nodes with the attention mechanism as the core, the new representation information is h i ′,

[0034] Set the center node to vi , then assume that the neighbor node v j to v i The weight coefficient is:

[0035]

[0036] Among them, W and α are the shared weight matrix and the parameters to be learned respectively, then the output of the whole layer of attention network is as follows:

[0037]

[0038] According to a technical solution of the present invention, the step S4 specifically includes:

[0039] Step S41, dividing the manually annotated dual-temporal remote sensing change detection dataset into a training set, a validation set, and a test set according to a preset ratio;

[0040] Step S42, preprocessing the remote sensing images in the training set to obtain preprocessed images;

[0041] Step S43: Select a weighted binary cross entropy loss function for the change detection part, then:

[0042]

[0043] Among them, y i For the input instance x i The true category, p i Input instance x for prediction i The probability of belonging to 1, β is the weight parameter;

[0044] Step S44: Select the cross entropy loss function for the graph convolutional neural network, then:

[0045]

[0046] The overall network loss function is the weighted average of the two loss functions, using the hyperparameter γ to balance the weights of different tasks. The calculation formula is as follows:

[0047] L = (1-γ) loss class (Y,P)+γloss scene ;

[0048] Step S45: Use the training data set to train the model, and use the validation data set to validate the model. The validation indicators are precision, recall, F1-score, and OA. The calculation formula is as follows:

[0049] precision=TP / (TP+FP)

[0050] recall=TP / (TP+FN)

[0051]

[0052] OA=(TP+TN) / (TP+TN+FN+FP)

[0053] Among them, TP is a correctly classified positive example, TN is a correctly classified negative example, FP is a misclassified positive example, and FN is a misclassified negative example;

[0054] Step S46: Obtain a verified scene situation generation model based on remote sensing image change detection.

[0055] According to a technical solution of the present invention, the dual-branch U-net change detection network based on Swin Transformer includes a multi-stage encoder, a fusion module, and a multi-stage decoder.

[0056] According to a technical solution of the present invention, the step S23 specifically includes:

[0057] The third-stage output of the dual-branch decoder is concatenated and linearly projected, and passed through a two-layer SwinTransformer block for further feature aggregation.

[0058] According to one aspect of the present invention, an electronic device is provided, comprising: one or more processors, one or more memories, and one or more computer programs; wherein the processor is connected to the memory, and the one or more computer programs are stored in the memory, and when the electronic device is running, the processor executes the one or more computer programs stored in the memory, so that the electronic device executes a scene situation generation method based on remote sensing image change detection as described in any one of the above technical solutions.

[0059] According to one aspect of the present invention, a computer-readable storage medium is provided for storing computer instructions. When the computer instructions are executed by a processor, a scene situation generation method based on remote sensing image change detection as described in any one of the above technical solutions is implemented.

[0060] Compared with the prior art, the present invention has the following beneficial effects:

[0061] The present invention proposes a scene situation generation method based on remote sensing image change detection, which makes full use of the rich semantic information of dual-phase remote sensing images to realize the automatic generation of changing scene situation. Using the dual-branch U-net based on Swin Transformer as the backbone network, the multi-level features in the input dual-phase remote sensing image are extracted through a multi-level encoder; a multi-level decoder is used to restore the image resolution step by step and generate change detection results; a graph neural network is constructed using change information, and a graph convolutional network is used to aggregate node information. The change detection network and the graph neural network are trained synchronously for multiple tasks to output the situation of the changing scene. The present invention uses Swin Transformer as the basic unit to extract global information from remote sensing images, utilize the rich semantic information in the changing scene, and use the graph neural network to efficiently model the semantic relationship between ground object changes and scene changes. It can be widely used in agriculture, environment, transportation, urban planning and other fields to provide information guidance for scientific decision-making. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0063] Figure 1 A schematic diagram of a scene situation generation process based on remote sensing image change detection according to an embodiment of the present invention is schematically shown;

[0064] Figure 2 A schematic diagram of a scene situation generation process based on remote sensing image change detection according to another embodiment of the present invention is schematically shown;

[0065] Figure 3 A schematic diagram of a change detection network structure based on Swin Transformer according to an embodiment of the present invention is shown;

[0066] Figure 4 A schematic diagram of a method for modeling the semantic relationship between changes in land features and changes in scenes based on a graph neural network according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION

[0067] The description of the embodiments of this specification should be combined with the corresponding drawings, which should be considered as part of the complete specification. In the drawings, the shape or thickness of the embodiments may be enlarged and indicated for simplification or convenience. Furthermore, the parts of each structure in the drawings will be described separately. It is worth noting that the elements not shown in the drawings or not described in words are in a form known to ordinary technicians in the relevant technical field.

[0068] The description of the embodiments herein and any reference to directions and orientations are only for the convenience of description and are not to be construed as any limitation on the scope of protection of the present invention. The following description of the preferred embodiments may involve combinations of features, which may exist independently or in combination, and the present invention is not particularly limited to the preferred embodiments. The scope of the present invention is defined by the claims.

[0069] like Figure 1 and Figure 2 As shown, a scene situation generation method based on remote sensing image change detection of the present invention comprises the following steps:

[0070] Step S1, obtaining two high-resolution satellite remote sensing images of the same area at different phases and performing preprocessing;

[0071] In some embodiments of the present invention, in step S1, two high-resolution satellite remote sensing images of the same area at different phases are obtained, the images are divided into blocks and processed into images of size 256×256, and the images are preprocessed, including data enhancement, cloud simulation, seasonal simulation, and environmental noise simulation, to eliminate pseudo-changes in the remote sensing images as input to the change detection model.

[0072] like Figure 3 As shown, in some embodiments of the present invention, step S2, constructing a dual-branch U-net change detection network based on Swin Transformer to perform change detection on two high-resolution satellite remote sensing images of different phases, specifically includes:

[0073] Step S21, performing image segmentation and linear embedding on the preprocessed image, specifically, dividing the input image into (4, 4) small blocks, each of which can be regarded as a token, and then using convolution operation to linearly map the token to 96 dimensions;

[0074] Step S22, constructing a dual-branch U-net change detection network based on Swin Transformer as the backbone network of the change detection part;

[0075] Step S23, using the dual-branch three-stage encoder part of the backbone network to extract features of the dual-phase remote sensing images step by step and convert them into feature tokens;

[0076] Step S24, inputting the highest-level features extracted by the dual-branch encoder into a feature fusion module to fuse the dual-phase feature graph;

[0077] Step S25, using the three-level decoder part of the backbone network to sequentially fuse the features of each level extracted by the encoder, gradually restore the change information, and obtain the change information with both high-level features and low-level features, and the change information change category, change type and change position;

[0078] Step S26: perform the last upsampling, insert the channel attention module to reduce information loss, and output change detection information.

[0079] The three-level decoder with two branches of the change detection backbone network is used to gradually restore the change information of the three-level features generated by the encoder and fuse the high-level semantic features generated by the fusion module into the multi-level features. This includes: further fusing the multi-level features through the channel attention mechanism, restoring the image resolution through step-by-step upsampling, and reducing the amount of calculation without affecting the feature information through the image reshaping operation.

[0080] In some embodiments of the present invention, step S3, modeling the spatial relationship according to the boundary information of the changed features output by the change detection network, constructing a graph convolutional neural network, and generating an edge set and an adjacency matrix, specifically includes:

[0081] Step S31: Treat the changed objects of various types of ground features as nodes V = [v1, v2, v3, ... v n ], the change type and change state of the features are used as node features, and the spatial distance between each node is defined as the edge E = [e1, e2, e3, ... e n ], get the node set V and edge set E, and construct the graph neural network G = {V, E};

[0082] A graph neural network is constructed, using the object of land feature change as the node, the change type and change state of the land feature as the node feature, and the spatial relationship between the nodes as the edge to generate graph data. It is further clustered through the graph convolutional neural network to model the relationship between the semantics of land feature change and scene change.

[0083] Step S32: introducing the boundary position information of the changed object (box), box i =[y1,x1,y2,x2] To model the spatial relationship, normalize the location information of each variable feature, generate the edge set E and the adjacency matrix A, then:

[0084]

[0085] e ij =∥∥di -d j ∥∥,

[0086]

[0087] Among them, w and h are the width and height of the remote sensing image, e ij is the edge between the changing features i and j, a ij is an element of the adjacency matrix A;

[0088] Step S33: construct the degree matrix D and the Laplace matrix L based on the adjacency matrix:

[0089]

[0090]

[0091] Construct the weight matrix W, combine the Laplacian matrix and the adjacency matrix to update the node features, and the formula for graph convolution is as follows:

[0092]

[0093] Where σ is a nonlinear activation function, the parameters of W are learned by gradient descent and randomly initialized, and Z is represented as the output;

[0094] Step S34: Figure 4 As shown in Figure 1, the attention mechanism is introduced to perform weighted summation of the feature information of adjacent neighbor nodes, and to achieve adaptive coefficient allocation of different neighbor weights, thereby greatly improving the representation ability of graph convolution. Assume that any node v in the constructed remote sensing image scene content graph i The corresponding feature vector at layer l is h i After the representation information feature aggregation of the edges of adjacent nodes with the attention mechanism as the core, the new representation information is h i ′,

[0095] Set the center node to v i , then assume that the neighbor node v j to v i The weight coefficient is:

[0096]

[0097] Among them, W and α are the shared weight matrix and the parameters to be learned respectively, then the output of the whole layer of attention network is as follows:

[0098]

[0099] In some embodiments of the present invention, step S4, using a manually annotated remote sensing change detection dataset, synchronously trains the encoder, fusion module, decoder of the change detection part, and the graph convolutional neural network for modeling the relationship between ground object changes and scene changes, to obtain a scene situation generation model based on remote sensing image change detection, specifically including:

[0100] Step S41, dividing the manually annotated dual-temporal remote sensing change detection dataset into a training set, a validation set, and a test set in a ratio of 7:1:2, and using a stratified sampling method to ensure that different parts have the same sample distribution;

[0101] Step S42, preprocessing the remote sensing images in the training set, including data enhancement, cloud simulation, season simulation, and environmental noise simulation, to eliminate pseudo changes in the remote sensing images and obtain preprocessed images;

[0102] Step S43: Select a weighted binary cross entropy loss function for the change detection part, then:

[0103]

[0104] Among them, y i For the input instance x i The true category, p i Input instance x for prediction i The probability of belonging to 1, β is the weight parameter, set to 0.3, which is used to balance the representation capabilities of local features and global features, and can be adjusted according to the usage scenario;

[0105] Step S44: Select the cross entropy loss function for the graph convolutional neural network, then:

[0106]

[0107] The overall network loss function is the weighted average of the two loss functions, using the hyperparameter γ to balance the weights of different tasks. The calculation formula is as follows:

[0108] L = (1-γ) loss class (Y,P)+γloss scene ;

[0109] Step S45: Use the training data set to train the model, and use the validation data set to validate the model. The validation indicators are precision, recall, F1-score, and OA. The calculation formula is as follows:

[0110] precision=TP / (TP+FP)

[0111] recall=TP / (TP+FN)

[0112]

[0113] OA=(TP+TN) / (TP+TN+FN+FP)

[0114] Among them, TP is a correctly classified positive example, TN is a correctly classified negative example, FP is a misclassified positive example, and FN is a misclassified negative example;

[0115] Step S46: Obtain a verified scene situation generation model based on remote sensing image change detection.

[0116] In some embodiments of the present invention, step S5, using the trained scene situation generation model based on remote sensing image change detection, the data in the test set is tested to obtain the situation of the remote sensing change image.

[0117] In some embodiments of the present invention, the Swin Transformer-based dual-branch U-net change detection network includes a multi-stage encoder, a fusion module, and a multi-stage decoder, which is a graph convolutional neural network for modeling the semantic relationship between ground object changes and scene changes. The image token is further processed using a three-stage encoder, wherein the encoder of each stage consists of a Swin Transformer layer and a spot merging layer, the Swin Transformer layer is used to learn effective features, and the spot merging layer connects four feature maps in the channel dimension to achieve downsampling operations. The output of each level of the encoder will be input to the corresponding decoder and used together with the decoder features to restore the change information. In addition, the highest-level output of the encoder is input to the fusion module.

[0118] The multi-level decoder is used to predict the change information step by step. Corresponding to the encoder, the decoder is also composed of upsampling, patch connection, and Swin Transformer layers. The encoder will output a feature map of the same size as the original image.

[0119] The fusion module is used to merge the high-level features generated by the encoder. It consists of a cascade layer, a linear projection layer, and a SwinTransformer layer, which are responsible for connecting feature maps, reducing feature dimensions, and further fusing features.

[0120] In some embodiments of the present invention, the step S23 specifically includes:

[0121] The third-stage output of the dual-branch decoder is concatenated and linearly projected, and passed through a two-layer SwinTransformer block for further feature aggregation.

[0122] According to one aspect of the present invention, an electronic device is provided, comprising: one or more processors, one or more memories, and one or more computer programs; wherein the processor is connected to the memory, and the one or more computer programs are stored in the memory, and when the electronic device is running, the processor executes the one or more computer programs stored in the memory, so that the electronic device executes a scene situation generation method based on remote sensing image change detection as any one of the above technical solutions.

[0123] According to one aspect of the present invention, a computer-readable storage medium is provided for storing computer instructions. When the computer instructions are executed by a processor, a scene situation generation method based on remote sensing image change detection as described in any of the above technical solutions is implemented.

[0124] Computer-readable storage media may include any medium capable of storing or transmitting information. Examples of computer-readable storage media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments may be downloaded via computer networks such as the Internet, intranets, etc.

[0125] The present invention discloses a scene situation generation method based on remote sensing image change detection, using a dual-branch U-net based on Swin Transformer as a backbone network, extracting multi-level features in an input dual-phase remote sensing image through a multi-level encoder; using a multi-level decoder to restore the image resolution step by step and generate change detection results; using change information to construct a graph neural network, using a graph convolutional network to aggregate node information, performing multi-task synchronous training on the change detection network and the graph neural network, and outputting the situation of the changing scene. The present invention uses Swin Transformer as a basic unit to extract global information from remote sensing images, utilizes the rich semantic information in the changing scene, and uses a graph neural network to efficiently model the semantic relationship between ground object changes and scene changes. It can be widely used in agriculture, environment, transportation, urban planning and other fields to provide information guidance for scientific decision-making.

[0126] In addition, it should be noted that the present invention can be provided as a method, an apparatus or a computer program product. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.

[0127] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0128] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0129] It should also be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0130] Finally, it should be noted that the above is a preferred embodiment of the present invention. It should be pointed out that although the preferred embodiment of the present invention has been described, for those skilled in the art, once the basic creative concept of the present invention is known, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention. Therefore, the attached claims are intended to be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the embodiments of the present invention.

Claims

1. A scene situation generation method based on remote sensing image change detection, characterized in that: The following steps are involved: Step S1, obtaining two high-resolution satellite remote sensing images of the same area at different phases and performing preprocessing; Step S2, constructing a dual-branch U-net change detection network based on Swin Transformer to perform change detection on the two high-resolution satellite remote sensing images in different phases; Step S3, modeling the spatial relationship according to the boundary information of the changed objects output by the change detection network, constructing a graph convolutional neural network, and generating an edge set and an adjacency matrix; Step S4: Use the manually annotated remote sensing change detection dataset to train the graph convolutional neural network to obtain a scene situation generation model based on remote sensing image change detection; Step S5: Using the trained scene situation generation model based on remote sensing image change detection, the data in the test set is tested to obtain the situation of the remote sensing change image.

2. The scene situation generation method based on remote sensing image change detection according to claim 1 is characterized in that: In step S1, after acquiring two high-resolution satellite remote sensing images of the same area at different phases, the images are divided into blocks and processed into images of size 256×256, and the two high-resolution satellite remote sensing images at different phases are preprocessed. The preprocessing includes at least data enhancement, cloud and fog simulation, season simulation, and environmental noise simulation.

3. The scene situation generation method based on remote sensing image change detection according to claim 1 is characterized in that: The step S2 specifically includes: Step S21, performing spot segmentation and linear embedding on the preprocessed image respectively; Step S22, constructing a dual-branch U-net change detection network based on Swin Transformer as the backbone network of the change detection part; Step S23, using the dual-branch three-stage encoder part of the backbone network to extract features of the dual-phase remote sensing images step by step and convert them into feature tokens; Step S24, inputting the highest-level features extracted by the dual-branch encoder into a feature fusion module to fuse the dual-phase feature graph; Step S25, using the three-level decoder part of the backbone network to sequentially fuse the features of each level extracted by the encoder, gradually restore the change information, and obtain the change information with both high-level features and low-level features, and the change information change category, change type and change position; Step S26: perform the last upsampling, insert the channel attention module to reduce information loss, and output change detection information.

4. The scene situation generation method based on remote sensing image change detection according to claim 3 is characterized in that: The step S3 specifically includes: Step S31: Treat the changed objects of various types of ground features as nodes V = [v1, v2, v3, ... v n ], the change type and change state of the features are used as node features, and the spatial distance between each node is defined as the edge E = [e1, e2, e3, ... e n ], get the node set V and edge set E, and construct the graph neural network G = {V, E}; Step S32: introducing the boundary position information of the changed object (box), box i =[y1,x1,y2,x2] To model the spatial relationship, normalize the location information of each variable feature, generate the edge set E and the adjacency matrix A, then: e ij =∥∥d i -d j ∥∥, Among them, w and h are the width and height of the remote sensing image, e ij is the edge between the changing features i and j, a ij is an element of the adjacency matrix A; Step S33: construct the degree matrix D and the Laplace matrix L based on the adjacency matrix: Construct the weight matrix W, combine the Laplacian matrix and the adjacency matrix to update the node features, and the formula for graph convolution is as follows: Where σ is a nonlinear activation function, the parameters of W are learned by gradient descent and randomly initialized, and Z is represented as the output; Step S34: Introduce the attention mechanism, assuming that any node v in the constructed remote sensing image scene content graph i The corresponding feature vector at layer l is h i After the representation information feature aggregation of the edges of adjacent nodes with the attention mechanism as the core, the new representation information is h i ′, Set the center node to v i , then assume that the neighbor node v j to v i The weight coefficient is: Among them, W and α are the shared weight matrix and the parameters to be learned respectively, then the output of the whole layer of attention network is as follows:

5. The scene situation generation method based on remote sensing image change detection according to claim 4 is characterized in that: The step S4 specifically includes: Step S41, dividing the manually annotated dual-temporal remote sensing change detection dataset into a training set, a validation set, and a test set according to a preset ratio; Step S42, preprocessing the remote sensing images in the training set to obtain preprocessed images; Step S43: Select a weighted binary cross entropy loss function for the change detection part, then: Among them, y i For the input instance x i The true category, p i Input instance x for prediction i The probability of belonging to 1, β is the weight parameter; Step S44: Select the cross entropy loss function for the graph convolutional neural network, then: The overall network loss function is the weighted average of the two loss functions, using the hyperparameter γ to balance the weights of different tasks. The calculation formula is as follows: L=(1-γ)loss class (Y,P)+gloss scene ; Step S45: Use the training data set to train the model, and use the validation data set to validate the model. The validation indicators are precision, recall, F1-score, and OA. The calculation formula is as follows: precision=TP / (TP+FP) recall=TP / (TP+FN) OA=(TP+TN) / (TP+TN+FN+FP) Among them, TP is a correctly classified positive example, TN is a correctly classified negative example, FP is a misclassified positive example, and FN is a misclassified negative example; Step S46: Obtain a verified scene situation generation model based on remote sensing image change detection.

6. The scene situation generation method based on remote sensing image change detection according to claim 3 is characterized in that: The dual-branch U-net change detection network based on Swin Transformer includes a multi-stage encoder, a fusion module, and a multi-stage decoder.

7. The scene situation generation method based on remote sensing image change detection according to claim 6 is characterized in that: The step S23 specifically includes: The third-stage output of the dual-branch decoder is concatenated and linearly projected, and passed through a two-layer SwinTransformer block for further feature aggregation.

8. An electronic device, characterized in that: include: One or more processors, one or more memories, and one or more computer programs; wherein the processor is connected to the memory, and the one or more computer programs are stored in the memory. When the electronic device is running, the processor executes the one or more computer programs stored in the memory so that the electronic device executes the scene situation generation method based on remote sensing image change detection as described in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: Used to store computer instructions, which, when executed by a processor, implement the scene situation generation method based on remote sensing image change detection as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Forest degradation remote sensing monitoring method and system based on staged time trend characteristics

    CN112381426A

  • Channel safety situation analysis method and system based on high-resolution remote sensing image

    CN114677831A

  • Remote sensing image urban ground feature change detection method based on depth background difference

    CN115690597A

  • Remote sensing image ground object change detection method and device

    CN116385881A

  • Convolutional network and graph neural network hybrid-based change detection network and method

    CN116778317A

Cited By

  • Intelligent building extraction method based on remote sensing image

    CN119445380A

  • Battlefield environment change detection method and device and electronic equipment

    CN119863429A

  • Coastal wetland mud flat ecological environment monitoring method, system, equipment and medium

    CN120853041A

  • Satellite image ground object change detection method and system based on long time sequence information fusion

    CN121259638A

  • Railway multi-temporal change detection method and system based on cross-domain generated image

    CN121708515A