A contact line wear detection method and system based on shooting and tracking

The contact line tracking model is constructed through neural network and B-spline interpolation method, which solves the problem of insufficient accuracy in contact line position estimation in the existing technology and improves the accuracy of contact line wear detection.

CN118470017BActive Publication Date: 2024-09-10CHENGDU ZHONGGUI RAILEQUIPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410928990.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-10
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

In the existing technology, the position of the contact line is estimated using a single point estimation method, which makes it difficult to accurately grasp the trajectory information of a length of the contact line, affecting the accuracy of contact line shooting and tracking and the accuracy of wear detection.

Method used

Use neural network combined with B-spline interpolation method to extract contact line position information and edge contours, build a contact line tracking model and detection model, predict the local trajectory of the contact line at the current moment through the trajectories of multiple leading moments, and adjust the high-speed camera field of view to Make sure the contact lines are shown in full.

Benefits of technology

It achieves accurate grasp of long-segment trajectory information of the contact line and improves the accuracy of contact line shooting and tracking and the accuracy of wear detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470017B
    Figure CN118470017B
Patent Text Reader

Abstract

The present invention relates to the field of contact network detection technology, and specifically to a contact line wear detection method and system based on shooting and tracking, comprising the following steps: adjusting the shooting field of view of a high-speed camera to face the contact line according to the contact line position information at the current moment predicted by a contact line tracking model, so as to obtain a contact line scanning image at the current moment; performing wear detection on the contact line scanning image at the current moment using a contact line detection model, and obtaining the contact line wear condition at the current moment. The present invention uses a neural network combined with a B-spline interpolation method to perform prediction training on the contact line position information in each scanning image, obtains a contact line tracking model for contact line position prediction, realizes accurate grasp of long-segment trajectory information, improves the accuracy of contact line shooting and tracking, and ultimately improves the accuracy of contact line wear detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of contact network detection, and in particular to a contact line wear detection method and system based on shooting and tracking. Background Art

[0002] The overhead contact network is a high-voltage transmission line that is set up in a zigzag shape above the rails in an electrified railway and is used by the pantograph to draw current. The overhead contact network is the main structure of the railway electrification project and is a special form of transmission line set up above the railway line to supply power to electric locomotives. It consists of contact suspension, support device, positioning device, pillars and foundation.

[0003] Contact network inspection usually uses contact line image capture to detect contact line wear. The contact line image capture is completed under high-speed movement. Therefore, how to track and capture the contact line to ensure that the contact line is located in the captured image is the basic guarantee for contact line wear detection.

[0004] The existing technology usually uses a Kalman filter to estimate the contact line position, thereby adjusting the high-speed camera to align with the estimated contact line position to ensure that the contact line image is obtained. However, the contact line will display a certain length in the image when it is photographed, and the Kalman filter method, which estimates the contact line position in a single point estimation manner, can only grasp the position information of a single point of the contact line, and it is difficult to accurately grasp the trajectory information of a certain length of the contact line, which affects the accuracy of contact line shooting and tracking, and ultimately affects the accuracy of contact line wear detection. Summary of the invention

[0005] The purpose of the present invention is to provide a contact line wear detection method and system based on shooting and tracking, so as to solve the technical problem that the contact line position is estimated in a single point estimation manner in the prior art, and only the position information of a single point of the contact line can be grasped, and it is difficult to accurately grasp the trajectory information of a certain length of the contact line, which affects the accuracy of contact line shooting and tracking, and ultimately affects the accuracy of contact line wear detection.

[0006] In order to solve the above technical problems, the present invention specifically provides the following technical solutions:

[0007] A contact line wear detection method based on shooting and tracking comprises the following steps:

[0008] Acquire scanning images of the contact line at multiple preceding moments of the current moment as a priori sequence of scanning images of the contact line;

[0009] Extracting contact line position information from each scanned image in the scanned image prior sequence, and using a neural network combined with a B-spline interpolation method to perform prediction training on the contact line position information in each scanned image, thereby obtaining a contact line tracking model for contact line position prediction;

[0010] Extracting the contact line edge contour from each scanned image in the scanned image prior sequence, and performing classification training on the contact line edge contour in each scanned image using a classification network to obtain a contact line detection model for contact line wear detection;

[0011] According to the contact line position information at the current moment predicted by the contact line tracking model, the shooting field of view of the high-speed camera is adjusted to face the contact line to obtain a contact line scanning image at the current moment;

[0012] The contact line detection model is used to perform wear detection on the contact line scanning image at the current moment to obtain the contact line wear status at the current moment.

[0013] As a preferred solution of the present invention, a method for extracting contact line position information from each scan image in the scan image prior sequence includes:

[0014] The UTM projection method is used to establish the coordinate mapping between the pixel space in the scanned image and the physical space where the contact line and the high-speed camera are located;

[0015] Extracting the edge contour of the contact line from each scanned image in the prior sequence of scanned images using an edge detection operator;

[0016] Obtaining pixel coordinates of the edge contour of the contact line in each scanned image, and obtaining the physical coordinates of the edge contour of the contact line in each scanned image according to coordinate mapping between the pixel space and the physical space;

[0017] The contact line edge profile includes the contact line left edge profile and the contact line right edge profile.

[0018] The physical coordinates include X-axis physical coordinates, Y-axis physical coordinates, and Z-axis physical coordinates.

[0019] As a preferred solution of the present invention, the method for constructing the contact line tracking model includes:

[0020] Using the B-spline interpolation method, the contact line trajectory curve is obtained according to the physical coordinates of the contact line edge contour in each scanning image;

[0021] Discretizing the contact line trajectory curve to obtain multiple contact line local trajectories as sample sets for training the BP neural network;

[0022] The BP neural network is trained using the sample set used for training the BP neural network, and a contact line tracking model is obtained for calculating the local trajectory of the contact line at the subsequent moment according to the local trajectory of the contact line at the preceding moment;

