Air-ground visual positioning method based on position coding attention mechanism and statistical descriptor

Through the dual-branch feature extraction network that integrates the position coding attention mechanism and statistical descriptors, the problem of low positioning accuracy and large feature differences in complex backgrounds in air-ground visual positioning technology is solved, and high-precision and stable air-ground visual positioning is achieved.

CN118537598AActive Publication Date: 2024-08-23XIDIAN UNIV

Patent Information

Application Number
CN202410667290.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-08-23
Estimated Expiration
2044-05-28

AI Technical Summary

Technical Problem

The existing open-ground visual positioning technology has low positioning accuracy under the background of complex dynamic objects, and changes in illumination and viewing angles lead to large feature differences, leading to problems of mispositioning and insufficient accuracy.

Method used

It adopts a dual-branch feature extraction network that combines position-encoding attention mechanism and statistical descriptor to extract and match features of images through multi-head self-attention layer and statistical descriptor, learn the topological relationship of local features and reduce the impact of illumination and viewing angle changes. .

Benefits of technology

It improves positioning accuracy and anti-interference ability, reduces feature differences, and enhances positioning accuracy and stability in complex scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537598A
    Figure CN118537598A
Patent Text Reader

Abstract

An air-ground visual positioning method based on a position coding attention mechanism and statistical descriptors comprises the following steps: acquiring a plurality of remote sensing images with positioning information and an image to be positioned, segmenting all the images, extracting the statistical descriptor from each segmented image, and performing post-processing to form the statistical descriptor of the image; each image and the corresponding statistical descriptor form a training set, a fused double-branch feature extraction network of position coding multi-head attention and statistical descriptors is constructed, the training set is used for training the network through a triple loss function, feature similarity measurement is carried out on the image to be positioned and each remote sensing image, and the feature similarity of the image to be positioned and each remote sensing image is calculated. And obtaining a trained network and image matching result. The multi-head attention vector is subjected to position coding and is fused with the image statistical descriptor features, and the method has the advantages of being high in dynamic complex view angle anti-interference capacity, high in visual positioning precision and low in measurement error between the same features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and further relates to an air-ground visual positioning method based on a position coding attention mechanism and a statistical descriptor in the field of computer vision application technology. The present invention is used to realize the positioning of aerial targets in scenes in ground images obtained from the air. Background Art

[0002] As the basis of geographic surveying and mapping, target detection, building positioning, disaster relief and other tasks, air-ground visual positioning plays an indispensable role in remote sensing detection fields such as drones and satellites. At present, the air-ground visual positioning method transforms the positioning problem into an image matching problem, that is, using the existing remote sensing image as a reference, and then matching the image of the area to be positioned with the remote sensing image, and the position corresponding to the area with the highest image similarity is the desired position.

[0003] The open space visual positioning based on image matching can be divided into traditional methods and methods based on deep learning. Traditional image matching methods are usually divided into two steps. The first step is feature extraction, and the second step is to use the extracted feature descriptors for image matching. The higher the similarity of the feature descriptors between the two images, the higher the matching probability. However, this method only relies on pixel-level features, and serious mismatches will occur in complex backgrounds, resulting in positioning errors. The deep learning method does not rely on pre-designed feature extraction operators, but is trained based on the characteristics of the data itself. Deep learning based on convolutional neural networks uses templates with multiple updateable parameters to perform convolution operations on the original image to obtain multi-layer features, extract deep semantic information in the image, and achieve image matching based on this information. The deep learning method based on the attention mechanism directly divides the image into fixed-size image blocks, performs encoding operations on each image block, and uses the attention mechanism to measure the similarity of the image block features one by one to obtain the feature salient area of ​​the overall image. Finally, matching is performed based on the similarity of features between different images to obtain matching results.

