A track fastener service state detection method and system based on a three-dimensional point cloud

By using a track fastener detection method based on 3D point clouds, the problems of the inability to measure depth in 2D images and the low accuracy of traditional 3D point cloud algorithms are solved, achieving high-precision track fastener detection in complex track scenarios and improving the scientificity and reliability of the detection.

CN122695604BActive Publication Date: 2026-11-20EAST CHINA JIAOTONG UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611182324.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-08-05
Publication Date
2026-11-20
Estimated Expiration
2046-08-05

AI Technical Summary

Technical Problem

Existing track fastener condition detection systems rely on two-dimensional images, which cannot accurately measure spatial depth. Traditional three-dimensional point cloud algorithms have low component segmentation accuracy, difficulty in extracting spatial topology skeletons, and large errors in physical parameter calculations in complex track scenarios, making it difficult to meet the millimeter-level maintenance requirements of modern railways.

Method used

A method for detecting the service status of track fasteners based on 3D point clouds is adopted, including point cloud data acquisition, decentralized processing, scale normalization, multi-component semantic segmentation, extraction of the 3D center skeleton curve of the elastic bar, and inversion of service status parameters. Combined with deep point cloud network structure and PCA adaptive region growth algorithm, the track fastener components are accurately extracted and the gap value is calculated.

Benefits of technology

The system accurately extracts fine-grained components of track fasteners under strong background interference, with detection errors controlled within the millimeter range, thereby improving the scientific basis and reliability of track fastener service status assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122695604B_ABST
    Figure CN122695604B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of intelligent detection of rail transit infrastructure, solves the technical problems that the existing two-dimensional vision cannot measure the real depth in space, and the traditional three-dimensional point cloud algorithm has low component segmentation precision, difficulty in extracting spatial topology skeleton, and large error in physical parameter calculation in complex rail scene, and especially relates to a rail fastener service state detection method and system based on three-dimensional point cloud, which comprises the steps of collecting three-dimensional point cloud data, normalizing three-dimensional point cloud data, performing rail fastener multi-component semantic segmentation, extracting three-dimensional center skeleton of elastic strip, inverting service state parameters, and visually outputting detection results. The present application can realize fine component segmentation, skeleton extraction and three-dimensional space gap of rail fastener, and accurately detect the service state parameters, converging the gap calculation precision to the real physical three-dimensional space, and the detection error can be controlled within the millimeter level, greatly improving the scientific basis and reliability of the service state evaluation of the rail fastener.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent inspection technology for rail transit infrastructure, and in particular to a method and system for detecting the service status of track fasteners based on three-dimensional point clouds. Background Technology

[0002] The track fastening system (including components such as spring clips, bolts, and washers) is the key link in fixing the rails to the sleepers. Under long-term high-frequency vibration and heavy loads from trains, the fasteners are prone to fatigue failure problems such as loose nuts, spring clips separating, or even breakage, which seriously threaten train operation safety.

[0003] Existing track fastener condition detection systems mainly rely on two-dimensional (2D) industrial area array cameras for image capture. However, two-dimensional images have inherent limitations: they lack depth (Z-axis) information, which means that the system can only rely on shadows or pixel features for fuzzy estimation and cannot accurately measure the actual distance (seam value) between the elastic clip surface and the rail surface and the absolute exposure height of the bolt in three-dimensional physical space.

[0004] In recent years, the introduction of 3D point cloud technology has become a trend, but existing point cloud processing algorithms face significant challenges in orbital scenarios, as follows: Background clutter and strong interference: The track environment contains a large amount of gravel, weeds and oil stains. Traditional point cloud segmentation algorithms based on thresholds or geometric edges have extremely low extraction accuracy and are difficult to completely separate the point clouds of the elastic bar and bolt.

[0005] Extracting the central skeleton is difficult: the elastic bar has a complex three-dimensional twisted structure in space. Traditional morphology-based thinning algorithms are prone to producing burrs and breakpoints, and cannot obtain a smooth and accurate force center skeleton line.

[0006] The state inversion model is coarse: existing gap calculations mostly involve a rough difference between the highest and lowest points, without fully considering the spatial relative mapping relationship between the center of the elastic bar and the rail, resulting in a large detection error and making it difficult to meet the millimeter-level maintenance requirements of modern railways. Summary of the Invention

[0007] To address the shortcomings of existing technologies, this invention provides a method and system for detecting the service status of track fasteners based on three-dimensional point clouds. This solves the technical problems of existing two-dimensional vision being unable to measure the true depth of space, as well as the low component segmentation accuracy, difficulty in extracting spatial topology skeletons, and large errors in physical parameter calculations of traditional three-dimensional point cloud algorithms in complex track scenarios.

[0008] To address the aforementioned technical problems, this invention provides a method for detecting the service status of track fasteners based on three-dimensional point clouds. This method includes the following steps: S1. Collect the 3D point cloud data of the track fastener area and transform it to a 3D world coordinate system to obtain the original point cloud set. ; S2, on the original point cloud set Decentralization is performed, and scale normalization is applied based on the maximum radial distance to obtain a normalized point cloud set. And establish a normalized point cloud set. With the original point cloud collection The index mapping relationship between them; S3, on the original point cloud set Perform coarse screening and obtain normalized candidate point clouds based on index mapping relationships. PointNet++ point cloud semantic segmentation network is used to process normalized candidate point clouds. Perform multi-component semantic segmentation to obtain the elastic bar point set corresponding to each component of the track fastener. Bolt point set Rail point set and background point set ; S4, Point Set of the Pop-up Bar and bolt point set The purification process and geometric correction were performed separately, and the global principal direction of the projectile was determined. The start and end points of the skeleton growth were calibrated based on the local coordinate system of the track and the angle constraints. The three-dimensional center skeleton curve of the projectile was extracted by combining the global principal direction constraints and local PCA adaptive region growth. S5, Based on the three-dimensional central skeleton curve of the elastic bar Invert the service status parameters of the track fasteners; S6. Visualize and output service status parameters based on color rendering.

[0009] Further, step S2 includes the following steps: S21. Based on the original point cloud set Calculate the original point cloud set by summing the coordinate components along the three axes in the world coordinate system. geometric centroid ,Right now:

[0010] in, This represents the total number of points in the original point cloud set; Indicates the first A three-dimensional spatial point; S22, based on the geometric centroid For the original point cloud set all points Perform a decentralized translation operation on the point cloud coordinates to obtain a decentralized point set. The calculation formula is:

[0011] in, Indicates the transpose operation; The normalization point; S23. Calculate the decentralized point set. Each decentralized point Euclidean norm The calculation formula is:

[0012] in, Decentralized point Euclidean distance to the origin; , , Representing decentralized points Coordinate components along the three coordinate axes; Represents the Euclidean norm; S24. Find the maximum extreme value of the distance from the origin to obtain the decentralized point set. Maximum radial distance ,Right now:

[0013] S25, Decentralize the point set Based on maximum radial distance Scale normalization yields a normalized point cloud set whose coordinate range is strictly bound to a unit sphere. ,Right now:

[0014]

[0015] in, Represents the Euclidean norm; S26. Based on the geometric centroid Normalization point and maximum radial distance Establish a normalized point cloud set With the original point cloud collection The index mapping relationship between them is expressed as:

[0016] in, It is the geometric centroid; Maximum radial distance; These are the restored three-dimensional points in space.

[0017] Further, step S3 includes the following steps: S31. The original point cloud set is processed in the world coordinate system. The candidate region point set for track fasteners is obtained by performing coarse screening and outlier removal. The expression is:

[0018] in, Indicates the candidate space area for track fasteners; Representing a point in three-dimensional space The number of neighboring points within a preset neighborhood radius; This represents the minimum number of neighborhood points required to remove an outlier. S32. Based on the index mapping relationship, the candidate area point set for track fasteners is determined. Mapped to normalized candidate point cloud The expression is:

[0019] in, For normalized point cloud sets; The normalization point; S33, in the normalized candidate point cloud Perform FPS farthest point sampling and initialize the sampling center point set. Each time, select the set of centers that are far from the already selected center points. The furthest point is used as the new sampling center point. ; No. Each sampling center point satisfy:

[0020] in, For the front Each sampling center point The set of central points constituted; for Any index in is The selected sampling center point; S34, at the sampling center point The surrounding area has a radius of The search sphere is used to extract all points contained within it to form a local neighborhood subset.

[0021] in, Indicates the first Each sampling center point The corresponding local neighborhood subset; S35. Using a shared multilayer perceptron (MLP) for local neighborhood subsets Perform high-dimensional feature mapping and obtain high-dimensional local region aggregated features through max pooling. ; S36. Use inverse distance weighting to propagate low-resolution deep features back to the high-resolution point set; S37, Calculate the first Normalization point Belongs to each preset category The probability is determined based on the principle of maximum probability. Normalization point Predicted category labels ; S38. Predict category labels Mapping back to the original point cloud set Obtain the set of points on the pop-up bar. Bolt point set Rail point set and background point set ,in: Pop-up Point Set for:

[0022] Bolt point set for:

[0023] Rail point set for:

[0024] Background point set for:

[0025] in, , , , These represent the categories of spring clips, bolts, rails, and background, respectively.

[0026] Further, step S37 includes the following steps: Let the first Normalization point The network output Logits vector is:

[0027] in, Indicates the first Normalization point The corresponding classification output vector; Indicates the total number of categories; Represents the normalization point In category Logits output; No. Normalization point Category The probability is:

[0028] in, Indicates a category index; This represents the category index in the denominator summation of the Softmax function; Indicates the first Normalization point In category Logits output; Represents the normalization point Category The normalized probability; Based on the principle of maximum probability, determine the first... Normalization point Predicted category labels ,Right now:

[0029] in, Indicates the first Normalization point Predicted category labels; This means selecting the category with the highest probability of classification from all preset categories.

