Variational autoencoder balanced hashing remote sensing image retrieval method based on multi-channel feature fusion

Through the combination of multi-channel feature fusion and multi-scale dilated convolution modules, a variational autoencoder network is constructed, which solves the problems of high-dimensional feature processing and information loss in remote sensing image retrieval, achieves efficient multi-spectral remote sensing image retrieval, and improves Retrieval accuracy and performance.

CN114090813BActive Publication Date: 2024-08-27WUHAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111070959.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-13
Publication Date
2024-08-27
Estimated Expiration
2041-09-13

AI Technical Summary

Technical Problem

Existing remote sensing image retrieval methods have high space complexity in large-scale data processing, fail to fully utilize the multi-channel characteristics and multi-scale contextual information of multi-spectral images, resulting in information loss and reduced retrieval performance, and fail to effectively capture hashing code balance properties.

Method used

The variational autoencoder balanced hashing method based on multi-channel feature fusion is used to extract Gist features through the multi-channel feature fusion module, combined with the multi-scale dilated convolution module to obtain multi-scale context information, build an overall network model, and use variational autoencoding The machine performs hash code learning and optimizes the objective function to maintain the balanced characteristics and discrimination of the hash code.

Benefits of technology

The accuracy and performance of remote sensing image retrieval are improved. Through multi-channel feature fusion and multi-scale information capture, the balance characteristics and discrimination of hash codes are improved, and the efficiency and accuracy of large-scale remote sensing image retrieval are significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114090813B
    Figure CN114090813B
Patent Text Reader

Abstract

The present invention relates to a variational autoencoder balanced hash remote sensing image retrieval method based on multi-channel feature fusion. First, a data set is divided into a training data set and a test data set, and then a multi-channel feature fusion module is used to extract and fuse Gist features of different channels, and the fused Gist features are passed through a multi-scale dilated convolution module to obtain multi-scale context information of the remote sensing image, and then an overall network model is constructed, and the training data set is used to train the overall network, and finally the trained network is used to obtain the retrieval result. The present invention uses a multi-channel feature fusion module to learn multi-channel features for multispectral remote sensing image retrieval, and uses a multi-scale dilated convolution module to learn hash codes, thereby capturing multi-scale context information of remote sensing images, and constructing an objective function including reconstruction cost, KL divergence and balance terms, so that the balance characteristics and discrimination of the hash code are maintained during the hash learning process, and the accuracy of remote sensing image retrieval is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of remote sensing image retrieval, and in particular relates to a variational autoencoder balanced hash remote sensing image retrieval method based on multi-channel feature fusion. Background Art

[0002] With the rapid development of satellite and aircraft technology, remote sensing image retrieval technology has also been greatly improved. In the field of remote sensing image retrieval, effective retrieval has received more and more attention. Due to the availability of a large amount of high-resolution remote sensing data, large-scale remote sensing image retrieval has gradually become one of the most important research topics in the field of remote sensing. In order to manage and analyze remote sensing image data, many content-based remote sensing image retrieval methods have been gradually developed. These methods mainly include two parts: image feature extraction and similarity measurement. Although content-based remote sensing image retrieval methods have been widely developed, they can automatically process the representation of remote sensing image features and measure the similarity between remote sensing images. However, these methods still face many challenges in large-scale remote sensing image retrieval.

[0003] Traditional image retrieval methods compare the high-dimensional features of the query image with the high-dimensional features of each image in the dataset. These methods have high spatial complexity, and the search cost will gradually increase as the data and feature dimensions increase. To solve these problems, the following two aspects are mainly considered: (1) improving the feature search strategy; (2) reducing the image feature dimension. The former can be applied based on a tree structure, but when the feature dimension of the original image is very high, the retrieval performance will be affected. To avoid the shortcomings of this method, researchers have turned their attention to reducing the feature dimension of remote sensing images. Hashing algorithms can map images to low-dimensional space, where each image is represented by a binary code, and similar images produce similar binary codes. Due to the problems of large-scale datasets and insufficient label information in supervised hashing applications, unsupervised hashing algorithms have attracted the attention of many scholars. Scholars have proposed various unsupervised hashing algorithms to improve retrieval performance, but there are still the following three problems: (1) The multi-channel characteristics of multispectral remote sensing images are not taken into account, resulting in information loss of multispectral images; (2) Some methods perform unsupervised hash code learning, but ignore the multi-scale contextual information of remote sensing graphics, resulting in reduced remote sensing image retrieval performance; (3) Existing methods fail to fully capture the balanced characteristics of hash codes, resulting in insufficient utilization of the balanced characteristics and ultimately affecting the performance of remote sensing image retrieval. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention provides a variational autoencoder balanced hash remote sensing image retrieval method based on multi-channel feature fusion. First, the data set is divided into a training data set and a test data set, and then the Gist features of different channels are extracted and fused using a multi-channel feature fusion module, and the fused Gist features are passed through a multi-scale dilated convolution module to obtain the multi-scale context information of the remote sensing image, and then the overall network model is constructed, the training data set is used to train the overall network, and finally the trained network is used to obtain the retrieval results.