[0023] The contact line tracking model is:

[0024] [A,B] tn =BP([A,B] t1 , [A,B] t2 ,…, [A,B] t(n-1) );

[0025] Where [A,B] tn is the local trajectory of the contact line at the tnth moment, [A,B] t1 is the local trajectory of the contact line at time t1, [A,B] t2 is the local trajectory of the contact line at the t2th moment, [A, B] t(n-1) is the local trajectory of the contact line at the t(n-1)th moment, BP is the BP neural network, A is the coordinate vector composed of the physical coordinates of the left edge contour of the contact line in the local trajectory of the contact line, B is the coordinate vector composed of the physical coordinates of the right edge contour of the contact line in the local trajectory of the contact line, A={[plx,ply,plz]1, [plx,ply,plz]2,…, [plx,ply,plz] h} T , B={[prx,pry,prz]1,[prx,pry,prz]2,…, [prx,pry,prz] h} T , where h is the number of nodes where the contact line trajectory curve falls in the local contact line trajectory, [plx,ply,plz]1, [plx,ply,plz]2, [plx,ply,plz] h are the physical coordinates of the 1st, 2nd and hth curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve that fits the left edge contour of the contact line and falls in the local trajectory of the contact line; plx, ply, plz are the physical coordinates of the curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve that fits the left edge contour of the contact line and falls in the local trajectory of the contact line; [prx, pry, prz]1, [prx, pry, prz]2, [prx, pry, prz] h where prx, pry and prz are the physical coordinates of the 1st, 2nd and hth curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve that fits the left edge contour of the contact line and falls in the local trajectory of the contact line; where prx, pry and prz are the physical coordinates of the curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve that fits the right edge contour of the contact line and falls in the local trajectory of the contact line.

[0026] As a preferred solution of the present invention, the B-spline interpolation method of the contact line trajectory curve includes:

[0027] The physical coordinates of the left edge contour of the contact line in each scanned image are normalized to the range of [0,1] to obtain the normalized coordinates of the left edge contour of the contact line;

[0028] The normalized coordinates of the left edge contour of the contact line are used for B-spline interpolation and expressed in matrix form to obtain Xlg=N*Plx, Ylg=N*Ply, Zlg=N*Plz, where Xlg is the X-axis coordinate matrix of the normalized coordinates of the left edge contour of the contact line, N is the coefficient matrix of the B-spline basis function in the B-spline curve, Plx is the X-axis coordinate matrix of the control vertices on the B-spline curve, Ylg is the Y-axis coordinate matrix of the normalized coordinates of the left edge contour of the contact line, Ply is the Y-axis coordinate matrix of the control vertices on the B-spline curve, Zlg is the Z-axis coordinate matrix of the normalized coordinates of the left edge contour of the contact line, and Plz is the Z-axis coordinate matrix of the control vertices on the B-spline curve;

[0029] According to Xlg=N*Plx, Ylg=N*Ply, Zlg=N*Plz, Plx, Ply and Plz are obtained, and Plx, Ply and Plz are substituted into the B-spline curve function to obtain the first smooth curve;

[0030] Converting the first smooth curve from normalized coordinates to physical coordinates, so as to convert the first smooth curve into the contact line trajectory curve fitting the left edge contour of the contact line;

[0031] The physical coordinates of the right edge contour of the contact line in each scanned image are normalized to the range of [0,1] to obtain the normalized coordinates of the right edge contour of the contact line;

[0032] The normalized coordinates of the right edge contour of the contact line are used for B-spline interpolation and expressed in matrix form to obtain Xrg=N*Prx, Yrg=N*Pry, Zrg=N*Prz, where Xrg is the X-axis coordinate matrix of the normalized coordinates of the right edge contour of the contact line, N is the coefficient matrix of the B-spline basis function in the B-spline curve, Prx is the X-axis coordinate matrix of the control vertices on the B-spline curve, Yrg is the Y-axis coordinate matrix of the right edge contour of the contact line in the normalized coordinates, Pry is the Y-axis coordinate matrix of the control vertices on the B-spline curve, Zrg is the Z-axis coordinate matrix of the right edge contour of the contact line in the normalized coordinates, and Prz is the Z-axis coordinate matrix of the control vertices on the B-spline curve;

[0033] According to Xrg=N*Prx, Yrg=N*Pry, Zrg=N*Prz, Prx, Pry and Prz are obtained, and Prx, Pry and Prz are substituted into the B-spline curve function to obtain the second smooth curve;

[0034] The second smooth curve is converted from normalized coordinates to physical coordinates, so as to convert the second smooth curve into the contact line trajectory curve that fits the right edge profile of the contact line.

[0035] As a preferred solution of the present invention, the method for constructing the contact line detection model includes:

[0036] The edge contour of the contact line is extracted from each scanned image and manually annotated to mark the wear condition of the contact line;

[0037] The contact line edge contour and contact line wear condition are extracted from each scanning image as a sample set for training the classifier;

[0038] The classifier is trained using the sample set used for training the classifier, and a contact line detection model is obtained by which the contact line edge profile can identify the contact line wear condition;

[0039] The contact line detection model is:

[0040] Label tn =SVM(g tn );

[0041] In the formula, Label tn is the contact line wear condition at the tnth moment, g tn is the contact line edge contour in the scanned image at the tnth moment, and SVM is the classifier.

[0042] As a preferred solution of the present invention, the loss functions of the contact line detection model and the contact line tracking model are both errors between output values ​​and true values.

[0043] As a preferred solution of the present invention, the method of adjusting the shooting field of view of the high-speed camera to face the contact line includes:

[0044] The Euclidean distance between the local trajectory of the contact line at the current moment and the physical coordinates of the center point of the shooting field of view is used as the shooting field of view optimization function;