[0004] The Information Engineering University of the Strategic Support Force of the Chinese People's Liberation Army disclosed a cross-view image matching positioning method in its patent application "Cross-view image matching and positioning method and system based on feature relationship guidance" (patent application number: CN202311349747.3, application publication number: CN 117495956 A). This method constructs a cross-view image matching model based on a twin neural network, uses a convolutional network to extract features from the entire image, and trains the cross-view image matching model based on a preset loss function and sample data; for the pre-processed target aerial remote sensing image and ground view image, the trained cross-view image matching model is image matched to achieve the positioning task of querying the ground panoramic image. There are two shortcomings in this method: First, this method extracts features from the entire image, and the local areas contain spatial topological correlations. Therefore, only the global information of the ground scene is used, and the position correlation analysis of local typical ground features is not performed, resulting in insufficient positioning accuracy. Second, this method does not perform saliency analysis on the extracted features, and is easily affected by clutter in a complex background, resulting in mispositioning.

[0005] The 54th Institute of China Electronics Technology Group Corporation disclosed a method for completing drone positioning using aerial images and IMU in its patent application "A UAV Navigation and Positioning Method" (patent application number: CN202210142961.0, authorization announcement number: CN 114509070 B). This method segments remote sensing images based on semantic segmentation methods to obtain the topological relationship between the adaptation area and each scene; uses aerial images and IMU to complete drone positioning through the SLAM algorithm; determines whether the drone is in the adaptation area, corrects and semantically segments the aerial images; determines the matching area and performs semantic matching; after the matching is successful, the positioning result can be obtained. The shortcomings of this method are: since the semantic segmentation and perspective correction methods are greatly affected by lighting and scene conditions, the visual positioning effect is not good when the lighting changes and the perspective is distorted in the matching area, and the use of IMU sensors will introduce inertial guidance errors, affecting the positioning results. Summary of the invention

[0006] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and propose an empty-ground visual positioning method based on position encoding attention mechanism and statistical descriptor, which is used to solve the problems of low positioning accuracy caused by clutter interference and unutilized topological relationship between local features in the complex dynamic background of existing positioning technology, as well as low similarity of features of the same scene caused by large feature differences under changes in lighting and viewing angle.

[0007] The idea of ​​achieving the purpose of the present invention is that, since the present invention uses the position coding attention mechanism to enhance the features of typical image areas, by encoding the appearance of each image area, and merging the position coding and appearance coding expressed in complex numbers, the appearance correlation analysis is performed with each area feature and other areas through the attention mechanism, and the position relationship between different areas is learned, which solves the problem of low positioning accuracy caused by the topological relationship between clutter interference and unused local features in the complex dynamic background. Since the present invention uses the statistical descriptor of texture and edge features, the distribution function of the features of different scales of the scene is obtained by using feature extraction functions of different scales, and the statistical features of the features are obtained according to the distribution function, the statistical features of the scene are insensitive to the feature changes caused by the distribution of light intensity and the change of viewing angle, which solves the problem that the existing method causes the image features of the same scene to be too different under the change of viewing angle and illumination.

[0008] The specific steps of the present invention include the following:

[0009] Step 1, forming an image set from at least 10 remote sensing images containing GPS information of the observation area and 1 image obtained by the airborne camera, normalizing each image in the image set and performing image segmentation, and forming all the segmented images into an image set;

[0010] Step 2, extracting multi-scale GIST features and LBP features from each image in the image set, performing statistical description and post-processing on the obtained GIST features and LBP features to obtain statistical descriptors;

[0011] Step 3, the image set and the statistical descriptor are combined into a training set;

[0012] Step 4: construct a dual-branch feature extraction network that integrates positional encoding multi-head attention and statistical descriptors;

[0013] Step 5, input each image in the training set into the first branch of the network, perform position encoding operation on the output vector of the multi-head self-attention layer in the first branch, input the statistical descriptor corresponding to the image into the second branch of the network, and output the feature vector of the image through the fusion module; use the stochastic gradient descent method to iteratively update the network parameters, and use cosine similarity as the measurement criterion of the feature vectors of images with the same label until the triple loss function converges, and obtain a trained fusion dual-branch feature extraction network;

