Railway line visual and multi-modal perception fusion comprehensive detection system and method

By employing a three-key index spatiotemporal alignment, adaptive dynamic weighted fusion, and fast/slow dual-speed EKF fusion architecture, the problems of inconsistent spatiotemporal benchmarks and cross-dimensional joint judgments of multi-source data in railway line inspection are solved, achieving efficient and accurate multi-parameter comprehensive inspection and improving the robustness and efficiency of the inspection system.

CN123158508APending Publication Date: 2026-11-24SCI & TECH RES INST JINAN RAILWAY BUREAU +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202611260874.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing railway line inspection systems, the spatiotemporal references of multi-source heterogeneous sensors are not unified, visual data and geometric parameter data cannot be accurately correlated, cross-dimensional joint judgment lacks a reliable data foundation, data fusion has poor robustness, track geometric parameter detection is significantly affected by vehicle attitude disturbances, traditional equipment has single function, multiple online operations of multiple devices are inefficient and costly, and visual inspection accuracy decreases significantly in real-world environments.

Method used

By employing a three-key index spatiotemporal alignment mechanism, an adaptive dynamic weighted fusion algorithm, and a fast-slow dual-speed EKF fusion architecture, a unified spatiotemporal benchmark for multi-source data and hardware-level frame boundary alignment are achieved. Adaptive dynamic weighted fusion is performed through a fusion decision unit. The fast loop compensates for vehicle vibration in real time, while the slow loop estimates track elevation. Combined with multimodal visual detection and geometric parameter detection, cross-dimensional joint decision-making is achieved.

Benefits of technology

It improves the accuracy of spatiotemporal alignment, enhances the robustness of data fusion, reduces vehicle vibration noise, realizes integrated detection of multiple parameters, improves detection efficiency and accuracy, and meets the requirements of railway line repair specifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158508A_ABST
    Figure CN123158508A_ABST
Patent Text Reader

Abstract

This invention discloses a comprehensive inspection system and method for railway lines that integrates visual and multimodal perception, belonging to the field of intelligent railway line inspection technology. The system consists of an inspection trolley body, multiple 2D industrial cameras and 3D line laser sensors, attitude sensors, a ranging sensor matrix, a single-point ranging sensor, a high-precision encoder, an industrial control computer, a communication module, and a fusion judgment unit. It enables a single device to perform integrated comprehensive inspection of rail surface defects, spike / bolt status, weld quality, rail profile, corrugation, gauge, level, and elevation in a single trip. This invention proposes a three-key index spatiotemporal alignment mechanism, improving the spatial alignment accuracy of multiple sensors to the sub-millimeter level; it proposes an adaptive dynamic weighted geometric average fusion algorithm based on detection reliability factors, achieving a fusion judgment accuracy of over 97.5%; and it designs a fast / slow dual-speed EKF fusion architecture, completely decoupling gauge and roll angle, thus improving accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of railway line inspection technology, specifically to a comprehensive railway line inspection system and method that integrates visual inspection and geometric parameter measurement. It is particularly suitable for railway maintenance departments to conduct integrated high-precision comprehensive inspection of rail surface, connecting parts, welds, profile, corrugation, gauge, level, and elevation. Background Technology

[0002] Under the cyclic load of trains, railway lines suffer from a continuous accumulation of defects such as rail surface cracks, loose bolts, rail wear, weld defects, profile deformation, and exceeding geometric parameter limits, directly threatening train operation safety. Current railway line inspection systems are divided into visual inspection and geometric parameter inspection, and these two systems have long operated separately, resulting in several insurmountable technical shortcomings.

[0003] According to the search, the prior art related to this application includes: (1) Chinese invention patent CN114379598A (publication date April 22, 2022), which discloses a railway integrated inspection system, which obtains positioning information through GNSS, IMU and DMI data, obtains three-dimensional coordinates through lidar, obtains image data through panoramic camera, and provides clock synchronization based on GNSS timing system; (2) Chinese invention patent CN119441744A (publication date February 14, 2025), which discloses a track The multi-source data alignment method realizes automatic time-domain alignment of multi-source monitoring data by identifying time-domain signal feature points and calculating time shift; (3) Chinese invention patent CN115077423A (publication date September 20, 2022) discloses a portable high-speed turnout detection trolley and method based on line laser technology; (4) Chinese invention patent CN119648700A (publication date March 18, 2025) discloses a turnout detection method based on computer vision, which adopts an improved YOLOv8 model.

[0004] The above-mentioned existing technologies have the following shortcomings: (1) Although CN114379598A has achieved multi-sensor integration, its spatiotemporal synchronization is based on GNSS timing (millisecond-level accuracy), and it has not achieved microsecond-level hardware synchronization, nor has it involved precise alignment of spatial dimensions; (2) CN119441744A only involves temporal alignment, and does not involve spatial alignment and frame number index; (3) CN115077423A and CN119648700A have single functions, only targeting turnout detection or visual detection, and do not achieve multi-parameter integrated detection.

[0005] In the process of realizing this invention, the inventors discovered that the prior art has at least the following problems: the spatiotemporal reference of multi-source heterogeneous sensors is not unified, visual data and geometric parameter data cannot be accurately correlated, and cross-dimensional joint judgment lacks a reliable data foundation; data fusion is limited to the result splicing level, the fusion weight is fixed by experience, it cannot adapt to sensor performance degradation, and has poor robustness; track geometric parameter detection is significantly affected by vehicle attitude disturbances, and the error of the traditional roll angle back-calculation method is amplified by trigonometric functions in curve segments; single equipment has limited function, and multiple online operations of multiple equipment are inefficient, costly, and have poor data consistency; visual detection models are mostly verified in the laboratory, and their accuracy decreases significantly in actual railway environments, lacking a joint verification mechanism with geometric parameters. Summary of the Invention

[0006] In view of the shortcomings of the prior art, this invention provides a comprehensive detection method and system for railway lines that integrates visual and multimodal perception, and systematically solves the following core technical problems: (1) the problem of inconsistent spatiotemporal references and low alignment accuracy of multi-source heterogeneous sensors; (2) the problem of fixed weights for multi-source data fusion and inability to adapt to sensor degradation; (3) the problem of the inability to separate the coupling between vehicle vibration and track elevation in track elevation measurement; (4) the problem of track gauge measurement being affected by vehicle roll angle; (5) the problem of the separation of visual detection and geometric detection and the inability to make joint judgments across dimensions; (6) the problem that a single device cannot achieve integrated detection of multiple parameters.

[0007] The technical solution adopted by this invention to solve its technical problem is as follows:

[0008] In a first aspect, the embodiments of the present invention provide a railway line visual and multimodal perception fusion integrated detection system, comprising:

[0009] The inspection vehicle body can travel along the railway track;