[0030] Further, step S4 includes the following steps: S41. The set of pop-up points obtained from semantic segmentation and bolt point set Local outlier removal is performed separately to obtain the purified elastic bar point set. and the cleaned bolt point set At the same time, a correction term for the radius of the elastic bar is introduced. Bolt height correction item Geometric corrections were made to the equivalent cross-sectional radius of the spring clip and the bolt height, respectively. S42. Construct the spatial distribution covariance matrix Then, eigenvalue decomposition is performed, and the eigenvector corresponding to the largest eigenvalue is extracted as the global principal direction of the bullet bar. ; S43, Based on rail point set Establish a local reference coordinate system for the track and combine the point set of the elastic bar. Transform to the local reference coordinate system of the orbit, and calibrate the starting point of the scaffold growth of the projectile in this coordinate system. With the end of skeletal growth ; S44, Skeleton Growth Starting Point Based on Elastic Bars With the end of skeletal growth By combining global principal direction constraints and local PCA adaptive region growing, a discrete skeleton point sequence is iteratively generated. ; S45, Based on Discrete Skeleton Point Sequence By fitting a three-dimensional parametric B-spline curve, a smooth and continuous three-dimensional central skeleton curve of the elastic bar is obtained. ,Right now:

[0031]

[0032] in, This represents the smoothed 3D center skeleton curve of the elastic bar; This represents the curve parameter, with a value range of [value range missing]. ; Indicates the control point index; Indicates the number of control points; Indicates the first One B-spline control point; It represents a three-dimensional real vector space, meaning that each control point consists of three real coordinate components; Indicates the first indivual, B-order spline basis functions; , , The curve parameters are respectively: The time center skeleton point in three-dimensional space , , Coordinate components.

[0033] Further, step S43 includes the following steps: S431, Based on rail point set By fitting the rail reference surface, the unit normal vector of the rail reference surface is obtained. And based on the rail point set The initial rail alignment reference direction is determined by the main direction, the rail extension direction, or the prior direction of rail installation. ; S432, Initial orbital reference direction Normal component removal and normalization are performed to obtain the orbital reference direction. The expression is:

[0034] in, This represents the orbital reference direction after orthogonalization, where the initial orbital reference direction... With unit normal vector When the denominator approaches zero due to near-parallelism, the initial rail orientation is re-determined based on the principal direction of the rail point set or the prior direction of the track. ; S433, According to the track alignment reference direction Constructing a lateral reference direction And construct a local reference coordinate system for the orbit. and its transformation matrix ,in: Local reference coordinate system of the orbit for:

[0035] in, Represents the origin of the local reference coordinate system for the orbit; Transformation matrix for:

[0036] in, It is the transpose symbol; S434, According to the transformation matrix The purified pop-up point Transforming from the world coordinate system to the local orbital reference coordinate system yields the set of spring points in the local orbital reference coordinate system. ,Right now:

[0037]

[0038] in, To transform the point to the local reference coordinate system of the track; S435. Calculate the point set of the spring bar in the local reference coordinate system of the track. center of mass And set the global main direction of the pop-up bar. Transform to the local reference coordinate system of the track to obtain the principal direction of the spring. ; S436, Calculate the main direction of the bullet bar Attitude deflection angle between the orbital reference direction and the orbital local reference coordinate system The calculation formula is:

[0039] in, This indicates the attitude deflection angle of the main direction of the projectile relative to the reference direction of the track; This represents the unit vector of the orbital reference direction in the local reference coordinate system of the orbit. This represents the absolute value operation; Represents the inverse cosine function; when When necessary, it can be used as an abnormal posture cue parameter or a parameter to correct the confidence level of the detection result. The preset threshold; S437, Based on the centroid Calculate each elastic bar point Along the main direction of the elastic bar projection scalar And the indices of the corresponding points of the skeleton growth start and end points are determined by the minimum and maximum values ​​of the projected scalars, that is:

[0040]

[0041]

[0042] S438, According to the index and Each pop-up point Mapping back to the world coordinate system, we obtain the starting point for the growth of the bullet's skeleton. With the end of skeletal growth ,Right now:

[0043]

[0044] in, , The corresponding indexes are respectively and pop-up bar .

[0045] Further, step S44 includes the following steps: S441, the starting point of skeletal growth As the first skeleton node Construct the reference directions for the start and end points and the global main direction Reference directions of start and end points Perform isotropic correction to obtain the initial growth direction. ; S442, Using the current skeleton node Centered on, construct a radius of The local growing neighborhood is expressed as follows:

[0046] in, Indicates the sequence number of the skeleton growth iteration step; Indicates the first One skeleton node; This represents the local growth neighborhood corresponding to the current skeleton node; For the point set of the pop-up bar; Represents the set of points on the pop-up bar after purification. The first in One pop-up bar point; Indicates the first The local search radius used for skeleton growth; Represents the Euclidean norm; like Less than the preset minimum neighbor number threshold If so, the skeleton growth termination condition in step S447 is triggered to avoid incorrect growth direction caused by sparse points or isolated noise. S443. Calculate the current local growing neighborhood. spatial centroid And construct the spatial distribution covariance matrix. ; S444, regarding the spatial distribution covariance matrix Perform eigenvalue decomposition and extract the largest eigenvalue. The corresponding eigenvector is used as the original tangential direction of the local PCA. ,Right now:

[0047] in, This indicates the original growth direction extracted by PCA within the current local growth neighborhood; Represents the relationship with the largest eigenvalue The corresponding feature vector; S445, Based on the current original tangential direction Direction of the previous iteration step The inner product is used to determine whether reverse correction is needed, thus obtaining the skeleton growth direction of the current iteration step. ,Right now:

[0048] in, This indicates the growth direction of the skeleton after directional consistency constraints. Indicates the direction of skeleton growth in the previous iteration; S446, By search step size Along the corrected skeletal growth direction Generate the next skeleton node, i.e.:

[0049] in, Indicates the iteration step size of the skeleton node; Indicates the next skeleton node; S447. Determine the termination condition for skeletal growth. Skeletal growth shall terminate when any of the following conditions are met:

[0050] or:

[0051] or:

[0052] in, This marks the endpoint of skeletal growth. Indicates the threshold distance to the destination; surface This indicates the minimum number of points required for the local growth neighborhood. Indicates the maximum number of iterations; S448. Store the iteratively generated skeleton nodes sequentially into the discrete skeleton point sequence, i.e.:

[0053] The matrix form is:

[0054] in, Represents a discrete skeleton point sequence matrix; This represents the total number of skeleton nodes generated in the final generation; express A space of real matrices with 3 rows and 3 columns, matrix Each row corresponds to the 3D coordinates of a skeleton node, and the three columns correspond to... , , Three spatial coordinate components.

[0055] Further, step S5 includes the following steps: S51, along the three-dimensional central skeleton curve of the elastic bar or discrete skeleton point sequence Select multiple seam gap detection reference points, namely:

[0056] in, Indicates the first One seam detection reference point; Indicates the number of seam gap detection reference points; Represents the first in the discrete skeleton point sequence One skeleton node; Indicates the number of skeleton nodes; S52, using rail point clusters Construct a KD-Tree spatial index structure and use it as a reference point for each seam detection. Search for the nearest neighbor reference point of the rail ,Right now:

[0057] in, Indicates the relationship with the first Reference points for seam detection The nearest rail reference point; Represents the rail point set The first in One rail point; This represents the rail point that minimizes the distance function; S53, using the nearest neighbor reference point of the rail Construct a local rail point set around the center And fit the local rail reference surface Calculate the seam gap detection reference point To the local rail reference surface normal absolute distance ,Right now:

[0058] in, Indicates the first Planar offset parameters of a local rail reference surface; Indicates the first The unit normal vector of a local rail reference surface; S54. Calculate the reference point for gap detection. Local rail reference surface along the normal vector The perpendicular point of the projection, and the correction amount based on the radius of the spring bar. Calculate the equivalent cross-sectional radius of the elastic bar. ,Right now:

[0059] in, Indicates the theoretical radius of the elastic bar cross section; This represents the equivalent radius correction amount caused by surface deposits, wear, plastic deformation, or measurement errors; when radius correction is not enabled, let... ; S55, based on multiple seam detection reference points Calculate the actual physical gap value using the minimum normal gap. And based on the state discrimination function, determine whether there is any abnormal gap or risk of loosening in the track fastener; The actual physical gap value The calculation formula is:

[0060] in, This indicates the actual physical gap value between the elastic clip and the rail; This represents the minimum normal distance calculated along multiple gap detection reference points, used to characterize the gap between the elastic clip and the rail at the closest position; This indicates a non-negative physical constraint, used to avoid negative seam values ​​due to point cloud noise or fitting errors. S56. Based on the actual physical gap value Construct a discriminant function for the gap alarm state, if If the problem is detected, it is determined that there is an abnormal gap or risk of loosening in the track fastener, and a track fastener failure alarm signal is output. The state discrimination function Represented as:

[0061] in, This represents the preset seam failure threshold; when the state discrimination function... When the output track fasteners are abnormally misaligned or loose, an alarm signal is triggered; when When this time, it indicates that the track fasteners are in a normal gap condition; S57, Based on the purified bolt point set Calculate the local normal exposed height characterization value of the bolt point cloud in the normal direction of the local reference coordinate system of the track. ; S58. Characterization value of the exposed height of the bolt point cloud in the local normal direction. The discriminant function for determining the bolt tightening state is established as follows:

[0062] When the discriminant function When, output bolt tightening abnormality alarm information; when When the time is right, it indicates that the bolt tightening condition is within the normal range; in, and These represent the lower and upper limits of the normal exposed height characterization value of the local normal direction of the bolt point cloud, respectively.

[0063] Further, step S6 includes the following steps: S61. Use the perspective projection matrix to map various point sets to a two-dimensional viewport; Let three-dimensional points Its homogeneous coordinates are expressed as:

[0064] Using camera viewport observation matrix With perspective projection matrix Multiply, combine three-dimensional points Mapping to a two-dimensional display plane yields homogeneous image coordinates, i.e.:

[0065] in:

[0066] After normalization, the two-dimensional pixel coordinates are obtained, namely:

[0067]

[0068] in, Represents a 3D point in space to be rendered; Representing a three-dimensional point homogeneous coordinates; Representing a three-dimensional point Homogeneous image coordinates after viewport observation and perspective projection; These represent the three components of the homogeneous image coordinates; and This represents the two-dimensional pixel coordinates obtained after homogeneous normalization. S62. Employ pixel interpolation to render 3D features and service status early warning presentation; The pop-up point set is rendered through rendering operations. Bolt point set Rail point set Mapped to different RGB colors, and provides feedback on gap warnings and bolt tightening status; The color mapping function is expressed as:

