A method for outdoor place re-identification based on salient region detection

The visual word bag model constructed through salient area detection and deep learning extracts robust image features of outdoor scenes, solves the problem of low positioning and matching accuracy in outdoor scenes with traditional methods, and achieves higher matching accuracy and calculation efficiency.

CN114494736BActive Publication Date: 2024-09-20NANTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210104480.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-28
Publication Date
2024-09-20
Estimated Expiration
2042-01-28

AI Technical Summary

Technical Problem

Traditional visual location recognition methods are affected by interference factors such as lighting changes, perspective changes, and pedestrian occlusion in outdoor scenes. The extracted image features are not robust enough, resulting in low positioning matching accuracy.

Method used

Using a method based on salient area detection, the SE-ResNet model is used to extract feature maps, detect and binarize salient areas, combine with non-zero value connected area detection, extract local features, and build a visual word bag model through deep learning, aggregation Local features are global features and similarity matching is performed.

Benefits of technology

It improves the accuracy of image matching in outdoor scenes, enhances the robustness to changes in viewing angle, reduces mismatches, and does not require a large amount of data training, saving computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114494736B
    Figure CN114494736B
Patent Text Reader

Abstract

The present invention provides an outdoor location re-identification method based on salient region detection, which belongs to the field of computer vision and deep learning technology. The technical scheme is as follows: the method comprises the following steps: step 1, extraction of SE-ResNet feature map; step 2, detection of salient regions; step 3, training of visual word bag model; step 4, similarity matching between images. The beneficial effect of the present invention is that the visual word bag model constructed by the present invention through deep learning features fuses the local features of the salient regions into global features, thereby improving the matching accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of computer vision and deep learning technology, and in particular to an outdoor location re-identification method based on salient region detection. Background Art

[0002] For autonomous navigation robots, positioning and mapping are the primary goals. The solution to the positioning problem for robots that rely on visual sensors is visual location recognition. Given a scene image describing a specified location, the robot needs to determine whether this location has been reached before. The judgment process requires similarity matching of key frames of path trajectories in the database. Since scene location images generally have interference factors such as lighting changes, changes in viewing angles, and pedestrian occlusion, the traditional method of extracting image feature points relies too much on manually designed features. Even if it has good results in a stable indoor environment, the results obtained are not very good under the interference of the above-mentioned outdoor scenes.

[0003] How to solve the above technical problems is the subject faced by the present invention. Summary of the invention

[0004] The purpose of the present invention is to provide an outdoor location re-identification method based on salient area detection. The purpose of the present invention is to better extract the global features of the image under various interferences of the outdoor scene, and to fuse the local features of the salient area into the global features through the visual bag-of-words model constructed by deep learning features to improve the matching accuracy.

[0005] The inventive idea of ​​the present invention is: the present invention divides the entire process into two parts, one part is to detect significant areas, and the second part is to convert regional features into more robust word bag vectors to obtain global features and perform similarity matching on images. The present invention first analyzes the features extracted from the image by a convolutional neural network, detects the significant areas of the image by judging the size of the mean of the activation value area, and extracts the features of the significant areas. In addition, the present invention also collects a representative set of outdoor scene pictures, and trains a visual word bag model of deep learning features with this. The local features extracted from the significant areas are aggregated into global features through the visual word bag model, and the obtained features are more robust when facing interference factors such as changes in viewing angles.

[0006] The present invention is achieved by the following measures: a method for outdoor location re-identification based on salient region detection, comprising the following steps:

[0007] Step 1: Extraction of SE-ResNet feature map

[0008] In convolutional neural networks, a large part of the work of convolution operations is to improve the receptive field, fuse features in space, or extract multi-scale spatial information through multiple channels. Traditional convolution operations basically fuse all channels of the input feature map by default, while SE-Net focuses on the relationship between channels, so that the model can automatically learn the importance of different channel features. The network architecture of SE-Net is as follows: Figure 1 As shown in the figure, most of the current mainstream networks are constructed based on these two similar units by repeatedly stacking them; it can be seen that the SE module can be embedded in almost all current network structures. Comparative experiments have shown that the effect of embedding SE-Net into ResNet is better. Therefore, in the extraction of feature maps, the present invention uses the SE-ResNet model to perform convolution operations on the image, and performs convolution operations on the input image I∈R W′×H′×3 , after the convolution operation, the feature map F∈R is obtained W×H×C .