[0014] Step 6, using the same method as steps 1 and 2, obtain statistical descriptors of the image to be located and the remote sensing image containing GPS information of the observation area, input the image to be located and the remote sensing image and the statistical descriptors corresponding to each image into the trained feature extraction network, output the one-dimensional feature vector of the image, and compare the feature vectors of the image to be located and the remote sensing image for similarity;

[0015] Step 7: Match the image to be positioned with the remote sensing image having the highest feature vector similarity, and the positioning information contained in the matched remote sensing image is used as the visual positioning result.

[0016] Compared with the prior art, the present invention has the following advantages:

[0017] First, because the present invention utilizes the position coding attention mechanism to perform feature enhancement on typical image areas and utilizes the position coding expressed in complex numbers, it overcomes the defects of low positioning accuracy caused by the interference of clutter existing in the complex dynamic background and the failure to utilize the topological relationship between local features. This enables the present invention to have the advantages of learnability of the topological relationship between local features and strong anti-interference ability in dynamic and complex scenes, and high visual positioning accuracy.

[0018] Second, since the present invention utilizes the statistical descriptors of GIST features and LBP features, it overcomes the shortcomings of existing methods that result in excessive differences in image features corresponding to the same scene under changes in viewing angle and illumination. The present invention reduces the differences in features of the same scene and has the advantage of low measurement error between the same features. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flow chart of the present invention;

[0020] Figure 2 is a flow chart of the image segmentation method of the present invention;

[0021] Figure 3 This is a schematic diagram of the GIST and LBP feature extraction principle of the present invention, wherein: Figure 3 (a) is the principle diagram of multi-scale GIST feature extraction. Figure 3 (b) is the principle diagram of LBP feature extraction;

[0022] Figure 4 This is a schematic diagram of the working principle of the network fusion module of the present invention;

[0023] Figure 5 This is a schematic diagram of the position coding attention operation principle of the present invention;

[0024] Figure 6 This is the flowchart of the post-encoding attention mechanism of the present invention. DETAILED DESCRIPTION

[0025] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0026] Reference Figure 1 , further describing the implementation steps of the embodiment of the present invention.

[0027] Figure 1As shown, the device of the present invention is composed of a pair of twin networks whose parameters are not shared with each other, and each network is composed of a first branch connected in parallel with a second branch and then connected in series with a fusion module.

[0028] Step 1: at least 10 remote sensing images containing GPS information of the observation area acquired synchronously and 1 image acquired by the airborne camera constitute an image set, each image in the image set is normalized and then segmented, and all the segmented images are combined into an image set.

[0029] Refer to the following Figure 2 , the image segmentation step of the present invention is further described in detail.

[0030] The image segmentation described in the embodiment of the present invention is based on Figure 2 As shown, for the optical remote sensing image with GPS information of the image center and each image collected by the airborne camera, the original resolution of the image is 640×640. Each image is divided into 16 pictures according to the length and width of four equal parts, and the resolution of each picture is 160×160.

[0031] Step 2: extract multi-scale GIST features and LBP features from each image in the image set, perform statistical description and post-processing on the obtained GIST features and LBP features to obtain statistical descriptors.

[0032] The multi-scale GIST feature extracts the eigenvalue of each element of each image according to the following formula, and all the eigenvalues ​​form the feature matrix of the image:

[0033]

