Remote sensing image retrieval method, device, electronic equipment and storage medium

By extracting and analyzing the scene description semantic features and geographical location features of the query text, a remote sensing image database is constructed, which solves the problem of insufficient remote sensing image retrieval efficiency and accuracy in the existing technology, and realizes efficient remote sensing image retrieval based on geographical text information.

CN118410200BActive Publication Date: 2024-09-24AEROSPACE INFORMATION RES INST CAS
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410773918.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-24
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

Existing natural language query technology is difficult to effectively process and utilize the geographical range text information contained in user query statements, resulting in insufficient remote sensing image retrieval efficiency and accuracy.

Method used

By extracting the scene description semantic feature vector and geographical location description feature vector of the query text input by the user, and using the location scene description branch network and the geocoding prediction branch network, a remote sensing image database is constructed, and similarity analysis is performed to retrieve matching remote sensing images.

Benefits of technology

It improves the efficiency and accuracy of remote sensing image retrieval, can process the geographical range information contained in the query text, and obtains results that are more in line with the user's spatial query intention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410200B
    Figure CN118410200B
Patent Text Reader

Abstract

The present invention provides a remote sensing image retrieval method, device, electronic device and storage medium, belonging to the field of remote sensing image retrieval technology, the method comprising: based on a query text input by a user, determining a scene description semantic feature vector and a geographic location description feature vector of the query text; based on the scene description semantic feature vector and the geographic location description feature vector of the query text, retrieving a remote sensing image corresponding to the query text from a remote sensing image database; the remote sensing image database is determined based on the scene description semantic features and the geographic location description features obtained by feature extraction of each remote sensing image. The present invention can not only retrieve remote sensing images according to the geographic scene semantics described in the query text, but also process the geographic range information contained in the query text, obtain remote sensing image retrieval results that are more in line with the user's spatial query intention, realize remote sensing image retrieval based on geographic text information, and improve the efficiency and accuracy of remote sensing image retrieval.
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 retrieval, and in particular to a remote sensing image retrieval method, device, electronic equipment and storage medium. Background Art

[0002] Natural language retrieval of remote sensing images is a cutting-edge research field that aims to use natural language processing (NLP) and computer vision (CV) technologies to enable users to retrieve and obtain desired remote sensing images by describing information in written language.

[0003] The geographic scope text contained in the user query is a high-value spatial filtering condition. In the face of a large number of remote sensing images, it can effectively narrow the image search scope and improve the accuracy of image search. However, the current text-image retrieval technology for searching remote sensing images through natural language query statements usually performs full-library image retrieval in the entire remote sensing image database based on the scene content description of the remote sensing image, and is unable to directly process and utilize the geographic scope text information contained in the user query statement.

[0004] Therefore, how to better realize remote sensing image retrieval has become a technical problem that needs to be solved urgently in the industry. Summary of the invention

[0005] The present invention provides a remote sensing image retrieval method, device, electronic equipment and storage medium for better realizing remote sensing image retrieval.

[0006] The present invention provides a remote sensing image retrieval method, comprising:

[0007] Based on the query text input by the user, determining a scene description semantic feature vector and a geographic location description feature vector of the query text;

[0008] Retrieving a remote sensing image corresponding to the query text from a remote sensing image database based on the scene description semantic feature vector and the geographical location description feature vector of the query text;

[0009] The remote sensing image database is determined based on scene description semantic features and geographical location description features obtained by extracting features from each remote sensing image.

[0010] According to a remote sensing image retrieval method provided by the present invention, the remote sensing image corresponding to the query text is retrieved from a remote sensing image database based on the scene description semantic feature vector and the geographical location description feature vector of the query text, comprising:

[0011] Determine a location scene feature vector of the query text based on the scene description semantic feature vector and the geographic location description feature vector of the query text;

[0012] Performing similarity analysis on the location scene feature vector of the query text and the location scene feature vector of each remote sensing image in the remote sensing image database to determine the remote sensing image corresponding to the query text;

[0013] The location scene feature vector of each remote sensing image is determined based on the scene description semantic features and geographical location description features of each remote sensing image.

[0014] According to a remote sensing image retrieval method provided by the present invention, the step of determining a scene description semantic feature vector and a geographic location description feature vector of a query text based on a query text input by a user comprises:

[0015] Performing feature extraction on the query text input by the user to determine a basic semantic feature vector of the query text;

[0016] Inputting the basic semantic feature vector into a location scene description branch network to obtain a scene description semantic feature vector of the query text output by the location scene description branch network; the location scene description branch network is constructed based on a first self-attention module;

[0017] The basic semantic feature vector is input into a geocoding prediction branch network to obtain a geographic location description feature vector of the query text output by the geocoding prediction branch network; the geocoding prediction branch network is trained based on query text samples and corresponding geocoding information labels.

[0018] According to a remote sensing image retrieval method provided by the present invention, the geocoding prediction branch network includes a second self-attention module, a first fully connected layer and a first coding feature generation module; the basic semantic feature vector is input into the geocoding prediction branch network to obtain the geographic location description feature vector of the query text output by the geocoding prediction branch network, including:

[0019] Inputting the basic semantic feature vector into the second self-attention module to obtain a self-attention feature vector output by the second self-attention module;