[0009] Step 2: Detection of salient areas

[0010] By analyzing the characteristics of outdoor scene images, it can be found that outdoor locations can use some landmark buildings, road signs and other objects to distinguish whether two images belong to the same location. For this reason, in the feature map F obtained after convolution, the area with high activation value is often a particularly significant area in the image, but the size of these objects in the image is not unique. In order to adapt to the different sizes of each significant area, the present invention uses a non-zero value connected area detection method to determine the location of the significant area. Therefore, the following operations are performed in the feature map extracted in step 1:

[0011] (1) Binarized feature map

[0012] After the image is processed by the convolution layer and activation function of the convolutional neural network, the spatial texture features of the image will be retained, wherein the activation value of the feature map reflects the texture intensity of the image region. Therefore, in order to screen out the significant area, the area to be detected is first divided in the feature map of each channel, and the binary feature map is first used to divide the object area of ​​each image. For the area with a larger activation value in the feature map, we use 1 to indicate that the area is worthy of attention, and the area with a smaller activation value is 0 to indicate that it has less texture; for the area not worthy of attention, in the process of binarizing the feature map, the present invention uses a threshold δ to distinguish whether each area should be set to 0 or 1;

[0013] The feature map F after binarization is obtained by the following formula B

[0014]

[0015] (2) Divide the relevant area ROI

[0016] It is assumed that salient regions should be independent, or at least non-overlapping, so a connected region with a non-zero value is used to represent each individual image region.

[0017] In the binary feature map F B For all positions with a value of 1, search the values ​​of the 8 adjacent positions. If there are elements with the same value of 1, the same region is formed. Then, the adjacent values ​​of the remaining elements in the region are searched until all elements in the same region have been searched. Finally, multiple related regions ROIs (regions of interest) are obtained. Each channel has a different number of ROIs, and a total of N related regions are generated.

[0018] (3) Determine the location of the significant area

[0019] Calculate the mean value a of the feature map activation value for the regions of N ROIs corresponding to the feature maps r , The formula is as follows:

[0020] i=1,...,i r ; j = 1, ..., j r

[0021] And according to the mean a r The values ​​of are sorted from high to low, and the highest m regions are selected as the final significant regions S = {s i |i∈{1,...,m}}.

[0022] (4) Extract local features

[0023] For a selected salient region s i , whose area is W s ×H s , where 0<W s , H s <min(W,H), locate region s on feature map F i The area position of , and on all channels in the area, we get a dimension of W s ×H s ×C local feature D L ; Finally, the sum pooling method is used to obtain the local feature D after pooling L ∈R 1×1×C , the formula is as follows:

[0024] i=1,...,W s ; j = 1, ..., H s

[0025] in is the local feature D L The value of the cth channel in .

[0026] Step 3: Train the Bag of Visual Words model

[0027] The common bag-of-visual-words model is trained based on SIFT features extracted from images. The present invention uses the network layer of SE-ResNet to generate feature descriptors while retaining convolution information and local features. The performance of these descriptors is better than that of SIFT-like detectors, especially when SIFT contains many outliers or cannot match a sufficient number of feature points.

[0028] In step 3 of the present invention, the training of the visual word bag model consists of three parts: image feature extraction, visual vocabulary tree generation, and visual vocabulary feature construction; wherein the image feature extraction of the first part has been obtained in step 1 and step 2, and step 3 mainly describes the visual vocabulary tree generation and visual vocabulary feature construction, and the main process is as follows:

[0029] (1) Collect features for building vocabulary trees