[0005] In order to achieve the above object, the technical solution provided by the present invention is a variational autoencoder balanced hash remote sensing image retrieval method based on multi-channel feature fusion, comprising the following steps:

[0006] Step 1, divide the training data set and the test data set;

[0007] Step 2: Use the multi-channel feature fusion module to extract and fuse Gist features from different channels;

[0008] Step 3, the fused Gist features obtained in step 2 are passed through a multi-scale dilated convolution module to obtain multi-scale context information of the remote sensing image;

[0009] Step 4: Build the overall network model, using the variational autoencoder as the backbone network, including the inference network and the generation network;

[0010] Step 5, training the overall network model, calculating the objective function of the overall network model, and updating the initial parameters of the overall network model;

[0011] Step 6: Use the trained network to obtain retrieval results.

[0012] Moreover, the multi-channel Gist feature fusion calculation method in step 2 is as follows:

[0013]

[0014] Where X represents the multispectral remote sensing image, n represents the number of channels of the multispectral remote sensing image, f(·) is the function of extracting n channels from the multispectral remote sensing image, k(·) represents the function of extracting the Gist features of n channels, and G represents the Gist features of the final multispectral remote sensing image.

[0015] Moreover, in the step 3, a multi-scale dilated convolution module is used to obtain more contextual information of the remote sensing image. The multi-scale dilated convolution module obtains contextual information of different scales by dilated convolution of 64*11, 64*17, and 64*19 for the Gist features extracted in step 2. After the contextual information of different scales is connected through the concatenation operator, a 1*11 dilated convolution is passed, and the shape is reshaped so that the output and input shapes are consistent, and finally the subsequent training process is carried out through FC forward propagation.

[0016] Moreover, the inference network h(x) in step 4 is mainly responsible for converting the original data (the data processed by steps 2 and 3) x∈R d Map to a variational probability distribution and sample the hidden layer vector z∈R from the probability distribution k ; The generating network g(z) is mainly responsible for transforming the hidden layer vector z∈R k , that is, the hash code obtained by the inference network mapping is remapped back to the original data x∈R d , where d is the dimension of the original data, k is the dimension after mapping, and d≠k.

[0017] Furthermore, in step 5, it is assumed that the set represents the unlabeled sample set, x i Represents the i-th sample, and the calculation formula of the hash function is as follows:

[0018] b=sign(h(x i ))=sign(h j (x i )),j=1,2,...,k (2)

[0019]

[0020] In the formula, b represents the hash code, h j (x i ) represents the original data x i The j-th value of the intermediate layer feature vector obtained by the inference network of the variational autoencoder.

[0021] In order to better learn the hash function and avoid the difficulty of optimizing a non-smooth discrete function, the output h(x i ) is used as the input of the generative network, and the reconstruction cost function is:

[0022]

[0023] Where, L r Represents the reconstruction cost, which can make the similar points in the reconstruction process as similar as possible;

[0024] The variational autoencoder needs to keep the probability distribution close to the standard normal distribution N(0,1) by minimizing the KL divergence, which is defined as:

[0025]

[0026] In the formula, represents the KL divergence, which can maintain the discrimination of the hash code during the hash learning process; μ i is the sample x i The mean of is the sample x i The variance of

[0027] In order to maintain the balance property of the hash code, the balance term is defined as:

[0028]

[0029] Where, L b represents the balance term, which can maintain the balance characteristics of the hash code during the hash learning process; μ i is the sample x i The mean of

[0030] Considering the reconstruction cost, KL divergence and balance term, the formula of the final objective function is expressed as follows:

[0031]

[0032] Where α and β represent the hyperparameters of the degree of the evaluation item.