[0069] in, Represents the three-dimensional space points to be rendered Display colors in the visual interface; A function representing the mapping from category to RGB color; Representing a point in three-dimensional space Category tags; include:

[0070]

[0071]

[0072] Among them, when the three-dimensional space points to be rendered Corresponding to the set of points on the pop-up bar When the point is in the middle, the color is When the three-dimensional space points to be rendered Corresponding to bolt point set When the point is in the middle, the color is When the three-dimensional space points to be rendered Corresponding to rail point set When the point is in the middle, the color is ; The warning information is displayed as follows:

[0073]

[0074] in, This indicates a warning message indicating a gap in the seam. This text indicates a warning message regarding the bolt tightening status. The discriminant function for the gap alarm status; This is the discriminant function for determining the bolt tightening status.

[0075] By employing the above technical solution, the present invention provides a method and system for detecting the service status of track fasteners based on three-dimensional point clouds, which has at least the following beneficial effects: This invention abandons the traditional geometric threshold segmentation and introduces a deep point cloud network structure with FPS farthest point sampling and inverse distance weighted feature propagation. It can accurately extract high-precision point clouds of fine-grained parts such as elastic bars and bolts under harsh working conditions with strong background interference such as oil stains and gravel coverage, and completely solves the feature crosstalk problem.

[0076] For irregularly curved elastic bars, a cascaded algorithm structure is adopted, which includes global PCA principal direction constraint guidance, local adaptive PCA region growth, and smooth fitting of three-dimensional B-spline curves. This structure prevents "breakpoints" and "reversals" in skeleton growth while preserving the true physical bending stress center topology to the greatest extent.

[0077] This method goes beyond feature extraction. Based on the extracted high-fidelity skeleton, it uses a KD-Tree to determine the nearest neighbor reference point of the rail and constructs a local rail reference surface centered on this reference point. The gap value of the elastic clip is then calculated using a normal distance model. This completely breaks through the limitations of a 2D planar perspective, converging the gap calculation accuracy to the true physical three-dimensional space. The detection error can be controlled within the millimeter range, greatly improving the scientific basis and reliability of rail fastener service condition assessment. Attached Figure Description

[0078] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a flowchart of the rail fastener service status detection method in this invention; Figure 2 This is a diagram showing the overall architecture and hardware configuration of the rail fastener service status detection system in this invention. Detailed Implementation

[0079] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. This will allow for a full understanding of how the present application uses technical means to solve technical problems and achieve technical effects, and to facilitate its implementation.

[0080] It should be noted that the spatial neighborhood radius parameter involved in this embodiment, such as... , , , , The units of these parameters are consistent with the corresponding point cloud coordinate units and can be set according to point cloud resolution, sensor measurement accuracy, actual fastener dimensions, and detection accuracy requirements. The threshold parameters involved in this embodiment, such as… , , , , , , The parameters are determined based on the fastener type, line maintenance standards, on-site calibration data, or experimental statistical results. The correction parameters involved in this embodiment, such as… and This can be determined through manual calibration, statistical analysis of historical test data, local cross-sectional fitting residuals, local height distribution characteristics, or empirical parameters of fastener models; when the corresponding correction is not enabled, it can be set to... or .

[0081] In this embodiment, Represents the real number field; It represents a three-dimensional real vector space, meaning that each point consists of three real coordinate components; Represents a set of real numbers OK Column matrix space. For example, Indicates by A matrix space consisting of 3 rows and 3 columns of real numbers, where This indicates the number of skeleton nodes; 3 indicates that each skeleton node has... , , Three spatial coordinate components.

[0082] This embodiment proposes a method for detecting the service status of track fasteners based on 3D point clouds. Based on 3D point clouds, it achieves precise detection of service status parameters such as refined component segmentation, skeleton extraction, and 3D spatial gap separation of track fasteners. The gap separation calculation accuracy is converged to the actual physical 3D space, and the detection error can be controlled within the millimeter range, greatly improving the scientific basis and reliability of fastener service status assessment. Figure 1 As shown, the method includes the following steps: S1. Use a 3D sensor to collect 3D point cloud data of the track fastener area, and transform the 3D point cloud data to a 3D world coordinate system through sensor extrinsic parameter calibration to obtain the original point cloud set. Step S1 includes the following steps: S11. Use an onboard laser profilometer to scan the surface of the track fastener to obtain a two-dimensional depth slice sequence, let the first... The first in the two-dimensional depth slice of the frame The number of sampling points is:

[0083] in, Indicates the first The first in the two-dimensional depth slice of the frame One sampling point; Indicates the depth slice frame number; Indicates the sampling point number within the same depth slice; and Represents the image plane coordinates; This indicates the depth value corresponding to the sampling point; Indicates the transpose operation; S12. Combining the extrinsic parameter calibration matrix of the vehicle-mounted laser profilometer, the two-dimensional depth slices are mapped to an absolute point set in the three-dimensional world coordinate system through coordinate transformation, resulting in the original point cloud set. The expression is:

[0084] in, Indicates the first A three-dimensional spatial point; Representing points respectively Coordinate components in a three-dimensional coordinate system; This represents the total number of points in the original point cloud set; Represents a three-dimensional real vector space; If the coordinates of the point in the sensor coordinate system are The coordinates of the point in the world coordinate system are Then the coordinate transformation relationship is:

[0085] in:

[0086]

[0087]

[0088] in, Indicates the first The three-dimensional coordinates of a point in the sensor coordinate system; Represents the lower point in the sensor coordinate system homogeneous coordinates; Indicates the first The homogeneous coordinates of a point in the world coordinate system; This represents the extrinsic calibration matrix from the sensor coordinate system to the world coordinate system; Represents the rotation matrix; Represents the translation vector; Represents the coordinate components in the sensor coordinate system; Represents the coordinate components in the world coordinate system.

[0089] S2, on the original point cloud set Decentralization is performed, and scale normalization is applied based on the maximum radial distance to obtain a normalized point cloud set. And establish a normalized point cloud set. With the original point cloud collection The index mapping relationship between them. Step S2 includes the following steps: S21. Based on the original point cloud set Calculate the original point cloud set by summing the coordinate components along the three axes in the world coordinate system. geometric centroid Specifically, the sum of the independent coordinate components in the three axes are as follows:

[0090]

[0091]

[0092] in, , , They are respectively in The sum of coordinate components along the axial direction; The global physical centroid vector is obtained by calculating the mean value, and then the original point cloud set... geometric centroid for:

[0093] in:

[0094]

[0095]

[0096] therefore:

[0097] in, This represents the total number of points in the original point cloud set; Indicates the first A three-dimensional point.

[0098] S22, based on the geometric centroid For the original point cloud set all points Perform a decentralized translation operation on the point cloud coordinates to obtain a decentralized point set. The calculation formula is:

[0099] Expanded to:

[0100] in, Indicates the transpose operation; S23. Calculate the decentralized point set. Each decentralized point Euclidean norm The calculation formula is:

[0101]

[0102] in, Decentralized point Euclidean distance to the origin; , , Representing decentralized points Coordinate components along the three coordinate axes; Represents the Euclidean norm; S24. Find the maximum extreme value of the distance from the origin to obtain the decentralized point set. Maximum radial distance ,Right now:

[0103] S25, Decentralize the point set Based on maximum radial distance Scale normalization yields a normalized point cloud set whose coordinate range is strictly bound to a unit sphere. ,Right now:

[0104]

[0105] in, Represents the Euclidean norm; S26. Based on the geometric centroid Normalization point and maximum radial distance Establish a normalized point cloud set With the original point cloud collection The index mapping relationship between them.

[0106] In this embodiment, point cloud normalization is only used to improve the scale stability during the training and inference process of deep neural networks; service status parameters such as the gap value of the elastic bar and the local normal exposed height of the bolt are real physical quantities. Therefore, after obtaining the semantic segmentation results, it is necessary to restore the normalized point cloud results and map them to the original physical coordinate system.

[0107] This embodiment focuses on the original point cloud set. When performing decentralization and scale normalization, the original three-dimensional spatial points are preserved. and normalization point The one-to-one index correspondence between them, that is:

[0108] in, Represents a point cloud index; Represents the first in the three-dimensional world coordinate system A three-dimensional point in space; Represents the normalized i-th One point.

[0109] For any normalization point Its corresponding three-dimensional point It can be recovered using the following formula:

[0110] in, It is the geometric centroid; Maximum radial distance; The normalization point; These are the restored three-dimensional points in space.

[0111] Therefore, the normalized point cloud set With the original point cloud collection The recovery relationship (i.e., the index mapping relationship) between them is as follows:

[0112] S3, on the original point cloud set Perform coarse screening and obtain normalized candidate point clouds based on index mapping relationships. PointNet++ point cloud semantic segmentation network is used to process normalized candidate point clouds. Perform multi-component semantic segmentation to obtain the elastic bar point set corresponding to each component of the track fastener. Bolt point set Rail point set and background point set .

[0113] In this embodiment, the input to the PointNet++ point cloud semantic segmentation network is a normalized point cloud set. Or normalized candidate point cloud The network output is the predicted category label for each point. .

[0114] After classification is completed, predict the category label. Map to the original point cloud set according to the point index correspondence. Thus, the set of points on the elastic bar in the three-dimensional world coordinate system is obtained. Bolt point set and rail point set Subsequent steps, including the extraction of the 3D center skeleton line of the elastic clip, the calculation of the gap value of the elastic clip, and the calculation of the local normal exposed height of the bolt, are all based on the restored original point cloud set. Completed. Step S3 includes the following steps: S31. The original point cloud set is processed in the world coordinate system. The candidate region point set for track fasteners is obtained by performing coarse screening and outlier removal. The expression is:

[0115] in, Indicates the candidate space area for track fasteners; Representing a point in three-dimensional space The number of neighboring points within a preset neighborhood radius; This represents the minimum number of neighborhood points required to remove an outlier.

[0116] Specifically, in this embodiment, a candidate space area for track fasteners is set according to the installation position of the track fasteners near the sleepers and rails. The candidate space area for the track fastener This can be determined by the rail position, sleeper position, prior dimensions of fastener installation, or sensor scanning window. Then, it is derived from the original point cloud dataset. Extract the candidate spatial region of the track fastener falling into the track. point, that is:

[0117] in, This represents the point cloud of the candidate region for track fasteners.