[0020] Inputting the self-attention feature vector into the first fully connected layer to obtain geocoding prediction information of the query text output by the first fully connected layer;

[0021] The geographic coding prediction information of the query text is input into the first coding feature generation module to obtain the geographic location description feature vector of the query text output by the first coding feature generation module; the first coding feature generation module is constructed based on the Transformer encoder.

[0022] According to a remote sensing image retrieval method provided by the present invention, the step of extracting features from the query text input by the user and determining a basic semantic feature vector of the query text comprises:

[0023] The query text input by the user is input into the backbone network to obtain the basic semantic feature vector of the query text output by the backbone network; the backbone network is constructed based on multiple Transformer modules, and the Transformer modules are constructed based on multi-head self-attention modules, feedforward neural networks and residual connections.

[0024] According to a remote sensing image retrieval method provided by the present invention, before retrieving the remote sensing image corresponding to the query text from the remote sensing image database based on the scene description semantic feature vector and the geographical location description feature vector of the query text, the method further comprises:

[0025] Acquire remote sensing image datasets;

[0026] Extracting a scene description semantic feature vector and a geographic location description feature vector of each remote sensing image in the remote sensing image dataset;

[0027] splicing the scene description semantic feature vector and the geographical location description feature vector of each remote sensing image, and inputting each splicing result into a second fully connected layer to obtain a location scene feature vector of each remote sensing image output by the second fully connected layer;

[0028] Each of the remote sensing images and the corresponding location scene feature vector is saved in a preset database to obtain the remote sensing image database.

[0029] According to a remote sensing image retrieval method provided by the present invention, the step of extracting a scene description semantic feature vector and a geographic location description feature vector of each remote sensing image in the remote sensing image data set comprises:

[0030] Input each of the remote sensing images into an image semantic feature extraction network to obtain a scene description semantic feature vector of each remote sensing image output by the image semantic feature extraction network; the image semantic feature extraction network is constructed based on a visual Transformer model;

[0031] Convert each of the remote sensing images into a geographical range to obtain geographical coding information corresponding to each of the remote sensing images;

[0032] The geographic coding information corresponding to each of the remote sensing images is respectively input into the second coding feature generation module to obtain the geographic location description feature vector of each of the remote sensing images output by the second coding feature generation module; the second coding feature generation module is constructed based on the Transformer encoder.

[0033] The present invention also provides a remote sensing image retrieval device, comprising:

[0034] A processing module, configured to determine a scene description semantic feature vector and a geographic location description feature vector of the query text based on a query text input by a user;

[0035] A retrieval module, configured to retrieve a remote sensing image corresponding to the query text from a remote sensing image database based on a scene description semantic feature vector and a geographic location description feature vector of the query text;

[0036] The remote sensing image database is determined based on scene description semantic features and geographical location description features obtained by extracting features from each remote sensing image.

[0037] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the remote sensing image retrieval methods described above is implemented.

[0038] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the remote sensing image retrieval method as described above is implemented.

[0039] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the remote sensing image retrieval method as described above is implemented.

[0040] The remote sensing image retrieval method, device, electronic device and storage medium provided by the present invention mine the feature information of each remote sensing image in different regional ranges, extract the scene description semantic features and geographical location description features of the remote sensing image to build a remote sensing image database, and use the scene description semantic feature vector representation and geographical location description feature vector representation to improve the efficiency of remote sensing image retrieval and matching, so that after receiving a query text containing geographical range text information input by a user, the scene description semantic feature vector and geographical location description feature vector of the query text are extracted to retrieve the feature information of the remote sensing image stored in the remote sensing image database, not only can the remote sensing image be retrieved according to the geographical scene semantics described in the query text, but the geographical range information contained in the query text can also be processed to obtain a remote sensing image retrieval result that is more in line with the user's spatial query intention, thereby realizing remote sensing image retrieval based on geographical text information and improving the efficiency and accuracy of remote sensing image retrieval. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0042] Figure 1 This is one of the flow charts of the remote sensing image retrieval method provided by the present invention;

[0043] Figure 2 This is the second flow chart of the remote sensing image retrieval method provided by the present invention;

[0044] Figure 3 It is a structural schematic diagram of the remote sensing image retrieval device provided by the present invention;

[0045] Figure 4 It is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION

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

[0047] In the description of the invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0048] Combine the following Figure 1-Figure 4 The invention describes the remote sensing image retrieval method, device, electronic equipment and storage medium.

[0049] Figure 1 This is one of the flow charts of the remote sensing image retrieval method provided by the present invention, such as Figure 1 As shown, including:

[0050] Step 110, based on the query text input by the user, determining a scene description semantic feature vector and a geographic location description feature vector of the query text;

[0051] Step 120, based on the scene description semantic feature vector and the geographic location description feature vector of the query text, retrieve the remote sensing image corresponding to the query text from the remote sensing image database;

[0052] The remote sensing image database is determined based on the scene description semantic features and geographic location description features obtained by feature extraction of each remote sensing image.

[0053] Specifically, the query text described in the embodiment of the present invention refers to text information input by a user and containing geographic range information, which is used to query the remote sensing image corresponding to the contained geographic range information.

[0054] The scene description semantic feature vector described in the embodiment of the present invention refers to a vector representation of semantic features extracted from scene description text information contained in the image and text, wherein the scene description may specifically be a description of the environment, such as description information of lakes, fields, woods, etc.