[0030] For the generation of vocabulary trees, the present invention uses the k-means method. As one of the most commonly used clustering methods, the k-means algorithm is intuitive and easy to understand and is widely used to cluster local features of images. Before clustering, the present invention collects a certain number of relatively representative outdoor scene images, and performs feature extraction on each image according to steps one and two. For each image, m significant areas are selected to obtain local features of all significant areas.

[0031] (2) Use k-means to build a vocabulary tree T

[0032] First, build the root node, use k-means to perform the first clustering of all features to obtain k classes and their class centers, so that the similarity within the class is high and the similarity between classes is low. Take the class center as the child node of the root node to complete the construction of the first layer of the vocabulary tree. Continue to perform k-means clustering on the class of each node in the first layer to obtain k classes, and the class center is the child node of the node. Keep looping until all features are assigned to leaf nodes, and the vocabulary tree T is completed.

[0033] (3) Visual vocabulary feature vector V bow

[0034] Each leaf node of the vocabulary tree represents a visual word. Assuming that the vocabulary tree contains v visual words, count the number of times each word in the vocabulary appears in the image, so as to represent the image as a vector V with a dimension of v. bow .

[0035] (4) Weighted feature vector V W

[0036] When visual words appear in many images or every image in the image database, the statistical values ​​of some words that have no practical meaning will be large. It is not enough to simply count the number of times each word in the word list appears in the image. Since the importance of each word is different, it is necessary to calculate the importance of the word, that is, to calculate the weight of the visual word in the word list. In order to solve this problem, the present invention uses the TF-IDF (term frequency-inverse document frequency) reweighting method, where TF refers to the frequency of appearance of a visual word, and IDF is the inverse document frequency. The fewer images containing a visual word, the larger the IDF value, indicating that the word has a strong distinguishing ability. The larger the TF-IDF value, the greater the importance of the feature word to the text. The calculation formula is as follows:

[0037]

[0038]

[0039] TFIDF=TF×IDF

[0040] Among them, s is the number of times the visual word appears, v is the total number of visual words, and TF w represents the frequency of word w in all words, P is the total number of pictures, P w is the number of occurrences of word w.

[0041] Step 4: Similarity matching between images

[0042] For two images I a and I b , the global features are obtained through the above steps The present invention measures the distance between two global feature vectors by using the cosine similarity formula.

[0043]

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

[0045] 1. The present invention proposes a more robust feature extraction method to detect salient areas in images, which can effectively prevent interference from changes in scene perspectives. In outdoor scenes, it can extract more robust global image features and reduce mismatching.

[0046] 2. The method proposed in the present invention does not require the use of a large amount of data for parameter training of the convolutional neural network, saving computing resources and time.

[0047] 3. Use deep learning features to replace traditional features and combine them into the bag-of-words model to improve the accuracy of place re-identification while maintaining the size of feature dimensions. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0049] Figure 1 This is the SE-Net network flow chart of the present invention.

[0050] Figure 2 It is a schematic diagram of the overall process of the present invention.

[0051] Figure 3 This is a diagram of experimental results in the embodiments provided by the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. Of course, the specific embodiments described here are only used to explain the present invention and are not used to limit the present invention.

[0053] Example 1

[0054] See also Figures 1 to 3 The present invention provides a technical solution as follows: the present invention proposes an outdoor place re-identification method based on salient region detection. The visual place recognition problem is similar to the image retrieval problem. For an input image, the image with the highest similarity to the input image is retrieved from the image database. In this embodiment, the experiment of the present invention is carried out on pytorch, and the network training and testing are carried out on NVIDIA 2070s GPU. During the experiment, SE-ResNet model pre-training and visual word bag model generation are carried out on the Place365 public dataset. The accuracy of the model of the present invention is compared with the accuracy of the NetVLAD method and the SIFT feature matching method on the Tokyo24 / 7 dataset.

[0055] 1. Model pre-training

[0056] Place365 is a dataset used to train scene recognition models. The dataset contains a variety of different scenes. Using this dataset to pre-train the SE-ResNet network model used to extract features, the resulting model will be more sensitive to important information in outdoor scenes such as street signs, buildings, etc. The extracted features will be more reliable.