[0045] The movable range of the center point of the shooting field of view is used as the solution space, and the shooting field of view optimization function is minimized to obtain the optimal solution of the physical coordinates of the center point of the shooting field of view;

[0046] The shooting field of view optimization function is:

[0047] ;

[0048] In the formula, The physical coordinates of the center point of the field of view at the current moment. They are the physical coordinates of the X-axis, Y-axis, and Z-axis of the center point of the current shooting field of view. is the physical coordinate of the jth curve node in the local trajectory of the contact line corresponding to the right edge contour of the contact line at the current moment, is the physical coordinate of the jth curve node in the local trajectory of the contact line corresponding to the left edge contour of the contact line at the current moment, and h is the number of nodes where the contact line trajectory curve falls in the local trajectory of the contact line.

[0049] As a preferred solution of the present invention, the present invention provides a contact line wear detection system based on shooting and tracking, which is applied to the contact line wear detection method based on shooting and tracking, and the system comprises:

[0050] A model pre-building unit is used to obtain scanning images of the contact line at multiple preceding moments of the current moment as a priori sequence of scanning images of the contact line;

[0051] Used to extract contact line position information from each scanned image in the scanned image prior sequence, and use a neural network combined with a B-spline interpolation method to perform prediction training on the contact line position information in each scanned image to obtain a contact line tracking model for contact line position prediction;

[0052] and for extracting the contact line edge contour from each scanned image in the scanned image prior sequence, and performing classification training on the contact line edge contour in each scanned image using a classification network to obtain a contact line detection model for contact line wear detection;

[0053] A contact line tracking unit, used to adjust the shooting field of view of the high-speed camera to face the contact line according to the contact line position information at the current moment predicted by the contact line tracking model, so as to obtain a contact line scanning image at the current moment;

[0054] The contact line detection unit is used to perform wear detection on the contact line scanning image at the current moment by using the contact line detection model to obtain the wear status of the contact line at the current moment.

[0055] As a preferred solution of the present invention, the method for constructing the contact line tracking model by the model pre-building unit includes:

[0056] Using the B-spline interpolation method, the contact line trajectory curve is obtained according to the physical coordinates of the contact line edge contour in each scanning image;

[0057] Discretizing the contact line trajectory curve to obtain multiple contact line local trajectories as sample sets for training the BP neural network;

[0058] The BP neural network is trained using a sample set used for training the BP neural network, and a contact line tracking model is obtained for calculating the local trajectory of the contact line at a subsequent moment according to the local trajectory of the contact line at a preceding moment.

[0059] As a preferred solution of the present invention, the method for constructing the contact line detection model by the model pre-establishment unit includes:

[0060] The edge contour of the contact line is extracted from each scanned image and manually annotated to mark the wear condition of the contact line;

[0061] The contact line edge contour and contact line wear condition are extracted from each scanning image as a sample set for training the classifier;

[0062] The classifier is trained using the sample set used for training the classifier, and a contact line detection model is obtained by which the contact line edge profile can identify the contact line wear condition;

[0063] The contact line detection model is:

[0064] Label tn =SVM(g tn );

[0065] In the formula, Label tn is the contact line wear condition at the tnth moment, g tn is the contact line edge contour in the scanned image at the tnth moment, and SVM is the classifier.

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

[0067] The present invention utilizes a neural network combined with a B-spline interpolation method to perform prediction training on the contact line position information in each scanning image, thereby obtaining a contact line tracking model for contact line position prediction, achieving accurate grasp of long-segment trajectory information, improving the accuracy of contact line shooting and tracking, and ultimately improving the accuracy of contact line wear detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0069] Figure 1 A flow chart of a contact line wear detection method provided by an embodiment of the present invention;

[0070] Figure 2A block diagram of a contact line wear detection system provided by an embodiment of the present invention;

[0071] Figure 3 A schematic diagram of a contact line provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0072] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0073] like Figure 1 As shown, the present invention provides a contact line wear detection method based on shooting and tracking, comprising the following steps:

[0074] Acquire scanning images of the contact line at multiple preceding moments of the current moment as a priori sequence of scanning images of the contact line;

[0075] The contact line position information is extracted from each scanning image in the scanning image prior sequence, and the contact line position information in each scanning image is predicted and trained by using a neural network combined with a B-spline interpolation method to obtain a contact line tracking model for contact line position prediction;

[0076] The contact line edge contour is extracted from each scanning image in the scanning image prior sequence, and the contact line edge contour in each scanning image is classified and trained by using a classification network to obtain a contact line detection model for contact line wear detection;

[0077] According to the contact line position information at the current moment predicted by the contact line tracking model, the shooting field of view of the high-speed camera is adjusted to face the contact line to obtain a contact line scanning image at the current moment;

[0078] The contact line detection model is used to perform wear detection on the contact line scanning image at the current moment to obtain the contact line wear status at the current moment.

[0079] In order to make the contact line fully displayed in the image taken by the high-speed camera in motion, the present invention avoids empty shooting and missed shooting of the contact line by the high-speed camera, tracks the contact line, and pre-adjusts the midpoint of the field of view of the high-speed camera to align with the contact line for shooting, thereby better capturing the contour details of the contact line and providing data guarantee for wear detection performed through the photographed contact line image.

[0080] The present invention constructs a contact line tracking model through a neural network combined with a B-spline interpolation method, and can predict the local trajectory of the contact line at the current moment based on the contact line trajectories of multiple previous moments, so as to grasp the local trajectory of the contact line in advance, that is, pre-adjust the field of view of the high-speed camera so that the local trajectory of the contact line can all fall into the captured image, thereby realizing the tracking and shooting of the contact line by the high-speed camera.

[0081] Specifically, the present invention adopts the B-spline interpolation method to fit the contact line trajectories of multiple leading moments. After discretization processing, a larger number of trajectory sample data for neural network training can be obtained, thereby ensuring the training accuracy of the contact line tracking model, that is, improving the performance of the model.