[0055] The geographic location description feature vector described in the embodiment of the present invention refers to a vector representation of semantic features extracted from the geographic location range text information contained in the image and text. The geographic location description can specifically be the coordinates or name of the geographic location, such as a city district, a street, etc.

[0056] The remote sensing image database described in the embodiment of the present invention is a database for remote sensing image retrieval by user query text, which can be determined and constructed based on scene description semantic features and geographic location description features obtained by feature extraction of each remote sensing image collected in advance.

[0057] Specifically, we can perform image recognition on remote sensing images to extract the corresponding scene description semantic features, and convert the pixel information of the remote sensing images into actual geographic location information, and then extract the geographic location description features. In this way, each remote sensing image can be associated and stored with its corresponding scene description semantic features and geographic location description features, thereby constructing a remote sensing image database.

[0058] Furthermore, in an embodiment of the present invention, in step 110, after the user inputs a query text at the front end, semantic feature extraction can be performed based on the query text input by the user to obtain a corresponding scene description semantic feature vector and a geographic location description feature vector.

[0059] In the embodiment of the present invention, in step 120, by pre-collecting a remote sensing data set, feature extraction and image processing are performed on each remote sensing image to obtain corresponding scene description semantic features and geographic location description features, and each remote sensing image and the extracted scene and geographic location description features are associated and saved, thereby constructing a remote sensing image database. Furthermore, after obtaining the scene description semantic feature vector and the geographic location description feature vector of the query text in step 110, remote sensing images matching the above semantic features of the query text can be retrieved from the remote sensing image database to obtain the retrieval result of the user query text, thereby completing the remote sensing image retrieval based on geographic text information.

[0060] The remote sensing image retrieval method of the embodiment of the present invention mines the feature information of each remote sensing image of different regional ranges, extracts the scene description semantic features and geographical location description features of the remote sensing image to build a remote sensing image database, and uses the scene description semantic feature vector representation and the geographical location description feature vector representation to improve the efficiency of remote sensing image retrieval and matching, so that after receiving a query text containing geographical range text information input by a user, the scene description semantic feature vector and the geographical location description feature vector of the query text are extracted to retrieve the feature information of the remote sensing image stored in the remote sensing image database, not only can the remote sensing image be retrieved according to the geographical scene semantics described in the query text, but the geographical range information contained in the query text can also be processed to obtain remote sensing image retrieval results that are more in line with the user's spatial query intention, thereby realizing remote sensing image retrieval based on geographical text information and also improving the efficiency and accuracy of remote sensing image retrieval.

[0061] Based on the content of the above embodiment, as an optional embodiment, determining the scene description semantic feature vector and the geographic location description feature vector of the query text based on the query text input by the user includes:

[0062] Extract features from the query text input by the user to determine the basic semantic feature vector of the query text;

[0063] Inputting the basic semantic feature vector into the location scene description branch network to obtain the scene description semantic feature vector of the query text output by the location scene description branch network; the location scene description branch network is constructed based on the first self-attention module;

[0064] The basic semantic feature vector is input into the geocoding prediction branch network to obtain the geographic location description feature vector of the query text output by the geocoding prediction branch network; the geocoding prediction branch network is trained based on the query text samples and the corresponding geocoding information labels.

[0065] Specifically, the basic semantic feature vector described in the embodiment of the present invention refers to the vector representation of the semantic feature obtained by extracting text word features from the query text using NLP technology.

[0066] The location scene description branch network described in the embodiment of the present invention is used to extract the scene description semantic feature vector of the query text.

[0067] The first self-attention module described in the embodiment of the present invention is used to construct a location scene description branch network, which mainly focuses on the scene description part in the basic semantic feature vector of the query text. It can be specifically composed of multiple sequentially connected Transformer encoders, wherein the number of Transformer encoders can be determined according to actual computing requirements, such as 2, 3, 4, etc.

[0068] The geocoding prediction branch network described in the embodiment of the present invention is used to extract the geographic location description feature vector of the query text.

[0069] In an embodiment of the present invention, the geocoding prediction branch network is obtained by pre-training a deep neural network model based on query text samples and corresponding geocoding information tags. The geocoding information refers to data information obtained by encoding the geographic location information contained in the text.

[0070] In an embodiment of the present invention, after the user inputs a query text, NLP technology may be used to perform feature extraction on the query text input by the user to determine a basic semantic feature vector of the query text.

[0071] Based on the content of the above embodiment, as an optional embodiment, feature extraction is performed on the query text input by the user to determine the basic semantic feature vector of the query text, including:

[0072] The query text input by the user is input into the backbone network to obtain the basic semantic feature vector of the query text output by the backbone network; the backbone network is built based on multiple Transformer modules, and the Transformer module is built based on multi-head self-attention modules, feedforward neural networks and residual connections.

[0073] Specifically, the backbone network described in the embodiment of the present invention is used to extract text features of the query text input by the user and output the corresponding basic semantic feature vector, which can also be described as a backbone network. It is built based on multiple Transformer encoders.

