Visual scene recognition method based on semantic gradient points and road power points

Through the visual scene recognition method based on semantic gradient points and road power points, the performance degradation problem of traditional technology in extremely challenging scenes is solved. Through semantic gradient point detection and road power point area division, a semantically structured VLAD descriptor is generated. The matching accuracy and positioning accuracy of visual scene recognition are improved.

CN114266950BActive Publication Date: 2024-09-10ZHEJIANG UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111458363.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-01
Publication Date
2024-09-10
Estimated Expiration
2041-12-01

AI Technical Summary

Technical Problem

Traditional visual scene recognition shows significant performance degradation in extremely challenging scenarios (such as strong scene appearance changes and strong camera perspective changes), making it difficult to effectively identify closed loops and improve positioning accuracy.

Method used

A visual scene recognition method based on semantic gradient points and road power points is used to extract features through the semantic segmentation network, detect semantic gradient points and road power points, generate semantically structured VLAD descriptors, and calculate image similarity, using road power points to divide The advantages of regional and different layer features improve matching accuracy.

Benefits of technology

Improved visual scene recognition performance in challenging scenes, ensuring correct matching and improved positioning accuracy, especially under strong scene appearance changes and camera perspective changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114266950B
    Figure CN114266950B
Patent Text Reader

Abstract

A visual scene recognition method based on semantic gradient points and road power points, using the characteristics of semantic gradient points that can be repeatedly detected under strong scene appearance changes, the different advantages of different layers of semantic gradient points features and the structure of the scene itself, to improve performance in extremely challenging scenes. The characteristics of semantic gradient points that can be repeatedly detected under strong scene appearance changes ensure the correct matching of the intersection of the adopted features between the two; splicing together the features of different layers of semantic gradient points can utilize the different characteristics of different layers of features for scene appearance changes and camera perspective changes; dividing regions according to road power points and considering the correspondence between regions when calculating similarity can increase the weight of visual overlap in similarity calculation, focus more on visual overlap, and eliminate interference from irrelevant parts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of visual place recognition (VPR) technology, and in particular to a visual scene recognition method based on semantic gradient points and road power points. Background Art

[0002] Visual Place Recognition (VPR) or closed-loop detection technology is an important part of visual simultaneous localization and mapping (vSLAM). Visual scene recognition is the key to detecting closed loops, which helps to improve positioning accuracy and reduce the uncertainty of the constructed map. Traditional visual scene recognition can achieve satisfactory results in some specific scenarios, such as short-term tasks (revisiting the same place in a short period of time), a certain degree of scene appearance change, and a certain degree of perspective change. However, for challenging scenarios under long-term tasks, such as scene appearance changes (different time of day, different seasons, and different lighting conditions) and strong camera perspective changes, the performance of traditional visual scene recognition drops significantly.

[0003] The continuous progress of technologies related to robotics and computer vision, as well as the demand for long-term autonomous systems, continue to promote the development of visual scene recognition. Visual scene recognition based on convolutional neural networks has become a hot topic in current research, and has improved its performance under strong scene appearance changes. However, in extremely challenging scenes (strong scene appearance changes combined with strong camera perspective changes), its performance still has a lot of room for improvement. Summary of the invention

[0004] In order to overcome the shortcomings of the prior art, the present invention provides a visual scene recognition method based on semantic gradient points and road power points, which utilizes the property that semantic gradient points can be repeatedly detected under strong scene appearance changes, the different advantages of different layers of features of semantic gradient points and the structure of the scene itself to improve the performance in extremely challenging scenes.

[0005] The technical solution adopted by the present invention to solve its technical problem is:

[0006] A visual scene recognition method based on semantic gradient points and road power points comprises the following steps:

[0007] Step 1: semantic feature extraction, using the semantic segmentation network to process the image, retaining the intermediate layer features, logits layer features and the final semantic label;

[0008] Step 2: semantic gradient point detection. Calculate the absolute gradient sum of all channels of the logits layer feature, filter out points with higher absolute gradient sum, and retain their position information in the image.