[0010] The visual perception subsystem includes a multi-channel 2D industrial camera installed on the vehicle body, used to detect rail surface defects, track spikes / bolts, and weld defects.

[0011] The profile sensing subsystem includes multiple 3D line laser sensors for rail profile measurement and corrugation detection;

[0012] The attitude perception subsystem includes attitude sensors for vehicle attitude measurement and level detection;

[0013] The geometric parameter sensing subsystem includes a ranging sensor matrix and a single-point ranging sensor. The ranging sensor matrix is ​​used for direct track gauge measurement, and the single-point ranging sensor is used for elevation detection.

[0014] High-precision encoders are used for mileage measurement and frame triggering;

[0015] Industrial control computer, communication module, power supply module, ring buffer and fusion determination unit;

[0016] The system employs a three-key index spatiotemporal alignment mechanism, using frame number FID and mileage coordinates s k UTC timestamp t k This constructs a three-key index tuple, enabling a unified spatiotemporal reference for all sensor data and alignment with hardware-level frame boundaries;

[0017] The fusion determination unit adopts an adaptive dynamic weighted fusion algorithm based on the detection reliability factor to complete the three-level fusion determination of multi-source data;

[0018] The elevation and elevation detection adopts a fast and slow dual-speed EKF fusion architecture, with the fast loop and slow loop achieving frequency domain decoupling between track elevation and vehicle vibration at a preset frequency ratio.

[0019] Secondly, based on the aforementioned system, this embodiment of the invention provides a comprehensive detection method for railway lines that integrates visual and multimodal perception, comprising the following steps:

[0020] Step S1: The encoder generates one frame every N pulses. Synchronously obtain PTP clock and UTC timestamp The mileage coordinates were obtained through calibration. tuples indexed by three keys Implement hardware-level frame boundary alignment for multiple sensors and write them to a circular buffer;

[0021] Step S2: The first level completes time alignment according to frame number; the second level completes spatial association and uniform mapping to the orbital coordinate system after attitude angle correction; the third level performs multi-dimensional defect type and level joint judgment and fusion.

[0022] Step S3: Calculate the reliability factor of each detector, dynamically normalize the weights, use a weighted geometric average to obtain the fusion confidence and output it in different tiers;

[0023] Step S4: The fast loop compensates for vehicle vibration in real time, and the slow loop estimates the true value of track elevation. The measurement accuracy of elevation unevenness is better than ±0.5mm.

[0024] Step S5: The distance sensor matrix directly measures the track gauge and decouples it from the roll angle; the attitude sensor uses roll angle geometry to calculate the horizontal superelevation difference.

[0025] Step S6: YOLO series detects rail surface defects, ZNCC template matching detects rail spikes / bolts, and OpenCV process detects welds; all results are accurately correlated and jointly judged within the same frame through three-dimensional index tuples.

[0026] This invention mainly involves the following technical means:

[0027] 1. Three-key index spacetime alignment mechanism:

[0028] Establish frame numbering —Mileage coordinates —UTC timestamp The three-key index tuple: Frame numbering is defined by the encoder every N pulses (N=50~200), with a mileage resolution of approximately 2.5mm~10mm; mileage coordinates are calibrated using standard track sections to eliminate wheel wear and slippage errors; UTC timestamps are synchronized via the IEEE 1588 PTP protocol, with an accuracy better than 1μs. All sensor data undergoes frame boundary alignment at the hardware layer, achieving a spatial alignment accuracy of 3.2mm.

[0029] 2. Adaptive Dynamic Weighted Geometric Mean Fusion Algorithm:

[0030] After each frame of data is acquired, the fusion decision unit includes a reliability factor calculation module, a weight normalization module, and a geometric mean fusion module. First, it obtains the detection confidence of each sensor channel. Then, calculate the moving standard deviation of the confidence score for each channel within a time window of a preset number of frames (e.g., 50 frames). The reliability factor calculation module calculates the reliability factor for each channel based on this: ,

[0031] In the specific implementation process, the formula for calculating the reliability factor of each channel is transformed into: ,in It is a very small positive number;

[0032] The weight normalization module normalizes the reliability factor and uses it as the fusion weight for each channel: ;

[0033] Finally, the geometric mean fusion module uses a weighted geometric mean to calculate the fusion confidence level. ,

[0034] when At that time, the data in that frame is discarded directly; At that time, mark it as pending manual review; At that time, the final judgment result is output. The geometric mean property can amplify the influence of low confidence and prevent the propagation of misjudgments.

[0035] 3. Fast and slow dual-speed EKF fusion architecture:

[0036] Fast loop: 200Hz, using attitude sensors to compensate for high-frequency vibrations of the vehicle body in real time, with a response time of 5ms; Slow loop: 10Hz, estimating the true value of track elevation based on accumulated data from single-point ranging sensors; The optimal frequency ratio of the fast and slow loops is 20:1, which achieves frequency domain decoupling between low-frequency changes in track elevation and high-frequency vibrations of the vehicle body, with an accuracy of elevation unevenness measurement better than ±0.5mm and a 53.7% reduction in vibration noise.

[0037] In this embodiment, the state transition matrix of EKF Observation matrix Process noise covariance Observation noise covariance Typical values ​​are as follows:

[0038] F = diag([1, 1, 0.1, 0.01]),,

[0039] H = [−1, 1, 0, 0]

[0040] Q = diag([0.01, 0.1, 0.5, 0.2]),

[0041] R = 0.05,

[0042] The above parameters can be fine-tuned according to the actual sensor noise characteristics, but the filter convergence must be guaranteed.

[0043] 4. High-precision detection of geometric parameters:

[0044] Track gauge: The left and right inner distances are directly measured using a range sensor matrix. It is completely decoupled from the roll angle of the vehicle body, with an accuracy better than ±0.3mm;

[0045] Horizontal height difference: determined by the roll angle from the attitude sensor. Direct geometric solution Error < 0.4mm; High and low: dual-speed EKF output, accuracy better than ±0.5mm.

[0046] 5. Multimodal visual inspection system:

[0047] Track surface defects: YOLO series target detection algorithms (such as YOLOv8m) are used, and after TensorRT INT8 quantization, real-time inference of ≥20fps is achieved, mAP@0.5≥90%, and the system-level false trigger rate is less than 3%;

[0048] Track spike / bolt status: Using ZNCC template matching combined with preset pitch (railway sleeper pitch is usually around 600mm) time sequence analysis, the missing detection rate is ≥95%, and the loosening detection rate is ≥92%;

[0049] Weld defects: A five-step process of grayscale denoising, CLAHE enhancement, edge localization, contour extraction, and classification and grading is used to achieve defect extraction and grading;

[0050] Profile and corrugation: 3D line laser 20000Hz scanning, ICP registration, accuracy ±0.15mm.