[0074] In an embodiment of the present invention, the backbone network can specifically use the basic version of Roberta-wwm pre-training model. Among them, the basic version of Roberta-wwm model is composed of 12 Transformer encoder modules stacked, and each Transformer encoder is composed of 12 multi-head self-attention modules, 1 feedforward neural network and 1 residual connection. Among them, the multi-head self-attention mechanism divides the input sequence into multiple subspaces, and performs self-attention calculations on each subspace separately. In this way, the model can pay attention to information from different subspaces at the same time, so as to understand the input sequence more comprehensively.

[0075] In an embodiment of the present invention, when a user inputs a query text, two special identifiers [CLS] and [SEP] can be added at the beginning and end of the query text respectively. The [CLS] identifier is located at the beginning of the sentence, which is used to aggregate the semantic feature vector representation of the entire text and serve as the input of the location scene description branch network and the geocoding prediction branch network. The [SEP] identifier is used to identify the end of the sentence. Afterwards, a word segmenter is used to split the input query text into several independent characters, which are input into the backbone network Roberta-wwm model for feature extraction, and the basic semantic feature vector of the query text can be obtained.

[0076] The method of the embodiment of the present invention, by using multiple Transformer modules to build a backbone network and utilizing the multi-head self-attention mechanism in the Transformer module, can better focus on text features of query texts at different scales, provide richer semantic feature information, and ensure that the extracted basic semantic feature vectors have better feature expression.

[0077] Furthermore, in an embodiment of the present invention, the acquired basic semantic feature vector is further input into the location scene description branch network. Through the attention and processing of the scene description features by the Transformer encoder in the location scene description branch network, the scene description semantic feature vector of the query text can be extracted.

[0078] At the same time, in an embodiment of the present invention, the acquired basic semantic feature vector is also input into the geocoding prediction branch network, and the geocoding prediction branch network recognizes and processes the basic semantic features of the query to output the geographic location description feature vector of the query text.

[0079] It should be noted that the geocoding prediction branch network can specifically construct reasonable training data and test data through pre-prepared query text samples and corresponding geocoding information labels, and use the stochastic gradient descent strategy to optimize the loss function in the model. When the test accuracy no longer increases, the model training is terminated, the model parameters are saved, and the model training is completed.

[0080] Specifically, the query text samples are first subjected to feature extraction through the backbone network to obtain the basic semantic feature vector of each query text sample, and the basic semantic feature vector of each query text sample and its corresponding geocoding information label are used as a set of training samples, thereby obtaining multiple sets of training samples. The geocoding prediction branch network is trained using multiple sets of training samples.

[0081] For any set of training samples, the training samples are input into the geocoding prediction branch network, and the geocoding prediction information corresponding to the training samples is output; a preset classification loss function, such as a cross entropy loss function, is used to calculate the loss value according to the geocoding prediction information corresponding to the training samples and the geocoding information labels in the training samples. According to the loss value, the model parameters of the geocoding prediction branch network are adjusted until the number of model training times reaches the preset number of times, and the model parameters obtained when the number of model training times reaches the preset number of times are used as the model parameters of the trained geocoding prediction branch network, that is, the trained geocoding prediction branch network is obtained.

[0082] The method of the embodiment of the present invention, by adopting a backbone network, a geocoding prediction branch network and a location scene description branch network to construct a deep neural network model with a dual-head output, can simultaneously and in parallel extract the scene description semantic feature vector and the geographic location description feature vector of the query text information for use in subsequent retrieval and matching of remote sensing images, thereby improving the retrieval efficiency of remote sensing images and enhancing the query and matching effect of remote sensing images.

[0083] Based on the content of the above embodiment, as an optional embodiment, the geocoding prediction branch network includes a second self-attention module, a first fully connected layer and a first coding feature generation module; the basic semantic feature vector is input into the geocoding prediction branch network to obtain the geographic location description feature vector of the query text output by the geocoding prediction branch network, including:

[0084] Inputting the basic semantic feature vector into the second self-attention module to obtain the self-attention feature vector output by the second self-attention module;

[0085] Input the self-attention feature vector into the first fully connected layer to obtain the geocoding prediction information of the query text output by the first fully connected layer;

[0086] The geographic coding prediction information of the query text is input into the first coding feature generation module to obtain the geographic location description feature vector of the query text output by the first coding feature generation module; the first coding feature generation module is constructed based on the Transformer encoder.

[0087] Specifically, in an embodiment of the present invention, a second self-attention module, a first fully connected layer and a first coding feature generation module are used to jointly construct a geocoding prediction branch network.

[0088] The second self-attention module described in the embodiment of the present invention mainly focuses on the geographic location description part in the basic semantic feature vector of the query text, and extracts the corresponding self-attention feature vector. It can also be specifically composed of multiple Transformer encoders connected in sequence, wherein the number of Transformer encoders can be determined according to actual computing requirements, such as 2, 3, 4, etc.

[0089] The first fully connected layer described in the embodiment of the present invention may be specifically composed of a multi-layer fully connected neural network, such as a two-layer fully connected neural network. The two layers of fully connected neural networks are connected by a Tanh activation function, and a Softmax activation function is used after the second fully connected neural network to convert the output vector into the probability of the geocode to which the location description belongs.

[0090] The first coding feature generation module described in the embodiment of the present invention is used to convert the geocoding prediction information output by the first fully connected layer into a geographic location description feature. The first coding feature generation module can be specifically composed of multiple sequentially connected Transformer encoders.