[0082] The present invention fits the left and right contours of the contact line separately when using the B-spline interpolation method, thereby respectively obtaining a contact line trajectory curve that fits the left edge contour of the contact line and a contact line trajectory curve that fits the right edge contour of the contact line, and refines the tracking of the contact line into the tracking of the left edge contour and the right edge contour of the contact line. The tracking is more precise, so that the left edge contour and the right edge contour of the contact line can both fall into the image taken by the high-speed camera, thereby obtaining more contact line contour details.

[0083] Therefore, further, when adjusting the field of view of the high-speed camera, the present invention uses the minimum distance between the midpoint of the field of view and the left edge contour and the right edge contour of the contact line as a constraint function (or optimization function), so that the high-speed camera can use the center of the field of view to shoot the contact line, or the left and right contours of the contact line are located in the center of the captured image, so that the contour information will not be lost, further ensuring the data integrity / data quality of wear detection.

[0084] The present invention provides a projection method to establish a coordinate mapping between pixel space and physical space, which is convenient for subsequent coordinate calculations, as follows:

[0085] The method for extracting contact line position information from each scanning image in a priori sequence of scanning images includes:

[0086] The UTM projection method is used to establish the coordinate mapping between the pixel space in the scanned image and the physical space where the contact line and the high-speed camera are located;

[0087] The edge detection operator is used to extract the contact line edge contour (such as Figure 3 shown);

[0088] Obtaining pixel coordinates of the edge contour of the contact line in each scanned image, and obtaining the physical coordinates of the edge contour of the contact line in each scanned image according to coordinate mapping between the pixel space and the physical space;

[0089] The contact line edge profile includes the contact line left edge profile and the contact line right edge profile.

[0090] The physical coordinates include X-axis physical coordinates, Y-axis physical coordinates, and Z-axis physical coordinates.

[0091] The present invention constructs a contact line tracking model by combining a neural network with a B-spline interpolation method, and can predict the local trajectory of the contact line at the current moment according to the contact line trajectories at multiple preceding moments, so as to pre-master the local trajectory of the contact line, that is, pre-adjust the field of view of the high-speed camera so that the local trajectory of the contact line can fall into the captured image, thereby realizing the tracking and shooting of the contact line by the high-speed camera, as follows:

[0092] The construction method of the contact line tracking model includes:

[0093] Using the B-spline interpolation method, the contact line trajectory curve is obtained according to the physical coordinates of the contact line edge contour in each scanning image;

[0094] Discretize the contact line trajectory curve to obtain multiple contact line local trajectories as sample sets for training BP neural network;

[0095] The BP neural network is trained using the sample set used for training the BP neural network, and a contact line tracking model is obtained for calculating the local trajectory of the contact line at the subsequent moment according to the local trajectory of the contact line at the preceding moment;

[0096] The contact line tracking model is:

[0097] [A,B] tn =BP([A,B] t1 , [A,B] t2 ,…, [A,B] t(n-1) );

[0098] Where [A,B] tn is the local trajectory of the contact line at the tnth moment, [A,B] t1 is the local trajectory of the contact line at time t1, [A,B] t2 is the local trajectory of the contact line at the t2th moment, [A, B] t(n-1) is the local trajectory of the contact line at the t(n-1)th moment, BP is the BP neural network, A is the coordinate vector composed of the physical coordinates of the left edge contour of the contact line in the local trajectory of the contact line, B is the coordinate vector composed of the physical coordinates of the right edge contour of the contact line in the local trajectory of the contact line, A={[plx,ply,plz]1, [plx,ply,plz]2,…, [plx,ply,plz] h} T, B={[prx,pry,prz]1,[prx,pry,prz]2,…, [prx,pry,prz] h} T , where h is the number of nodes where the contact line trajectory curve falls in the local contact line trajectory, [plx,ply,plz]1, [plx,ply,plz]2, [plx,ply,plz] h are the physical coordinates of the first, second and hth curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve that fits the left edge contour of the contact line and falls in the local trajectory of the contact line. plx, ply, plz are the physical coordinates of the curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve that fits the left edge contour of the contact line and falls in the local trajectory of the contact line. [prx, pry, prz]1, [prx, pry, prz]2, [prx, pry, prz] h are the physical coordinates of the 1st, 2nd and hth curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve that fits the left edge contour of the contact line and falls in the local trajectory of the contact line; prx, pry, prz are the physical coordinates of the curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve that fits the right edge contour of the contact line and falls in the local trajectory of the contact line.

[0099] The B-spline interpolation method of the contact line trajectory curve includes:

[0100] Given k+1 nodes {u0,u1,…,u k}, and satisfy u0 <u1<…<u k , establish a B-spline curve ,in,

[0101] ;

[0102] ;

[0103] In the formula, u is any value in the range of [0,1]. is a 0-degree B-spline basis function defined on a non-periodic knot vector, and are all n-1 degree B-spline basis functions defined on non-periodic node vectors, is the nth-order B-spline basis function defined on the non-periodic knot vector, u0,u1,u k are {u0,u1,…,u k}, the 1st, 2nd, k+1th nodes, is {u0,u1,…,u k}, the i+1th node in is {u0,u1,…,u k}, the i+2th node in is {u0,u1,…,u k}, the i+n+1th node in is {u0,u1,…,u k}The i+n+2th node in ;

[0104] The physical coordinates of the left edge contour of the contact line in each scanned image are normalized to the range of [0,1] to obtain the normalized coordinates of the left edge contour of the contact line;