[0034] in, represents the eigenvalue at (x, y) in the coordinate system with the upper left corner of the i-th image as the origin, concat(·) represents the concatenation operation, I(x, y) represents the grayscale value at (x, y) in the coordinate system with the upper left corner of the i-th image as the origin, * represents the convolution operation, a -m represents the scale expansion factor, a represents the empirical constant, a>1, m represents the expansion value of the scale number 6, π represents the circumference of a circle, σ x , σ y They represent the standard deviation of the Gaussian function in the horizontal and vertical directions, exp represents the exponential operation with the natural exponent e as the base, x′ and y′ represent the coordinates of x and y after rotation transformation, respectively. Indicates the kth rotation angle, k indicates the serial number of the rotation angle, k=0,1,2,…,n-1, the value of n is equal to the number of rotation directions, sin indicates sine operation, cos indicates cosine operation, Represents the initial phase of the cosine function, P iRepresents the set of all pixel positions in the i-th image.

[0035] Refer to the following Figure 3 (a), the GIST feature extraction step of the present invention is further described in detail.

[0036] Figure 3 Each square on the left side of (a) represents a pixel in the image. The square corresponding to the tail of the arrow on the left side is the location of the GIST eigenvalue to be calculated. The number of arrows in the square represents the number of rotation directions. The arrow points to the positive direction of x′. The kernel function image in the middle represents the function The two segmentation scales of the left image are multiplied by the three scaling scales of the intermediate kernel function to form an expansion value with the m scale number of 6. The right side shows the multi-scale GIST feature corresponding to the pixel position extracted.

[0037] The LBP feature is to extract the eigenvalue of each pixel of each picture according to the following formula, and form the feature matrix of the picture with all the eigenvalues:

[0038]

[0039] Among them, LBP i (x c ,y c ) represents the center pixel (x) in the square window in the i-th image. c ,y c ), p represents the 8 neighborhoods of the center pixel in the square window, h represents the sequence number of the neighborhood, and s(·) represents the sign function: I h Represents the gray value of the pixel in the hth neighborhood within the square window, I c represents the center pixel (x c ,y c ) is the gray value at .

[0040] Refer to the following Figure 3 (b) The LBP feature extraction step of the present invention is further described in detail.

[0041] Figure 3 Each square in (b) represents a pixel, and the number in the upper left square represents the grayscale value of the corresponding pixel. This embodiment compares the grayscale of the central pixel with that of the neighboring pixels, and generates a binary LBP feature value corresponding to the pixel position in the direction indicated by the broken line arrow.

[0042] The statistical description and post-processing refers to calculating the statistical descriptor of each image according to the following formula to obtain the statistical description subset of each image:

[0043]

[0044] in, The statistical descriptor representing the r-th feature of the i-th image, i = 0, 1, 2, ..., 15, represents the statistical moment, n represents the order of the moment, R r Indicates smoothness, U r Indicates consistency, SD b represents the statistical descriptor of the b-th image, represents the direct sum operation, q represents the total number of features, represents the response value of the rth feature of the ith image, μ represents the mean feature response of the ith image, and p(·) represents The frequency of occurrence of the feature in the total number of features, μ2 represents the variance of the feature response.

[0045] Step 3: Combine the image set and the statistical descriptor into a training set.

[0046] The training set refers to a sample set consisting of earth observation images collected by remote sensing satellites and airborne cameras in at least 200 different longitude and latitude regions, a corresponding statistical descriptor generated for each image in the sample set, annotating the image in the sample set and the corresponding statistical descriptor with the same longitude and latitude label, and all images in the sample set and their corresponding statistical descriptors and their labels form a training set.

[0047] The training set of the embodiment of the present invention is 1652 satellite images and drone aerial images of different latitude and longitude locations obtained from the public data set University1652. The satellite images and drone images corresponding to the same location are marked with the same label. 80% of the total number of scenes in the data set are randomly selected as training set images, and the remaining 20% ​​are used as test set images.

[0048] Step 4: Construct a dual-branch feature extraction network that integrates position encoding multi-head attention and statistical descriptors.

[0049] The fusion dual-branch feature extraction network is composed of a first branch and a second branch connected in parallel and then connected in series with a fusion module;