[0118] Point cloud of candidate region for extracting track fasteners Subsequently, this embodiment removes obvious outliers based on neighborhood density. This is achieved by analyzing the point cloud of candidate regions for track fasteners. any point in Calculate its radius Number of neighboring points ,Right now:

[0119] like If a point is found to be isolated or clearly disordered, it is determined and removed. This results in the final set of candidate points for track fasteners. ,Right now:

[0120] in, This represents the minimum number of neighborhood points required to remove an outlier.

[0121] S32. Based on the index mapping relationship, the candidate area point set for track fasteners is determined. Mapped to normalized candidate point cloud The expression is:

[0122] in, For normalized point cloud sets; The normalization point; S33, in the normalized candidate point cloud Perform FPS farthest point sampling and initialize the sampling center point set. Each time, select the set of centers that are far from the already selected center points. The furthest point is used as the new sampling center point. . No. Each sampling center point satisfy:

[0123] in, For the front Each sampling center point The set of central points constituted; for Any index in is The selected sampling center point; After sampling is completed, a new set of sampling center points is obtained. for:

[0124] in, Indicates the number of sampling center points; S34, at the sampling center point The surrounding area has a radius of Given a search sphere, extract all points contained within the search sphere to form a local neighborhood subset:

[0125] in, Indicates the first Each sampling center point The corresponding local neighborhood subset; S35. Using a shared multilayer perceptron (MLP) for local neighborhood subsets Perform high-dimensional feature mapping and obtain high-dimensional local region aggregated features through max pooling. .

[0126] In this embodiment, local feature extraction is no longer described as a single fully connected layer mapping, but rather a shared multilayer perceptron (MLP) is used to extract local neighborhood subsets. normalization point within Perform point-by-point feature encoding. Because of the same local neighborhood subset... Since all points share MLP parameters, local spatial structure features can be extracted while maintaining the permutation invariance of the point cloud. Therefore, step S35 includes the following steps: S351, Local point feature mapping based on shared multilayer perceptron (MLP); For the a local neighborhood subset Let the first one be... The normalization points are:

[0127] in, Indicates the first Within the local neighborhood subset, the first One normalization point.

[0128] normalization point Input a shared multilayer perceptron (MLP) to obtain the high-dimensional local point features corresponding to that point. ,Right now:

[0129] Specifically, the shared multilayer perceptron (MLP) is composed of It consists of layers of nonlinear mappings, and its initial input is:

[0130] No. The layer mapping process is represented as:

[0131] The final result is:

[0132] in, Represents the input features of an MLP; Indicates the first Layer output features; Indicates the number of MLP layers; Indicates the first The weight matrix of a layer MLP; Indicates the first Bias vector of layer MLP; Represents a non-linear activation function; Represents the normalization point High-dimensional local point features obtained after MLP encoding.

[0133] S352, Local Maximum Pooling Aggregation; For the first a local neighborhood subset All normalized points High-dimensional local point features Symmetric pooling is performed to obtain a local neighborhood subset. Local region aggregation features .

[0134] Specifically, the max pooling function used is:

[0135] Or it can be written as:

[0136] in, Indicates the first Local region aggregation features of a local neighborhood subset; This means that the high-dimensional local point features of all normalized points in the local neighborhood subset are maximized in each feature dimension, thereby obtaining a local region aggregated feature expression that is insensitive to the point order.

[0137] Through the MLP feature mapping and max pooling aggregation processes described above, the spatial coordinate information of multiple normalized points within a local neighborhood subset can be transformed into a high-dimensional local region aggregation feature. This information is then used as input for subsequent feature propagation and semantic classification.

[0138] S36. In the feature propagation stage, an inverse distance-weighted method is used to propagate low-resolution deep features back to the high-resolution point set. Step S36 includes the following steps: S361. Spatial Nearest Neighbor Search: Finding the Target Point for Interpolation of Nearest neighbor points of known deep features ,Right now:

[0139] in, This represents the K-nearest neighbor search operator; Indicates the target point to be interpolated; Represents a known set of deep feature points; Indicates the target point The One nearest neighbor point; This represents the number of nearest neighbors involved in feature interpolation.

[0140] S362. Weighted factor calculation: Calculate the target point. With the Neighboring points Euclidean distance between ,Right now:

[0141] in, Indicates the target point and neighboring points The Euclidean distance between them; This represents the L2 norm.

[0142] S363. Normalized weight calculation: Interpolation weights are calculated using the inverse distance squared weighting method. ,Right now:

[0143] in, To prevent the denominator from being abnormally small due to a distance of zero; This represents the nearest neighbor index in normalized summation; Indicates the first Neighboring points For target point Interpolation weights.

[0144] Interpolation weights satisfy:

[0145] S364. Perform distance interpolation: based on interpolation weights. The extracted features are interpolated to a high-resolution point set, using the following formula:

[0146] in, Indicates the target point Features after interpolation; Indicates nearest neighbor points The deep features of.

[0147] S37. Apply the Softmax activation function to the classification output layer and calculate the... Normalization point Belongs to each preset category The probability is determined based on the principle of maximum probability. Normalization point Predicted category labels .

[0148] Step S37 includes the following steps: Let the first Normalization point The network output Logits vector is:

[0149] in, Indicates the first Normalization point The corresponding classification output vector; Indicates the total number of categories; Represents the normalization point In category The Logits output.

[0150] No. Normalization point Category The probability is:

[0151] in, Indicates a category index; This represents the category index in the denominator summation of the Softmax function; Indicates the first Normalization point In category Logits output; Represents the normalization point Category The normalized probability.

[0152] Based on the principle of maximum probability, determine the first... Normalization point Predicted category labels ,Right now:

[0153] in, Indicates the first Normalization point Predicted category labels; This means selecting the category with the highest probability of classification from all preset categories.

[0154] S38. Predict category labels Mapping back to the original point cloud set Obtain the set of points on the pop-up bar. Bolt point set Rail point set and background point set Based on the normalization points established in step S2 With three-dimensional space points The index mapping relationship will predict the category label. Mapped to the original physical point cloud Subsequent measurements will use the original three-dimensional spatial points. .

[0155] The pop-up bar point set is:

[0156] The bolt point set is as follows:

[0157] The rail point set is as follows:

[0158] The background point set is:

[0159] in, , , , These represent the categories of spring clips, bolts, rails, and background, respectively.

[0160] S4, Point Set of the Pop-up Bar and bolt point set Cleaning and geometric correction are performed separately, and the global principal direction of the projectile is determined. The start and end points of the skeleton growth are calibrated based on the local coordinate system and angle constraints of the orbit. The 3D center skeleton curve of the projectile is extracted by combining the global principal direction constraints and local PCA adaptive region growth. Step S4 includes the following steps: S41. The set of pop-up points obtained from semantic segmentation and bolt point set Local outlier removal is performed separately to obtain the purified elastic bar point set. and the cleaned bolt point set At the same time, a correction term for the radius of the elastic bar is introduced. Bolt height correction item Geometric corrections are performed on the equivalent cross-sectional radius of the spring clip and the bolt height, respectively. Step S41 includes the following steps: S411, Point set of the pop-up bar Neighborhood density statistics are performed to remove isolated noise points and points with obvious boundary attachments, resulting in the purified elastic bar point set. The expression is:

[0161] in, Indicates pop-up bar points The number of local neighborhood points; This represents the minimum threshold number of neighboring points to retain for each point on the pop-up bar. S412, Bolt point set Neighborhood density statistics are performed to remove isolated noise points and obviously missegmented points, resulting in a purified bolt point set. The expression is:

[0162] in, Indicates bolt point The number of local neighborhood points; This represents the minimum threshold number of neighboring points to retain for a bolt point. S413. Determine the radius correction amount of the spring bar based on the boundary purification results of the point cloud on the surface of the spring bar, the local section fitting residual, or the empirical calibration value. The corrected equivalent cross-sectional radius of the spring bar is obtained. ,Right now:

[0163] in, Indicates the theoretical radius of the elastic bar cross section; Determined by the equivalent effects of oil stains, rust, mud and sand adhesion, surface wear, plastic deformation, or measurement errors; S414. Determine the bolt height correction term based on the boundary cleanup results of the bolt point set, local height distribution characteristics, or empirical calibration values. The corrected bolt height is obtained. ,Right now:

[0164] in, Used to correct height deviations caused by oil stains, rust, mud and sand adhesion, incorrect segmentation points, or measurement noise.

[0165] S42. Construct the spatial distribution covariance matrix Then, eigenvalue decomposition is performed, and the eigenvector corresponding to the largest eigenvalue is extracted as the global principal direction of the bullet bar. Step S42 includes the following steps: S421. Calculate the cleaned elastic bar point set. Spatial centroid ; Specifically, let's define the purified set of bullet points. for:

[0166] in, Indicates the first point in the set of points on the pop-up bar after purification. One pop-up bar point; These represent the three-dimensional coordinate components of the point in the original physical coordinate system; This indicates the number of points in the pop-up point set after purification.

[0167] Pop-up Point Set The spatial centroid is:

[0168] in, Represents the set of points on the pop-up bar after purification. The spatial centroid.

[0169] S422, Based on Spatial Centroid Construct a spatial distribution covariance matrix to characterize the degree of discreteness of the point cloud in different spatial directions. The expression is:

[0170] in, The three-dimensional spatial distribution covariance matrix of the cleaned elastic bar point set; This represents the transpose operation of a vector or matrix.

[0171] S423. Solve by eigenvalue decomposition and extract the largest eigenvalue. The corresponding first principal component feature vector is defined as the global principal direction of the elastic bar; Due to the spatial distribution covariance matrix Since it is a real symmetric matrix, its principal directions can be solved by eigenvalue decomposition, i.e.:

[0172] in:

[0173]

[0174] The eigenvalues ​​satisfy:

[0175] Or it can be expressed as an eigenvalue equation:

[0176] in, The spatial distribution covariance matrix of the point set of the elastic bar is represented. Represents a 3x3 matrix space consisting of real numbers; This represents a diagonal matrix consisting of three eigenvalues. This represents an orthogonal matrix composed of three unit eigenvectors; , , Represent the spatial distribution covariance matrix respectively The three unit eigenvectors; , , Respectively represent and , , The corresponding eigenvalues; Representation matrix The transpose of the matrix; Indicates the index of the eigenvalue and eigenvector.