[0057] 2. Generation of the Visual Word Bag Model

[0058] In the present invention, it is necessary to select a certain number of pictures to extract features to form a dictionary tree of the visual word bag model. In this embodiment, 2000 pictures of representative outdoor scenes are selected, and all pictures are selected from the Place365 data set. After the picture selection is completed, the pre-trained SE-ResNet network is used to extract features from all pictures. The feature extraction of the picture is obtained by the output after the calculation of the last convolution layer of SE-ResNet is completed. After obtaining the convolution layer features, the features are extracted from the significant areas to obtain a fixed number of local features. In this embodiment, the top 10 areas with the highest activation values ​​are selected for each picture as the local features of this picture. Thus, a total of 20,000 feature vectors are obtained. After all feature vectors are regularized, the k-means clustering algorithm is executed in a loop to construct a dictionary tree, and weights are assigned to all leaf nodes according to the TF-IDF formula.

[0059] Comparative test:

[0060] This example uses the Tokyo24 / 7 dataset to verify the accuracy of the model. The Tokyo24 / 7 dataset contains 75,000 database images for retrieval and 315 images for query, which were taken using a mobile phone camera. The query images were taken during the day, evening, and night, while the database images were only taken during the day. Therefore, the illumination between the query images and the images in the retrieval database varies greatly, making comparison difficult.

[0061] As for the evaluation criteria for whether the query is correct or not, this embodiment sets that if at least one of the top n most similar images in the search results is within a 5-meter distance from the query image, it is considered a successful query. The location distance can be obtained based on the GPS information of each image given in the data set. Then, the percentage of correctly identified queries (recall rate) is plotted for different n values.

[0062] In this embodiment, the NetVLAD method is first used to conduct a comparative experiment with the model effect of the present invention. By inputting the same query image, setting the same n value, and recording the success or failure of each query, the recall rate under different n values ​​is calculated, and the recall rate curve is drawn, as shown in FIG. Figure 3 As shown in the figure, it can be seen that the recall rate of the present invention at different n values ​​is higher than that of the NetVLAD method.

[0063] In addition, this embodiment also compares the accuracy of retrieval results between the traditional feature point extraction method (SIFT) and the feature extraction method of the present invention. First, the same training image set is used to collect features from all images using the SIFT feature extraction method. Then, a visual word bag model is constructed for all SIFT features to obtain the SIFT feature dictionary tree T. SIFT. Extract SIFT features from the query image and convert them into visual word bag vectors through the dictionary tree Compare with all the images in the image database and retrieve the top n images with the highest similarity. Record the percentage of correctly identified queries (recall rate) corresponding to different n values. Figure 3 It can be seen that the convolutional neural network feature extraction used in the present invention has better effect on location re-identification in outdoor scenes than the SIFT feature extraction using the traditional method.