[0091] Furthermore, in an embodiment of the present invention, after the acquired basic semantic feature vector of the query text is input into the geocoding prediction branch network, it is first processed through the multi-head attention mechanism of the Transformer encoder in the second self-attention module, focusing on the partial features of the geographic location description in the basic semantic feature vector, and further extracting the self-attention feature vector about the geographic location description in the basic semantic feature vector.

[0092] In an embodiment of the present invention, the self-attention feature vector is input into the first fully connected layer, and the geocoding probability corresponding to the geographic location description in the query text is predicted through a two-layer fully connected neural network, and the geocoding prediction information of the query text is output.

[0093] Furthermore, in an embodiment of the present invention, the acquired geocoding prediction information of the query text is input into a first coding feature generation module, processed by multiple Transformer encoders in the first coding feature generation module, and finally a geographic location description feature vector of the query text is output.

[0094] The method of the embodiment of the present invention constructs a geographic coding prediction branch network through a self-attention module, a fully connected layer and a coding feature generation module, and utilizes a multi-head attention mechanism and a multi-layer fully connected neural network to improve the expression ability of the model in extracting geographic location description features in the query text, which is beneficial to improving the accuracy of subsequent remote sensing image retrieval and matching.

[0095] Based on the content of the above embodiment, as an optional embodiment, based on the scene description semantic feature vector and the geographical location description feature vector of the query text, the remote sensing image corresponding to the query text is retrieved from the remote sensing image database, including:

[0096] Determine a location scene feature vector of the query text based on the scene description semantic feature vector and the geographic location description feature vector of the query text;

[0097] Perform similarity analysis on the location scene feature vector of the query text and the location scene feature vector of each remote sensing image in the remote sensing image database to determine the remote sensing image corresponding to the query text;

[0098] The location scene feature vector of each remote sensing image is determined based on the scene description semantic features and geographic location description features of each remote sensing image.

[0099] Specifically, the location scene feature vector described in the embodiment of the present invention refers to a vector representation composed of a scene description semantic feature vector and a geographic location description feature vector, which can be obtained by concatenating the extracted scene description semantic feature vector and geographic location description feature vector.

[0100] It can be understood that the location scene feature vector combines the scene description semantic features and the geographic location description features.

[0101] In an embodiment of the present invention, after obtaining the scene description semantic feature vector and the geographic location description feature vector of the query text, the Concat operation can be used to concatenate the geographic location description feature vector and the scene description semantic feature vector, and then a fully connected layer can be used to further project the concatenated features to obtain the final location scene feature vector of the query text.

[0102] It can be understood that according to the above-mentioned method of obtaining the location scene feature vector, when determining the location scene feature vector of each remote sensing image, the scene description semantic feature vector and the geographic location description feature vector of each remote sensing image can also be subjected to the above-mentioned splicing and projection processing to obtain the location scene feature vector of each remote sensing image.

[0103] Furthermore, in an embodiment of the present invention, the location scene feature vector of the query text is similar to the location scene feature vector of each remote sensing image in the remote sensing image database, and the similarities are sorted from large to small. The similarity is calculated using the Cosine function. Thus, a similarity sorting result can be obtained, from which the result with the first ranking is determined and used as the remote sensing image that best matches the query text.

[0104] The method of the embodiment of the present invention can further improve the efficiency of remote sensing image retrieval and matching by splicing and fusing the scene description semantic feature vector and the geographic location description feature vector of the query text into a location scene feature vector, and performing similarity matching analysis between the location scene feature vector and the location scene feature vector of each remote sensing image in the remote sensing image database.

[0105] Based on the content of the above embodiment, as an optional embodiment, before retrieving the remote sensing image corresponding to the query text from the remote sensing image database based on the scene description semantic feature vector and the geographical location description feature vector of the query text, the method further includes:

[0106] Acquire remote sensing image datasets;

[0107] Extracting the scene description semantic feature vector and geographic location description feature vector of each remote sensing image in the remote sensing image dataset;

[0108] The scene description semantic feature vector and the geographic location description feature vector of each remote sensing image are concatenated, and each concatenation result is input into the second fully connected layer to obtain the location scene feature vector of each remote sensing image output by the second fully connected layer;

[0109] Each remote sensing image and the corresponding location scene feature vector are saved in a preset database to obtain a remote sensing image database.

[0110] Specifically, the second fully connected layer described in the embodiment of the present invention may also be composed of a multi-layer fully connected neural network, which is used to generate a location scene feature vector of a remote sensing image.

[0111] In the embodiment of the present invention, before querying and retrieving the remote sensing image database using the scene description semantic feature vector and the geographical location description feature vector of the query text, it is necessary to construct the remote sensing image database.

[0112] Specifically, we first acquire a large number of remote sensing images of the target area through the remote sensing data and application service platform to construct a remote sensing image dataset. We then extract features from each remote sensing image using a preset neural network model to obtain a scene description semantic feature vector and a geographic location description feature vector for each remote sensing image.

[0113] Based on the content of the above embodiment, as an optional embodiment, extracting a scene description semantic feature vector and a geographic location description feature vector of each remote sensing image in the remote sensing image data set includes:

[0114] Each remote sensing image is input into the image semantic feature extraction network to obtain the scene description semantic feature vector of each remote sensing image output by the image semantic feature extraction network; the image semantic feature extraction network is constructed based on the visual Transformer model;