[0051] The "system-level false trigger rate" refers to the percentage of non-defect areas misclassified as defects in the final output after post-processing (non-maximum suppression, confidence leveling, and cross-dimensional joint judgment). In this system, the YOLOv8m model-level accuracy is 93.1%, corresponding to a model-level false trigger rate of 6.9%. After system-level post-processing and cross-dimensional joint judgment, the system-level false trigger rate can be reduced to below 3%.

[0052] 6. Three-tier fusion framework:

[0053] Temporal alignment → spatial association → hierarchical fusion enables joint determination of visual, 3D point cloud, pose, and geometric data.

[0054] 7. Sensor reliability assessment and dynamic degradation:

[0055] Based on comprehensive reliability index (Based on a weighted calculation of data quality, timing consistency, and environmental adaptability) soft fault tolerance, hard fault switching, and automatic re-examination are achieved to ensure continuous system operation.

[0056] The comprehensive reliability index The specific calculation method is as follows: First, calculate the scores for the data quality dimension respectively. Time sequence consistency dimension score Environmental adaptability dimension score Scores for each dimension were normalized to The interval is then used for weighted summation to obtain: ,in , , For preset weighting coefficients, In this embodiment , , Data quality dimensions Based on the signal-to-noise ratio (SNR≥20dB) of the sensor output data ), Data integrity rate (actual number of sampling points / theoretical number of sampling points, ≥95% corresponds to ) and the proportion of outliers (exceeding) The percentage of data points within the range is <5%. Comprehensive calculation; timing consistency dimension The environmental adaptability dimension is calculated based on whether the rate of change of sensor data and adjacent frame data conforms to physical laws (e.g., the rate of change of acceleration does not exceed twice the gravitational acceleration) and the continuity of data timestamps (no dropped frames or time jumps). Based on current environmental parameters such as temperature, humidity, and light intensity, the environmental adaptability curve in the sensor's specifications is consulted to calculate the theoretical performance degradation coefficient under the current environment. For example, if the degradation coefficient is ≤0.1 within the temperature range of -10℃ to 50℃, then... .

[0057] One of the above technical solutions has the following advantages or beneficial effects:

[0058] (1) The spatiotemporal alignment accuracy was improved by 74.7%, and the average deviation was reduced from 12.7 mm in the traditional method to 3.2 mm, achieving sub-millimeter level hardware synchronization;

[0059] (2) The adaptive fusion algorithm is robust. Under the condition of 20% sensor performance degradation, the fusion accuracy still remains at 96.1% (only a decrease of 1.4 percentage points), while the fixed weight scheme decreases by 3.8 percentage points;

[0060] (3) The dual-speed EKF achieves decoupling of vibration and elevation frequency domains, and the measurement accuracy of elevation unevenness is better than ±0.5mm, while reducing vibration noise by 53.7%;

[0061] (4) The gauge and roll angle are completely decoupled, and the curve segment maintains high precision, better than ±0.3mm;

[0062] (5) A single unit can complete 8 tests in a single operation, which is several times more efficient than the traditional method of multiple equipment and multiple online operations;

[0063] (6) All test indicators meet the requirements of the Railway Line Repair Specification. The system has been verified on more than 120km of actual lines within the jurisdiction of a certain railway bureau, and the system is stable and reliable.

[0064] The above-mentioned technical means of this invention provide high-quality data input for the fusion algorithm through three-key index spatiotemporal alignment, realize reliable joint judgment of multi-source data through adaptive fusion algorithm, and ensure the accuracy of geometric parameter detection through dual-speed EKF and track gauge decoupling. The various technical means work together to realize a complete technical closed loop from data acquisition to fusion judgment. Attached Figure Description

[0065] Figure 1 This is a schematic diagram illustrating the structure of a railway line vision and multimodal perception fusion integrated detection system according to an exemplary embodiment;

[0066] Figure 2 This is a schematic diagram illustrating a three-key index spatiotemporal alignment mechanism according to an exemplary embodiment;

[0067] Figure 3 This is a flowchart illustrating an adaptive dynamic weighted fusion algorithm according to an exemplary embodiment;

[0068] Figure 4 This is a diagram illustrating a fast and slow dual-speed EKF fusion architecture according to an exemplary embodiment;

[0069] Figure 5 This is a schematic diagram illustrating a track gauge detection principle based on an exemplary embodiment;

[0070] Figure 6 This is a schematic diagram illustrating a principle for horizontal detection of geometric parameters according to an exemplary embodiment;

[0071] Figure 7 This is a flowchart illustrating a comprehensive detection method for railway lines that integrates visual and multimodal perception, according to an exemplary embodiment.

[0072] Figure 1 In the system, 1---Detection vehicle body, 2---2D industrial camera, 3---3D line laser sensor, 4---Attitude sensor, 5---Single point ranging sensor, 6---Rating sensor matrix, 7---Industrial control computer, 8---Communication module, 9---Encoder, 10---Power supply module, 11---Circular buffer, 12---Fusion decision unit. Detailed Implementation

[0073] To more clearly illustrate the technical features of the present invention, the present invention will be described in detail below through specific embodiments and in conjunction with the accompanying drawings.

[0074] Example 1

[0075] like Figure 1 As shown, this embodiment provides a railway line vision and multimodal perception fusion integrated detection system, which uses the detection trolley body 1 as a carrier to operate along the track, with a travel speed adjustable from 0.5m / s to 2.8m / s.

[0076] The system hardware consists of the following components:

[0077] 2D Industrial Camera 2: 6 channels in total, resolution 2448×2048px, frame rate 20fps, gigabit network port; 2 channels are used for rail surface defect detection (installation height about 180mm from the rail surface), 2 channels are used for rail spike / bolt status detection (installation height about 270mm from the rail surface), and 2 channels are used for weld defect detection (vertically aligned with the weld area).

[0078] 3D line laser sensor 3: 2 channels in total, scanning frequency 20000Hz, 3200 points per contour, IP67 protection, vertically mounted on the bottom of the vehicle body, scanning the contours of the left and right rail heads.

[0079] The attitude sensor consists of a 4:1 group with a sampling rate of 200Hz and an angular resolution of 0.05°. It supports IEEE 1588 PTP time synchronization and is used for vehicle attitude and horizontal height difference detection.

[0080] Single-point ranging sensors: 5:2, sampling rate 2000Hz, measurement accuracy ±0.15mm, for EKF input in uneven terrain.

[0081] The distance measuring sensor matrix consists of 6 groups, with a sampling rate of 1000Hz and a measurement accuracy of ±0.1mm. It is arranged on the left and right sides of the vehicle body to directly measure the distance between the inner sides of the rails.

[0082] High-precision encoder 9: Magnetic grid encoder, used for mileage measurement and frame triggering.

[0083] Industrial PC 7: IP54 protection, equipped with GPU, runs sensor acquisition, algorithm inference, and fusion judgment.

[0084] Communication module 8: 4G / 5G dual-mode, used for data upload.