[0050] The first branch is composed of 12 encoders with exactly the same structure connected in series, each encoder is composed of a first regularization layer, a multi-head attention layer, a Dropout layer, a first residual connection layer, a second regularization layer, a multi-layer perceptron layer, a Dropout layer, and a second residual connection layer connected in series in sequence; the number of attention heads of the multi-head attention layer is set to 8; the inactivation ratio of the Dropout layer is set to 0.2;

[0051] The second branch structure is composed of a first convolutional layer, a batch normalization layer, and a second convolutional layer connected in series in sequence; the number of convolution kernels of the first and second convolutional layers is set to 16 and 8 respectively, and the padding number is set to 1 and 0 respectively; the step size of the first convolutional layer is set to 1, and the output dimension of the second convolutional layer is set to 196×768;

[0052] The fusion module is composed of a concatenation layer, a convolution layer, a first fully connected layer, a Dropout layer, and a second fully connected layer connected in series in sequence; the output dimensions of the first and second fully connected layers are both set to 1024; and the inactivation ratio of the Dropout layer is set to 0.2.

[0053] Refer to the following Figure 4 , the working principle of the fusion module of the present invention is further described in detail.

[0054] First, the statistical descriptor of the image GIST feature in the second branch of the module is spliced ​​with the LBP feature descriptor, and the output feature height and width are 196×768. The spliced ​​feature is then spliced ​​with the attention mechanism result of the first branch in the channel dimension. The spliced ​​feature is then passed through the convolution layer, fully connected layer, Dropout layer and fully connected layer in sequence, and the fully connected layer outputs a 1×1024 feature vector.

[0055] Step 5, input each image in the training set into the first branch of the network, perform position encoding operation on each image area through the output vector of the multi-head self-attention layer in the first branch, input the corresponding statistical descriptor of the image into the second branch of the network, and output the feature vector of the image through the fusion module; use the stochastic gradient descent method to iteratively update the network parameters, and use cosine similarity as the measurement criterion of the feature vectors of images with the same label until the triplet loss function converges, and obtain a trained fused dual-branch feature extraction network.

[0056] Refer to the following Figure 5 , the position encoding attention workflow of the present invention is further described in detail.

[0057] Figure 5 The upper left corner of the image is the origin of the coordinates. Each square is regarded as an image region. The attention vector of each image region is encoded with a position. First, the appearance attention vectors Q, K, and V are obtained for each image region X. Then, the Q and K vectors are encoded with Figure 5 Position encoding is performed in the coordinate system shown and the vector after each position encoding differs from that before encoding by only a constant c, that is,

[0058]

[0059] in, Represents the encoded attention vector at any position.

[0060] The position encoding operation is obtained according to the following formula:

[0061]

[0062] in, They represent the position encoding attention vector output by the first branch multi-head attention layer in the network, the position encoding at coordinates (m1,n1) and (m2,n2), Respectively represent the vectorization operation of the image region at coordinates (m1, n1) and (m2, n2), W q , W k represents a learnable parameter matrix, j represents the imaginary unit symbol, and arctan(·) represents the inverse tangent operation.

[0063] Refer to the following Figure 6 , further describe the post-encoding attention mechanism process in detail.

[0064] The first step is to obtain the position-encoded Vector, Positional Embedding in the figure represents the position encoding operation, V represents A vector of values ​​with the same coordinates.

[0065] In the second step, the image regions at each position are operated on pairwise by the softmax function. The output of any set of attention mechanisms is as follows:

[0066]

[0067] d k It represents the normalization parameter. In this embodiment, the value is 64, which can avoid the problem of gradient explosion during network training caused by too large a softmax function.

[0068] The triple loss function described in the embodiment of the present invention is as follows:

[0069]