[0177] In the above eigenvalue decomposition results, the largest eigenvalue... The corresponding unit eigenvector The direction representing the largest variance of the purified elastic bar point set in three-dimensional space is used as the first principal component direction of the elastic bar point set and is used for the initialization and constraint of the subsequent elastic bar skeleton growth direction.

[0178] Therefore, the maximum eigenvalue is extracted. The corresponding first principal component feature vector is defined as the global principal direction of the pop-up bar, that is:

[0179] in, Indicates the global main direction of the pop-up bar; Represents the largest eigenvalue The corresponding unit eigenvector.

[0180] S43, Based on rail point set Establish a local reference coordinate system for the track and combine the point set of the elastic bar. Transform to the local reference coordinate system of the orbit, and calibrate the starting point of the scaffold growth of the projectile in this coordinate system. With the end of skeletal growth This reduces the impact of sensor mounting posture, local track tilt, and fastener installation deflection on the extraction of the start and end points of the elastic clip skeleton. Step S43 includes the following steps: S431, Based on rail point set By fitting the rail reference surface, the unit normal vector of the rail reference surface is obtained. And based on the rail point set The initial rail alignment reference direction is determined by the main direction, the rail extension direction, or the prior direction of rail installation. ; S432. To ensure that the local reference coordinate system of the track is an orthogonal coordinate system, the initial track direction reference direction... Normal component removal and normalization are performed to obtain the orbital reference direction. The expression is:

[0181] in, This represents the orbital reference direction after orthogonalization, where the initial orbital reference direction... With unit normal vector When the denominator approaches zero due to near-parallelism, the initial rail orientation is re-determined based on the principal direction of the rail point set or the prior direction of the track. .

[0182] After the above processing, the following conditions are met:

[0183] S433, According to the track alignment reference direction Constructing a lateral reference direction And construct a local reference coordinate system for the orbit. Its transformation matrix is ​​expressed as:

[0184] in, This indicates the lateral reference direction, which is also perpendicular to the orbital reference direction. Unit normal vector of the rail reference plane .

[0185] Establish a local reference coordinate system for the orbit. for:

[0186] in, Represents the origin of the local reference coordinate system for the orbit; Indicates the orbital reference direction after orthogonalization; Indicates the lateral reference direction; This represents the unit normal vector of the rail reference surface.

[0187] Transformation matrix for constructing the local reference coordinate system of the orbit for:

[0188] in, It is the transpose symbol; S434, According to the transformation matrix The purified pop-up point Transforming from the world coordinate system to the local orbital reference coordinate system yields the set of spring points in the local orbital reference coordinate system. ,Right now:

[0189]

[0190] S435. Calculate the centroid of the point set of the spring clip in the local reference coordinate system of the orbit. And set the global main direction of the pop-up bar. Transform to the local reference coordinate system of the track to obtain the principal direction of the spring. ; S436, Calculate the main direction of the bullet bar Attitude deflection angle between the orbital reference direction and the orbital local reference coordinate system ; when When necessary, it can be used as an abnormal posture cue parameter or a parameter to correct the confidence level of the detection result. The preset threshold; attitude deflection angle The calculation formula is:

[0191] in, This indicates the attitude deflection angle of the main direction of the projectile relative to the reference direction of the track; This represents the unit vector of the orbital reference direction in the local reference coordinate system of the orbit. This represents the absolute value operation; This represents the inverse cosine function.

[0192] In this embodiment, the orbit reference direction is a local reference coordinate system of the orbit. Axial unit vector To standardize the starting and ending point extraction benchmarks under different measurement attitudes, this step performs projection calibration in the local reference coordinate system of the track; simultaneously, As an evaluation metric for attitude deflection angle. When When this happens, it is used as an abnormal posture indication parameter or a confidence correction parameter for the detection result, so as to reduce the impact of the measurement coordinate posture deviation on the skeleton start and end point calibration and subsequent state evaluation. S437, Based on the centroid Calculate each elastic bar point Along the main direction of the elastic bar projection scalar And the indices of the corresponding points of the skeleton growth start and end points are determined by the minimum and maximum values ​​of the projected scalars, that is:

[0193]

[0194]

[0195] S438, According to the index and Each pop-up point Mapping back to the world coordinate system, we obtain the starting point for the growth of the bullet's skeleton. With the end of skeletal growth ,Right now:

[0196]

[0197] in, , The corresponding indexes are respectively and pop-up bar .

[0198] S44, Skeleton Growth Starting Point Based on Elastic Bars With the end of skeletal growth By combining global principal direction constraints and local PCA adaptive region growing, a discrete skeleton point sequence is iteratively generated. Step S44 includes the following steps: S441, the starting point of skeletal growth As the first skeleton node Construct the reference directions for the start and end points and the global main direction Reference directions of start and end points Perform isotropic correction to obtain the initial growth direction. .

[0199] Specifically, based on the starting point of skeletal growth With the end of skeletal growth Construct the reference directions for the start and end points, i.e.:

[0200] in, This indicates the reference direction from the starting point of skeletal growth to the ending point of skeletal growth.

[0201] To avoid the initial growth direction being opposite to the start and end points of the skeleton, the global main direction of the elastic bar is set. Reference directions of start and end points After performing isotropic correction, the initial skeletal growth direction is obtained, namely:

[0202] in, Indicates the initial direction of skeleton growth.

[0203] S442, Using the current skeleton node Centered on, construct a radius of The local growing neighborhood is expressed as follows:

[0204] in, Indicates the sequence number of the skeleton growth iteration step; Indicates the first One skeleton node; This represents the local growth neighborhood corresponding to the current skeleton node; For the point set of the pop-up bar; Represents the set of points on the pop-up bar after purification. The first in One pop-up bar point; Indicates the first The local search radius used for skeleton growth; Represents the Euclidean norm; like Less than the preset minimum neighbor number threshold If so, the skeleton growth termination condition in step S447 is triggered to avoid incorrect growth direction caused by sparse points or isolated noise. S443. Calculate the current local growing neighborhood. spatial centroid And construct the spatial distribution covariance matrix. The calculation formula is:

[0205]

[0206] in, This indicates the number of points in the current local growth neighborhood; The transpose operation represents a vector or matrix; S444, regarding the spatial distribution covariance matrix Perform eigenvalue decomposition and extract the largest eigenvalue. The corresponding eigenvector is used as the original tangential direction of the local PCA. .

[0207] Specifically, for the spatial distribution covariance matrix Perform eigenvalue decomposition, that is:

[0208] Among them, each eigenvalue satisfies:

[0209] Extracting the largest eigenvalue The corresponding eigenvector is used as the original tangential direction of the local PCA, that is:

[0210] in, This indicates the original growth direction extracted by PCA within the current local growth neighborhood; Represents the relationship with the largest eigenvalue The corresponding feature vector.

[0211] S445. Due to the issue that the positive and negative directions of the feature vectors obtained by local PCA are not unique, in order to avoid reverse reversal during skeleton growth, based on the current original tangential direction... Direction of the previous iteration step The inner product is used to determine whether reverse correction is needed, thus obtaining the skeleton growth direction of the current iteration step. ,Right now:

[0212] in, This indicates the growth direction of the skeleton after directional consistency constraints. Indicates the direction of skeleton growth in the previous iteration; S446, By search step size Along the corrected skeletal growth direction Generate the next skeleton node, i.e.:

[0213] in, Indicates the iteration step size of the skeleton node; Indicates the next skeleton node; S447. Determine the termination condition for skeletal growth. Skeletal growth shall terminate when any of the following conditions are met:

[0214] or:

[0215] or:

[0216] in, This marks the endpoint of skeletal growth. Indicates the threshold distance to the destination; surface This indicates the minimum number of points required for the local growth neighborhood. Indicates the maximum number of iterations; S448. Store the iteratively generated skeleton nodes sequentially into the discrete skeleton point sequence, i.e.:

[0217] The matrix form is:

[0218] in, Represents a discrete skeleton point sequence matrix; This represents the total number of skeleton nodes generated in the final generation; express A space of real matrices with 3 rows and 3 columns, matrix Each row corresponds to the 3D coordinates of a skeleton node, and the three columns correspond to... , , Three spatial coordinate components.

[0219] S45, Based on Discrete Skeleton Point Sequence By fitting a three-dimensional parametric B-spline curve, a smooth and continuous three-dimensional central skeleton curve of the elastic bar is obtained. .

[0220] In one implementation, a discrete skeleton point sequence can be used. After parametric sampling, the data points are used for B-spline fitting, and control points are determined by least-squares fitting. When using interpolation, the control points can also be determined by discrete skeleton points or their resampled points.

[0221] Let the control points of the B-spline be:

[0222] in, Indicates the first One B-spline control point; Indicates the number of control points.

[0223] A node vector is defined as a non-decreasing sequence of nodes, that is:

[0224] in, Represents the B-spline node vector; Represents the first node in the node vector There are 10 nodes; the node vector can be constructed using a uniform node vector, an open uniform node vector, or a non-uniform node vector based on chord length parameterization.

[0225] The zeroth-order B-spline basis function is:

[0226] The higher-order B-spline basis functions are:

[0227] in, For the first node in the node vector One node; Let the order be the spline order. for B-order spline basis functions; and Represents the lower-order B-spline basis function; when the denominator or When the value is 0, the corresponding fractional term is treated as 0.

[0228] Based on discrete skeleton point matrix By fitting the smooth parametric equations, a smooth and continuous three-dimensional central skeleton curve of the elastic bar is obtained. ,Right now:

[0229]

[0230] in, This represents the smoothed 3D center skeleton curve of the elastic bar; This represents the curve parameter, with a value range of [value range missing]. ; Indicates the control point index; Indicates the number of control points; Indicates the first One B-spline control point; It represents a three-dimensional real vector space, meaning that each control point consists of three real coordinate components; Indicates the first indivual, B-order spline basis functions; , , The curve parameters are respectively: The time center skeleton point in three-dimensional space , , Coordinate components; therefore, , indicating parameters The corresponding central skeleton point is a three-dimensional spatial point.

[0231] Through the above three-dimensional parameterization, the discrete skeleton point sequence is transformed into a continuous and smooth three-dimensional center skeleton curve of the elastic bar, providing a geometric basis for selecting multiple gap detection reference points along the skeleton line.