[0105] The normalized coordinates of the left edge contour of the contact line are used for B-spline interpolation and expressed in matrix form to obtain Xlg=N*Plx, Ylg=N*Ply, Zlg=N*Plz, where Xlg is the X-axis coordinate matrix of the normalized coordinates of the left edge contour of the contact line, N is the coefficient matrix of the B-spline basis function in the B-spline curve, Plx is the X-axis coordinate matrix of the control vertices on the B-spline curve, Ylg is the Y-axis coordinate matrix of the normalized coordinates of the left edge contour of the contact line, Ply is the Y-axis coordinate matrix of the control vertices on the B-spline curve, Zlg is the Z-axis coordinate matrix of the normalized coordinates of the left edge contour of the contact line, and Plz is the Z-axis coordinate matrix of the control vertices on the B-spline curve;

[0106] According to Xlg=N*Plx, Ylg=N*Ply, Zlg=N*Plz, obtain Plx, Ply and Plz, and substitute Plx, Ply and Plz into the B-spline curve function The first smooth curve is obtained;

[0107] Converting the first smooth curve from normalized coordinates to physical coordinates, so as to convert the first smooth curve into a contact line trajectory curve fitting the left edge contour of the contact line;

[0108] The physical coordinates of the right edge contour of the contact line in each scanned image are normalized to the range of [0,1] to obtain the normalized coordinates of the right edge contour of the contact line;

[0109] The normalized coordinates of the right edge contour of the contact line are used for B-spline interpolation and expressed in matrix form to obtain Xrg=N*Prx, Yrg=N*Pry, Zrg=N*Prz, where Xrg is the X-axis coordinate matrix of the normalized coordinates of the right edge contour of the contact line, N is the coefficient matrix of the B-spline basis function in the B-spline curve, Prx is the X-axis coordinate matrix of the control vertices on the B-spline curve, Yrg is the Y-axis coordinate matrix of the right edge contour of the contact line in the normalized coordinates, Pry is the Y-axis coordinate matrix of the control vertices on the B-spline curve, Zrg is the Z-axis coordinate matrix of the right edge contour of the contact line in the normalized coordinates, and Prz is the Z-axis coordinate matrix of the control vertices on the B-spline curve;

[0110] According to Xrg=N*Prx, Yrg=N*Pry, Zrg=N*Prz, Prx, Pry and Prz are obtained, and Prx, Pry and Prz are substituted into the B-spline curve function. The second smooth curve is obtained;

[0111] The second smooth curve is converted from normalized coordinates to physical coordinates, so as to convert the second smooth curve into a contact line trajectory curve that fits the right edge profile of the contact line.

[0112] The present invention adopts the B-spline interpolation method to fit the contact line trajectories of multiple leading moments. After discretization processing, a larger number of trajectory sample data for neural network training can be obtained, thereby ensuring the training accuracy of the contact line tracking model, that is, improving the performance of the model.

[0113] The present invention fits the left and right contours of the contact line separately when using the B-spline interpolation method, thereby respectively obtaining a contact line trajectory curve that fits the left edge contour of the contact line and a contact line trajectory curve that fits the right edge contour of the contact line, and refines the tracking of the contact line into the tracking of the left edge contour and the right edge contour of the contact line. The tracking is more precise, so that the left edge contour and the right edge contour of the contact line can both fall into the image taken by the high-speed camera, thereby obtaining more contact line contour details.

[0114] The construction method of the contact line detection model includes:

[0115] The edge contour of the contact line is extracted from each scanned image and manually annotated to mark the wear condition of the contact line;

[0116] The contact line edge contour and contact line wear condition are extracted from each scanning image as a sample set for training the classifier;

[0117] The classifier is trained using the sample set used for training the classifier, and a contact line detection model is obtained by which the contact line edge profile can identify the contact line wear condition;

[0118] The contact line detection model is:

[0119] Label tn =SVM(g tn );

[0120] In the formula, Label tn is the contact line wear condition at the tnth moment, g tn is the contact line edge contour in the scanned image at the tnth moment, and SVM is the classifier.

[0121] When adjusting the field of view of the high-speed camera, the present invention uses the minimum distance between the midpoint of the field of view and the left edge contour and the right edge contour of the contact line as a constraint function (or optimization function), so that the high-speed camera can use the center of the field of view to shoot the contact line, or the left and right contours of the contact line are located at the center of the captured image, so that the contour information will not be lost, and the data integrity / data quality of the wear detection is further guaranteed, as follows:

[0122] The loss functions of the contact line detection model and the contact line tracking model are both the error between the output value and the true value.

[0123] Methods for adjusting the field of view of the high-speed camera to face the contact line include:

[0124] The Euclidean distance between the local trajectory of the contact line at the current moment and the physical coordinates of the center point of the shooting field of view is used as the shooting field of view optimization function;

[0125] The movable range of the center point of the shooting field of view (in actual use, the center point of the lens of the high-speed camera can be used as the center point of the shooting field of view) is used as the solution space, and the shooting field of view optimization function is minimized to obtain the optimal solution of the physical coordinates of the center point of the shooting field of view;

[0126] The shooting field of view optimization function is:

[0127] ;

[0128] In the formula, The physical coordinates of the center point of the field of view at the current moment. They are the physical coordinates of the X-axis, Y-axis, and Z-axis of the center point of the current shooting field of view. is the physical coordinate of the jth curve node in the local trajectory of the contact line corresponding to the right edge contour of the contact line at the current moment, is the physical coordinate of the jth curve node in the local trajectory of the contact line corresponding to the left edge contour of the contact line at the current moment, and h is the number of nodes where the contact line trajectory curve falls in the local trajectory of the contact line.

[0129] like Figure 2 As shown, the present invention provides a contact line wear detection system based on shooting and tracking, which is applied to a contact line wear detection method based on shooting and tracking. The system includes:

[0130] A model pre-building unit is used to obtain scanning images of the contact line at multiple preceding moments of the current moment as a priori sequence of scanning images of the contact line;

[0131] It is used to extract the contact line position information from each scanning image in the scanning image prior sequence, and use the neural network combined with the B-spline interpolation method to perform prediction training on the contact line position information in each scanning image, so as to obtain a contact line tracking model for contact line position prediction;