[0009] Step 3: semantic gradient point feature concatenation: according to the semantic gradient point position information, the features of the same semantic gradient point in the middle layer and the features of the logits layer are L2 regularized and then expanded and concatenated together;

[0010] Step 4: Road power point detection. The semantic labels are used to obtain the boundaries between road objects and other static semantic category objects. Then, the Hough transform is used to obtain the road lines in the image. Finally, the intersection points of the road lines are calculated and weighted to obtain the road power points.

[0011] Step 5: Image descriptor generation: the image is divided into regions according to the road power points. A VLAD descriptor is generated for each region using the features of the semantic gradient points in the region, which is called semantic structured VLAD.

[0012] Step 6, similarity calculation. Since each image may have one or two semantically structured VLADs, it is necessary to first clarify the correspondence between them when calculating the similarity, that is, to maximize the sum of the semantically structured VLAD similarities. Then, the average similarity of the semantically structured VLAD under this correspondence is used as the image similarity. All images in the database are traversed, and the images are stored in the form of semantically structured VLADs. The image with the highest similarity is taken as the final result.

[0013] Furthermore, in step 2, the steps of semantic gradient point detection are as follows:

[0014] Step 2-1, calculate the absolute gradient sum of all channels of the logits layer feature. Each channel of the logits layer (W×H×C) feature can be considered as the probability of the corresponding semantic category, but there is mutual interference between different channels. Therefore, the absolute gradient sum of all channels is used as the basis for screening semantic feature points:

[0015]

[0016] Where N C is the number of channels, i is the label of the channel, G i is the gradient of channel i, G sum is the absolute gradient sum of all channels;

[0017] Step 2-2, divide the entire image into N s square blocks, if the maximum absolute gradient sum in the square block is greater than G θ , then the maximum absolute gradient and the corresponding semantic gradient point are taken as candidates;

[0018] Step 2-3: In order to make the semantic gradient points evenly distributed throughout the image, the entire image is divided into k histograms along the horizontal axis. Each histogram is sorted by absolute gradient and candidate semantic gradient points, and the top N semantic gradient points are selected. k points as the final semantic gradient points.

[0019] Furthermore, in step 4, the steps of road power point detection are as follows:

[0020] Step 4-1, using semantic labels to obtain the boundaries of road targets and other static semantic categories, wherein the other static semantic categories include sidewalks, buildings, and traffic signs;

[0021] Step 4-2, using Hough transform to convert the road boundary into road lines, that is, the two-dimensional geometric representation of the road in the image;

[0022] Step 4-3, calculate the intersection of the road lines. To prevent the road lines on the same side from interfering with each other, only calculate the intersection of the road lines with an angle difference greater than a. θ The intersection of the road lines;

[0023] Step 4-4, calculate the average position of all road line intersections as the final road power point.

[0024] Furthermore, in step 5, if there is a road power point, it is divided into two areas; if there is no road power point, the entire image is regarded as one area.

[0025] In step 5, the generation of the image descriptor combines the structure of the scene and generates the descriptor by partitioning. The process is as follows:

[0026] First, the image is divided into regions according to the road power points. If there are road power points, it is divided into two regions. If there are no road power points, the entire image is regarded as one region. Each region uses the features of the semantic gradient points in the region to generate semantic structured VLAD:

[0027] The pre-trained offline dictionary tree C = {c 1 ,c 2 ,…c W}, use x to represent the d-dimensional feature, each x will be associated with the closest visual word c i Related (c i =f v (x)), for each visual word c i , VLAD accumulates each with c i The associated x and c i The differences:

[0028]

[0029] Where i is the index of the visual word and j is the index of the feature dimension;

[0030] L2 regularizes the VLAD block corresponding to each visual word, namely:

[0031]

[0032] Finally, L2 regularizes the entire VLAD descriptor, and each region in the final image has a semantically structured VLAD.

[0033] Furthermore, in step 6, the image similarity calculation needs to consider the correspondence of the semantic structured VLAD, and the process is as follows:

[0034] Each image may have 1 or 2 semantic structured VLADs, that is, when calculating the similarity between two images, four situations will occur: 1vs1, 1vs2, 2vs1 and 2vs2. The correspondences in the first three situations are relatively direct, with only one correspondence, while in the last situation, there are two correspondences. The method selects the correspondence that maximizes the sum of the semantic structured VLAD similarities to calculate the final similarity, that is, the average similarity of the semantic structured VLAD under this correspondence.

[0035] The beneficial effects of the present invention are mainly manifested in: utilizing the characteristics of semantic gradient points that can be repeatedly detected under strong scene appearance changes, the different advantages of different layers of features of semantic gradient points, and the structure of the scene itself, to improve performance in extremely challenging scenes. The characteristics of semantic gradient points that can be repeatedly detected under strong scene appearance changes ensure the intersection of features adopted between correct matches; splicing together the features of different layers of semantic gradient points can utilize the different characteristics of different layers of features for scene appearance changes and camera perspective changes; dividing regions according to road power points and considering the correspondence between regions when calculating similarity can increase the weight of visual overlapping parts in similarity calculations, focus more on visual overlapping parts, and eliminate interference from irrelevant parts. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is the overall flow chart of the present invention.

[0037] Figure 2 This is a performance comparison chart of the patented method compared with other methods. DETAILED DESCRIPTION

[0038] The present invention will be further described below in conjunction with the accompanying drawings.

[0039] Reference Figure 1 and Figure 2 , a visual scene recognition method based on semantic gradient points and road power points, comprising the following steps:

[0040] Step 1: semantic feature extraction, using the semantic segmentation network to process the image, retaining the intermediate layer features, logits layer features and the final semantic label;

[0041] Step 2: semantic gradient point detection. Calculate the absolute gradient sum of all channels of the logits layer feature, filter out points with higher absolute gradient sum, and retain their position information in the image.

[0042] The steps of semantic gradient point detection are as follows:

[0043] Step 2-1, calculate the absolute gradient sum of all channels of the logits layer feature. Each channel of the logits layer (W×H×C) feature can be considered as the probability of the corresponding semantic category, but there is mutual interference between different channels. Therefore, the absolute gradient sum of all channels is used as the basis for screening semantic feature points:

[0044]

[0045] Where N C is the number of channels, i is the label of the channel, G i is the gradient of channel i, G sum is the absolute gradient sum of all channels;

[0046] Step 2-2, divide the entire image into N s square blocks, if the maximum absolute gradient sum in the square block is greater than G θ , then the maximum absolute gradient and the corresponding semantic gradient point are taken as candidates;

[0047] Step 2-3: In order to make the semantic gradient points evenly distributed throughout the image, the entire image is divided into k histograms along the horizontal axis. Each histogram is sorted by absolute gradient and candidate semantic gradient points, and the top N semantic gradient points are selected. k points as the final semantic gradient points;

[0048] Step 3: semantic gradient point feature concatenation: according to the semantic gradient point position information, the features of the same semantic gradient point in the middle layer and the features of the logits layer are L2 regularized and then expanded and concatenated together;

[0049] Step 4: Road power point detection. The semantic labels are used to obtain the boundaries between road objects and other static semantic category objects. Then, the Hough transform is used to obtain the road lines in the image. Finally, the intersection points of the road lines are calculated and weighted to obtain the road power points.

[0050] The steps of road power point detection are as follows:

[0051] Step 4-1, using semantic labels to obtain the boundaries of road objects and other static semantic categories, including sidewalks, buildings, and traffic signs;

[0052] Step 4-2, using Hough transform to convert the road boundary into road lines, that is, the two-dimensional geometric representation of the road in the image;

[0053] Step 4-3, calculate the intersection of the road lines. To prevent the road lines on the same side from interfering with each other, we only calculate the intersection of the road lines with an angle difference greater than a. θ The intersection of the road lines;

[0054] Step 4-4, calculate the average position of all road line intersections as the final road power point.

[0055] Step 5: Image descriptor generation. The image is divided into regions according to the road power points. If there are road power points, the image is divided into two regions. If there are no road power points, the entire image is regarded as one region. A VLAD descriptor is generated for each region using the features of the semantic gradient points in the region, which is called semantic structured VLAD.