[0232] S5, Based on the three-dimensional central skeleton curve of the elastic bar Invert the service status parameters of the track fastener. Step S5 includes the following steps: S51, along the three-dimensional central skeleton curve of the elastic bar or discrete skeleton point sequence Select multiple seam gap detection reference points, including: To avoid missing local anomalies due to using only the center point for single-point seam detection, the detection is performed along the three-dimensional center skeleton curve of the elastic bar. Select multiple seam detection reference points; If the three-dimensional center skeleton curve of the elastic bar is used Then in the parameter range Select above One sampling parameter, namely:

[0233] And multiple selected seam separation detection reference points are obtained, namely:

[0234] in, Indicates the first One seam detection reference point; Indicates the number of seam gap detection reference points; If discrete skeleton point sequence is used Then, multiple seam detection reference points can be selected from the discrete skeleton nodes, that is:

[0235] in, Represents the first in the discrete skeleton point sequence One skeleton node; S52, using rail point clusters Construct a KD-Tree spatial index structure and use it as a reference point for each seam detection. Search for the nearest neighbor reference point of the rail .

[0236] Specifically, let the set of rail points be... The constructed KD-Tree spatial index structure is as follows:

[0237] in, Represents a set of rail points Constructed KD-Tree retrieval tree; This represents a spatial partitioning data structure used to accelerate nearest neighbor retrieval.

[0238] Then, the nearest neighbor reference point of the rail is retrieved based on the Euclidean distance metric. For the first... Reference points for seam detection Retrieve the nearest neighbor reference point of the corresponding rail. ,Right now:

[0239] in, Indicates the relationship with the first Reference points for seam detection The nearest rail reference point; Represents the rail point set The first in One rail point; This represents the rail point that minimizes the distance function.

[0240] S53, using the nearest neighbor reference point of the rail Construct a local rail point set around the center And fit the local rail reference surface Calculate the seam gap detection reference point To the local rail reference surface normal absolute distance .

[0241] Specifically, in this embodiment, the rail point set... Select a radius of The local neighborhood points are obtained to get the first A local set of rail points, namely:

[0242] in, Indicates the first The nearest neighbor reference point for each rail A local set of rail points selected centered on the target area; This represents the neighborhood search radius used when fitting the local rail reference surface; This represents a point within the rail point set.

[0243] Local rail point set By performing plane fitting, the corresponding local rail reference surface is obtained, i.e.:

[0244] in, Indicates the first A local rail reference surface; Represents any three-dimensional point on the reference plane; Indicates the first Planar offset parameters of a local rail reference surface; Indicates the first The unit normal vector of a local rail reference surface, satisfying:

[0245] Based on the seam detection reference point Calculate its distance to the corresponding local rail reference plane normal absolute distance ,Right now:

[0246] in, Indicates the first The normal distance from each gap detection reference point to the corresponding local rail reference surface.

[0247] S54. Calculate the reference point for gap detection. Local rail reference surface along the normal vector The perpendicular point of the projection, and the correction amount based on the radius of the spring bar. Calculate the equivalent cross-sectional radius of the elastic bar. .

[0248] Specifically, in this embodiment, to establish an intuitive three-dimensional spatial correspondence, the reference point for gap detection is calculated. Local rail reference surface along the normal vector The foot of the projection, i.e.:

[0249] in, Indicates the first The normal projection point of each gap detection reference point on the corresponding local rail reference surface.

[0250] Based on the correction amount of the projectile radius obtained from S413 Calculate the equivalent cross-sectional radius of the elastic bar. ,Right now:

[0251] in, Indicates the theoretical radius of the elastic bar cross section; This represents the equivalent radius correction amount caused by surface deposits, wear, plastic deformation, or measurement errors; when radius correction is not enabled, let... ; This represents the corrected equivalent cross-sectional radius of the spring bar.

[0252] Due to the three-dimensional central skeleton curve of the elastic bar Used to characterize the centerline of the elastic clip cross-section, and multiple gap detection reference points. This can approximate the position of the center point of the elastic clip's cross-section in space. Therefore, the actual gap between the surface of the elastic clip and the rail reference surface can be determined by the three-dimensional central skeleton curve of the elastic clip. The normal distance from the upper point to the local rail reference surface, minus the equivalent cross-sectional radius of the elastic clip. get.

[0253] S55, based on multiple seam detection reference points Calculate the actual physical gap value using the minimum normal gap. And based on the state discrimination function, determine whether there is any abnormal gap or risk of loosening in the track fastener; Specifically, the actual physical gap value The calculation formula is:

[0254] Or, expanded, it can be represented as:

[0255] in, This indicates the actual physical gap value between the elastic clip and the rail; This represents the minimum normal distance calculated along multiple gap detection reference points, used to characterize the gap between the elastic clip and the rail at the closest position; This indicates a non-negative physical constraint, used to avoid negative seam values ​​due to point cloud noise or fitting errors.

[0256] S56. Based on the actual physical gap value Construct a discriminant function for the gap alarm state, if If the condition is not met, it is determined that the track fastener has an abnormal gap or is at risk of loosening, and a track fastener failure alarm signal is output. The state discrimination function is then defined. Represented as:

[0257] in, This represents the preset seam failure threshold; when the state discrimination function... When the output track fasteners are abnormally misaligned or loose, an alarm signal is triggered; when When this time, it indicates that the track fasteners are in a normal gap condition; S57, Based on the purified bolt point set Calculate the local normal exposed height characterization value of the bolt point cloud in the normal direction of the local reference coordinate system of the track. .

[0258] To avoid directly using the world coordinate system The shaft causes height errors due to changes in sensor mounting posture, track tilt, or scanning angle. This step prioritizes calculating the exposed bolt height in the local track reference coordinate system or the normal direction of the rail reference surface. Step S57 includes the following steps: S571, Clean the bolt points Transform to the local reference coordinate system of the track and determine the bolt point set. Elevation set in the normal direction of the local reference coordinate system of the track .

[0259] Specifically, the bolt points Transform to the local reference coordinate system of the orbit, the expression is:

[0260] in, Indicates the first The coordinates of each bolt point in the local reference coordinate system of the track; The transformation matrix representing the local reference coordinate system of the orbit; This represents the origin of the local reference coordinate system for the orbit.

[0261] Let the normal unit vector in the local reference coordinate system of the orbit be... for:

[0262] Then the bolt point set The set of elevations in the normal direction of the local reference coordinate system of the orbit is as follows:

[0263] in, This represents the set of elevations of the bolt point set after purification in the normal direction of the local reference coordinate system of the track. Indicates the first The coordinate components of each bolt point in the normal direction of the local reference coordinate system of the track.

[0264] S572. Using quantile elevation corrections to the maximum and minimum elevations, calculate the initial characterization value of the local normal exposed height of the bolt point cloud. .

[0265] To reduce the impact of isolated noise points, oil stains, rust, mud and sand adhesion, or incorrectly segmented points on height calculations, quantile elevations are used instead of absolute maximum and minimum values. Among them: The maximum elevation for bolt point cloud correction is:

[0266] The minimum elevation for bolt point cloud correction is:

[0267] in, Represents the 95th percentile; Indicates the 5th percentile; This indicates the maximum elevation of the bolt point cloud after quantile correction; This represents the minimum elevation of the bolt point cloud after quantile correction.

[0268] Then, the initial characterization value of the local normal exposed height of the bolt point cloud. for:

[0269] S573, Introduction of Bolt Height Correction Item Based on the initial characterization value Calculate the corrected local normal exposed height characterization value of the bolt point cloud. ,Right now:

[0270] in, This indicates the height correction amount caused by oil stains, rust, mud and sand adhesion, incorrect segmentation points, or measurement noise; when height correction is not enabled, it sets... .

[0271] Loose bolts, abnormal unscrewing, missing bolts, or improper assembly can cause the bolt's exposed height in the local reference coordinate system of the track to deviate from the normal calibration range. Therefore, this embodiment uses the corrected bolt point cloud local normal exposed height value. Compared with the preset normal range The relationship is used as the basis for judging the bolt tightness.

[0272] S58. Characterization value of the exposed height of the bolt point cloud in the local normal direction. The discriminant function for determining the bolt tightening state is established as follows:

[0273] When the discriminant function When, output bolt tightening abnormality alarm information; when When the time is right, it indicates that the bolt tightening condition is within the normal range; in, and These represent the lower and upper limits of the normal exposed height characterization value of the local normal direction of the bolt point cloud, respectively.

[0274] S6. Visualize and output the service status parameters based on color rendering. Step S6 includes the following steps: S61. Use the perspective projection matrix to map various point sets to a two-dimensional viewport; Let three-dimensional points Its homogeneous coordinates are expressed as:

[0275] Using camera viewport observation matrix With perspective projection matrix Multiply, combine three-dimensional points Mapping to a two-dimensional display plane yields homogeneous image coordinates, i.e.:

[0276] in:

[0277] After normalization, the two-dimensional pixel coordinates are obtained, namely:

[0278]

[0279] in, Represents a 3D point in space to be rendered; Representing a three-dimensional point homogeneous coordinates; Representing a three-dimensional point Homogeneous image coordinates after viewport observation and perspective projection; These represent the three components of the homogeneous image coordinates; and This represents the two-dimensional pixel coordinates obtained after homogeneous normalization.

[0280] S62. Employ pixel interpolation to render 3D features and service status early warning presentation; The pop-up point set is rendered through rendering operations. Bolt point set Rail point set The data is mapped to different RGB colors, and feedback is provided for gap warnings and bolt tightening status.

[0281] The color mapping function can be expressed as:

[0282] in, Represents the three-dimensional space points to be rendered Display colors in the visual interface; A function representing the mapping from category to RGB color; Representing a point in three-dimensional space Category tags.

[0283] For example:

[0284]

[0285]

[0286] Among them, when the three-dimensional space points to be rendered Corresponding to the set of points on the pop-up bar When the point is in the middle, the color is When the three-dimensional space points to be rendered Corresponding to bolt point set When the point is in the middle, the color is When the three-dimensional space points to be rendered Corresponding to rail point set When the point is in the middle, the color is .

[0287] The warning information is displayed as follows:

[0288]

[0289] in, This indicates a warning message indicating a gap in the seam. This text indicates a warning message regarding the bolt tightening status. The discriminant function for the gap alarm status; This is the discriminant function for determining the bolt tightening status.