[0033] When training the overall network model, the Adam algorithm is used for optimization, the learning rate is set to ε = 0.0001, the batch size M = 100, the length k of the hash code is set to 16, 24, 36, 48, and 64 respectively, the weight parameters θ and Φ of the generation network and the inference network are initialized by glorot uniform distribution, α is set to 1, and β is set to 5. The trained network model is obtained after 1000 iterations or the loss function no longer decreases.

[0034] Moreover, in step 6, the trained network is used to calculate the hash code of the sample image in the test data set, the Hamming distance between the hash code of the query sample and each sample in the data set is sorted from large to small, and the top n accuracies in the ranking list are calculated to obtain the average precision index MAP and the top n retrieval results.

[0035] Compared with the prior art, the present invention has the following advantages: the present invention uses a multi-channel feature fusion module to perform unsupervised learning of hash codes to learn multi-channel features for multispectral remote sensing image retrieval; uses a multi-scale dilated convolution module to learn hash codes to capture multi-scale contextual information of remote sensing images; constructs an objective function including reconstruction cost, KL divergence and balance terms, so that the balance characteristics and discrimination of hash codes are maintained during the hash learning process, thereby further improving the accuracy of remote sensing image retrieval. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 is a flow chart of an embodiment of the present invention.

[0037] Figure 2 This is a diagram of a multi-channel feature fusion module according to an embodiment of the present invention.

[0038] Figure 3 This is a network structure diagram of an embodiment of the present invention.

[0039] Figure 4 This is a multi-scale context information learning graph based on multi-scale dilated convolution in an embodiment of the present invention.

[0040] Figure 5 The first 10 results retrieved by the embodiment of the present invention on the SAT-4 dataset are shown in the first column. The first column is the query example, and the other columns show the results retrieved using the method of the present invention. Incorrect retrieval results are marked with red boxes. DETAILED DESCRIPTION

[0041] The present invention provides a variational autoencoder balanced hash remote sensing image retrieval method based on multi-channel feature fusion. Firstly, a data set is divided into a training data set and a test data set. Then, a multi-channel feature fusion module is used to extract and fuse Gist features of different channels. The fused Gist features are passed through a multi-scale dilated convolution module to obtain multi-scale context information of the remote sensing image. Then, an overall network model is constructed, the training data set is used to train the overall network, and finally, the trained network is used to obtain a retrieval result.

[0042] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0043] like Figure 1 As shown, the process of the embodiment of the present invention includes the following steps:

[0044] Step 1: Divide the training data set and the test data set.

[0045] The SAT-4 image dataset contains 500,000 images, all of which are 28×28 in size and have 4 channels per image. 1,000 images are randomly selected as test and query datasets, and the rest are used as training datasets and retrieval databases.

[0046] Step 2: Use the multi-channel feature fusion module to extract and fuse Gist features from different channels.

[0047] Gist features can not only describe the external contour information of the image, but also describe the high-level information and statistical information hidden in the image. The multi-channel Gist feature fusion calculation method is as follows:

[0048]

[0049] Where X represents the multispectral remote sensing image, n represents the number of channels of the multispectral remote sensing image, f(·) is the function of extracting n channels from the multispectral remote sensing image, k(·) represents the function of extracting the Gist features of n channels, and G represents the Gist features of the final multispectral remote sensing image.

[0050] Step 3: Pass the fused Gist features obtained in step 2 through a multi-scale dilated convolution module to obtain the multi-scale context information of the remote sensing image.

[0051] Different convolution kernels can learn different feature maps, and all feature maps are connected with fusion information of different scales. The multi-scale dilated convolution module is used to obtain more context information of remote sensing images. The multi-scale dilated convolution module obtains context information of different scales by dilating the Gist features extracted in step 2 through 64*11, 64*17, and 64*19 convolution operations. After connecting the context information of different scales through the concatenation operator, it passes through a 1*11 dilated convolution and reshapes the output to make the shape consistent with the input. Finally, the subsequent training process is carried out through FC (forward propagation).

[0052] Step 4: Build the overall network model and use the variational autoencoder as the backbone network. The backbone network consists of two parts: the inference network and the generation network.

