Robust feature matching method for power grid line unmanned aerial vehicle inspection

Through the key point extraction method based on depth estimation and linear detection and the multi-layer random seed graph matching network, the problem of accurate positioning and low matching accuracy in drone inspection of power grid lines is solved, and robust feature matching and Efficient line modeling.

CN118799599APending Publication Date: 2024-10-18HUNAN UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411001395.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing feature matching methods have problems such as difficulty in accurate positioning, low matching accuracy and high time complexity in UAV inspection of power grid lines. Especially in the absence of satellite signals, it is difficult to achieve accurate positioning and rapid modeling. .

Method used

A line key point extraction method based on depth estimation and linear detection is used, combined with a multi-layer random seed graph matching network, to transfer graph messages through seed sets, eliminate redundant key points, and improve matching accuracy and robustness.

Benefits of technology

It achieves robust feature matching of UAVs in the power grid environment, improves matching accuracy and efficiency, is suitable for pattern maintenance of different calibers and positioning without satellite signals, and reduces the probability of mismatching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799599A_ABST
    Figure CN118799599A_ABST
Patent Text Reader

Abstract

The invention relates to a robust feature matching method for power grid line unmanned aerial vehicle inspection. The method mainly comprises the following steps: providing a line key point extraction method based on depth estimation and linear detection, constraining key points near a detection target with a linear structure, providing a graph matching network based on multilayer random seeds on the basis, and carrying out sparse graph message passing through a seed set, so as to obtain a sparse graph message; and thus, the matched redundant key points are eliminated. The method can achieve the robust matching of the inspection target in the power grid line unmanned aerial vehicle inspection, provides a reliable visual corresponding relation for line environment modeling, helps to solve the problems that no satellite signal exists in a current inspection scheme, positioning is difficult, and rapid channel modeling cannot be achieved, and has a practical application value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric power inspection, and in particular to a robust feature matching method for unmanned aerial vehicle inspection of power grid lines. Background Art

[0002] Feature matching is a key step in estimating spatial pose and scene structure modeling. It has been widely used in fields including but not limited to robot visual navigation, three-dimensional point cloud reconstruction, and deep stereo vision. In the field of power technology, reliable image correspondence can be established through feature matching, and point cloud maps of power grid line channel environments can be quickly reconstructed using pure visual information, which is of great significance for promoting the construction of intelligent rapid inspection platforms in outdoor operation scenarios. The current inspection scheme mainly relies on large drones equipped with laser scanning platforms to perform twin modeling of line channels, and then plan routes based on point cloud maps and use small drones for inspection. However, laser modeling is expensive and requires offline solution, which is not only time-consuming but also expensive. In particular, for distribution network power lines, due to frequent changes in urban planning and environment, the cost of maintaining consistency of homologous data is huge when checking accounts and planning inspection tracks. For main grid lines, long-span overhead lines are required for long-distance power transmission, and a large number of mountains and hills are passed along the line. It is difficult for drones to accurately locate in these areas due to the lack of satellite signals. Therefore, it is urgent to study a robust feature matching method for UAV inspection of power grid lines to provide reliable visual correspondence for rapid modeling of channel environment.

[0003] Most existing feature matching methods follow the basic structure of detector-matcher, where the detector and matcher are used to extract and match key points respectively. The paper "Yi, K. Moo, et al, Learning to find good correspondences, In Proceedings of the IEEE conference on computer vision and pattern recognition, 2018, pp. 2666-2674" proposed to input the position coordinates of key points into the permutation equivariant network based on the pre-matching of visual descriptors, and then use PointNet to predict the inlier likelihood score between each pair of key points, thus eliminating redundant outlier key points in the matching. In order to get rid of the constraints of pre-matching on the upper limit of model matching, the paper "Sarlin, PE, et al, Superglue: Learning feature matching with graph neural networks, In Proceedings of the IEEE / CVF conference on computer vision and pattern recognition, 2020, pp. 4938-4947" converts feature matching into a graph matching problem. By constructing a complete graph between image key points, graph message passing is performed to exchange information about visual texture and background targets. However, all key points are regarded as matching points, which not only causes the matching accuracy to be affected by redundant key points, but also brings huge time complexity. The paper "Shi, Yan, et al, Clustergnn: Cluster-based coarse-to-fine graph neuralnetwork for efficient feature matching, In Proceedings of the IEEE / CVFinternational conference on computer vision, 2022, pp. 12517-12526" proposes an improved idea based on clustering. All feature points are divided into several clusters by using the similarity between feature points, and graphs are constructed in each cluster to transfer and aggregate information, thus avoiding the impact of complete graph matching. However, it is not adapted to power line inspection, and there is no semantic difference between clusters. The matching focus tends to be biased towards inspection-irrelevant targets such as trees, pedestrians and buildings.