[0085] Power supply module 10: 48V DC lithium battery, with a battery life of ≥4 hours.

[0086] Circular buffer 11: Used to cache multi-source sensor data after synchronization.

[0087] Fusion Judgment Unit 12: Includes a reliability factor calculation module, a weight normalization module, and a geometric mean fusion module, which completes the three-level fusion and output.

[0088] The system adopts a three-network isolation architecture: the EtherCAT control network is responsible for sensor synchronous triggering; the gigabit acquisition network is responsible for visual and laser data transmission; and the wireless transmission network is responsible for background data uploading.

[0089] Example 2

[0090] like Figure 2 As shown, this embodiment provides a specific implementation method for spatiotemporal alignment of a three-key index, and its steps are as follows:

[0091] (1) The encoder generates a frame every N pulses (N=50~200, 100 in this embodiment), and the frame number is recorded as the frame number. ;

[0092] (2) Obtain the current UTC timestamp from the IEEE 1588 PTP synchronization clock. The accuracy is better than 1μs;

[0093] (3) Map the encoder pulse count to mileage coordinates using the standard track section calibration formula. Eliminate the cumulative errors caused by wheel diameter wear and slippage;

[0094] (4) Mark all sensor data 3D indexed tuples;

[0095] (5) Write the data into the circular buffer to ensure that all data in the same frame are strictly space-time aligned.

[0096] The high-frequency sensor (attitude, ranging, laser) takes the nearest sampling point from the frame center; the camera uses the exposure image at the trigger time of that frame. The final spatial alignment accuracy reaches 3.2mm.

[0097] The circular buffer stores data by sensor type, with each frame of data accompanied by... The three-key index tuples are used to write all sensor data under the same frame number after frame boundary alignment is completed at the hardware layer. The circular buffer has a depth of at least 1000 frames per sensor and is managed using a first-in-first-out queue. When the buffer is full, the oldest data is automatically overwritten.

[0098] Example 3

[0099] This embodiment provides a specific implementation method for three-level fusion processing, including the following steps:

[0100] First-level time alignment: based on frame numbering Using the primary key, all sensor data from the visual perception subsystem, contour perception subsystem, attitude perception subsystem, and geometric parameter perception subsystem are synchronized at the hardware level according to frame number, ensuring that the sensor data participating in the fusion of the same frame have the same frame boundary.

[0101] The second level of spatial association involves transforming the data from each sensor—from their respective local coordinate systems to a unified track coordinate system—based on the roll and pitch angles output by the attitude sensors. This track coordinate system is established with the centerline of the rail top surface as the X-axis, the direction perpendicular to the rail surface as the Y-axis, and the direction of travel along the track as the Z-axis. The transformation relationship is described by a rigid transformation matrix, with a calibration accuracy better than 0.1 mm. Using the roll and pitch angles output by the attitude sensors, motion distortion compensation is performed on the point cloud data from the 3D line laser sensor, transforming each contour point cloud to a unified reference coordinate system through a rigid transformation matrix.

[0102] The third-level joint fusion judgment method combines visual inspection results, 3D point cloud inspection results, and geometric parameter inspection results within the same frame to perform defect type matching and comprehensive level determination. Defect levels are divided into four categories: minor, moderate, severe, and urgent. When both the visual inspection confidence score and the geometric parameter inspection confidence score are higher than 0.7, the higher of the two levels is taken as the final output level. The fusion frequency of the third-level joint fusion judgment method is 10Hz, consistent with the output frequency of the slow loop.

[0103] A data validity check is set between the first-level time alignment and the second-level spatial association: the integrity of each sensor data in each frame is checked. If a certain sensor channel has no valid data in the frame, the data of that channel in the frame is marked as missing, and the fusion weight of that channel is automatically reduced during the third-level fusion.

[0104] Example 4

[0105] like Figure 3 As shown, this embodiment provides a specific implementation method for adaptive dynamic weighted fusion, including the following steps:

[0106] For each frame, 2D visual confidence, 3D point cloud confidence, and attitude sensor confidence are obtained. The calculation methods for each dimension's confidence are as follows:

[0107] ①2D visual confidence: Based on the classification confidence score output by YOLO detection, the highest score after non-maximum suppression (NMS) is taken as the visual confidence of the frame;

[0108] ② 3D point cloud confidence score: Calculated based on the root mean square error (RMSE) of ICP registration. The smaller the RMSE, the higher the confidence score. Specifically: ,in These are calibration constants;

[0109] ③ Attitude sensor confidence: Calculated based on the smoothness of the attitude angle change rate; the smaller the change rate, the higher the confidence.

[0110] The confidence level also includes an environmental adaptability correction factor, which is used to weight the confidence level based on the current light intensity, temperature, and humidity readings.

[0111] Then calculate the reliability factor: ,in The moving standard deviation of confidence scores over the past 50 frames is used; the weights are obtained by normalizing the reliability factor. The fusion confidence level was calculated using a weighted geometric mean. ; Segmented output: When At that time, the data in that frame is discarded directly; At that time, mark it as pending manual review; When the time comes, output the final judgment result.

[0112] The calculation cycle for fusion weights is consistent with the frame cycle; the reliability factor and fusion weight of each channel are recalculated for each frame. When the reliability factor of a certain sensor channel is below a preset threshold for 10 consecutive frames, the fusion weight of that channel is automatically reduced to below 0.1, and the detection report indicates that the channel is in a deweighted state. This method maintains an accuracy of 96.1% even when the sensor degrades by 20%.

[0113] Example 5

[0114] like Figure 4 As shown, this embodiment provides a method for detecting high and low EKF speeds (fast and slow), including the following steps:

[0115] Fast loop (200Hz, frequency range 180~250Hz): Utilizes attitude sensors to calculate roll and pitch angles in real time, and compensates for high-frequency vibrations of the vehicle body in real time, with a response time of 5ms.

[0116] Slow loop (10Hz, frequency range 8-12Hz): State vector ,in This is the true value of the track elevation. The height difference between the car body and the track. The vertical velocity of the vehicle body. The vertical acceleration of the vehicle body; observation equation ;in, This represents the real-time distance measurement value of a single-point ranging sensor at time k. The sensor installation height is set to 150mm to 200mm. To observe the noise, the frequency ratio of the fast loop to the slow loop is greater than 10:1, in order to achieve frequency domain decoupling between low-frequency changes in track elevation and high-frequency vibrations of the vehicle body.

[0117] EKF prediction equation: , ;

[0118] Update equation: , , .