[0053] The inference network h(x) is mainly responsible for converting the original data (data processed by steps 2 and 3) x∈R d Map to a variational probability distribution and sample the hidden layer vector z∈R from the probability distribution k ; The generating network g(z) is mainly responsible for transforming the hidden layer vector z∈R k , that is, the hash code obtained by the inference network mapping is remapped back to the original data x∈R d , where d is the dimension of the original data, k is the dimension after mapping, and d≠k.

[0054] Step 5: train the overall network model, calculate the objective function of the overall network model, and update the initial parameters of the overall network model.

[0055] Hypothesis set represents the unlabeled sample set, x i Represents the i-th sample, and the calculation formula of the hash function is as follows:

[0056] b=sign(h(x i ))=sign(h j (x i )),j=1,2,...,k (2)

[0057]

[0058] In the formula, b represents the hash code, h j (x i ) represents the original data x i The j-th value of the intermediate layer feature vector obtained by the inference network of the variational autoencoder.

[0059] In order to better learn the hash function and avoid the difficulty of optimizing a non-smooth discrete function, the output h(x i ) is used as the input of the generative network, and the reconstruction cost function is:

[0060]

[0061] Where, L r Represents the reconstruction cost, which can make the similar points in the reconstruction process as similar as possible.

[0062] The variational autoencoder needs to keep the probability distribution close to the standard normal distribution N(0,1) by minimizing the KL divergence, which is defined as:

[0063]

[0064] In the formula, represents the KL divergence, which can maintain the discrimination of the hash code during the hash learning process; μ i is the sample x i The mean of is the sample x i The variance of .

[0065] In order to maintain the balance property of the hash code, the balance term is defined as:

[0066]

[0067] Where, L b represents the balance term, which can maintain the balance characteristics of the hash code during the hash learning process; μ i is the sample x i The mean of .

[0068] Considering the reconstruction cost, KL divergence and balance term, the formula of the final objective function is expressed as follows:

[0069]

[0070] Where α and β represent the hyperparameters of the degree of the evaluation item.

[0071] When training the overall network model, the Adam algorithm is used for optimization, the learning rate is set to ε = 0.0001, the batch size M = 100, the length k of the hash code is set to 16, 24, 36, 48, and 64 respectively, the weight parameters θ and Φ of the generation network and the inference network are initialized by glorot uniform distribution, α is set to 1, and β is set to 5. The trained network model is obtained after 1000 iterations or the loss function no longer decreases.

[0072] Step 6: Use the trained network to obtain retrieval results.

[0073] Use the trained network to calculate the hash code of the sample images in the test dataset, sort the Hamming distance between the query sample and the hash code of each sample in the dataset from large to small, and calculate the top n precisions in the ranking list to obtain the average precision index MAP and the top n retrieval results.

[0074] In order to evaluate the effectiveness of the method of the present invention, considering the three factors of multi-channel feature fusion, multi-scale dilated convolution and balance term, the retrieval performance of the method proposed in the present invention is first compared with the retrieval performance of the method proposed in the present invention without using the multi-channel feature fusion module (VAEH-M), without using the multi-scale dilated convolution module (VAEH-S), and without considering the balance term (VAEH-B), and then the retrieval performance of the method proposed in the present invention is compared with advanced methods such as IMH, IsoHash, ITQ, SpH, KULSH, PRH, OKH, OSH, OPRH and VAEH. This experiment uses different hash codes of 16, 24, 36, 48, and 64 bits, uses the SAT-4 image data set, and the multi-channel feature fusion method uses Gist features to represent image data. IMH, IsoHash, ITQ, SpH, KULSH, PRH, OKH, OSH, OPRH and VAEH methods are implemented according to the original paper.

[0075] Table 1

[0076]

[0077] Table 1 shows the comparative experimental results of the present invention and VAEH-M, VAEH-S, and VAEH-B on the SAT-4 dataset with different bit hash codes, where MAP is the average precision index. The comparison results show that the method proposed in the present invention has the highest average precision index for the first 10 retrieval results on the SAT-4 dataset with different bit hash codes.

[0078] Table 2

[0079]

[0080] Table 2 is a comparison of the average precision of the top-10 retrieval results and top-100 retrieval results of the present invention and other methods on the SAT-4 dataset with different bit hash codes, where MAP is the average precision index. By comparing the results, it can be seen that the method proposed in the present invention has the highest average precision index for the top 10 and top 100 retrieval results on the SAT-4 dataset with different bit hash codes.

[0081] During specific implementation, the above process can be automatically operated using computer software technology.

[0082] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.

Claims