[0004] Therefore, in view of the above problems, the present invention proposes a robust feature matching method for UAV inspection of power grid lines. For the image data collected by the UAV, a line key point extraction method based on depth estimation and linear detection is proposed, which constrains the key points near the detection target with a linear structure. At the same time, the texture independence of the linear segment is used to improve the robustness of the matching method. For the extracted linear key points, a graph matching network based on multi-layer random seeds is proposed for feature matching, which concentrates the message transmission in the seed set, makes the graph structure more sparse, avoids the errors caused by redundant matching of key points of irrelevant targets, and improves the accuracy of model matching. This method is suitable for power grid line inspection, and can perform homologous maintenance on graph models of different calibers of distribution and dispatching, improve route planning, and realize UAV positioning in the absence of satellite signals, which helps to solve many pain points of the current power grid line inspection scheme. Summary of the invention

[0005] The present invention proposes a robust feature matching method for drone inspection of power grid lines to achieve robust matching of drone inspection targets, mainly including: proposing a line key point extraction method based on depth estimation and linear detection, retaining texture-independent linear structure key points, on this basis, designing a graph matching network based on multi-layer random seeds, calculating seed sets for the extracted key points, performing graph message transmission through the seed sets, eliminating matching redundant key points, and achieving robust matching of drone inspection targets in the power line channel environment.

[0006] The specific contents are as follows:

[0007] (1) A line key point extraction method based on depth estimation and linear detection is proposed: extracting the point position information and linear structure of the input image, based on the linear features of the detection targets such as poles, distribution boxes and wires, using the depth information to remove points outside the linear frame space mapping range, and adding the endpoints of the extracted linear segments as removal compensation to the extraction point set, thereby achieving robust extraction of inspection target key points. After the descriptors of the points in the extraction point set are calculated, they are used together with the feature descriptors as the extraction key point results and participate in the calculation of the invention content (2).

[0008] The proposed line key point extraction method based on depth estimation and linear detection is mainly divided into three stages: point and line information detection, linear mask generation, and key point generation. Figure 1 As shown, the point and line information detection stage first creates a set of extraction points k of the input image I i ,i∈{0,1,…,n} and the linear segment set l s ,s∈{0,1,…,S}, where the point detector uses the SIFT algorithm to detect the coordinates of the corner points, and the line detector uses the LSD algorithm to predict the linearly connected segments of the detected target.

[0009] The linear mask generation stage first needs to merge the fragmented linear segments into a linear frame map with a global linear structure. full , by calculating the Euclidean distance d between the segment endpoints o , the distance is less than the threshold th d The adjacent endpoints of k are merged to regenerate the corresponding line segment description, while retaining the endpoint k s The process converts the local fragments of the fragment into a connected global wireframe, and makes the extracted structural features consistent as a whole by merging adjacent endpoints. full , use depth estimation to calculate the spatial mapping distance d in pixel coordinates space , will l full The spatial mapping coverage area of ​​the points in the range is taken and used as a linear mask. For point i, its spatial mapping distance d space(i) The calculation formula is as follows:

[0010]