[0119] The vehicle vibration compensation value output from the fast loop is input in real time into the observation equation of the slow loop EKF, serving as a reference for the observed values. Correction items are provided. A data buffering and synchronization mechanism is set between the fast loop and the slow loop: the fast loop continuously outputs the vehicle vibration compensation at a frequency of 200Hz, while the slow loop reads the output value of the most recent fast loop at a frequency of 10Hz for fusion calculation. The true value of track elevation is output through EKF filtering, and the measurement accuracy of elevation unevenness is better than ±0.5mm. The standard deviation of the multi-rate EKF output is 0.31mm, which reduces vibration noise by more than 50% compared with the single-speed EKF.

[0120] Example 6

[0121] This embodiment provides a method for detecting track gauge and level.

[0122] Track gauge detection: such as Figure 5 As shown, the ranging sensor matrix contains four ranging sensors on each side of the vehicle, symmetrically arranged on both sides. Each sensor has a measurement accuracy better than ±0.1mm and a sampling rate of 800–1200Hz. It directly measures the inner distances on both sides. The distance measurement is completely decoupled from the vehicle roll angle, achieving an accuracy better than ±0.3mm. The raw measurements from the distance sensor matrix are filtered using a moving average method to output the track gauge value. The filter window width is adaptively adjusted according to the detection speed: 20–50 frames in fine detection mode and 10–30 frames in standard detection mode. On standard track sections, using the measurements from a standard track gauge ruler as a benchmark, the filtered output value of the distance sensor matrix is ​​compared with the standard track gauge ruler measurement value to establish a system error correction table, eliminating system errors introduced by sensor installation and temperature drift.

[0123] Horizontal (elevation difference) detection: such as Figure 6 As shown, , The roll angle is from the attitude sensor, with a horizontal error of <0.4mm. The roll angle output from the attitude sensor is low-pass filtered and then used for horizontal superelevation calculation. The cutoff frequency of the low-pass filter is 20Hz.

[0124] The results of track gauge and level detection are correlated with the visual detection results in the same frame through a 3D index tuple. When the track gauge or level exceeds the limit and the visual detection defect location coincides, a cross-dimensional joint alarm is output.

[0125] Example 7

[0126] This embodiment provides a method for multimodal visual detection and cross-dimensional joint judgment, including the following steps:

[0127] (1) Track surface defects: The YOLOv8m model was used, quantized with TensorRT INT8, to achieve real-time inference at 25fps, with mAP@0.5=92.5% and a system-level false trigger rate of less than 3%. During training, methods such as Mosaic data augmentation, random cropping, and color dithering were used to expand the dataset. The post-processing stage included non-maximum suppression to filter overlapping bounding boxes, transforming the bounding boxes from the image coordinate system to the track coordinate system, and outputting them in grades according to confidence level.

[0128] (2) Road spikes / bolts: ZNCC template matching + preset pitch (e.g., 600mm) time-series analysis. Using standard road spike / bolt images as templates, zero-mean normalized cross-correlation values ​​are calculated pixel-by-pixel within the ROI region. When the correlation coefficient is lower than the preset threshold, it is determined to be missing or loose. Combined with the preset pitch (e.g., 600mm) prior, time-series analysis is performed. When the same road spike / bolt is determined to be missing in 3 consecutive frames, a missing alarm is output. The missing detection rate is 97.2%, and the loosening detection rate is 94.8%.

[0129] (3) Weld defects: Grayscale conversion → Denoising → CLAHE enhancement → Edge localization → Contour extraction → Classification and grading. Specifically, this includes: performing grayscale processing and Gaussian denoising on the ROI image of the weld area; using the CLAHE algorithm for illumination normalization enhancement; using Sobel or Laplacian edge detection operators for edge localization; segmenting the defect area using OTSU automatic threshold binarization; connecting the fracture contours using morphological closing operations and extracting the contours using findContours; calculating the defect area, perimeter, aspect ratio, and rectangularity geometric features based on the extracted contours, and grading according to defect type and severity.

[0130] (4) Profile and wear: 3D line laser scanning → motion distortion compensation → ICP registration → wear calculation.

[0131] (5) Alternative YOLO Implementation Examples: In another embodiment, the YOLOv8n (lightweight version) model is used for track surface defect detection. After TensorRT INT8 quantization, real-time inference at 40fps is achieved on the edge device, with mAP@0.5=88.5%, which is suitable for scenarios with higher detection speed requirements and relatively lower accuracy requirements. In yet another embodiment, the YOLOv9 model is used. After TensorRT INT8 quantization, real-time inference at 22fps is achieved, with mAP@0.5=93.2%, which is suitable for scenarios with higher detection accuracy requirements. All of the above alternative solutions are compatible with the three-key index spatiotemporal alignment mechanism and adaptive dynamic weighted fusion algorithm of this invention, reflecting the scalability of the YOLO series target detection algorithms as a higher-level concept.

[0132] (6) Cross-dimensional joint judgment: The defect bounding box, category, and confidence score output by visual inspection are spatially matched with the profile wear amount and ripple amplitude output by 3D point cloud inspection, and the track gauge, level, and elevation measurements output by geometric parameter inspection, using 3D index tuples within the same frame. When the mileage deviation between the visually detected defect location and the geometric parameter over-limit location is less than 5mm, the cross-dimensional joint judgment result is output. The output format of the cross-dimensional joint judgment includes: defect type, defect level, defect location mileage coordinates, associated geometric parameter over-limit type, fusion confidence score, original inspection image, and point cloud data index.

[0133] Rail surface defect detection, spike / bolt detection, and weld detection are performed in parallel by six 2D industrial cameras at different workstations. Two cameras are responsible for rail surface defect detection, two for spike / bolt detection, and two for weld detection. The detection results from each camera are associated using a unified frame number. The results of multimodal visual inspection are compared and verified with the results of three-dimensional index tuples and three-level fusion processing: when the visual inspection and geometric parameter inspection reach the same conclusion for the same location, the fusion confidence score is weighted higher; when the two conclusions are inconsistent, the fusion confidence score is weighted lower and marked for manual review.

[0134] Example 8

[0135] This embodiment provides a method for implementing system fault tolerance and degradation strategies, and calculates the comprehensive reliability index of sensors in real time. The calculation is weighted from three dimensions: data quality (signal-to-noise ratio, data integrity rate, outlier ratio), temporal consistency (reasonableness of rate of change, continuity of timestamps), and environmental adaptability (the influence of temperature, humidity, and light). If 0.5 < <0.8: Reduce the weight of this sensor and mark it as "Pending Review"; if <0.1: Disconnect the channel, and the system will degrade to lower performance; if Rapid recovery (10 consecutive frames) >0.8): Automatic re-check, returns to normal.

[0136] Example 9

[0137] This embodiment provides an alternative sensor configuration method: the 2D industrial camera can be of different models (e.g., 1920×1200px resolution, 30fps frame rate), the 3D line laser sensor can be of different brands (e.g., Keyence LJ-X8000 series), and the attitude sensor can be of different models (e.g., Xsens MTi-670). All of the above alternative solutions can achieve the core technical effects of this invention, and the specific parameters can be adjusted according to the actual application scenario and cost requirements.