[0056] The generation of image descriptors combines the structure of the scene and partitions the generated descriptors. The process is as follows:

[0057] First, the image is divided into regions according to the road power points. If there are road power points, it is divided into two regions. If there are no road power points, the entire image is regarded as one region. Each region uses the features of the semantic gradient points in the region to generate semantic structured VLAD:

[0058] The pre-trained offline dictionary tree C = {c 1 ,c 2 ,…c W}, use x to represent the d-dimensional feature, each x will be associated with the closest visual word c i Related (c i =f v (x)), for each visual word c i , VLAD accumulates each with c i The associated x and c i The differences:

[0059]

[0060] Where i is the index of the visual word and j is the index of the feature dimension.

[0061] L2 regularizes the VLAD block corresponding to each visual word, namely:

[0062]

[0063] Finally, L2 regularizes the entire VLAD descriptor, and each region in the final image has a semantically structured VLAD;

[0064] Step 6, similarity calculation. Since each image may have one or two semantic structured VLADs, the corresponding relationship between them needs to be clarified when calculating the similarity, that is, the sum of the semantic structured VLAD similarities is maximized. Then, the average similarity of the semantic structured VLAD under this corresponding relationship is used as the image similarity. All images in the database are traversed, and the images are stored in the form of semantic structured VLADs. The image with the highest similarity is taken as the final result.

[0065] Image similarity calculation needs to consider the correspondence of semantic structured VLAD. The process is as follows:

[0066] Each image may have 1 or 2 semantic structured VLADs, that is, when calculating the similarity of two images, there will be four cases: 1vs1, 1vs2, 2vs1 and 2vs2. The correspondences in the first three cases are relatively direct, with only one correspondence, while in the last case, there are two correspondences. The method selects the correspondence that maximizes the sum of the semantic structured VLAD similarities to calculate the final similarity, that is, the average similarity of the semantic structured VLAD under the correspondence.

[0067] Compared with other methods, the visual scene recognition method based on semantic gradient points and road power points proposed in this embodiment improves the performance in extremely challenging scenes by utilizing the characteristics of semantic gradient points that can be repeatedly detected under strong scene appearance changes, the different advantages of different layer features of semantic gradient points, and the structure of the scene itself. At the same time, the method proposed in this patent can also be combined with other sequence matching technologies to further improve performance. This embodiment selects the representative Oxford Robotcar dataset in the field to verify its effectiveness. The database is constructed using the rear view of the car in the Overcast Autumn (201412-09-13-21-02 (01)) sequence, and then the front view of the car in the Night Autumn (2014-12-10-18-10-50 (01)) sequence is used to match the images in the database to verify the performance under the combination of strong scene appearance changes (day-night) and strong camera perspective changes (180 degrees).

[0068] from Figure 2 It can be seen that the patented method has a significant improvement over other methods. At the same time, the patented method combined with the sequence matching method (hidden Markov model) can further improve the performance.

[0069] The above embodiments are only used to illustrate the present invention, but not to limit the present invention. Although the present invention is described in detail with reference to the embodiments, those skilled in the art should understand that various combinations, modifications or equivalent substitutions of the technical solutions of the present invention do not depart from the spirit and scope of the technical solutions of the present invention, and should be included in the scope of the claims of the present invention.

Claims