[0064] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for outdoor location re-identification based on salient region detection, characterized in that: The following steps are involved: Step 1: Extraction of SE-ResNet feature map In convolutional neural networks, convolution operation is to fuse features in space, or extract multi-scale spatial information through multiple channels. SE-Net focuses on the relationship between channels, so that the model automatically learns the importance of different channel features. SE-Net is embedded in ResNet. In the extraction of feature maps, the SE-ResNet model is used to perform convolution operations on the image. W′×H′×3 , after the convolution operation, the feature map F∈R is obtained W×H×C ; Step 2: Detection of salient areas By analyzing the characteristics of outdoor scene images, it is found that outdoor locations use landmark buildings or road signs to distinguish whether two images belong to the same location. In the feature map F obtained after convolution, the area with high activation value is a particularly significant area in the image. In order to adapt to the different sizes of each significant area, the detection method of connected areas with non-zero values ​​is used to determine the location of the significant area; Step 3: Train the Bag of Visual Words model The common bag-of-visual-words model is trained based on SIFT features extracted from images. It uses the network layer of SE-ResNet to generate feature descriptors, retaining convolution information and local features. The performance of the descriptor is better than that of SIFT-like detectors, especially when SIFT contains many outliers or cannot match a sufficient number of feature points. Step 4: Similarity matching between images For two images I a and I b , the global features are obtained through the above steps The distance between two global feature vectors is measured by the cosine similarity formula; 2. The outdoor location re-identification method based on salient region detection according to claim 1, characterized in that: The following steps are performed on the feature map extracted in step 1: (1) Binarized feature map The spatial texture features of the image are retained after being processed by the convolutional layer and activation function of the convolutional neural network. The activation value of the feature map reflects the texture intensity of the image area. The area to be detected is first divided in the feature map of each channel, and the binary feature map is used to divide the object area of ​​each image. The area with a larger activation value in the feature map is represented by 1, indicating that the area is worthy of attention, and the area with a smaller activation value is represented by 0, indicating that it is an area with less texture and not worthy of attention. In the process of binarizing the feature map, the threshold δ is used to distinguish whether each area should be set to 0 or 1; The feature map F after binarization is obtained by the following formula B (2) Divide the relevant area ROI Assuming that the salient regions are independent, or at least non-overlapping, each individual image region is represented by a connected region with a non-zero value. In the binary feature map F B In the above example, for all positions with a value of 1, the values ​​of the 8 adjacent positions are searched. If there are elements with the same value of 1, the same region is formed. Then the adjacent values ​​of the remaining elements in the region are searched until all elements in the same region have been searched. Finally, multiple related regions ROIs are obtained. Each channel has a different number of ROIs, and a total of N related regions are generated. (3) Determine the location of the significant area Calculate the mean of the feature map activation values ​​for the regions of the N ROIs corresponding to the feature maps The formula is as follows: And according to the mean a r The values ​​of are sorted from high to low, and the highest m regions are selected as the final significant regions S = {s i |i∈{1,...,m}}; (4) Extract local features For a selected salient region s i , whose area is W s ×H s , where 0<W s , H s <min(W,H), locate region s on feature map F i The area position of , and on all channels in the area, we get a dimension of W s ×H s ×C local feature D L , using the sum pooling method, we get the local feature D after pooling L ∈R 1×1×C , the formula is as follows: in is the local feature D L The value of the cth channel in .

3. The outdoor location re-identification method based on salient region detection according to claim 1, characterized in that: In the step 3, the training of the visual word bag model consists of three parts: image feature extraction, visual vocabulary tree generation, and visual vocabulary feature construction. The image feature extraction is obtained in step 1 and step 2. The specific contents of visual vocabulary tree generation and visual vocabulary feature construction in step 3 include the following steps: (1) Collect features for building vocabulary trees For visual vocabulary tree generation, the k-means method is used. The k-means algorithm is used as a clustering method. Before clustering, a certain number of representative outdoor scene images are collected, and feature extraction is performed on each image according to the steps 1 and 2. m significant regions are selected for each image to obtain local features of all significant regions. (2) Use k-means to build a vocabulary tree T First, build the root node, use k-means to cluster all features for the first time, get k classes and their class centers, take the class centers as the child nodes of the root node, complete the construction of the first layer of the vocabulary tree, continue to perform k-means clustering on the classes of each node in the first layer, get k classes, and use the class centers as the child nodes of the node, and keep looping until all features are assigned to leaf nodes, then the vocabulary tree T is built; (3) Visual vocabulary feature vector V bow Each leaf node of the vocabulary tree represents a visual word. Assuming that the vocabulary tree contains v visual words, count the number of times each word in the vocabulary appears in the image, so as to represent the image as a vector V with a dimension of v. bow ; (4) Weighted feature vector V W The TF-IDF reweighting method is used, where TF is the frequency of a visual word, and IDF is the inverse document frequency. The fewer images containing a visual word, the larger the IDF value, and the stronger the distinguishing ability of the word. The larger the TF-IDF value, the greater the importance of the feature word to the text. The calculation formula is as follows: TFIDF=TF×IDF Among them, s is the number of times the visual word appears, v is the total number of visual words, and TF w represents the frequency of word w in all words, P is the total number of pictures, P w is the number of occurrences of word w.