[0138] Example 10

[0139] This embodiment provides a high-speed inspection mode: the system can operate in high-speed inspection mode, with the travel speed increased to 2.8m / s (approximately 10km / h). The encoder generates one frame every 50 pulses (mileage resolution approximately 2.5mm), the YOLO inference frequency is reduced to 15fps, and the EKF fast loop frequency is reduced to 100Hz. In this mode, the detection accuracy is slightly reduced (gauge accuracy to ±0.5mm, high and low accuracy to ±0.7mm), but the detection efficiency is significantly improved, making it suitable for rapid track surveys.

[0140] Example 11

[0141] like Figure 7 As shown in the figure, the embodiment of the present invention provides a comprehensive detection method for railway lines that integrates visual and multimodal perception, including the following steps:

[0142] Step S1: The encoder generates one frame every N pulses. Synchronously obtain PTP clock and UTC timestamp The mileage coordinates were obtained through calibration. tuples indexed by three keys Implement hardware-level frame boundary alignment for multiple sensors and write it to a circular buffer.

[0143] Wherein, the mileage coordinates The calibration process includes: traveling a preset distance on a standard track section, comparing the cumulative encoder pulse count with manually measured values, and establishing a pulse-mileage calibration table to compensate for cumulative errors introduced by wheel wear and slippage. The frame number... A frame is generated every N pulses accumulated by the encoder, where N ranges from 50 to 200, corresponding to a mileage resolution of 2.5 mm to 10 mm. The UTC timestamp... The accuracy is better than 1μs, and cross-sensor time reference unification is achieved through the IEEE 1588 PTP protocol. The circular buffer stores data by sensor type and channel, with each frame of data accompanied by... The three-key index tuple is used to write all sensor data under the same frame number to a unified manner after frame boundary alignment is completed at the hardware layer.

[0144] For high-frequency sensors, the sampling point closest to the frame center is taken as the sample value of that frame; for cameras, the exposure image at the trigger time of that frame is used as the image data of that frame. The encoder is a magnetic grating encoder, mounted on the motor shaft end. After conversion between the planetary reducer and the drive wheel diameter, the mileage resolution corresponding to each pulse is better than 0.02mm. The spatial alignment accuracy of the three-key index spatiotemporal alignment is better than 5mm, with an average deviation of 3.2mm. The depth of the annular buffer is at least 1000 frames per sensor, and it adopts first-in-first-out queue management, automatically overwriting the oldest data when the buffer is full.

[0145] Step S2: The first level completes time alignment according to frame number; the second level completes spatial association and uniform mapping to the orbital coordinate system after attitude angle correction; the third level performs multi-dimensional defect type and level joint judgment fusion.

[0146] The first-level time alignment includes: using frame numbers Using the primary key, all sensor data from the visual perception subsystem, contour perception subsystem, attitude perception subsystem, and geometric parameter perception subsystem are synchronized at the hardware level according to frame number, ensuring that the sensor data participating in the fusion of the same frame have the same frame boundary. The second-level spatial association includes: transforming the data of each sensor from its own local coordinate system to a unified orbital coordinate system based on the roll and pitch angles output by the attitude sensors. The transformation relationship is described by a rigid transformation matrix, and the calibration accuracy of the rigid transformation matrix is ​​better than 0.1mm. The third-level joint classification fusion includes: matching the defect type and comprehensively judging the level of visual inspection results, 3D point cloud inspection results, and geometric parameter inspection results within the same frame. When both visual inspection and geometric parameter inspection point to the same location, a joint judgment result is output.

[0147] The track coordinate system is established with the centerline of the rail top surface as the X-axis, the direction perpendicular to the rail surface as the Y-axis, and the direction along the track travel as the Z-axis. All sensor data are spatially correlated and uniformly mapped to this coordinate system. The defect level of the third-level joint judgment fusion is divided into four levels: minor, moderate, severe, and urgent. When both the confidence level of visual detection and the confidence level of geometric parameter detection are higher than 0.7, the higher of the two levels is taken as the final output level.

[0148] A data validity check is set between the first-level time alignment and the second-level spatial association: the integrity of each sensor data in each frame is checked, and if a certain sensor channel has no valid data in the frame, the data of that channel in the frame is marked as missing, and the fusion weight of that channel is automatically reduced during the third-level fusion. The fusion frequency of the third-level joint judgment fusion is 10Hz, which is consistent with the output frequency of the slow loop in step (4).

[0149] The spatially correlated attitude angle correction includes: using the roll and pitch angles output by the attitude sensor to compensate for motion distortion of the point cloud data of the 3D line laser sensor, and transforming each contour point cloud to a unified reference coordinate system through a rigid body transformation matrix.

[0150] Based on the spatial correlation results of step S2, adaptive fusion is performed in step S3.

[0151] Step S3: Calculate the reliability factor of each detector, dynamically normalize the weights, use a weighted geometric average to obtain the fusion confidence score and output it in different tiers.

[0152] Wherein, the reliability factor The calculation formula is: ,in For dimension confidence, The confidence level is the moving standard deviation within a preset number of frames over a time window; the preset number of frames is 30 to 100 frames. The dimension confidence level... The confidence score is obtained as follows: for the visual detection dimension, the highest score is taken after non-maximum suppression based on the classification confidence score output by YOLO detection; for the 3D point cloud dimension, the confidence score is calculated based on the root mean square error of ICP registration; for the attitude sensor dimension, the confidence score is calculated based on the smoothness of the attitude angle change rate. The weighted geometric mean fused confidence score... The calculations are performed in the logarithmic field to avoid numerical underflow.