[0115] Each remote sensing image is converted into a geographical range to obtain the geographical coding information corresponding to each remote sensing image;

[0116] The geographic coding information corresponding to each remote sensing image is respectively input into the second coding feature generation module to obtain the geographic location description feature vector of each remote sensing image output by the second coding feature generation module; the second coding feature generation module is constructed based on the Transformer encoder.

[0117] Specifically, the image semantic feature extraction network described in the embodiment of the present invention is used to extract scene description semantic feature vectors of remote sensing images, which can be specifically constructed using a visual Transformer model, wherein the visual Transformer model can adopt a ViT-B / 16 model.

[0118] The second coding feature generation module described in the embodiment of the present invention is used to convert the geographic coding information corresponding to the remote sensing image into geographic location description features. The second coding feature generation module can also be specifically composed of multiple transformer encoders connected in sequence.

[0119] In an embodiment of the present invention, each acquired remote sensing image is input into an image semantic feature extraction network for processing in turn. By identifying the scene features of each remote sensing image through an image semantic feature extraction network such as a ViT-B / 16 model, a scene description semantic feature vector of each remote sensing image can be extracted.

[0120] At the same time, in an embodiment of the present invention, each remote sensing image acquired is also subjected to image geographic range conversion. By accurately matching the remote sensing image with the real geographic space, the pixel information of the remote sensing image is converted into actual geographic location information, thereby obtaining the geographic coding information corresponding to each remote sensing image.

[0121] Furthermore, in an embodiment of the present invention, the geographic coding information corresponding to each remote sensing image obtained is respectively input into the second coding feature generation module, and through the multi-head attention mechanism of the Transformer encoder in the second coding feature generation module, multi-scale attention is paid to the geographic location features therein to extract the geographic location description feature vector of each remote sensing image.

[0122] The method of the embodiment of the present invention, by jointly constructing a deep neural network model with dual-head output using an image semantic feature extraction network and a coding feature generation module, can simultaneously and in parallel extract scene description semantic feature vectors and geographic location description feature vectors of remote sensing images. Compared with using different functional models for feature extraction separately, the method has fewer steps, saves computing resources, and is conducive to improving the efficiency of building a remote sensing image database.

[0123] Furthermore, in an embodiment of the present invention, the scene description semantic feature vector and the geographic location description feature vector of each remote sensing image are spliced, and each splicing result is input into the second fully connected layer, and the location scene feature vector corresponding to each remote sensing image is extracted through processing by a multi-layer fully connected neural network.

[0124] In an embodiment of the present invention, data such as each remote sensing image and the corresponding location scene feature vector, as well as the mapping relationship between each remote sensing image and the location scene feature vector can be further saved in a preset database, thereby obtaining a remote sensing image database, which is convenient for users to query text for remote sensing image retrieval.

[0125] The method of the embodiment of the present invention, by using a neural network model with a dual-head output to construct a remote sensing image scene description semantic feature and geographic location description feature extraction network, and using the location scene feature vector after feature fusion to construct an index for the remote sensing image database, can effectively support natural language query applications of remote sensing images containing geographic range descriptions, and improve the accuracy of remote sensing image retrieval; at the same time, compared with traditional methods based on retrieval models and manual matching rules, the remote sensing image database method constructed by the present invention is simpler and more efficient.

[0126] Figure 2 This is the second flow chart of the remote sensing image retrieval method provided by the present invention. Figure 2As shown, in an embodiment of the present invention, a natural language query model for remote sensing images is constructed that can simultaneously support descriptions of geographic scope and scene content, including a text-location scene description network and an image-location scene description network.

[0127] In the text-location scene description network, the query text is processed by the text processing basic backbone network to obtain the basic semantic feature vector of the query text. The geographic location description feature vector and scene description semantic feature vector of the query text are extracted respectively through the geocoding prediction branch network and the text-location scene description branch network.

[0128] The text-location scene description branch network includes a scene description-self-attention module, i.e., a first self-attention module, which is used to process the basic semantic feature vector of the query text to obtain the scene description semantic feature vector of the query text.

[0129] The geocoding prediction branch network includes a location description-self-attention module, namely the second self-attention module, the first fully connected layer and the first coding feature generation module. The basic semantic feature vector of the query text is input into the second self-attention module, and the geographic location description feature vector of the query text is obtained after being processed in sequence by the second self-attention module, the first fully connected layer and the first coding feature generation module.

[0130] Furthermore, the geographic location description feature vector and the scene description semantic feature vector of the query text are concatenated and then processed by a fully connected layer to extract the text-location scene feature, that is, to obtain the location scene feature vector of the query text.

[0131] Among them, in the image-location scene description network, for each remote sensing image, the image scene semantic features can be extracted through the remote sensing image semantic feature extraction network, that is, the image semantic feature extraction network, that is, the scene description semantic feature vector of the remote sensing image is obtained. At the same time, the remote sensing image is converted into corresponding geographic coding information through the image range, and then processed by the second coding feature generation module to obtain the geographic location description feature vector of the remote sensing image.

[0132] The geographical location description feature vector and scene description semantic feature vector of the remote sensing image are concatenated and then processed by the second fully connected layer to extract the image-location scene feature, that is, to obtain the location scene feature vector of the remote sensing image. In this way, the location scene feature vector of each remote sensing image can be obtained to construct a remote sensing image database.