1. A variational autoencoder balanced hashing remote sensing image retrieval method based on multi-channel feature fusion, It is characterized in that The steps include: Step 1, divide the training data set and the test data set; Step 2: Use the multi-channel feature fusion module to extract and fuse Gist features from different channels; Step 3, the fused Gist features obtained in step 2 are passed through a multi-scale dilated convolution module to obtain multi-scale context information of the remote sensing image; Step 4: Build the overall network model, using the variational autoencoder as the backbone network, including the inference network and the generation network; Step 5, training the overall network model, calculating the objective function of the overall network model, and updating the initial parameters of the overall network model; Hypothesis set represents the unlabeled sample set, x i Represents the i-th sample, and the calculation formula of the hash function is as follows: b=sign(h(x i ))=sign(h j (x i )),j=1,2,...,k (2) In the formula, b represents the hash code, h j (x i ) represents the original data x i The jth value of the intermediate layer feature vector obtained by the inference network of the variational autoencoder; The output of the inference network h(x i ) is used as the input of the generative network, and the reconstruction cost function is: Where, L r represents the reconstruction cost; The variational autoencoder keeps the probability distribution close to the standard normal distribution N(0,1) by minimizing the KL divergence, which is defined as: In the formula, represents the KL divergence, which can maintain the discrimination of the hash code during the hash learning process; μ i is the sample x i The mean of is the sample x i The variance of The balancing term is defined as: Where, L b represents the balance term, which can maintain the balance characteristics of the hash code during the hash learning process; μ i is the sample x i The mean of Considering the reconstruction cost, KL divergence and balance term, the formula of the final objective function is expressed as follows: Where α and β represent the hyperparameters of the degree of the evaluation item; Step 6: Use the trained network to obtain retrieval results.

2. A remote sensing image retrieval method based on a variational autoencoder balanced hashing method for multi-channel feature fusion as claimed in claim 1, Features: The multi-channel Gist feature fusion calculation method in step 2 is as follows: Where X represents the multispectral remote sensing image, n represents the number of channels of the multispectral remote sensing image, f(`) is the function of extracting n channels from the multispectral remote sensing image, k(`) represents the function of extracting n-channel Gist features, and G represents the Gist features of the final multispectral remote sensing image.

3. A variational autoencoder balanced hash remote sensing image retrieval method based on multi-channel feature fusion as claimed in claim 2, Features: In step 3, a multi-scale dilated convolution module is used to obtain more contextual information of remote sensing images. The multi-scale dilated convolution module obtains contextual information of different scales by dilated convolution of 64*11, 64*17, and 64*19 for the Gist features extracted in step 2. After the contextual information of different scales is connected through the concatenation operator, it is passed through a 1*11 dilated convolution and reshaped to make the output and input shapes consistent. Finally, the subsequent training process is carried out through FC forward propagation.

4. A remote sensing image retrieval method based on a variational autoencoder balanced hashing based on multi-channel feature fusion as claimed in claim 1, Features: In step 4, the inference network h(x) is mainly responsible for converting the original data x∈R d , that is, the data processed in steps 2 and 3 are mapped to the variational probability distribution, and the hidden layer vector z∈R is sampled from the probability distribution k ; The generating network g(z) is mainly responsible for transforming the hidden layer vector z∈R k , that is, the hash code obtained by the inference network mapping is remapped back to the original data x∈R d , where d is the dimension of the original data, k is the dimension after mapping, and d≠k.

5. A variational autoencoder balanced hash remote sensing image retrieval method based on multi-channel feature fusion as claimed in claim 1, Features: When training the overall network model in step 5, the Adam algorithm is used for optimization, the learning rate is set to ε = 0.0001, the batch size M = 100, the length k of the hash code is set to 16, 24, 36, 48, 64 respectively, the weight parameters θ and Φ of the generation network and the inference network are initialized by glorot uniform distribution, α is set to 1, β is set to 5, and the training is performed for 1000 iterations or the loss function no longer decreases to obtain the trained network model.

6. A variational autoencoder balanced hash remote sensing image retrieval method based on multi-channel feature fusion as claimed in claim 1, Features: In step 6, the trained network is used to calculate the hash code of the sample images in the test dataset, the Hamming distances between the query sample and the hash codes of each sample in the dataset are sorted from large to small, and the top n accuracies of the ranking list are calculated to obtain the average precision index MAP and the top n retrieval results.