[0132] and for extracting the contact line edge contour from each scanning image in the scanning image prior sequence, and using a classification network to perform classification training on the contact line edge contour in each scanning image, so as to obtain a contact line detection model for contact line wear detection;

[0133] A contact line tracking unit, used to adjust the shooting field of view of the high-speed camera to face the contact line according to the contact line position information at the current moment predicted by the contact line tracking model, so as to obtain a contact line scanning image at the current moment;

[0134] The contact line detection unit is used to perform wear detection on the contact line scanning image at the current moment by using the contact line detection model to obtain the wear status of the contact line at the current moment.

[0135] The method for constructing the contact line tracking model by the model pre-establishment unit includes:

[0136] Using the B-spline interpolation method, the contact line trajectory curve is obtained according to the physical coordinates of the contact line edge contour in each scanning image;

[0137] Discretize the contact line trajectory curve to obtain multiple contact line local trajectories as sample sets for training BP neural network;

[0138] The BP neural network is trained using a sample set used for training the BP neural network, and a contact line tracking model is obtained for calculating the local trajectory of the contact line at a subsequent moment according to the local trajectory of the contact line at a preceding moment.

[0139] The method for constructing the contact line detection model by the model pre-establishment unit includes:

[0140] The edge contour of the contact line is extracted from each scanned image and manually annotated to mark the wear condition of the contact line;

[0141] The contact line edge contour and contact line wear condition are extracted from each scanning image as a sample set for training the classifier;

[0142] The classifier is trained using the sample set used for training the classifier, and a contact line detection model is obtained by which the contact line edge profile can identify the contact line wear condition;

[0143] The contact line detection model is:

[0144] Label tn =SVM(g tn );

[0145] In the formula, Label tn is the contact line wear condition at the tnth moment, g tn is the contact line edge contour in the scanned image at the tnth moment, and SVM is the classifier.

[0146] The present invention utilizes a neural network combined with a B-spline interpolation method to perform prediction training on the contact line position information in each scanning image, thereby obtaining a contact line tracking model for contact line position prediction, achieving accurate grasp of long-segment trajectory information, improving the accuracy of contact line shooting and tracking, and ultimately improving the accuracy of contact line wear detection.

[0147] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. A contact line wear detection method based on shooting and tracking, characterized in that: The following steps are involved: Acquire scanning images of the contact line at multiple preceding moments of the current moment as a priori sequence of scanning images of the contact line; Extracting contact line position information from each scanned image in the scanned image prior sequence, and using a neural network combined with a B-spline interpolation method to perform prediction training on the contact line position information in each scanned image, thereby obtaining a contact line tracking model for contact line position prediction; Extracting the contact line edge contour from each scanning image in the scanning image prior sequence, and performing classification training on the contact line edge contour in each scanning image using a classification network to obtain a contact line detection model for contact line wear detection; According to the contact line position information at the current moment predicted by the contact line tracking model, the shooting field of view of the high-speed camera is adjusted to face the contact line to obtain a contact line scanning image at the current moment; The contact line detection model is used to perform wear detection on the contact line scanning image at the current moment to obtain the contact line wear condition at the current moment; The construction method of the contact line tracking model includes: Using the B-spline interpolation method, the contact line trajectory curve is obtained according to the physical coordinates of the contact line edge contour in each scanning image; Discretizing the contact line trajectory curve to obtain multiple contact line local trajectories as sample sets for training the BP neural network; The BP neural network is trained using the sample set used for training the BP neural network, and a contact line tracking model is obtained for calculating the local trajectory of the contact line at the subsequent moment according to the local trajectory of the contact line at the preceding moment; The contact line tracking model is: [A,B] tn =BP([A,B] t1 ,[A,B] t2 ,…,[A,B] t(n-1) ); Where [A,B] tn is the local trajectory of the contact line at the tnth moment, [A,B] t1 is the local trajectory of the contact line at the t1th moment, [A, B] t2 is the local trajectory of the contact line at the t2th moment, [A, B] t(n-1) is the local trajectory of the contact line at the t(n-1)th moment, BP is the BP neural network, A is the coordinate vector composed of the physical coordinates of the left edge contour of the contact line in the local trajectory of the contact line, and B is the coordinate vector composed of the physical coordinates of the right edge contour of the contact line in the local trajectory of the contact line; A={[plx,ply,plz]1,[plx,ply,plz]2,…,[plx,ply,plz] h } T ; B={[prx,pr,pr]1,[prx,pr,pr]2,…,[prx,pr,pr] h } T , Where h is the number of nodes where the contact line trajectory curve falls in the local trajectory of the contact line, [plx,ply,plz]1,[plx,ply,plz]2,[plx,ply,plz] h are the physical coordinates of the 1st, 2nd and hth curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve that fits the left edge contour of the contact line and falls in the local trajectory of the contact line; plx, ply, plz are the physical coordinates of the curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve that fits the left edge contour of the contact line and falls in the local trajectory of the contact line; [prx, pry, prz]1, [prx, pry, prz]2, [prx, pry, prz] h are the physical coordinates of the 1st, 2nd and hth curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve fitting the left edge contour of the contact line falling in the local trajectory of the contact line; prx, pry and prz are the physical coordinates of the curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve fitting the right edge contour of the contact line falling in the local trajectory of the contact line; The B-spline interpolation method of the contact line trajectory curve includes: The physical coordinates of the left edge contour of the contact line in each scanned image are normalized to the range of [0,1] to obtain the normalized coordinates of the left edge contour of the contact line; The normalized coordinates of the left edge contour of the contact line are used for B-spline interpolation and expressed in matrix form to obtain Xlg=N*Plx, Ylg=N*Ply, Zlg=N*Plz, where Xlg is the X-axis coordinate matrix of the normalized coordinates of the left edge contour of the contact line, N is the coefficient matrix of the B-spline basis function in the B-spline curve, Plx is the X-axis coordinate matrix of the control vertices on the B-spline curve, Ylg is the Y-axis coordinate matrix of the normalized coordinates of the left edge contour of the contact line, Ply is the Y-axis coordinate matrix of the control vertices on the B-spline curve, Zlg is the Z-axis coordinate matrix of the normalized coordinates of the left edge contour of the contact line, and Plz is the Z-axis coordinate matrix of the control vertices on the B-spline curve; According to Xlg=N*Plx, Ylg=N*Ply, Zlg=N*Plz, Plx, Ply and Plz are obtained, and Plx, Ply and Plz are substituted into the B-spline curve function to obtain the first smooth curve; Converting the first smooth curve from normalized coordinates to physical coordinates, so as to convert the first smooth curve into the contact line trajectory curve fitting the left edge contour of the contact line; The physical coordinates of the right edge contour of the contact line in each scanned image are normalized to the range of [0,1] to obtain the normalized coordinates of the right edge contour of the contact line; The normalized coordinates of the right edge contour of the contact line are used for B-spline interpolation and expressed in matrix form to obtain Xrg=N*Prx, Yrg=N*Pry, Zrg=N*Prz, where Xrg is the X-axis coordinate matrix of the normalized coordinates of the right edge contour of the contact line, N is the coefficient matrix of the B-spline basis function in the B-spline curve, Prx is the X-axis coordinate matrix of the control vertices on the B-spline curve, Yrg is the Y-axis coordinate matrix of the right edge contour of the contact line in the normalized coordinates, Pry is the Y-axis coordinate matrix of the control vertices on the B-spline curve, Zrg is the Z-axis coordinate matrix of the right edge contour of the contact line in the normalized coordinates, and Prz is the Z-axis coordinate matrix of the control vertices on the B-spline curve; According to Xrg=N*Prx, Yrg=N*Pry, Zrg=N*Prz, Prx, Pry and Prz are obtained, and Prx, Pry and Prz are substituted into the B-spline curve function to obtain the second smooth curve; The second smooth curve is converted from normalized coordinates to physical coordinates, so as to convert the second smooth curve into the contact line trajectory curve that fits the right edge profile of the contact line.