[0153] The specific logic for the tiered output is as follows: if the fusion confidence level is less than 0.5 ( The test results of ) are directly discarded and not included in the test report; the fusion confidence level is between 0.5 and 0.7 ( The detection results of ) are marked as pending manual review and stored separately in the review queue; the fusion confidence level is higher than 0.7 ( The test results are output as the final judgment result and written into the test report.

[0154] When the reliability factor of a certain sensor channel is lower than the preset threshold for 10 consecutive frames, the fusion weight of that channel is automatically reduced to below 0.1, and the detection report will indicate that the channel is in a reduced-weight state.

[0155] The calculation period for the fusion weights is consistent with the frame period, and the reliability factor and fusion weights of each channel are recalculated for each frame.

[0156] The accuracy of the adaptive dynamic weighted fusion is no less than 97% when the sensor performance is normal and no less than 95% when the sensor performance degrades by 20%.

[0157] The confidence level of the dimension It also includes an environmental adaptability correction factor, which adjusts the confidence level based on the current light intensity, temperature, and humidity readings.

[0158] Step S4: The fast loop compensates for vehicle vibration in real time, and the slow loop estimates the true value of track elevation. The measurement accuracy of elevation unevenness is better than ±0.5mm.

[0159] The fast loop operates at a frequency of 180–250 Hz, using roll and pitch angle data from attitude sensors to estimate vehicle attitude in real time, with a response time ≤5 ms. The slow loop operates at a frequency of 8–12 Hz, outputting the true track elevation value based on accumulated data from a single-point ranging sensor after EKF filtering. The frequency ratio of the fast loop to the slow loop is greater than 10:1 to achieve frequency domain decoupling between low-frequency changes in track elevation and high-frequency vibrations of the vehicle body.

[0160] The state vector of the slow loop EKF is: ,in This is the true value of the track elevation. The height difference between the car body and the track. The vertical velocity of the vehicle body. This is the vertical acceleration of the vehicle body.

[0161] The observation equation for the slow loop EKF is as follows: ,in, This represents the real-time distance measurement value of a single-point ranging sensor at time k. For sensor installation height, To observe noise; the sensor installation height The diameter is 150mm to 200mm.

[0162] The vehicle vibration compensation value output by the fast loop is input in real time into the observation equation of the slow loop EKF, serving as a reference for the observed values. The correction items are as follows. The measurement accuracy of the unevenness is better than ±0.5mm, and the output standard deviation of the multi-rate EKF is 0.31mm, which reduces vibration noise by more than 50% compared with the single-speed EKF. A data buffering and synchronization mechanism is set between the fast loop and the slow loop: the fast loop continuously outputs the vehicle vibration compensation amount at a frequency of 200Hz, and the slow loop reads the output value of the most recent fast loop at a frequency of 10Hz for fusion calculation.

[0163] Step S5: The distance sensor matrix directly measures the track gauge and decouples it from the roll angle; the attitude sensor uses roll angle geometry to calculate the horizontal superelevation difference.

[0164] The ranging sensor matrix includes four ranging sensors on each side of the vehicle body, arranged symmetrically on both sides. The measurement accuracy of each sensor is better than ±0.1mm, and the sampling rate is 800~1200Hz.

[0165] The track gauge detection also includes moving average filtering: the track gauge value is output after the original measurement values ​​of the ranging sensor matrix are filtered by moving average. The width of the filtering window is adaptively adjusted according to the detection speed. The window width of the moving average filter is 20-50 frames in fine detection mode and 10-30 frames in standard detection mode.

[0166] The track gauge detection also includes system error calibration: on a standard track section, using the measurement value of the standard track gauge as a benchmark, the filtered output value of the distance sensor matrix is ​​compared with the measurement value of the standard track gauge to establish a system error correction table and eliminate system errors introduced by sensor installation and temperature drift.

[0167] The horizontal superelevation difference The calculation formula is ,in The roll angle is the output of the attitude sensor, and 1435mm is the standard track gauge. The roll angle output by the attitude sensor is used for horizontal superelevation calculation after being low-pass filtered, and the cutoff frequency of the low-pass filter is 20Hz.

[0168] The accuracy of the track gauge detection is better than ±0.3mm, and the error of the horizontal height difference detection is less than 0.4mm. The results of the track gauge and horizontal level detection are correlated with the visual detection results of step S6 within the same frame through a three-dimensional index tuple. When the track gauge or horizontal level exceedance position coincides with the visual detection defect position, a cross-dimensional joint alarm is output.

[0169] Step S6: YOLO series detects rail surface defects, ZNCC template matching detects rail spikes / bolts, and OpenCV process detects welds; all results are accurately correlated and jointly judged within the same frame through three-key indexing.

[0170] The track surface defect detection includes: outputting defect category, bounding box, and confidence score using the YOLO series target detection algorithm; the post-processing stage includes non-maximum suppression to filter overlapping bounding boxes, transforming the bounding boxes from the image coordinate system to the track coordinate system, and outputting them in graded order according to confidence score. The YOLO series target detection algorithm is YOLOv8m, which achieves real-time inference of ≥20fps after TensorRT INT8 quantization, with mAP@0.5≥90% and a system-level false trigger rate of less than 3%.

[0171] The ZNCC template matching detection of road spikes / bolts includes: using a standard road spike / bolt image as a template, calculating the zero-mean normalized cross-correlation value pixel by pixel within the ROI area, and determining that it is missing or loose when the correlation coefficient is lower than a preset threshold; combining a preset pitch (e.g., 600mm) prior to perform time sequence analysis, and outputting a missing alarm when the same road spike / bolt is determined to be missing in 3 consecutive frames.

[0172] The OpenCV workflow for weld seam inspection includes: grayscale processing and Gaussian denoising of the weld seam region ROI image; illumination normalization enhancement using the CLAHE algorithm; edge localization using Sobel or Laplacian edge detection operators; defect region segmentation using OTSU automatic threshold binarization; connecting fracture contours using morphological closing operations and extracting contours using findContours; calculating defect area, perimeter, aspect ratio, and rectangularity geometric features based on the extracted contours, and classifying them according to defect type and severity.

[0173] The cross-dimensional joint determination includes: matching the defect bounding box, category, and confidence score output by visual inspection with the profile wear amount and ripple amplitude output by 3D point cloud inspection, and the track gauge, level, and elevation measurements output by geometric parameter inspection, using a three-key index to perform spatial location matching within the same frame; when the mileage deviation between the visually detected defect location and the geometric parameter over-limit location is less than 5mm, the cross-dimensional joint determination result is output. The output format of the cross-dimensional joint determination includes: defect type, defect level, defect location mileage coordinates, associated geometric parameter over-limit type, fusion confidence score, original detection image, and point cloud data index.

[0174] The track surface defect detection, spike / bolt detection, and weld detection are performed in parallel by six 2D industrial cameras at different workstations. Two cameras are responsible for track surface defect detection, two cameras are responsible for spike / bolt detection, and two cameras are responsible for weld detection. The detection results of each camera are associated through a unified frame number.

[0175] The results of the multimodal visual detection are compared and verified by the three-dimensional index tuple and the three-level fusion processing results of step (2): when the visual detection and geometric parameter detection have the same conclusion on the same position, the fusion confidence is weighted up; when the two conclusions are inconsistent, the fusion confidence is weighted down and marked as pending manual review.

[0176] This invention proposes a three-key index spatiotemporal alignment mechanism, which improves the spatial alignment accuracy of multi-sensor systems to the sub-millimeter level; it proposes an adaptive dynamic weighted geometric mean fusion algorithm based on detection reliability factors, which can achieve a fusion judgment accuracy of over 97.5% under typical test conditions; it designs a fast and slow dual-speed EKF fusion architecture, with a height and unevenness measurement accuracy better than ±0.5mm; and it completely decouples track gauge and roll angle, with an accuracy better than ±0.3mm.

[0177] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.

Claims

1. A comprehensive detection system for railway lines integrating visual and multimodal perception, characterized in that, include: The detection vehicle body (1) can travel along the railway track; The visual perception subsystem includes a multi-channel 2D industrial camera (2) installed on the vehicle body, used to realize rail surface defect detection, rail spike / bolt status detection, and weld defect detection; The profile sensing subsystem includes a multi-channel 3D line laser sensor (3) for rail profile measurement and corrugation detection; The attitude perception subsystem includes an attitude sensor (4) for vehicle attitude measurement and level detection; The geometric parameter sensing subsystem includes a ranging sensor matrix (6) and a single-point ranging sensor (5). The ranging sensor matrix is ​​used for direct track gauge measurement, and the single-point ranging sensor is used for elevation detection. A high-precision encoder (9) is used for mileage measurement and frame triggering; Industrial control computer (7), communication module (8), power supply module (10), ring buffer (11) and fusion judgment unit (12); The system employs a three-key index spatiotemporal alignment mechanism, using frame number FID and mileage coordinates s k UTC timestamp t k This constructs a three-key index tuple, enabling a unified spatiotemporal reference for all sensor data and alignment with hardware-level frame boundaries; The fusion determination unit (12) adopts an adaptive dynamic weighted fusion algorithm based on the detection reliability factor to complete the three-level fusion determination of multi-source data; The elevation and elevation detection adopts a fast and slow dual-speed EKF fusion architecture, with the fast loop and slow loop achieving frequency domain decoupling between track elevation and vehicle vibration at a preset frequency ratio.

2. The integrated detection system for railway lines based on visual and multimodal perception fusion as described in claim 1, characterized in that, In the spatiotemporal alignment mechanism of the three-key index: UTC timestamp accuracy is better than 1μs, and cross-sensor time reference unification is achieved by the IEEE 1588 PTP protocol; Mileage coordinates s k The cumulative value of the encoder pulse is obtained through standard track section calibration, eliminating the mileage accumulation error caused by wheel wear and slippage. The frame number is defined by the encoder every N pulses, where N is the preset number of pulses, and the corresponding mileage resolution is 2.5mm to 10mm, which serves as the primary key for multi-source data fusion.

3. The integrated detection system for railway lines based on visual and multimodal perception fusion according to claim 1, characterized in that, In the adaptive dynamic weighted fusion algorithm: Reliability factor ,in For dimension confidence, The confidence level moving standard deviation within a preset number of frame time windows; The fusion weights are obtained by normalizing the reliability factor: ; The fusion confidence score is calculated using a weighted geometric mean. ; Discard directly at that time. Enter the manual review queue at that time. The final judgment result will be output at that time.

4. The integrated detection system for railway lines based on visual and multimodal perception fusion according to claim 1, characterized in that, In the fast and slow dual-speed EKF fusion architecture: The fast loop utilizes attitude sensors to compensate for high-frequency vibrations of the vehicle body in real time, with a response time of ≤5ms. The slow loop estimates the true value of the track elevation based on accumulated data from a single-point ranging sensor, and its state vector is: ,in This is the true value of the track elevation. The height difference between the car body and the track. The vertical velocity of the vehicle body. This is the vertical acceleration of the vehicle body; The observation equation is: ,in, This represents the real-time distance measurement value of a single-point ranging sensor at time k. For sensor installation height, To observe noise.

5. The integrated detection system for railway lines based on visual and multimodal perception fusion according to claim 1, characterized in that, Track gauge is measured directly using a range sensor matrix: The measured value is completely decoupled from the vehicle roll angle; The horizontal elevation difference is determined by the roll angle of the attitude sensor. Direct solution: .

6. The integrated detection system for railway lines based on visual and multimodal perception fusion according to claim 1, characterized in that, The system also includes a sensor reliability assessment module, which calculates the comprehensive reliability index ρ from three dimensions: data quality, timing consistency, and environmental adaptability. When ρ is below 0.5, the system enters a degraded operation mode, retaining only the normal sensor channels and marking them with a degraded label; When ρ rises rapidly, the sensor re-detection process is automatically initiated.

7. The integrated detection system for railway lines based on visual and multimodal perception fusion according to claim 1, characterized in that, The track surface defect detection uses the YOLO series target detection algorithm, which achieves real-time inference of ≥20fps after TensorRTINT8 quantization. The condition detection of the road spikes / bolts adopts ZNCC template matching and time sequence analysis; The weld defect detection process employs a five-step procedure: grayscale noise reduction, CLAHE enhancement, edge localization, contour extraction, and classification.

8. A comprehensive detection method for railway lines integrating visual and multimodal perception, based on the system described in any one of claims 1 to 7, characterized in that, Includes the following steps: Step S1: The encoder generates one frame every N pulses. Synchronously obtain PTP clock and UTC timestamp The mileage coordinates were obtained through calibration. tuples indexed by three keys Implement hardware-level frame boundary alignment for multiple sensors and write them to a circular buffer; Step S2: The first level completes time alignment according to frame number; The second level completes spatial correlation and unified mapping to the orbital coordinate system after attitude angle correction; the third level performs multi-dimensional defect type and level joint judgment and fusion. Step S3: Calculate the reliability factor of each detector, dynamically normalize the weights, use a weighted geometric average to obtain the fusion confidence and output it in different tiers; Step S4: The fast loop compensates for vehicle vibration in real time, and the slow loop estimates the true value of track elevation. Step S5: The distance sensor matrix directly measures the track gauge and decouples it from the roll angle; the attitude sensor uses roll angle geometry to calculate the horizontal superelevation difference. Step S6: YOLO series detects rail surface defects, ZNCC template matching detects rail spikes / bolts, and OpenCV process detects welds; all results are accurately correlated and jointly judged within the same frame through three-key indexing.

9. The integrated detection method for railway lines based on visual and multimodal perception fusion according to claim 8, characterized in that, The mileage coordinates The calibration process includes: traveling a preset distance on a standard track section, comparing the cumulative number of encoder pulses with the manually measured value, and establishing a pulse-mileage calibration table to compensate for the cumulative error introduced by wheel wear and slippage.

10. The integrated detection method for railway lines based on visual and multimodal perception fusion according to claim 8, characterized in that, The ZNCC template matching detection of road spikes / bolts includes: using a standard road spike / bolt image as a template, calculating the zero-mean normalized cross-correlation value pixel by pixel within the ROI area, and determining that it is missing or loose when the correlation coefficient is lower than a preset threshold; combining the preset pitch prior to perform time sequence analysis, and outputting a missing alarm when the same road spike / bolt is determined to be missing in 3 consecutive frames.

Citation Information

Patent Citations

  • Railway comprehensive inspection system

    CN114379598A

  • Portable high-speed turnout detection trolley and method based on line laser technology

    CN115077423A

  • Track multi-source data alignment method and device and track system

    CN119441744A

  • Turnout detection method based on computer vision and intelligent monitoring pile

    CN119648700A