[0070] Wherein, Triplet loss represents the loss value of the real label in the network training sample set, max represents the maximum value operation, (·) represents the inner product operation, ‖·‖ represents the Euclidean norm, a represents the feature vector of the image to be located, p represents the positive sample feature vector, n represents the negative sample feature vector, margin represents the feature separation distance, and in this embodiment, margin=0.5 is taken. During the network training process, the parameters of each layer of the network are back-propagated and updated by optimizing the distance between the a vector and the positive sample feature vector to be less than the cosine distance of the negative sample feature vector.

[0071] Step 6, using the same method as steps 1 and 2, obtain the statistical descriptors of the image to be located and the remote sensing image containing the GPS information of the observation area, input the image to be located, the remote sensing image and the statistical descriptors corresponding to each image into the trained feature extraction network, output the one-dimensional feature vector of the image, and compare the similarity of the feature vectors of the image to be located and the remote sensing image.

[0072] Step 7: Match the image to be positioned with the remote sensing image having the highest feature vector similarity, and the positioning information contained in the matched remote sensing image is used as the visual positioning result.

[0073] The effect of the present invention can be further demonstrated through the following simulation.

[0074] 1. Simulation experimental conditions.

[0075] The hardware experimental platform of the present invention is: processor: Intel i7-13700KF, graphics card: NVIDIA GeForceRTX 4090.

[0076] The software platforms for the simulation experiment of the present invention are: Ubuntu20.04 operating system and PyCharm23.02.

[0077] The simulation experiment of the present invention is implemented on a twin image feature extraction network built under Pytorch of Python 3.11, and its development language is Python. The main software versions used are Python 3.11, CUDA 12.2, and Pytorch 1.11.0.

[0079] 2. Analysis of simulation content and results.

[0080] The simulation experiment of the present invention is to input the data sets generated in the step embodiment of the present invention into the networks trained by the present invention and two prior arts respectively for testing.

[0081] In the simulation experiment, the two existing technologies used are:

[0082] The VGG and ResNet-50 methods used by Zheng et al. in their paper "University-1652: A Multi-view Multi-source Benchmark for Drone-based Geo-localization[J].arXivpreprint arXiv:2002.12186, 2020"

[0083] The CBAM, DenseNet, and ViT methods used by Zhu et al. in their paper "SUES-200: A Multi-Height Multi-Scene Cross-View Image Benchmark Across Drone and Satellite, IEEE Transactions on Circuits and Systems for Video Technology, vol. 33, no. 9, pp. 4825-4839, Sept. 2023".

[0084] In order to verify the simulation effect of the present invention, two evaluation indicators (matching accuracy R@1, accuracy AP) are used to evaluate the classification results of the four methods. Using the following formula, matching accuracy R@1, accuracy AP, and classification accuracy of 16 types of objects, all calculation results are plotted into Table 1:

[0085] Matching accuracy

[0086] Accuracy

[0087] Table 1. Comparison of positioning results of different methods

[0088]

[0089] From Table 1, it can be seen that compared with the baseline method ResNet-50, the present invention can significantly improve the matching precision and accuracy, and compared with the ViT method, the present invention can improve the matching precision while reducing the number of model parameters, which shows that the method has achieved good results.

[0090] The above simulation experiments show that the present invention has a lower computational cost while improving matching accuracy and lower metric error by proposing an open-air visual localization method based on position encoding attention mechanism and statistical descriptor, which is the advancement of the present invention over other current methods.

Claims