[0133] Furthermore, by calculating the similarity between the location scene feature vector of the query text and the location scene feature vector of each remote sensing image in the remote sensing image database, the similarity ranking result can be predicted, and then the best matching image can be obtained therefrom, thereby completing the retrieval process from the user query text to the remote sensing image.

[0134] Among them, the image-location scene description network and the text-location scene description branch network are jointly trained using the Image-Text Contrastive Loss function to align the location scene features of the remote sensing image with the location scene features of the query text.

[0135] The method of the embodiment of the present invention provides a natural language query model for remote sensing images that can simultaneously support descriptions of geographic scope and scene content. Based on a two-way deep neural network model, query text and geographic location scene features of remote sensing images are respectively constructed, and the location scene feature vector is used to construct an index for the remote sensing image database. This can effectively realize remote sensing image retrieval based on geographic text information and improve the accuracy of remote sensing image query matching.

[0136] The remote sensing image retrieval device provided by the present invention is described below. The remote sensing image retrieval device described below and the remote sensing image retrieval method described above can be referenced to each other.

[0137] Figure 3 is a schematic diagram of the structure of the remote sensing image retrieval device provided by the present invention, such as Figure 3 As shown, it includes: a processing module 310 and a retrieval module 320 connected in sequence.

[0138] The processing module 310 is used to determine the scene description semantic feature vector and the geographic location description feature vector of the query text based on the query text input by the user;

[0139] A retrieval module 320 is used to retrieve a remote sensing image corresponding to the query text from a remote sensing image database based on the scene description semantic feature vector and the geographic location description feature vector of the query text;

[0140] The remote sensing image database is determined based on the scene description semantic features and geographic location description features obtained by feature extraction of each remote sensing image.

[0141] The remote sensing image retrieval device described in this embodiment can be used to execute the above-mentioned remote sensing image retrieval method embodiment. Its principles and technical effects are similar and will not be repeated here.

[0142] The remote sensing image retrieval device of the embodiment of the present invention mines the feature information of each remote sensing image of different regional ranges, extracts the scene description semantic features and geographical location description features of the remote sensing image to build a remote sensing image database, and uses the scene description semantic feature vector representation and the geographical location description feature vector representation to improve the efficiency of remote sensing image retrieval and matching, so that after receiving a query text containing geographical range text information input by a user, the scene description semantic feature vector and the geographical location description feature vector of the query text are extracted to retrieve the feature information of the remote sensing image stored in the remote sensing image database, not only can the remote sensing image be retrieved according to the geographical scene semantics described in the query text, but the geographical range information contained in the query text can also be processed to obtain remote sensing image retrieval results that are more in line with the user's spatial query intention, thereby realizing remote sensing image retrieval based on geographical text information and also improving the efficiency and accuracy of remote sensing image retrieval.

[0143] Figure 4 is a schematic diagram of the physical structure of the electronic device provided by the present invention, such as Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the remote sensing image retrieval method provided by the above methods, the method comprising: based on the query text input by the user, determining the scene description semantic feature vector and the geographical location description feature vector of the query text; based on the scene description semantic feature vector and the geographical location description feature vector of the query text, retrieving the remote sensing image corresponding to the query text from the remote sensing image database; the remote sensing image database is determined based on the scene description semantic features and the geographical location description features obtained by extracting features from each remote sensing image.

[0144] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0145] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the remote sensing image retrieval method provided by the above-mentioned methods, the method including: based on a query text input by a user, determining a scene description semantic feature vector and a geographic location description feature vector of the query text; based on the scene description semantic feature vector and the geographic location description feature vector of the query text, retrieving a remote sensing image corresponding to the query text from a remote sensing image database; the remote sensing image database is determined based on the scene description semantic features and geographic location description features obtained by extracting features from each remote sensing image.

[0146] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the remote sensing image retrieval method provided by the above-mentioned methods, the method comprising: determining a scene description semantic feature vector and a geographic location description feature vector of a query text input by a user; retrieving a remote sensing image corresponding to the query text from a remote sensing image database based on the scene description semantic feature vector and the geographic location description feature vector of the query text; the remote sensing image database is determined based on the scene description semantic features and the geographic location description features obtained by extracting features from each remote sensing image.

[0147] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A remote sensing image retrieval method, characterized in that: include: Based on the query text input by the user, determining a scene description semantic feature vector and a geographic location description feature vector of the query text; Retrieving a remote sensing image corresponding to the query text from a remote sensing image database based on the scene description semantic feature vector and the geographical location description feature vector of the query text; The remote sensing image database is determined based on scene description semantic features and geographical location description features obtained by extracting features from each remote sensing image; The retrieving the remote sensing image corresponding to the query text from a remote sensing image database based on the scene description semantic feature vector and the geographical location description feature vector of the query text comprises: Determine a location scene feature vector of the query text based on the scene description semantic feature vector and the geographic location description feature vector of the query text; Performing similarity analysis on the location scene feature vector of the query text and the location scene feature vector of each remote sensing image in the remote sensing image database to determine the remote sensing image corresponding to the query text; The location scene feature vector of each remote sensing image is determined based on the scene description semantic features and geographical location description features of each remote sensing image; The step of determining the scene description semantic feature vector and the geographic location description feature vector of the query text based on the query text input by the user includes: Performing feature extraction on the query text input by the user to determine a basic semantic feature vector of the query text; Inputting the basic semantic feature vector into a location scene description branch network to obtain a scene description semantic feature vector of the query text output by the location scene description branch network; the location scene description branch network is constructed based on a first self-attention module; The basic semantic feature vector is input into a geocoding prediction branch network to obtain a geographic location description feature vector of the query text output by the geocoding prediction branch network; the geocoding prediction branch network is trained based on query text samples and corresponding geocoding information labels.