[0290] This invention also provides a system corresponding to the above-mentioned method for detecting the service status of track fasteners, such as... Figure 2 As shown, the system consists of a 3D point cloud acquisition module, a point cloud normalization preprocessing module, a fastener multi-component semantic segmentation module, a spring bar skeleton extraction module, a 3D physical parameter calculation module, a service status discrimination module, and a visualization and alarm output module.

[0291] The system includes the following modules: a 3D point cloud acquisition module for acquiring 3D point cloud data of the track fastener area; a point cloud normalization preprocessing module for performing point cloud centroid calculation, decentralization, scale normalization, and reverse mapping of the original physical coordinates; a fastener multi-component semantic segmentation module for extracting elastic clip point sets, bolt point sets, rail point sets, and background point sets based on deep neural networks; an elastic clip skeleton extraction module for performing elastic clip point set purification, global principal direction estimation, local PCA adaptive region growth, and B-spline smoothing fitting; a 3D physical parameter calculation module for calculating the elastic clip gap value and the local normal exposed height characterization value of the bolt point cloud; a service status discrimination module for judging the abnormal states of elastic clip gap and bolt tightening based on preset thresholds; and a visualization and alarm output module for displaying and outputting the point cloud classification results, skeleton lines, gap values, bolt height characterization values, and alarm status.

[0292] This invention abandons the traditional geometric threshold segmentation and introduces a deep point cloud network structure with FPS farthest point sampling and inverse distance weighted feature propagation. It can accurately extract high-precision point clouds of fine-grained parts such as elastic bars and bolts under harsh working conditions with strong background interference such as oil stains and gravel coverage, and completely solves the feature crosstalk problem.

[0293] For irregularly curved elastic bars, a cascaded algorithm structure is adopted, which includes global PCA principal direction constraint guidance, local adaptive PCA region growth, and smooth fitting of three-dimensional B-spline curves. This structure prevents "breakpoints" and "reversals" in skeleton growth while preserving the true physical bending stress center topology to the greatest extent.

[0294] This invention goes beyond feature extraction. Based on the extracted high-fidelity skeleton, it uses a KD-Tree to determine the nearest neighbor reference point of the rail and constructs a local rail reference surface centered on this reference point. The gap value of the elastic clip is then calculated using a normal distance model. This completely breaks through the limitations of a 2D planar perspective, converging the gap calculation accuracy to the true physical three-dimensional space. The detection error can be controlled within the millimeter range, greatly improving the scientific basis and reliability of rail fastener service status assessment.

[0295] Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0296] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. Since the above embodiments are substantially similar to the method embodiments, their descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0297] The above embodiments provide a detailed description of the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for detecting the service status of track fasteners based on three-dimensional point clouds, characterized in that, The method includes the following steps: S1. Collect the 3D point cloud data of the track fastener area and transform it to a 3D world coordinate system to obtain the original point cloud set. ; S2, For the original point cloud set Decentralization is performed, and scale normalization is applied based on the maximum radial distance to obtain a normalized point cloud set. And establish a normalized point cloud set. With the original point cloud collection The index mapping relationship between them; S3, on the original point cloud set Perform coarse screening and obtain normalized candidate point clouds based on index mapping relationships. PointNet++ point cloud semantic segmentation network is used to process normalized candidate point clouds. Perform multi-component semantic segmentation to obtain the elastic bar point set corresponding to each component of the track fastener. Bolt point set Rail point set and background point set ; S4, Point Set of the Pop-up Bar and bolt point set The purification process and geometric correction were performed separately, and the global principal direction of the projectile was determined. The start and end points of the skeleton growth were calibrated based on the local coordinate system of the track and the angle constraints. The three-dimensional center skeleton curve of the projectile was extracted by combining the global principal direction constraints and local PCA adaptive region growth. S5, Based on the three-dimensional central skeleton curve of the elastic bar Invert the service status parameters of the track fasteners; S6. Visualize and output service status parameters based on color rendering.

2. The method for detecting the service status of track fasteners according to claim 1, characterized in that, Step S2 includes the following steps: S21. Based on the original point cloud set Calculate the original point cloud set by summing the coordinate components along the three axes in the world coordinate system. geometric centroid ,Right now: ; in, This represents the total number of points in the original point cloud set; Indicates the first A three-dimensional spatial point; S22, based on the geometric centroid For the original point cloud set all points Perform a decentralized translation operation on the point cloud coordinates to obtain a decentralized point set. The calculation formula is: ; in, Indicates the transpose operation; The normalization point; S23. Calculate the decentralized point set. Each decentralized point Euclidean norm The calculation formula is: ; in, Decentralized point Euclidean distance to the origin; , , Representing decentralized points Coordinate components along the three coordinate axes; Represents the Euclidean norm; S24. Find the maximum extreme value of the distance from the origin to obtain the decentralized point set. Maximum radial distance ,Right now: ; S25, Decentralize the point set Based on maximum radial distance Scale normalization yields a normalized point cloud set whose coordinate range is strictly bound to a unit sphere. ,Right now: ; ; in, Represents the Euclidean norm; S26. Based on the geometric centroid Normalization point and maximum radial distance Establish a normalized point cloud set With the original point cloud collection The index mapping relationship between them is expressed as: ; in, It is the geometric centroid; Maximum radial distance; These are the restored three-dimensional points in space.

3. The method for detecting the service status of track fasteners according to claim 1, characterized in that, Step S3 includes the following steps: S31. The original point cloud set is processed in the world coordinate system. The candidate region point set for track fasteners is obtained by performing coarse screening and outlier removal. The expression is: ; in, Indicates the candidate space area for track fasteners; Representing a point in three-dimensional space The number of neighboring points within a preset neighborhood radius; This represents the minimum number of neighborhood points required to remove an outlier. S32. Based on the index mapping relationship, the candidate area point set for track fasteners is determined. Mapped to normalized candidate point cloud The expression is: ; in, For normalized point cloud sets; The normalization point; S33, in the normalized candidate point cloud Perform FPS farthest point sampling and initialize the sampling center point set. Each time, select the set of centers that are far from the already selected center points. The furthest point is used as the new sampling center point. ; No. Each sampling center point satisfy: ; in, For the front Each sampling center point The set of central points constituted; for Any index in is The selected sampling center point; S34, at the sampling center point The surrounding area has a radius of The search sphere is used to extract all points contained within it to form a local neighborhood subset: ; in, Indicates the first Each sampling center point The corresponding local neighborhood subset; S35. Using a shared multilayer perceptron (MLP) for local neighborhood subsets Perform high-dimensional feature mapping and obtain high-dimensional local region aggregated features through max pooling. ; S36. Use inverse distance weighting to propagate low-resolution deep features back to the high-resolution point set; S37, Calculate the first Normalization point Belongs to each preset category The probability is determined based on the principle of maximum probability. Normalization point Predicted category labels ; S38. Predict category labels Mapping back to the original point cloud set Obtain the set of points on the pop-up bar. Bolt point set Rail point set and background point set ,in: Pop-up Point Set for: ; Bolt point set for: ; Rail point set for: ; Background point set for: ; in, , , , These represent the categories of spring clips, bolts, rails, and background, respectively.

4. The method for detecting the service status of track fasteners according to claim 3, characterized in that, Step S37 includes the following steps: Let the first Normalization point The network output Logits vector is: ; in, Indicates the first Normalization point The corresponding classification output vector; Indicates the total number of categories; Represents the normalization point In category Logits output; No. Normalization point Category The probability is: ; in, Indicates a category index; This represents the category index in the denominator summation of the Softmax function; Indicates the first Normalization point In category Logits output; Represents the normalization point Category The normalized probability; Based on the principle of maximum probability, determine the first... Normalization point Predicted category labels ,Right now: ; in, Indicates the first Normalization point Predicted category labels; This means selecting the category with the highest probability of classification from all preset categories.

5. The method for detecting the service status of track fasteners according to claim 1, characterized in that, Step S4 includes the following steps: S41. The set of pop-up points obtained from semantic segmentation and bolt point set Local outlier removal is performed separately to obtain the purified elastic bar point set. and the cleaned bolt point set At the same time, a correction term for the radius of the elastic bar is introduced. Bolt height correction item Geometric corrections were made to the equivalent cross-sectional radius of the spring clip and the bolt height, respectively. S42. Construct the spatial distribution covariance matrix Then, eigenvalue decomposition is performed, and the eigenvector corresponding to the largest eigenvalue is extracted as the global principal direction of the bullet bar. ; S43, Based on rail point set Establish a local reference coordinate system for the track and combine the point set of the elastic bar. Transform to the local reference coordinate system of the orbit, and calibrate the starting point of the scaffold growth of the projectile in this coordinate system. With the end of skeletal growth ; S44, Skeleton Growth Starting Point Based on Elastic Bars With the end of skeletal growth By combining global principal direction constraints and local PCA adaptive region growing, a discrete skeleton point sequence is iteratively generated. ; S45, Based on Discrete Skeleton Point Sequence By fitting a three-dimensional parametric B-spline curve, a smooth and continuous three-dimensional central skeleton curve of the elastic bar is obtained. ,Right now: ; ; in, This represents the smoothed 3D center skeleton curve of the elastic bar; This represents the curve parameter, with a value range of [value range missing]. ; Indicates the control point index; Indicates the number of control points; Indicates the first One B-spline control point; It represents a three-dimensional real vector space, meaning that each control point consists of three real coordinate components; Indicates the first indivual, B-order spline basis functions; , , The curve parameters are respectively: The time center skeleton point in three-dimensional space , , Coordinate components.