2. The contact line wear detection method based on shooting and tracking according to claim 1 is characterized in that: The method for extracting contact line position information from each scanned image in the scanned image prior sequence includes: The UTM projection method is used to establish the coordinate mapping between the pixel space in the scanned image and the physical space where the contact line and the high-speed camera are located; Extracting the edge contour of the contact line from each scanned image in the prior sequence of scanned images using an edge detection operator; Obtaining pixel coordinates of the edge contour of the contact line in each scanned image, and obtaining the physical coordinates of the edge contour of the contact line in each scanned image according to coordinate mapping between the pixel space and the physical space; The contact line edge profile includes the contact line left edge profile and the contact line right edge profile. The physical coordinates include X-axis physical coordinates, Y-axis physical coordinates, and Z-axis physical coordinates.

3. The contact line wear detection method based on shooting and tracking according to claim 2 is characterized in that: The method for constructing the contact line detection model comprises: The edge contour of the contact line is extracted from each scanned image and manually annotated to mark the wear condition of the contact line; The contact line edge contour and contact line wear condition are extracted from each scanning image as a sample set for training the classifier; The classifier is trained using the sample set used for training the classifier, and a contact line detection model is obtained by which the contact line edge profile can identify the contact line wear condition; The contact line detection model is: Label tn =SVM(g tn ); In the formula, Label tn is the contact line wear condition at the tnth moment, g tn is the contact line edge contour in the scanned image at the tnth moment, and SVM is the classifier.

4. The contact line wear detection method based on shooting and tracking according to claim 3 is characterized in that: The loss functions of the contact line detection model and the contact line tracking model are both errors between the output value and the true value.

5. The contact line wear detection method based on shooting and tracking according to claim 3 is characterized in that: Methods for adjusting the field of view of the high-speed camera to face the contact line include: The Euclidean distance between the local trajectory of the contact line at the current moment and the physical coordinates of the center point of the shooting field of view is used as the shooting field of view optimization function; The movable range of the center point of the shooting field of view is used as the solution space, and the shooting field of view optimization function is minimized to obtain the optimal solution of the physical coordinates of the center point of the shooting field of view; The shooting field of view optimization function is: ; In the formula, The physical coordinates of the center point of the field of view at the current moment. They are the physical coordinates of the X-axis, Y-axis, and Z-axis of the center point of the current shooting field of view. is the physical coordinate of the jth curve node in the local trajectory of the contact line corresponding to the right edge contour of the contact line at the current moment, is the physical coordinate of the jth curve node in the local trajectory of the contact line corresponding to the left edge contour of the contact line at the current moment, and h is the number of nodes where the contact line trajectory curve falls in the local trajectory of the contact line.