[0011] Among them, h I and w I is the length and width of image I, deep i is the brightness of the corresponding position of the pixel coordinate of the extraction point i in the depth map, that is, the distance of the point from the origin of the shooting in space, deep max is the maximum brightness in the depth map, indicating the farthest distance in the captured image, θ scale It is the set spatial scaling ratio, the default is 0.25. When the linear frame passes through the area with high brightness in the depth map, it means that its spatial position is far away from the inspection drone. At this time, the spatial mapping distance in pixel coordinates is shorter, and the linear mask coverage area is reduced.

[0012] The key point generation stage first filters the points in the extracted point set k through a linear mask and converts the previously retained segment endpoint k s Add to the extraction point set to obtain the key point pixel coordinate set K I ,I∈{A,B}. Then, for K A and K B For each key point, the gradient direction and magnitude are calculated in its local neighborhood to generate a 128-dimensional SIFT descriptor dim = (dim1, dim2, ..., dim 128 In order to avoid perspective changes in the captured images due to weather and flight conditions during the inspection process, which will increase the differences in the feature descriptors of each key point, normalization processing is performed on the basis of the original SIFT descriptor to improve the matching robustness, and the key point feature description set D is obtained. I ,I∈{A,B}, the calculation formula is as follows:

[0013]

[0014] (2) A graph matching network based on multi-layer random seeds is proposed: by constructing a key point seed set, during the training process, sparse graph message transmission is performed on the seed key points of the matching image to reduce the redundant information error of the unmatched key points, and combined with the complete graph allocation module, the matching correlation expression of the global key points in the multi-layer seed generation process is enhanced, thereby effectively improving the line key point matching accuracy. The graph matching network based on multi-layer random seeds proposed in the present invention has the K as the input described in the invention content (1). I and D I , where I∈{A,B}, the purpose is to establish a matching image I A and I B Accurate matching of key points.

[0015] like Figure 2 As shown in Figure 2, the graph matching network based on multi-layer random seeds mainly consists of three modules: initial seed generation module, seed graph attention module and complete graph allocation module. The initial seed generation module uses D I The Euclidean distance between feature descriptors is calculated, and the key points are matched with each other according to the descriptor distance to obtain the approximate match S' of the key points, and the inverse of the distance ratio, that is, the ratio of the first nearest neighbor distance to the second nearest neighbor distance, is used as the matching score of the key point. The method of the present invention takes the top k key points with the matching score from the approximate match S' as the initial seed set (0) S, construct a sparse graph and input it into the seed graph attention module. In addition, in order to make full use of the powerful semantic expression ability of high-dimensional information, the position coordinates of the key points are encoded by a multi-layer perceptron to obtain 128-dimensional encoded position information encoder_k=(k1,k2,…,k 128 ). Add the key point encoding position information and feature descriptors element by element as the initial graph feature (0) X, input seed graph attention module. The initial graph features of key point i can be defined as:

[0016] (0) X i =dim i +encoder_k i , where encoder_k i =MLP(k i ) (3)

[0017] The seed graph attention module consists of multiple structures including multiple seed graph attention layers and seed regeneration mechanisms. In each seed graph attention layer, a sparse graph is constructed through a seed set for feature downsampling. The seed key points transmit graph messages based on the sparse graph structure to enhance the ability to express visual texture and background information between seed key points. The matching results of the upsampled seed graph features are obtained between the seed graph attention layers. (l) P ij Regenerate the seed set (l) S, so that the seed set is close to the correct matching result to the greatest extent. Specifically, Figure 3 As shown, the complete graph features input to the seed graph attention layer (l) X through the seed set (l) S index, get sparse graph features (l) x 1 , using weighted attention aggregation θ mess Perform feature downsampling and use the graph message passing method F att ( (l) x 1 , (l) X,1) Update the graph features to get the downsampled graph features (l) x 2 For the vector x to be updated and the vector y to be followed, the process of graph message passing can be described as:

[0018] x next =F att (x,y,w)=x+MLP([x||θ mess ]) (4)

[0019] θ mess =Softmax(qk T )wv, where w∈(0,1] (5)

[0020] In the seed graph attention layer, self-attention and cross-attention calculations are performed on the downsampled graph features in turn to enhance the semantic expression ability of the features for the differences between different key points in the same image and the similarities between matching key points in different images. and Predicting the inlier likelihood scores between seed key points based on the PointNet network (l) γ, through the graph message passing method F att ( (l) X, (l) x 3 , (l) γ) performs feature upsampling to complete the full graph feature update. Between the seed graph attention layers, the full graph allocation module is used to calculate the inter-layer matching allocation matrix (l) P ij ,Will(l) P ij The key points with the top k matching scores in both dimensions are used as seeds to regenerate the seed set (l) S.

[0021] The complete graph assignment module calculates the matching confidence δ and matching correlation C of each key point based on the input complete graph features. ij , where i∈I A ,j∈I B On this basis, the complete graph allocation module performs allocation prediction through Dual-Softmax and outputs the matching allocation matrix P in combination with the confidence result. ij .like Figure 4 As shown, the complete graph allocation module of the present invention obtains the image I by calculating the dot product between the graph feature vectors. A and I B The matching correlation matrix C of each key point in ij , the matching confidence δ of key point i i Indicates the probability that there is a corresponding matching point for this key point. If there is no corresponding matching point for this point in another image, then δ i →0. In the seed graph attention layer, since the matching key points are not completely determined, the key points should be retained without filtering, and the inter-layer matching distribution matrix (l) P ij By C ij After Dual-Softmax, it is directly generated. For the output layer, it is necessary to remove redundant key points to reduce the probability of mismatching, and pass the confidence threshold th δ Filter redundant key points to obtain a key point mask sequence and After vector multiplication, the output matching distribution matrix P is obtained ij The allocation prediction is defined as follows:

[0022] BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a schematic diagram of the framework of the route key point extraction method of the present invention;

[0024] Figure 2 This is a schematic diagram of the framework of a multi-layer random seed graph matching network of the present invention;

[0025] Figure 3 Schematic diagram of the structure of the seed graph attention layer of the present invention;

[0026] Figure 4 It is a schematic diagram of the complete graph allocation module structure of the present invention. DETAILED DESCRIPTION

[0027] The present invention is a robust feature matching method for power grid line drone inspection. The following is an example of the specific implementation method of the present invention using feature matching of actual power grid line inspection data. It should be understood by those skilled in the art that these implementations are only used to explain the technical principles of the present invention and are not intended to limit the scope of application of the present invention.

[0028] The development language is Python, the deep learning framework is Pytorch, the drone edge computer is JestonXavier NX, and the sensor is Intel D435i binocular camera. The specific steps are as follows:

[0029] Step 1: Create a test data set for power grid line inspection. Before collecting data along the power grid line, first configure the ROS system in the edge computer, calibrate the camera internal parameters in advance, and create topics corresponding to the binocular video stream and depth video stream in rosbag, and subscribe to the collected binocular images and depth maps respectively. Set the acquisition resolution of the binocular camera and depth camera images to 640x480 pixels, and the acquisition frequency is uniformly set to 15 frames. It is worth mentioning that the confidence image shooting of the depth camera needs to be turned on to facilitate post-processing of the data. Aerial photography was performed along the real power grid line for about 30 minutes, and a total of 25,372 pairs of binocular images and 24,876 depth images were collected. In order to align the binocular images and depth images, and remove the useless data taken during takeoff and landing, the collected data was processed after shooting. Among them, useless data is manually removed, and the alignment of binocular images and depth images uses the following strategy: for depth images with timestamps in the same second, according to the corresponding confidence images, select the three images with the highest image confidence as the depth image data of that second, and find the binocular image with the closest timestamp as its corresponding binocular image data for the selected depth image within the range of each second. Finally, 4500 pairs of binocular images and depth images of power grid line inspections were obtained.

[0030] Step 2: Create a training data set. The GL3D data set is selected to generate training data, which contains 3D reconstructions of 543 different outdoor scenes, including landmark buildings and small objects, suitable for objects such as iconic poles and transformers under power grid line inspection tasks. Sample 1,000 pairs of matching point samples in each scene, and filter out sample pairs that are too difficult or too easy to train. Specifically, only sample pairs with a common track ratio in the range of [0.1, 0.4] and a mutual rotation angle of no more than 60° are retained, and the projection distance is recalculated based on the depth map information to determine the true matching points and unmatched points. The samples are segmented in units of scenes, and the training set and validation set are divided into a ratio of nearly 8:2, and finally 187,481 pairs of training set images and 34,972 pairs of validation set images are obtained.

[0031] Step 3: Network training. The Adam optimizer is used for model training. The initial learning rate is set to 0.0001. After 200k iterations, the learning rate decay is applied with a decay rate of 0.999996. The batch size is set to 16, and 16 matching sample pairs are taken from the training set described in step 2 in each batch. In order to stabilize the seed regeneration performance, all gradient flows after the first seed graph attention layer are frozen at the beginning of training. As the training iterates, the gradient flow of the subsequent layer is unfrozen every 20K iterations. The model calculates the loss function according to the matching allocation matrix every iteration, including the inter-layer matching allocation matrix and the output matching allocation matrix, and reversely updates the network parameters according to the freezing of the gradient flow. The model training is iterated 800K times in total, and verification is performed every 5K iterations, and the weight of the current best performance is retained.

[0032] Step 4: Extraction of key points of power grid line inspection data. For any binocular image in the test data set, use SIFT point detection to detect corner points from its original resolution image, and generate a linear frame diagram according to the content of the present invention (1). Since the binocular image and the corresponding depth map are the same size, the camera intrinsic parameters and extrinsic parameters can be directly used to map the coordinates on the binocular image to the pixel coordinates of the depth map. According to the brightness of the linear frame map coordinates at the corresponding coordinates in the depth map, refer to formula (1) to calculate its spatial mapping coverage and generate a linear mask. After linear mask elimination and linear endpoint supplementation, the extracted point set is characterized to obtain a key point set.

[0033] Step 5: Robust matching of power grid line inspection data. When reconstructing the power grid line channel environment, the drone needs to take aerial photos along the line. In the case of high altitude and wide angle, there are a large number of targets in the captured pictures, which can easily lead to inaccurate matching of the extracted key points of the inspection targets. In the complex line channel environment, the key point set extracted in step 4 is input into the trained multi-layer random seed graph matching network, and the model matching is concentrated on the seed set to obtain robust feature matching for power grid line drone inspection.

Claims

1. A robust feature matching method for unmanned aerial vehicle inspection of power grid lines, characterized in that: The linear structure of inspection targets such as poles, distribution boxes and wires is used to extract key points, and graph message passing is performed through seed sets, which is suitable for robust feature matching of power grid line inspection. The method includes the following: S1. A line key point extraction method based on depth estimation and linear detection. Extract the point position information and linear structure of the input image, based on the significant linear features of the detection targets such as poles, distribution boxes and wires, use the depth information to remove the points outside the linear frame space mapping range, and add the endpoints of the extracted linear segments as compensation to the key point set, so as to achieve robust extraction of key points of inspection targets. S2. A graph matching network based on multi-layer random seeds. By constructing a key point seed set, sparse graph message passing is performed on the seed key points of the matching image during the training process to reduce the redundant information error of the unmatched key points, and combined with the complete graph allocation module, the matching correlation expression of the global key points in the multi-layer seed generation process is enhanced, thereby effectively improving the line key point matching accuracy.

2. The robust feature matching method for power grid line drone inspection according to claim 1 is characterized in that: The line key point extraction method based on depth estimation and linear detection combines the structural characteristics of the power grid line and the depth space distance information, constrains the key point extraction process, and utilizes the texture independence of the linear segment to improve the robustness of the matching method. The specific contents are as follows: The line key point extraction method based on depth estimation and linear detection is mainly divided into three stages: point and line information detection, linear mask generation, and key point generation. In the point and line information detection stage: create a set of extraction point sets k of the input image i ,i∈{0,1,…,n} and the linear segment set l s ,s∈{0,1,…,S}; The linear mask generation stage merges the fragmented linear segments into a linear frame graph with a global linear structure by calculating the Euclidean distance d between the segment endpoints. o , merge adjacent endpoints of the fragments to generate a linear frame graph l full Then, the depth estimation is used to calculate the spatial mapping distance d of the linear frame in pixel coordinates. space , generate the corresponding linear mask. In the key point generation stage, the extraction point set is filtered by the linear mask, and linear breakpoint compensation is performed to obtain the key point pixel coordinate set K I , I∈{A,B}. For each key point, the gradient direction and amplitude are calculated in its local neighborhood to generate a 128-dimensional SIFT descriptor, and after normalization, the key point feature description set D is obtained. I ,I∈{A,B}.

3. The robust feature matching method for power grid line drone inspection according to claim 1 is characterized in that: The multi-layer random seed-based graph matching network first calculates a seed set with a high matching probability. During the training process, sparse graph message passing is performed on the seed key points of the matching image to reduce the redundant information error of the unmatched key points, and combined with the complete graph allocation module, the matching correlation expression of the global key points in the multi-layer seed generation process is enhanced. The specific contents are as follows: The multi-layer random seed based graph matching network is used to accurately describe the matching image I A and I B The position and spatial scale information of the key points in the image are first received by receiving the pixel coordinate set K A ,K B , and the feature descriptor D A ,D B , as the network input; after the initial seed set is generated, the model performs feature encoding to obtain the graph matching feature (0) X A , (0) X B , and use weighted attention aggregation to perform sparse graph message passing between each graph attention layer; the complete graph allocation module calculates the matching confidence δ of each key point on the scale of the complete graph i and matching correlation C ij , and output the matching assignment matrix P ij As I A and I B The matching probability between key points in . The graph attention network based on multi-layer random seeds includes an initial seed module, a seed graph attention module, and a complete graph allocation module; the initial seed module generates a pseudo-match of key points based on the nearest neighbor matching of feature descriptors (0) S, which serves as a reference benchmark for subsequent matching, constraining the transfer of attention messages among key points with higher matching probabilities; the seed graph attention module processes graph matching features of different dimensions (l) X I (n, d), I ∈ {A, B}, l ∈ {0, 1, …, L}, and based on the seed set (l) S(k, 2) adopts weighted attention aggregation θ mess , performs feature downsampling to generate sparse graph matching features (l) S I (k, d), and conducts graph message passing, where k << n; the feature upsampling of the seed graph attention maps the sparse graph matching features after sufficient message passing to the complete graph dimension according to the weighted attention aggregation θ mess , (l+1) X I (n, d), and participates in the graph message passing of the next layer; the complete graph allocation module calculates the inter-layer matching allocation matrix (l) F based on the obtained complete graph matching features (l) P ij , and calculates the inter-layer matching allocation matrix (l) P ij during the training process, and (l) P ij takes the key points with the top k matching scores in both dimensions as seeds to regenerate the seed set (l) S; at the output layer, the matching confidence of each key point is used as a mask to eliminate key points with low matching probabilities, and allocation prediction is performed to calculate the output matching allocation matrix P ij .

4. The multi-layer random seed based graph matching network according to claim 3, characterized in that: The complete graph allocation module predicts allocation based on the matching confidence and matching correlation of each key point, and outputs a matching allocation matrix, i.e., the matching probability between key points. (f) δ i , so that the unmatched key points in the complete graph can be effectively removed when calculating the allocation matrix, and robust feature matching can be achieved. The specific steps are as follows: The complete graph allocation module obtains the image I by calculating the dot product between the graph feature vectors. A and I B The matching correlation matrix C of each key point in ij ,i∈I A ,j∈I B ; Matching confidence δ i Describes the probability that a key point i has a corresponding matching point, through the confidence threshold th δ Get the mask corresponding to the key point set and Constrain the key point matching process within a reliable range; based on the correlation matrix C ij and matching mask to calculate the matching assignment matrix P ij , that is I A and I B The matching probability between key points in , its calculation process can be expressed as: .

Citation Information

Cited By

  • Local feature matching system based on keypoint detection

    WO2026129560A1