6. The method for detecting the service status of track fasteners according to claim 5, characterized in that, Step S43 includes the following steps: S431, Based on rail point set By fitting the rail reference surface, the unit normal vector of the rail reference surface is obtained. And based on the rail point set The initial rail alignment reference direction is determined by the main direction, the rail extension direction, or the prior direction of rail installation. ; S432, Initial orbital reference direction After removing the normal components and normalizing the data, the orbital reference direction is obtained. The expression is: ; in, This represents the orbital reference direction after orthogonalization, where the initial orbital reference direction... With unit normal vector When the denominator approaches zero due to near-parallelism, the initial rail orientation is re-determined based on the principal direction of the rail point set or the prior direction of the track. ; S433, According to the track alignment reference direction Constructing a lateral reference direction And construct a local reference coordinate system for the orbit. and its transformation matrix ,in: Local reference coordinate system of the orbit for: ; in, Represents the origin of the local reference coordinate system for the orbit; Transformation matrix for: ; in, It is the transpose symbol; S434, According to the transformation matrix The purified pop-up point Transforming from the world coordinate system to the local orbital reference coordinate system yields the set of spring points in the local orbital reference coordinate system. ,Right now: ; ; in, To transform the point to the local reference coordinate system of the track; S435. Calculate the point set of the spring bar in the local reference coordinate system of the track. center of mass And set the global main direction of the pop-up bar. Transform to the local reference coordinate system of the track to obtain the principal direction of the spring. ; S436, Calculate the main direction of the bullet bar Attitude deflection angle between the orbital reference direction and the orbital local reference coordinate system The calculation formula is: ; in, This indicates the attitude deflection angle of the main direction of the projectile relative to the reference direction of the track; This represents the unit vector of the orbital reference direction in the local reference coordinate system of the orbit. This represents the absolute value operation; Represents the inverse cosine function; when When necessary, it can be used as an abnormal posture cue parameter or a parameter to correct the confidence level of the detection result. The preset threshold; S437, Based on the centroid Calculate each elastic bar point Along the main direction of the elastic bar projection scalar And the indices of the corresponding points of the skeleton growth start and end points are determined by the minimum and maximum values ​​of the projected scalars, that is: ; ; ; S438, According to the index and Each pop-up point Mapping back to the world coordinate system, we obtain the starting point for the growth of the bullet's skeleton. With the end of skeletal growth ,Right now: ; ; in, , The corresponding indexes are respectively and pop-up bar .

7. The method for detecting the service status of track fasteners according to claim 5, characterized in that, Step S44 includes the following steps: S441, the starting point of skeletal growth As the first skeleton node Construct the reference directions for the start and end points and the global main direction Reference directions of start and end points Perform isotropic correction to obtain the initial growth direction. ; S442, Using the current skeleton node Centered on, construct a radius of The local growing neighborhood is expressed as follows: ; in, Indicates the sequence number of the skeleton growth iteration step; Indicates the first One skeleton node; This represents the local growth neighborhood corresponding to the current skeleton node; For the point set of the pop-up bar; Represents the set of points on the pop-up bar after purification. The first in One pop-up bar point; Indicates the first The local search radius used for skeleton growth; Represents the Euclidean norm; like Less than the preset minimum neighbor number threshold If so, the skeleton growth termination condition in step S447 is triggered to avoid incorrect growth direction caused by sparse points or isolated noise. S443. Calculate the current local growing neighborhood. spatial centroid And construct the spatial distribution covariance matrix. ; S444, regarding the spatial distribution covariance matrix Perform eigenvalue decomposition and extract the largest eigenvalue. The corresponding eigenvector is used as the original tangential direction of the local PCA. ,Right now: ; in, This indicates the original growth direction extracted by PCA within the current local growth neighborhood; Represents the relationship with the largest eigenvalue The corresponding feature vector; S445, Based on the current original tangential direction Direction of the previous iteration step The inner product is used to determine whether reverse correction is needed, thus obtaining the skeleton growth direction of the current iteration step. ,Right now: ; in, This indicates the growth direction of the skeleton after directional consistency constraints. Indicates the direction of skeleton growth in the previous iteration; S446, By search step size Along the corrected skeletal growth direction Generate the next skeleton node, i.e.: ; in, Indicates the iteration step size of the skeleton node; Indicates the next skeleton node; S447. Determine the termination condition for skeletal growth. Skeletal growth shall terminate when any of the following conditions are met: ; or: ; or: ; in, This marks the endpoint of skeletal growth. Indicates the threshold distance to the destination; surface This indicates the minimum number of points required for the local growth neighborhood. Indicates the maximum number of iterations; S448. Store the iteratively generated skeleton nodes sequentially into the discrete skeleton point sequence, i.e.: ; The matrix form is: ; in, Represents a discrete skeleton point sequence matrix; This represents the total number of skeleton nodes generated in the final generation; express A space of real matrices with 3 rows and 3 columns, matrix Each row corresponds to the 3D coordinates of a skeleton node, and the three columns correspond to... , , Three spatial coordinate components.

8. The method for detecting the service status of track fasteners according to claim 1, characterized in that, Step S5 includes the following steps: S51, along the three-dimensional central skeleton curve of the elastic bar or discrete skeleton point sequence Select multiple seam gap detection reference points, namely: ; in, Indicates the first One seam detection reference point; Indicates the number of seam gap detection reference points; Represents the first in the discrete skeleton point sequence One skeleton node; Indicates the number of skeleton nodes; S52, using rail point clusters Construct a KD-Tree spatial index structure and use it as a reference point for each seam detection. Search for the nearest neighbor reference point of the rail ,Right now: ; in, Indicates the relationship with the first Reference points for seam detection The nearest rail reference point; Represents the rail point set The first in One rail point; This represents the rail point that minimizes the distance function; S53, using the nearest neighbor reference point of the rail Construct a local rail point set around the center And fit the local rail reference surface Calculate the seam gap detection reference point To the local rail reference surface normal absolute distance ,Right now: ; in, Indicates the first Planar offset parameters of a local rail reference surface; Indicates the first The unit normal vector of a local rail reference surface; S54. Calculate the reference point for gap detection. Local rail reference surface along the normal vector The perpendicular point of the projection, and the correction amount based on the radius of the spring bar. Calculate the equivalent cross-sectional radius of the elastic bar. ,Right now: ; in, Indicates the theoretical radius of the elastic bar cross section; This represents the equivalent radius correction amount caused by surface deposits, wear, plastic deformation, or measurement errors; when radius correction is not enabled, let... ; S55, based on multiple seam detection reference points Calculate the actual physical gap value using the minimum normal gap. And based on the state discrimination function, determine whether there is any abnormal gap or risk of loosening in the track fastener; The actual physical gap value The calculation formula is: ; in, This indicates the actual physical gap value between the elastic clip and the rail; This represents the minimum normal distance calculated along multiple gap detection reference points, used to characterize the gap between the elastic clip and the rail at the closest position; This indicates a non-negative physical constraint, used to avoid negative seam values ​​due to point cloud noise or fitting errors. S56. Based on the actual physical gap value Construct a discriminant function for the gap alarm state, if If the problem is detected, it is determined that there is an abnormal gap or risk of loosening in the track fastener, and a track fastener failure alarm signal is output. The state discrimination function Represented as: ; in, This represents the preset seam failure threshold; when the state discrimination function... When the output track fasteners are abnormally misaligned or loose, an alarm signal is triggered; when When this time, it indicates that the track fasteners are in a normal gap condition; S57, Based on the purified bolt point set Calculate the local normal exposed height characterization value of the bolt point cloud in the normal direction of the local reference coordinate system of the track. ; S58. Based on the local normal exposed height characterization value of the bolt point cloud. The discriminant function for determining the bolt tightening state is established as follows: ; When the discriminant function When, output bolt tightening abnormality alarm information; when When the time is right, it indicates that the bolt tightening condition is within the normal range; in, and These represent the lower and upper limits of the normal exposed height characterization value of the local normal direction of the bolt point cloud, respectively.

9. The method for detecting the service status of track fasteners according to claim 1, characterized in that, Step S6 includes the following steps: S61. Use the perspective projection matrix to map various point sets to a two-dimensional viewport; Let three-dimensional points Its homogeneous coordinates are expressed as: ; Using camera viewport observation matrix With perspective projection matrix Multiply, combine three-dimensional points Mapping to a two-dimensional display plane yields homogeneous image coordinates, i.e.: ; in: ; After normalization, the two-dimensional pixel coordinates are obtained, namely: ; ; in, Represents a 3D point in space to be rendered; Representing a three-dimensional point homogeneous coordinates; Representing a three-dimensional point Homogeneous image coordinates after viewport observation and perspective projection; These represent the three components of the homogeneous image coordinates; and This represents the two-dimensional pixel coordinates obtained after homogeneous normalization. S62. Employ pixel interpolation to render 3D features and service status early warning presentation; The pop-up point set is rendered through rendering operations. Bolt point set Rail point set The data is mapped to different RGB colors, and feedback is provided for gap warnings and bolt tightening status. The color mapping function is expressed as: ; in, Represents the three-dimensional space points to be rendered Display colors in the visual interface; A function representing the mapping from category to RGB color; Representing a point in three-dimensional space Category tags; include: ; ; ; Among them, when the three-dimensional space points to be rendered Corresponding to the set of points on the pop-up bar When the point is in the middle, the color is When the three-dimensional space points to be rendered Corresponding to bolt point set When the point is in the middle, the color is When the three-dimensional space points to be rendered Corresponding to rail point set When the point is in the middle, the color is ; The warning information is displayed as follows: ; ; in, This indicates a warning message indicating a gap in the seam. This text indicates a warning message regarding the bolt tightening status. The discriminant function for the gap alarm status; This is the discriminant function for determining the bolt tightening status.

10. A system for implementing the rail fastener service status detection method according to any one of claims 1-9, characterized in that, The system includes: The 3D point cloud acquisition module is used to acquire 3D point cloud data of the track fastener area; The point cloud normalization preprocessing module is used to perform point cloud centroid calculation, decentralization, scale normalization, and reverse mapping of the original physical coordinates; The fastener multi-component semantic segmentation module is used to extract the point sets of elastic bars, bolts, rails, and background based on deep neural networks; The elastic bar skeleton extraction module is used to perform elastic bar point set purification, global principal direction estimation, local PCA adaptive region growth, and B-spline smoothing fitting. The three-dimensional physical parameter calculation module is used to calculate the gap value of the elastic bar and the local normal exposed height characterization value of the bolt point cloud; The service status discrimination module is used to determine the abnormal states of spring clip separation and bolt tightening based on preset thresholds. The visualization and alarm output module is used to display and output the point cloud classification results, skeleton lines, gap values, bolt height characterization values, and alarm status.

Citation Information

Patent Citations

  • Manipulator positioning two-dimensional target and three-dimensional point cloud registration method

    CN121259055A

  • Structural crack intelligent measurement method and system based on laser measurement

    CN122134784A