6. A contact line wear detection system based on shooting and tracking, characterized in that: A contact line wear detection method based on shooting and tracking as described in any one of claims 1 to 5, the system comprising: A model pre-building unit is used to obtain scanning images of the contact line at multiple preceding moments of the current moment as a priori sequence of scanning images of the contact line; Used to extract contact line position information from each scanned image in the scanned image prior sequence, and use a neural network combined with a B-spline interpolation method to perform prediction training on the contact line position information in each scanned image to obtain a contact line tracking model for contact line position prediction; and for extracting the contact line edge contour from each scanned image in the scanned image prior sequence, and performing classification training on the contact line edge contour in each scanned image using a classification network to obtain a contact line detection model for contact line wear detection; A contact line tracking unit, used to adjust the shooting field of view of the high-speed camera to face the contact line according to the contact line position information at the current moment predicted by the contact line tracking model, so as to obtain a contact line scanning image at the current moment; A contact line detection unit, used to perform wear detection on the contact line scanning image at the current moment using a contact line detection model to obtain the contact line wear condition at the current moment; The construction method of the contact line tracking model includes: Using the B-spline interpolation method, the contact line trajectory curve is obtained according to the physical coordinates of the contact line edge contour in each scanning image; Discretizing the contact line trajectory curve to obtain multiple contact line local trajectories as sample sets for training the BP neural network; The BP neural network is trained using the sample set used for training the BP neural network, and a contact line tracking model is obtained for calculating the local trajectory of the contact line at the subsequent moment according to the local trajectory of the contact line at the preceding moment; The contact line tracking model is: [A,B] tn =BP([A,B] t1 ,[A,B] t2 ,…,[A,B] t(n-1) ); Where [A,B] tn is the local trajectory of the contact line at the tnth moment, [A,B] t1 is the local trajectory of the contact line at the t1th moment, [A, B] t2 is the local trajectory of the contact line at the t2th moment, [A, B] t(n-1) is the local trajectory of the contact line at the t(n-1)th moment, BP is the BP neural network, A is the coordinate vector composed of the physical coordinates of the left edge contour of the contact line in the local trajectory of the contact line, and B is the coordinate vector composed of the physical coordinates of the right edge contour of the contact line in the local trajectory of the contact line; A={[plx,ply,plz]1,[plx,ply,plz]2,…,[plx,ply,plz] h } T ; B={[prx,pr,pr]1,[prx,pr,pr]2,…,[prx,pr,pr] h } T , Where h is the number of nodes where the contact line trajectory curve falls in the local trajectory of the contact line, [plx,ply,plz]1,[plx,ply,plz]2,[plx,ply,plz] h are the physical coordinates of the 1st, 2nd and hth curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve that fits the left edge contour of the contact line and falls in the local trajectory of the contact line; plx, ply, plz are the physical coordinates of the curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve that fits the left edge contour of the contact line and falls in the local trajectory of the contact line; [prx, pry, prz]1, [prx, pry, prz]2, [prx, pry, prz] h are the physical coordinates of the 1st, 2nd and hth curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve fitting the left edge contour of the contact line falling in the local trajectory of the contact line; prx, pry and prz are the physical coordinates of the curve nodes on the X-axis, Y-axis and Z-axis respectively, of the contact line trajectory curve fitting the right edge contour of the contact line falling in the local trajectory of the contact line; The B-spline interpolation method of the contact line trajectory curve includes: The physical coordinates of the left edge contour of the contact line in each scanned image are normalized to the range of [0,1] to obtain the normalized coordinates of the left edge contour of the contact line; The normalized coordinates of the left edge contour of the contact line are used for B-spline interpolation and expressed in matrix form to obtain Xlg=N*Plx, Ylg=N*Ply, Zlg=N*Plz, where Xlg is the X-axis coordinate matrix of the normalized coordinates of the left edge contour of the contact line, N is the coefficient matrix of the B-spline basis function in the B-spline curve, Plx is the X-axis coordinate matrix of the control vertices on the B-spline curve, Ylg is the Y-axis coordinate matrix of the normalized coordinates of the left edge contour of the contact line, Ply is the Y-axis coordinate matrix of the control vertices on the B-spline curve, Zlg is the Z-axis coordinate matrix of the normalized coordinates of the left edge contour of the contact line, and Plz is the Z-axis coordinate matrix of the control vertices on the B-spline curve; According to Xlg=N*Plx, Ylg=N*Ply, Zlg=N*Plz, Plx, Ply and Plz are obtained, and Plx, Ply and Plz are substituted into the B-spline curve function to obtain the first smooth curve; Converting the first smooth curve from normalized coordinates to physical coordinates, so as to convert the first smooth curve into the contact line trajectory curve fitting the left edge contour of the contact line; The physical coordinates of the right edge contour of the contact line in each scanned image are normalized to the range of [0,1] to obtain the normalized coordinates of the right edge contour of the contact line; The normalized coordinates of the right edge contour of the contact line are used for B-spline interpolation and expressed in matrix form to obtain Xrg=N*Prx, Yrg=N*Pry, Zrg=N*Prz, where Xrg is the X-axis coordinate matrix of the normalized coordinates of the right edge contour of the contact line, N is the coefficient matrix of the B-spline basis function in the B-spline curve, Prx is the X-axis coordinate matrix of the control vertices on the B-spline curve, Yrg is the Y-axis coordinate matrix of the right edge contour of the contact line in the normalized coordinates, Pry is the Y-axis coordinate matrix of the control vertices on the B-spline curve, Zrg is the Z-axis coordinate matrix of the right edge contour of the contact line in the normalized coordinates, and Prz is the Z-axis coordinate matrix of the control vertices on the B-spline curve; According to Xrg=N*Prx, Yrg=N*Pry, Zrg=N*Prz, Prx, Pry and Prz are obtained, and Prx, Pry and Prz are substituted into the B-spline curve function to obtain the second smooth curve; The second smooth curve is converted from normalized coordinates to physical coordinates, so as to convert the second smooth curve into the contact line trajectory curve that fits the right edge profile of the contact line.

7. The contact line wear detection system based on shooting and tracking according to claim 6 is characterized in that: The method for constructing the contact line detection model by the model pre-establishment unit includes: The edge contour of the contact line is extracted from each scanned image and manually annotated to mark the wear condition of the contact line; The contact line edge contour and contact line wear condition are extracted from each scanning image as a sample set for training the classifier; The classifier is trained using the sample set used for training the classifier, and a contact line detection model is obtained by which the contact line edge profile can identify the contact line wear condition; The contact line detection model is: Label tn =SVM(g tn ); In the formula, Label tn is the contact line wear condition at the tnth moment, g tn is the contact line edge contour in the scanned image at the tnth moment, and SVM is the classifier.