1. A method for open-space visual localization based on position encoding attention mechanism and statistical descriptor, It is characterized in that A fusion dual-branch feature network is designed to extract image feature vectors, and the image features are enhanced through the complex position encoding attention mechanism. The statistical descriptors of GIST features and LBP features are introduced to extract image features. The steps of this positioning method include the following: Step 1, forming an image set from at least 10 remote sensing images containing GPS information of the observation area and 1 image obtained by the airborne camera, normalizing each image in the image set and performing image segmentation, and forming all the segmented images into an image set; Step 2, extracting multi-scale GIST features and LBP features from each image in the image set, performing statistical description and post-processing on the obtained GIST features and LBP features to obtain statistical descriptors; Step 3, the image set and the statistical descriptor are combined into a training set; Step 4: construct a dual-branch feature extraction network that integrates positional encoding multi-head attention and statistical descriptors; Step 5, input each image in the training set into the first branch of the network, perform position encoding operation on each image through the output vector of the multi-head self-attention layer in the first branch, input the statistical descriptor corresponding to the image into the second branch of the network, and output the feature vector of the image through the fusion module; use the stochastic gradient descent method to iteratively update the network parameters, and use cosine similarity as the measurement criterion of the feature vectors of images with the same label until the triple loss function converges, and obtain a trained fusion dual-branch feature extraction network; Step 6, using the same method as steps 1 and 2, obtain statistical descriptors of the image to be located and the remote sensing image containing GPS information of the observation area, input the image to be located and the remote sensing image and the statistical descriptors corresponding to each image into the trained feature extraction network, output the one-dimensional feature vector of the image, and compare the feature vectors of the image to be located and the remote sensing image for similarity; Step 7: Match the image to be positioned with the remote sensing image having the highest feature vector similarity, and the positioning information contained in the matched remote sensing image is used as the visual positioning result.

2. The open-space visual localization method based on position encoding attention mechanism and statistical descriptor according to claim 1, It is characterized in that The image segmentation described in step 1 refers to dividing the optical remote sensing image with GPS information of the image center and each image captured by the airborne camera into 16 pictures according to the length and width of the image.

3. The method for vacant space visual localization based on position encoding attention mechanism and statistical descriptor according to claim 1, It is characterized in that The multi-scale GIST feature described in step 2 is to extract the eigenvalue of each element of each image according to the following formula, and form the feature matrix of the image with all the eigenvalues: in, represents the eigenvalue at (x, y) in the coordinate system with the upper left corner of the i-th image as the origin, concat(·) represents the concatenation operation, I(x, y) represents the grayscale value at (x, y) in the coordinate system with the upper left corner of the i-th image as the origin, * represents the convolution operation, a -m represents the scale expansion factor, a represents the empirical constant, a>1, m represents the expansion value of the scale number 6, π represents the circumference of a circle, σ x , σ y They represent the standard deviation of the Gaussian function in the horizontal and vertical directions, exp represents the exponential operation with the natural exponent e as the base, x′ and y′ represent the coordinates of x and y after rotation transformation, respectively. Indicates the kth rotation angle, k indicates the serial number of the rotation angle, k=0,1,2,…,n-1, the value of n is equal to the number of rotation directions, sin indicates sine operation, cos indicates cosine operation, Represents the initial phase of the cosine function, P i Represents the set of all pixel positions in the i-th image.

4. The method for vacant space visual localization based on position encoding attention mechanism and statistical descriptor according to claim 3, It is characterized in that The LBP feature described in step 2 is to extract the eigenvalue of each pixel of each image according to the following formula, and all the eigenvalues ​​are combined into the feature matrix of the image: Among them, LBP i (x c ,y c ) represents the center pixel (x) in the square window in the i-th image. c ,y c ), p represents the 8 neighborhoods of the center pixel in the square window, h represents the sequence number of the neighborhood, and s(·) represents the sign function: I h Represents the gray value of the pixel in the hth neighborhood within the square window, I c represents the center pixel (x c ,y c ) is the gray value at .

5. The method for vacant space visual localization based on position encoding attention mechanism and statistical descriptor according to claim 4, It is characterized in that The statistical description and post-processing described in step 2 refers to calculating the statistical descriptor of each image according to the following formula to obtain the statistical description subset of each image: in, The statistical descriptor representing the r-th feature of the i-th image, i = 0, 1, 2, ..., 15, represents the statistical moment, n represents the order of the moment, R r Indicates smoothness, U r Indicates consistency, SD b represents the statistical descriptor of the b-th image, represents the direct sum operation, q represents the total number of features, represents the response value of the rth feature of the ith image, μ represents the mean feature response of the ith image, and p(·) represents Frequency of occurrence in the total number of features, μ 2 Represents the variance of the feature response.