2. The remote sensing image retrieval method according to claim 1, characterized in that: The geocoding prediction branch network includes a second self-attention module, a first fully connected layer and a first coding feature generation module; the basic semantic feature vector is input into the geocoding prediction branch network to obtain the geographic location description feature vector of the query text output by the geocoding prediction branch network, including: Inputting the basic semantic feature vector into the second self-attention module to obtain a self-attention feature vector output by the second self-attention module; Inputting the self-attention feature vector into the first fully connected layer to obtain geocoding prediction information of the query text output by the first fully connected layer; The geographic coding prediction information of the query text is input into the first coding feature generation module to obtain the geographic location description feature vector of the query text output by the first coding feature generation module; the first coding feature generation module is constructed based on the Transformer encoder.

3. The remote sensing image retrieval method according to claim 1, characterized in that: The step of extracting features from the query text input by the user to determine a basic semantic feature vector of the query text includes: The query text input by the user is input into the backbone network to obtain the basic semantic feature vector of the query text output by the backbone network; the backbone network is constructed based on multiple Transformer modules, and the Transformer modules are constructed based on multi-head self-attention modules, feedforward neural networks and residual connections.

4. The remote sensing image retrieval method according to any one of claims 1 to 3, characterized in that: Before retrieving the remote sensing image corresponding to the query text from the remote sensing image database based on the scene description semantic feature vector and the geographical location description feature vector of the query text, the method further includes: Acquire remote sensing image datasets; Extracting a scene description semantic feature vector and a geographic location description feature vector of each remote sensing image in the remote sensing image dataset; splicing the scene description semantic feature vector and the geographical location description feature vector of each remote sensing image, and inputting each splicing result into a second fully connected layer to obtain a location scene feature vector of each remote sensing image output by the second fully connected layer; Each of the remote sensing images and the corresponding location scene feature vector is saved in a preset database to obtain the remote sensing image database.

5. The remote sensing image retrieval method according to claim 4, characterized in that: The step of extracting a scene description semantic feature vector and a geographic location description feature vector of each remote sensing image in the remote sensing image dataset comprises: Input each of the remote sensing images into an image semantic feature extraction network to obtain a scene description semantic feature vector of each remote sensing image output by the image semantic feature extraction network; the image semantic feature extraction network is constructed based on a visual Transformer model; Convert each of the remote sensing images into a geographical range to obtain geographical coding information corresponding to each of the remote sensing images; The geographic coding information corresponding to each of the remote sensing images is respectively input into the second coding feature generation module to obtain the geographic location description feature vector of each of the remote sensing images output by the second coding feature generation module; the second coding feature generation module is constructed based on the Transformer encoder.

6. A remote sensing image retrieval device, characterized in that: include: A processing module, configured to determine a scene description semantic feature vector and a geographic location description feature vector of the query text based on a query text input by a user; A retrieval module, configured to retrieve a remote sensing image corresponding to the query text from a remote sensing image database based on a scene description semantic feature vector and a geographic location description feature vector of the query text; The remote sensing image database is determined based on scene description semantic features and geographical location description features obtained by extracting features from each remote sensing image; The retrieving the remote sensing image corresponding to the query text from a remote sensing image database based on the scene description semantic feature vector and the geographical location description feature vector of the query text comprises: Determine a location scene feature vector of the query text based on the scene description semantic feature vector and the geographic location description feature vector of the query text; Performing similarity analysis on the location scene feature vector of the query text and the location scene feature vector of each remote sensing image in the remote sensing image database to determine the remote sensing image corresponding to the query text; The location scene feature vector of each remote sensing image is determined based on the scene description semantic features and geographical location description features of each remote sensing image; The step of determining the scene description semantic feature vector and the geographic location description feature vector of the query text based on the query text input by the user includes: Performing feature extraction on the query text input by the user to determine a basic semantic feature vector of the query text; Inputting the basic semantic feature vector into a location scene description branch network to obtain a scene description semantic feature vector of the query text output by the location scene description branch network; the location scene description branch network is constructed based on a first self-attention module; The basic semantic feature vector is input into a geocoding prediction branch network to obtain a geographic location description feature vector of the query text output by the geocoding prediction branch network; the geocoding prediction branch network is trained based on query text samples and corresponding geocoding information labels.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the remote sensing image retrieval method according to any one of claims 1 to 5 is implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the remote sensing image retrieval method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Remote sensing image retrieval method and device, electronic equipment and storage medium

    CN112579816A

  • Remote sensing image feature point elevation acquisition method based on multiple sensors

    CN113807435A

  • Visual language navigation method and device based on open scene map and medium

    CN116499471A

  • Remote sensing data real-time spatial indexing method

    CN117421435A

  • Remote sensing image content retrieval method and device, electronic equipment and medium

    CN117556079A