1. A visual scene recognition method based on semantic gradient points and road power points, characterized in that: The method comprises the following steps: Step 1: semantic feature extraction, using the semantic segmentation network to process the image, retaining the intermediate layer features, logits layer features and the final semantic label; Step 2: semantic gradient point detection. Calculate the absolute gradient sum of all channels of the logits layer feature, filter out points with higher absolute gradient sum, and retain their position information in the image. Step 3: semantic gradient point feature concatenation: according to the semantic gradient point position information, the features of the same semantic gradient point in the middle layer and the features of the logits layer are L2 regularized and then expanded and concatenated together; Step 4: Road power point detection. The semantic labels are used to obtain the boundaries between road objects and other static semantic category objects. Then, the Hough transform is used to obtain the road lines in the image. Finally, the intersection points of the road lines are calculated and weighted to obtain the road power points. Step 5: Image descriptor generation: the image is divided into regions according to the road power points. A VLAD descriptor is generated for each region using the features of the semantic gradient points in the region, which is called semantic structured VLAD. Step 6: Similarity calculation. Since each image may have one or two semantic structured VLADs, the corresponding relationship between them needs to be clarified when calculating the similarity, that is, the sum of the semantic structured VLAD similarities is maximized. Then, the average similarity of the semantic structured VLAD under this corresponding relationship is used as the image similarity. All images in the database are traversed, and the image with the highest similarity is taken as the final result. In step 2, the steps of semantic gradient point detection are as follows: Step 2-1, calculate the absolute gradient sum of all channels of the logits layer feature. Each channel of the logits layer feature is considered to be the probability of the corresponding semantic category, but there is mutual interference between different channels. Therefore, the absolute gradient sum of all channels is used as the basis for screening semantic feature points: Where N C is the number of channels, i is the label of the channel, G i is the gradient of channel i, G sum is the absolute gradient sum of all channels; Step 2-2, divide the entire image into N s square blocks, if the maximum absolute gradient sum in the square block is greater than G θ , then the maximum absolute gradient and the corresponding semantic gradient point are taken as candidates; Step 2-3: In order to make the semantic gradient points evenly distributed throughout the image, the entire image is divided into k histograms along the horizontal axis. Each histogram is sorted by absolute gradient and candidate semantic gradient points, and the top N semantic gradient points are selected. k points as the final semantic gradient points; In step 4, the steps of road power point detection are as follows: Step 4-1, using semantic labels to obtain the boundaries between road targets and other static semantic categories, wherein the other static semantic categories include sidewalks, buildings, and traffic signs; Step 4-2, using Hough transform to convert the road boundary into road lines, that is, the two-dimensional geometric representation of the road in the image; Step 4-3, calculate the intersection of the road lines. To prevent the road lines on the same side from interfering with each other, we only calculate the intersection of the road lines with an angle difference greater than a. θ The intersection of the road lines; Step 4-4, calculating the average position of all road line intersections as the final road power point; In step 5, the generation of the image descriptor combines the structure of the scene and generates the descriptor by partitioning. The process is as follows: First, the image is divided into regions according to the road power points. If there are road power points, they are divided into two regions. If there are no road power points, the entire image is regarded as one region. Each region uses the features of the semantic gradient points in the region to generate semantic structured VLAD: The pre-trained offline dictionary tree C = {c1, c2, ...c W }, with x representing the d-dimensional feature, each x will be associated with the closest visual word c i Related (c i =f v (x)), for each visual word c i , VLAD accumulates each with c i The associated x and c i The differences: Where i is the index of the visual word and j is the index of the feature dimension; L2 regularizes the VLAD block corresponding to each visual word, namely: Finally, L2 regularizes the entire VLAD descriptor, and each region in the final image has a semantically structured VLAD; In step 6, the image similarity calculation needs to consider the correspondence of the semantic structured VLAD, and the process is as follows: Each image may have 1 or 2 semantic structured VLADs, that is, when calculating the similarity between two images, there will be four cases: 1vs1, 1vs2, 2vs1 and 2vs2; the correspondences in the first three cases are relatively direct, with only one correspondence, while in the last case, there are two correspondences. The method selects the correspondence that maximizes the sum of the semantic structured VLAD similarities to calculate the final similarity, that is, the average similarity of the semantic structured VLAD under this correspondence.

2. The visual scene recognition method based on semantic gradient points and road power points according to claim 1, characterized in that: In step 5, if there is a road power point, it is divided into two areas; if there is no road power point, the entire image is regarded as one area.

Citation Information

Patent Citations

  • Road scene layout analysis method based on structured learning

    CN111611919A

  • Outdoor monocular synchronous mapping and positioning method fusing scene semantics

    CN112734845A

  • Systems and methods for place recognition based on 3D point cloud

    US20210124901A1

  • Visual object guidance-based social media short text named entity identification method

    WO2021135193A1