6. The method for vacant space visual localization based on position encoding attention mechanism and statistical descriptor according to claim 5, It is characterized in that The training set described in step 3 refers to a sample set consisting of earth observation images collected by remote sensing satellites and airborne cameras in at least 200 different longitude and latitude regions, a corresponding statistical descriptor generated for each image in the sample set, annotating the images in the sample set and the corresponding statistical descriptors as the same longitude and latitude labels, and forming a training set with all images in the sample set and their corresponding statistical descriptors and their labels.

7. The method for vacant space visual localization based on position encoding attention mechanism and statistical descriptor according to claim 1, It is characterized in that The fusion dual-branch feature extraction network described in step 4 is composed of a first branch and a second branch connected in parallel and then connected in series with a fusion module; The first branch is composed of 12 encoders with exactly the same structure connected in series, each encoder is composed of a first regularization layer, a multi-head attention layer, a Dropout layer, a first residual connection layer, a second regularization layer, a multi-layer perceptron layer, a Dropout layer, and a second residual connection layer connected in series in sequence; the number of attention heads of the multi-head attention layer is set to 8; the inactivation ratio of the Dropout layer is set to 0.2; The second branch structure is composed of a first convolutional layer, a batch normalization layer, and a second convolutional layer connected in series in sequence; the number of convolution kernels of the first and second convolutional layers is set to 16 and 8 respectively, the step size is set to 1 and 0 respectively, and the padding number is set to 1 and 0 respectively; the output dimension of the second convolutional layer is set to 196×768; The fusion module is composed of a concatenation layer, a convolution layer, a first fully connected layer, a Dropout layer, and a second fully connected layer connected in series in sequence; the output dimensions of the first and second fully connected layers are both set to 1024; and the inactivation ratio of the Dropout layer is set to 0.

2.

8. The method for vacant space visual localization based on position encoding attention mechanism and statistical descriptor according to claim 5, It is characterized in that The position encoding operation described in step 5.1 is obtained as follows: in, They represent the appearance attention vector output by the first branch multi-head attention layer in the network, located at the coordinate (m 1 ,n 1 ) and (m 2 ,n 2 ), Respectively represent the coordinates (m 1 ,n 1 )、(m 2 ,n 2 ) is the image vectorization operation, W q , W k represents the learnable parameter matrix, j represents the imaginary unit symbol, and arctan(·) represents the inverse tangent operation.

9. The method for vacant space visual localization based on position encoding attention mechanism and statistical descriptor according to claim 1, It is characterized in that The triplet loss function described in step 5.2 is as follows: Wherein, Triplet loss represents the loss value of the true label in the network training sample set, max represents the maximum value operation, (·) represents the inner product operation, ‖·‖ represents the Euclidean norm, a represents the feature vector of the image to be located, p represents the positive sample feature vector, n represents the negative sample feature vector, and margin represents the feature separation distance. During the network training process, the parameters of each layer of the network are back-propagated and updated by optimizing the distance between the a vector and the positive sample feature vector to be less than the cosine distance between the negative sample feature vector.

Citation Information

Patent Citations

  • Multi-target detection method based on context information

    CN106446933A

  • An optical remote sensing image ship detection method based on a depth residual dense network

    CN109740460A

  • Spatial perception geographic positioning method and system of panoramic image

    CN114240967A

  • Remote sensing image shadow detection method based on fusion cross space and channel attention

    CN115661638A

  • Boundary-optimized remote sensing image semantic segmentation method and apparatus, and device and medium

    WO2023077816A1

Cited By

  • Unmanned aerial vehicle visual positioning method based on air-space cross-domain cooperation

    CN120252747A