A method and system for classifying and identifying micro-level welding defects of a tie beam based on an improved convolutional neural network

By combining an improved convolutional neural network with laser 3D scanning and infrared thermal imager for dual-modal data processing, the problem of identifying micron-level welding defects was solved, achieving high-precision defect identification and process optimization, and forming a closed-loop iteration of detection-feedback-optimization.

CN123160964APending Publication Date: 2026-11-24CHINA RAILWAY BEIJING ENG GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611535956.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-30
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing welding defect detection technologies struggle to identify micron-level incomplete welds and micron-level cracks, and the detection results do not form a closed-loop feedback with welding process parameters, thus failing to effectively suppress the recurrence of defects.

Method used

An improved convolutional neural network is used, combined with laser 3D scanning and infrared thermal imager for dual-modal data acquisition and processing. Micron-level defect identification is performed through a geometric-thermal dual-flow collaborative network, and the detection results are fed back to the welding station to optimize process parameters.

Benefits of technology

It achieves high-precision classification and identification of micron-level welding defects, significantly improving the identification accuracy and confidence of incomplete welds and micron-level cracks, and reduces the risk of defect recurrence by optimizing welding process parameters through closed-loop feedback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160964A_ABST
    Figure CN123160964A_ABST
Patent Text Reader

Abstract

This invention discloses a micron-level classification and recognition method and system for railway sleeper truss welding defects based on an improved convolutional neural network, belonging to the field of industrial vision inspection technology. The method simultaneously acquires weld point clouds and post-weld thermal relaxation window infrared sequences using a coaxial optical path laser 3D scanner and an infrared thermal imager, and completes dual-modal spatiotemporal pairing through joint calibration. Voxel downsampling, median filtering, and curvature estimation are performed on the point clouds, and thermal conduction inversion is performed on the thermal image sequences, with residuals obtained by comparing with the baseline image to obtain a thermal resistance anomaly map. Geometric data is input into a sparse-dense dual-path branch, and the thermal resistance anomaly map is input into a physically guided residual branch. Adaptive gating fusion outputs defect categories and micron-level location thermal maps. Truss flow is controlled based on the classification results and confidence thresholds, and reports are generated and fed back to the welding station for process optimization. This invention effectively solves the problem of insufficient accuracy in identifying incomplete welds and micron-level cracks using single-modal detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial visual inspection technology, and in particular to a method and system for micron-level classification and recognition of welding defects in railway sleeper trusses based on an improved convolutional neural network. Background Technology

[0002] The sleeper truss is the core load-bearing component of a prestressed concrete sleeper, consisting of multiple steel bars connected by resistance spot welding or arc welding to form a spatial truss structure. Welding quality directly determines the sleeper's load-bearing capacity and fatigue life. In actual production, defects such as incomplete welding (lack of fusion), weld beads (excessive deposition), and weld cracking are the main factors leading to truss failure. Among these, incomplete welding and micron-level cracking have extremely weak surface geometric characteristics. The surface of an incomplete weld may show no obvious abnormalities, and the crack width can be as small as tens of micrometers, making it difficult to reliably identify using traditional two-dimensional machine vision or manual visual inspection.

[0003] Existing welding defect detection solutions are mainly divided into three categories: First, manual visual inspection and tapping inspection, which are inefficient, inconsistent, and unable to detect internal cold welds; second, single-modal visual inspection, such as laser 3D scanning or infrared thermography, the former is sensitive to surface morphology but not to metallurgical bonding quality, and the latter is sensitive to thermophysical anomalies but its spatial resolution is limited by thermal diffusion; third, conventional convolutional neural network classification, which directly processes single-modal data and lacks the collaborative utilization of multi-physical features of micron-level defects, resulting in a high false detection rate for weak feature defects such as cold welds and cracks.

[0004] Furthermore, existing detection systems mostly remain at the "detection-alarm" level, failing to establish a closed-loop feedback mechanism between detection results and welding process parameters, thus failing to fundamentally prevent the recurrence of defects. Therefore, there is an urgent need for an automated detection solution that can integrate geometric and thermophysical dual-modal information, perform high-precision classification and identification of micron-level defects, and feed the detection results back to the welding station to optimize process parameters. To this end, a method and system for micron-level classification and identification of welding defects in railway sleeper trusses based on an improved convolutional neural network is proposed. Summary of the Invention

[0005] The main objective of this invention is to provide a micron-level classification and identification method and system for welding defects in railway sleeper trusses based on an improved convolutional neural network, which can effectively solve the problems in the background art.

[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0007] In a first aspect, the present invention provides a method for micron-level classification and identification of welding defects in railway sleeper trusses based on an improved convolutional neural network, comprising the following steps:

[0008] Step S1, Dual-modal sensor joint calibration

[0009] Specifically: The laser 3D scanner and infrared thermal imager are mounted at the inspection station via a coaxial beam splitter, ensuring that their field of view centers coincide. Using a standard calibration board with checkerboard and thermal feature markings, the intrinsic parameters of the laser scanner, the intrinsic parameters of the infrared thermal imager, and the dual-modal extrinsic parameters are calibrated together, establishing a mapping relationship from the 3D coordinates of the point cloud to the pixel coordinates of the thermal image. Using the welding power supply trigger signal as a reference, the timestamp offset between the laser scanning frame and the infrared thermal image frame is calibrated, completing the time synchronization calibration.

[0010] Step S2, Baseline heat conduction model construction

[0011] Specifically: For each truss specification, infrared sequences of the thermal relaxation window after welding are collected on a defect-free standard specimen. The equivalent thermal resistance distribution baseline map under the ideal defect-free state is inverted based on the one-dimensional heat conduction equation and stored as a reference template for the physical-guided residual network.

[0012] Preferably, the thermal relaxation window is 200–500 ms.

[0013] Step S3, Simultaneous acquisition of dual-modal data

[0014] Specifically: The finished truss is conveyed to the inspection station by a conveyor roller. A photoelectric sensor triggers a positioning baffle to stop the truss at the center of the calibration field of view. After the PLC sends a positioning signal to the inspection system, the system receives the welding completion timestamp recorded by the welding station. At a preset time after welding, it triggers an infrared thermal imager to acquire a thermal relaxation window sequence, and simultaneously triggers a laser 3D scanner to uniformly scan and acquire the original point cloud along the weld seam. Dual-modal data pairing is completed through timestamp and calibration mapping.

[0015] Preferably, the positioning accuracy of the field of view center is ≤ ±2mm along the weld direction and ≤ ±1mm in the vertical direction.

[0016] Preferably, the preset time after welding is 200ms.

[0017] Preferably, the thermal relaxation window sequence has a sampling rate of 100fps and a sampling frame count of 30 frames.

[0018] Preferably, the line scan frequency of the original point cloud acquisition is 10kHz, the spatial resolution is ≤50μm, and the scan time is ≤300ms.

[0019] Step S4, Dual-modal data preprocessing

[0020] Specifically:

[0021] Geometric branch preprocessing: Voxel downsampling and normalization are performed on the original point cloud to form an equally spaced 3D mesh; adaptive sliding window median filtering is performed along the weld direction to suppress scanning noise; the normal vector and local curvature of each voxel are calculated to generate a geometrically sensitive region mask.

[0022] Thermal branch preprocessing: Based on the one-dimensional heat conduction equation, the thermal signal physical inversion is performed on the thermal image sequence to remove the environmental heat loss component and normalize the original temperature rise signal into an equivalent thermal resistance distribution map; the inversion result is compared with the defect-free baseline map stored in S2 to obtain a thermal resistance anomaly map; the 30 frames of thermal resistance anomaly maps are stacked in chronological order to form a temporal input tensor.

[0023] Preferably, the voxel size for voxel downsampling is 50 μm.

[0024] Step S5: Geometric-Thermal Dual-Stream Cooperative Network for Dual-Stream Inference and Defect Classification

[0025] Specifically:

[0026] Input geometric data into a sparse-dense dual-path branch;

[0027] Input the thermal resistance anomaly diagram into the physical-guided residual branch;

[0028] The adaptive gating fusion unit performs weighted fusion of dual-stream features based on modal confidence and prior defect type, and outputs defect category and micron-level defect location heatmap.

[0029] Preferably, the sparse path of the sparse-dense dual-path branch uses sub-manifold sparse convolution to activate computation only at non-empty voxel locations, preserving the accurate spatial coordinates of the original point cloud; the dense path projects the voxelized point cloud into a depth map along the weld direction, perpendicular to the weld direction, and top view in three orthogonal directions, and extracts surface texture and edge features using a lightweight 2D CNN; the two features are adaptively weighted and fused by a cross-path attention module.

[0030] Preferably, the physical-guided residual branch uses depthwise separable convolution stacks to construct the encoder. The shallow layer captures the overall distribution of thermal uniformity with a large receptive field, while the deep layer extracts the micron-level thermal resistance abrupt change at the crack tip with a small convolution kernel. The numerical solution of the heat conduction equation is used as the baseline and residually connected to the intermediate feature map of the network, so that the network only learns the thermal resistance deviation introduced by the defect.

[0031] Preferably, the confidence level of the geometric branch is estimated based on the local density of the point cloud and the scanning signal-to-noise ratio, while the confidence level of the thermal branch is estimated based on the thermal image signal-to-noise ratio and the temperature contrast within the thermal relaxation window.

[0032] Preferably, the gating for weld bead defects is biased towards the geometric branch, the gating for incomplete weld defects is biased towards the thermal branch, and the weights of the two tend to be balanced for cracking defects.

[0033] Preferably, the weighted fusion features are output as defect categories and confidence levels by a fully connected classification head, while a micron-level defect location heatmap is generated by the Grad-CAM module.

[0034] Preferably, the defect categories include acceptable, poor weld, weld bead, and crack.

[0035] Step S6: Detection decision, diversion and process feedback

[0036] Specifically: if the classification result is qualified and the confidence level is ≥0.95, the system sends a qualified signal to the PLC and the gantry is transported to the next process; if the classification result is unqualified or the confidence level is lower than 0.95, the system sends an unqualified signal and the defect category, and the pneumatic diversion mechanism pushes the gantry into the corresponding defect isolation area; samples with a confidence level in the range of 0.85–0.95 are marked as pending re-inspection and transported to the manual re-inspection station.

[0037] The inspection results for each truss are written to the database, and the system updates the daily statistics in real time. At the end of each production day, a defect statistics report is automatically generated, including the total number of inspections, pass rate, percentage of each type of defect, defect spatial distribution heatmap, and correlation analysis results between defect types and welding current, voltage, and welding speed. Based on the correlation analysis, welding process parameter adjustment suggestions are automatically generated and pushed to the welding stations. Newly labeled samples, after manual re-inspection and confirmation, trigger incremental fine-tuning training of the geometric-thermal dual-flow collaborative network during off-peak production hours, forming a closed-loop iteration of inspection-feedback-optimization-re-inspection.

[0038] Secondly, the present invention provides a micrometer-level classification and recognition system for welding defects in railway sleeper trusses based on an improved convolutional neural network, used to implement the above method, including:

[0039] The dual-modal acquisition unit includes a laser 3D scanner and an infrared thermal imager mounted in a coaxial optical path, which are used to simultaneously acquire point clouds of the weld area and infrared sequences of the post-weld thermal relaxation window.

[0040] The preprocessing unit is used to perform voxel downsampling, adaptive sliding window median filtering and normal vector curvature estimation on point clouds, and to perform heat conduction inversion and baseline residual calculation on thermal image sequences.

[0041] The geometric-thermal dual-flow collaborative network inference unit includes a sparse-dense dual-path geometric branch, a physically guided residual thermal branch, and an adaptive gated fusion module, which is used to output defect categories and micron-level localization heatmaps.

[0042] The diversion control unit is used to control the allocation of truss conveying paths and defect isolation zones based on classification results and confidence thresholds.

[0043] The report feedback unit is used to generate defect statistics reports and feed them back to the welding station.

[0044] Preferably, the geometry-thermal dual-flow collaborative network inference unit is deployed on the edge computing unit and runs in a TensorRT quantized version, with a single truss detection cycle of ≤800ms.

[0045] Preferably, the dual-mode acquisition unit and the diversion control unit are linked by PLC signals. The photoelectric sensor triggers the positioning baffle to stop the truss at the center of the calibration field of view. The positioning accuracy is ≤ ±2mm along the weld seam and ≤ ±1mm in the vertical direction.

[0046] Beneficial effects

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

[0048] The proposed solution employs a geometric-thermal dual-flow collaborative network, in which the geometric branch is used to capture surface morphology and the thermal branch is used to capture metallurgical quality. After adaptive gating fusion, the identification accuracy and confidence of false welds and micron-level cracks are significantly improved compared with the single-modal solution.

[0049] The sparse-dense dual-path design adopted in this invention preserves the micron-level spatial accuracy of the original point cloud, while the dense path provides surface texture semantics. Cross-path attention adaptive weighting avoids information loss from a single representation method.

[0050] The physical-guided residual network used in this invention takes the numerical solution of the heat conduction equation as the baseline, so that the network only needs to learn the deviation introduced by the defect, so that the micron-level thermal resistance anomaly is not masked by the background thermal gradient, thereby reducing the risk of micron-level signal submersion. Attached Figure Description

[0051] Figure 1 This is a flowchart illustrating the overall process of the method of the present invention.

[0052] Figure 2 This is a schematic diagram of a geometry-thermal dual-flow cooperative network architecture.

[0053] Figure 3 A schematic diagram of a geometrically branched sparse-dense dual-path structure;

[0054] Figure 4 A schematic diagram of the residual structure guided by the physical principles of thermodynamic branching;

[0055] Figure 5 This is a schematic diagram of the adaptive gating fusion unit structure;

[0056] Figure 6 This is a flowchart for detection decision-making and diversion control. Detailed Implementation

[0057] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0058] Example 1: Detection of incomplete resistance spot welding on sleeper trusses

[0059] This embodiment focuses on the detection of incomplete welds in resistance spot welds on railway sleeper trusses. A typical characteristic of incomplete welds is that the surface indentation of the weld joint appears normal, but no effective fusion nugget has formed inside. The difference in indentation depth between laser 3D scanning and a qualified weld joint is usually less than 30μm, falling within the scanning noise boundary. Furthermore, the equivalent thermal resistance distribution within the thermal relaxation window exhibits a significantly higher abnormality due to the presence of the non-fused interface. Therefore, incomplete weld identification primarily relies on the thermal branch. Specifically, it includes the following stages and steps:

[0060] Phase 1: System calibration and initialization (executed once before production line startup)

[0061] Step 1: Joint Calibration of Dual-Modal Sensors

[0062] Install the laser 3D scanner and infrared thermal imager at the inspection station using a coaxial beam splitter, ensuring that their fields of view centers coincide. Using a standard calibration board with checkerboard and thermal feature markings, collect no fewer than 20 sets of corresponding points to complete the following calibration:

[0063] Laser scanner intrinsic parameter calibration: Obtain the transformation matrix from the point cloud coordinate system to the camera coordinate system;

[0064] Infrared thermal imager intrinsic parameter calibration: Obtain the transformation matrix from the thermal image pixel coordinate system to the camera coordinate system;

[0065] Dual-modal extrinsic parameter joint calibration: establishing the mapping relationship between point cloud 3D coordinates and thermal image pixel coordinates P 3D →(u IR ,v IR );

[0066] Time synchronization calibration: Using the welding power supply trigger signal as a reference, calibrate the timestamp offset between the laser scanning frame and the infrared thermal image frame to ensure that the pairing error does not exceed 1ms.

[0067] Step 2: Baseline heat conduction model construction

[0068] For each truss specification (rebar diameter, node geometry), infrared sequences of the thermal relaxation window (200–500 ms) after welding are collected on a defect-free standard specimen. Based on the one-dimensional heat conduction equation, the baseline map of the "equivalent thermal resistance distribution" under the ideal defect-free state is inverted. The baseline map reflects the thermal resistance distribution of the welded area under the ideal defect-free state and serves as a reference template for subsequent thermal resistance anomaly calculation.

[0069] Step 3: Network pre-training and edge deployment

[0070] A geometric-thermal dual-flow collaborative network was pre-trained using a historical defect sample library (including labeled data for three types of defects: incomplete welds, weld beads, and cracks). After convergence through focus loss and hard case mining, the network was quantized and compiled using TensorRT and deployed to the edge computing unit of the inspection station. The single-frame inference latency was verified to be ≤800 ms.

[0071] Phase Two: Online Inspection Process (Executed cyclically for each truss)

[0072] Step 4: Truss Conveying and Workstation Positioning

[0073] The finished truss is conveyed to the inspection station by a roller conveyor. A photoelectric sensor triggers a positioning baffle, causing the truss to stop at the center of the calibrated field of view. Positioning accuracy requirements: deviation along the weld seam ≤ ±2 mm, vertical deviation ≤ ±1 mm. After positioning, the PLC sends a "positioning" signal to the inspection system.

[0074] Step 5: Welding completion time backtracking and thermal relaxation window triggering

[0075] The inspection system receives welding completion timestamps for each weld point on each truss, recorded by the welding station. For trusses that have just been welded, the system triggers an infrared thermal imager to acquire a thermal relaxation window sequence (200–500 ms, sampling rate 100 fps, 30 frames in total) 200 ms after welding. For trusses that have cooled to room temperature (such as those moving between workstations), thermal acquisition is skipped, and only geometric inspection is performed and marked as "thermal data missing".

[0076] Step 6: Laser 3D Scanning and Point Cloud Acquisition

[0077] A laser scanner scans at a constant speed along the truss weld seam, acquiring the original point cloud of the entire weld seam area. Scanning parameters are preset according to the truss specifications: line scan frequency 10 kHz, spatial resolution ≤50 μm, and single truss scan time ≤300 ms. After scanning, the point cloud data is paired with the thermal image sequence from step 5 through timestamps and calibration mapping.

[0078] Step 7: Dual-modal data preprocessing

[0079] 7.1) Geometric branch preprocessing, including:

[0080] Voxel downsampling: Perform voxel downsampling on the original point cloud, with a voxel size of 50μm, and normalize the point cloud into an equally spaced 3D mesh;

[0081] Adaptive sliding window median filtering: Adaptive sliding window median filtering is performed along the weld seam direction. The window length is adaptively adjusted between 5 and 15 according to the local point cloud density to suppress scanning noise while preserving real geometric abrupt changes.

[0082] Normal vector curvature estimation: Calculate the normal vector and local curvature of each voxel to generate a geometry-sensitive region mask. The curvature of the solder joint region is significantly lower and tends to be flatter.

[0083] 7.2) Thermal branching pretreatment, including:

[0084] Thermal signal physical inversion: Based on the one-dimensional heat conduction equation, thermal signal physical inversion is performed on the thermal image sequence to remove the environmental heat loss component and normalize the original temperature rise signal into an "equivalent thermal resistance distribution" map;

[0085] Baseline residual calculation: The inversion results are compared with the defect-free baseline map stored in step 2, and pixel-by-pixel residuals are calculated to obtain the thermal resistance anomaly map. The thermal resistance anomaly in the cold solder joint area shows a significant clustering of positive values.

[0086] Timing alignment: Stack the 30 frames of thermal resistance anomaly maps in chronological order into a timing input tensor.

[0087] Step 8: Geometric-Thermodynamic Two-Stream Cooperative Network Two-Stream Inference

[0088] 8.1) Geometric Data Input: Sparse-Dense Dual-Path Branching: The sparse path uses submanifold sparse convolution, activating computation only at non-empty voxel locations, preserving the accurate spatial coordinates of the original point cloud; the dense path projects the voxelized point cloud into a depth map along the weld seam direction, perpendicular to the weld seam, and from a top-down perspective, using a lightweight 2D CNN to extract surface texture and edge features; the two feature paths are adaptively weighted and fused through a cross-path attention module. The curvature of the normal vector of the dummy weld node differs only slightly from that of the qualified weld point, resulting in a lower confidence level for the geometric branch.

[0089] 8.2) Thermal Resistance Anomaly Map Input Physically Guided Residual Branch: An encoder is constructed using depthwise separable convolution stacks. Shallow layers capture the overall thermal uniformity distribution with large receptive fields, while deep layers extract micron-level thermal resistance abrupt changes with small convolutional kernels. The numerical solution of the heat conduction equation is used as a baseline and residually connected to the intermediate feature maps of the network, allowing the network to learn only the thermal resistance deviation introduced by defects. The thermal resistance anomalies of the cold solder joint nodes are significant, and the confidence of the thermal branch is high.

[0090] 8.3) The adaptive gating fusion unit fuses dual-stream features based on modal confidence and prior weighted defect type: the geometric branch confidence is estimated based on local point cloud density and scan signal-to-noise ratio, while the thermal branch confidence is estimated based on thermal image signal-to-noise ratio and temperature contrast within the thermal relaxation window. For cold solder joint defects, the thermal branch confidence is higher than the geometric branch, and the gating weights are biased towards the thermal branch. The fused features are output as defect categories and confidence levels via a fully connected classification head; the confidence level for cold solder joint determination is typically not lower than 0.92. Simultaneously, the Grad-CAM module generates micron-level defect location thermal maps.

[0091] Step 9: Detection Decision and Triage Execution

[0092] If the classification result is "qualified" and the confidence level is greater than or equal to the threshold (e.g., 0.95), the system sends a "qualified" signal to the PLC, and the gantry is transported to the next process.

[0093] If the classification result is "unqualified" or the confidence level is lower than the threshold, the system sends an "unqualified" signal and the defect category to the PLC, and the pneumatic diversion mechanism pushes the truss into the poor weld isolation zone;

[0094] For samples with confidence levels in the boundary range (e.g., 0.85–0.95), the system marks them as "to be re-inspected" and sends them to the manual re-inspection station.

[0095] Step 10: Archiving and Real-time Statistics of Detection Results

[0096] The inspection results for each truss (category, confidence level, defect location heatmap, and bimodal raw data index) are written to the database. The system updates the daily statistics in real time: the count of various defects, the defect location distribution heatmap, and the modal confidence level distribution histogram.

[0097] Phase 3: Daily Report Generation and Process Feedback (Executed after the daily production line closes)

[0098] Step 11: Automatic generation of defect statistics reports

[0099] The system summarizes the following content daily and generates reports:

[0100] Total number of tests, pass rate, and percentage of each type of defect;

[0101] Defect spatial distribution heatmap (grouped by truss node location, with high-frequency defect nodes marked);

[0102] Defect type-welding parameter correlation analysis: Perform correlation analysis between defect records and parameters such as current, voltage, welding speed, and preheating temperature recorded at the welding station;

[0103] Bimodal confidence analysis: the discriminative contributions of the statistical geometric branch and the thermodynamic branch to various types of defects.

[0104] Step 12: Output of Welding Process Parameter Optimization Suggestions

[0105] Based on the correlation analysis results in step 11, the system automatically generates process adjustment suggestions and pushes them to the welding station:

[0106] If frequent cold solder joints occur at a certain node and are accompanied by abnormally high thermal resistance, it is recommended to "increase the welding current of the node by 5%–8% or extend the welding time by 10%";

[0107] If weld beads appear in clusters and have significant geometric curvature characteristics, it is recommended to "reduce wire feed speed or optimize welding torch posture";

[0108] If the cracking defect is related to the abnormal cooling rate within the thermal relaxation window, it is recommended to "adjust the interlayer temperature or preheating parameters".

[0109] Step 13: Online Model Update Triggered

[0110] Once the samples in the daily report that are "pending re-inspection" are manually confirmed, new labeled data is generated. The system adds the new samples to the training set and triggers incremental fine-tuning training of the geometric-thermal dual-flow collaborative network during the off-peak hours of the production line. This updates the weights of the edge-deployed model, forming a closed-loop iteration of "detection → feedback → optimization → re-detection".

[0111] Example 2: Detection of weld beads in arc welding of railway sleeper trusses

[0112] This embodiment focuses on weld bead detection in arc-welded seams of railway sleeper trusses. Weld bead exhibits significant geometric characteristics, with local protrusions reaching hundreds of micrometers in height and abrupt changes in the normal vector direction. A three-view depth map with densely branched geometric paths can clearly capture the protrusion morphology. Thermal branches reflect heat accumulation in the weld bead region, resulting in a lower equivalent thermal resistance. Weld bead identification primarily relies on geometric branches.

[0113] Steps 1 to 6 are the same as in Example 1.

[0114] Step 7: Dual-modal data preprocessing

[0115] In the geometric branch preprocessing, voxel downsampling and adaptive sliding window median filtering are the same as in Example 1. After normal vector curvature estimation, the weld bead region exhibits high curvature aggregation, and the protrusion height is calculated by the maximum distance from the local point cloud to the fitted reference plane. The reference condition for weld bead judgment is that the protrusion height is not less than 200 μm and the rate of change of the normal vector direction is significantly higher than that of the qualified area.

[0116] In the thermal branch pretreatment, the thermal resistance anomaly diagram shows a cluster of negative values ​​at the weld bead, reflecting the low thermal resistance caused by excessive deposited metal.

[0117] Step 8: Geometric-Thermodynamic Two-Stream Cooperative Network Two-Stream Inference

[0118] In the geometric branch, the convex morphology of weld beads is significant in the three-view depth map of dense paths, and the cross-path attention module automatically increases the feature weight of dense paths; sparse paths provide accurate 3D coordinates of weld bead boundaries for Grad-CAM positioning heatmap generation. The geometric branch has high confidence.

[0119] In the thermal branch, the thermal resistance anomaly in the weld bead region shows a clustering of negative values, but the spatial resolution is limited by thermal diffusion, and the confidence level is lower than that in the geometric branch.

[0120] The adaptive gating fusion unit assigns geometric branch dominance weights to weld bead defects, with the proportion of geometric branches in the gating weights typically greater than 0.6. The classification head outputs the weld bead category and confidence level, typically not lower than 0.93.

[0121] Step 9: Detection Decision and Triage Execution

[0122] The diversion mechanism pushes the weld bead truss into the weld bead isolation zone. If the daily correlation analysis shows that weld beads are concentrated and accompanied by a high wire feed speed, the system suggests reducing the wire feed speed or optimizing the welding torch posture. The adjustment range for the wire feed speed is 40% to 60% of the difference between the average value of qualified samples and the current value, and then pushes it to the welding station.

[0123] Example 3: Micron-level weld crack detection in sleeper trusses

[0124] This embodiment focuses on the detection of micron-level cracks in railway sleeper truss welds. Crack widths can be as small as 20 to 50 μm. Geometric 3D scanning reveals depth discontinuities at the crack depth at a sub-volume scale, requiring identification based on abrupt changes in the curvature of the normal vector after adaptive sliding window median filtering. In the early thermal relaxation window, the thermal conductivity difference between the crack tip and the matrix has not yet been blurred by lateral diffusion, and the thermal resistance anomaly map exhibits high-frequency spatial perturbations along the crack direction. Crack identification relies on the balanced contribution of both geometric and thermal branches.

[0125] Steps 1 to 6 are the same as in Example 1.

[0126] Step 7: Dual-modal data preprocessing

[0127] In the geometric branching preprocessing, the depth discontinuity at the crack is characterized by a depth difference of no less than 20 μm between adjacent voxels, and multiple consecutive voxels along the crack direction satisfy this condition. The curvature of the normal vector exhibits a sharp peak at the crack tip.

[0128] In the thermal branching preprocessing, the thermal resistance anomaly map exhibits high-frequency spatial perturbations along the crack direction, with its high-frequency components significantly higher than those in the qualified region. Deep small convolutional kernels effectively extract this high-frequency feature.

[0129] Step 8: Geometric-Thermodynamic Two-Stream Cooperative Network Two-Stream Inference

[0130] Sparse paths with geometric branches preserve the precise 3D coordinates and depth discontinuities of the crack tip; dense paths with three-view depth maps capture surface texture anomalies in the crack orientation.

[0131] The deep small convolution kernel of the thermodynamic branching residual branch effectively extracts the micron-level thermal resistance abrupt change at the crack tip, and the physical guidance of the residual connection ensures that the micron-level thermal resistance anomaly is not masked by the background thermal gradient.

[0132] The adaptive gating fusion unit assigns balanced weights to the geometric and thermal branches of the crack defect, with each branch accounting for approximately 0.5% of the gating weight. The classification head outputs the crack category and confidence score, typically not lower than 0.90. The Grad-CAM module generates a localization heatmap along the crack direction.

[0133] Step 9: Detection Decision and Triage Execution

[0134] The diversion mechanism pushes the cracked truss into the crack isolation zone. If the daily report shows an abnormal correlation between cracking and cooling rate, i.e., the correlation coefficient between the number of cracks and the cooling rate is greater than 0.6, the system recommends adjusting the interpass temperature or preheating parameters. The adjustment range for the preheating temperature should be 30% to 50% of the difference between the average cooling rate of qualified samples and the current value, and then push the information to the welding station.

[0135] Example 4: Training Strategy for Geometric-Thermal Dual-Stream Cooperative Network

[0136] This embodiment provides a specific training strategy for the geometry-thermal dual-flow cooperative network, including:

[0137] a. Pre-training

[0138] The network was pre-trained using a historical defect sample database, which contained labeled data for three categories: incomplete welds, weld beads, and cracks. A focal loss method was used for classification, with a focal loss parameter γ of 2. The class balance weights for incomplete welds and cracks were set to 1.5 to 2.0 to reduce the gradient contribution of easily classified samples.

[0139] b. Online Difficult Example Mining

[0140] The sample difficulty is defined as the mean confidence scores of the geometric and thermal branches. Online hard example mining prioritizes sampling boundary samples with a mean dual-modal confidence score below 0.7 for the next round of training. The sampling probability increases exponentially as the sample difficulty decreases, allowing the network to focus on weak feature defects such as cold welds and cracks.

[0141] c. Data Augmentation

[0142] The geometric branch employs elastic deformation along the weld direction, applying small, non-rigid perturbations with amplitudes ranging from 50 to 100 μm to simulate minute positional deviations of truss reinforcement during actual welding. The thermal branch utilizes thermal relaxation time-shift enhancement, randomly shifting the thermal image sequence by ±50 ms along the time axis, corresponding to a frame index shift of ±5 frames, thereby improving the network's generalization ability to different welding cooling rates.

[0143] d. Model Quantization and Deployment

[0144] After training convergence, the data is quantized and compiled using TensorRT and deployed to edge computing units. The single-frame inference latency after quantization is verified to be no more than 800ms, including preprocessing time, geometric branch inference time, thermal branch inference time, and fusion classification time, meeting production line cycle time requirements.

[0145] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of this invention is defined by the appended claims and their equivalents.

Claims

1. A method for micron-level classification and recognition of welding defects in railway sleeper trusses based on an improved convolutional neural network, characterized in that, Includes the following steps: After the truss is transported to the inspection station and positioned, the infrared thermal imager is triggered to collect the post-weld thermal relaxation window sequence, and the laser 3D scanner is simultaneously triggered to collect the original point cloud of the weld area and complete the dual-modal data pairing. The original point cloud is subjected to voxel downsampling, adaptive sliding window median filtering and normal vector curvature estimation in sequence to generate geometric data of the sensitive region mask; Perform heat conduction inversion on the thermal relaxation window sequence to remove environmental heat loss, and obtain a thermal resistance anomaly map by comparing the residual with the baseline map; A geometric-thermal dual-flow collaborative network is constructed. The network includes a sparse-dense dual-path branch, a physically guided residual branch, and an adaptive gated fusion unit. The sparse-dense dual-path branch takes the geometric data as input, and the physically guided residual branch takes the thermal resistance anomaly map as input. The output of any branch is weighted and fused by the adaptive gated fusion unit to output the defect category and a micron-level localization thermal map. Based on the classification results and confidence threshold, the truss is controlled to be transported to the next process or automatically diverted and isolated, and a defect statistics report is generated and fed back to the welding station.

2. The method for micron-level classification and recognition of welding defects in railway sleeper trusses based on an improved convolutional neural network according to claim 1, characterized in that, The baseline image is obtained by collecting infrared sequences of the post-weld thermal relaxation window on a defect-free standard specimen and inverting the equivalent thermal resistance distribution based on the one-dimensional heat conduction equation.

3. The method for micron-level classification and recognition of welding defects in railway sleeper trusses based on an improved convolutional neural network according to claim 1, characterized in that, The sparse-dense dual-path branch includes: the sparse path uses sub-manifold sparse convolution to activate computation only at non-empty voxel locations, and the dense path projects the voxelized point cloud into a depth map along the weld direction, perpendicular to the weld direction, and top view in three orthogonal directions, and extracts surface texture using a two-dimensional convolutional network. The two features are adaptively weighted and fused by a cross-path attention module.

4. The method for micron-level classification and recognition of welding defects in railway sleeper trusses based on an improved convolutional neural network according to claim 1, characterized in that, The physical-guided residual branch uses the numerical solution of the heat conduction equation in the defect-free state as the baseline and makes a residual connection with the intermediate feature map of the network, so that the network only learns the thermal resistance deviation introduced by the defect. The branch uses depthwise separable convolution stacks to build an encoder. The shallow layer captures the thermal uniformity distribution with a large receptive field, and the deep layer extracts the micron-level thermal resistance mutation at the crack tip with a small convolution kernel.

5. The method for micron-level classification and recognition of welding defects in railway sleeper trusses based on an improved convolutional neural network according to claim 1, characterized in that, The weights of the adaptive gated fusion unit are jointly determined by modal confidence and defect type prior: the geometric branch confidence is based on the local density of the point cloud and the scanning signal-to-noise ratio estimation, and the thermal branch confidence is based on the thermal image signal-to-noise ratio and the temperature contrast within the thermal relaxation window estimation. For weld bead defects, gating tends to favor the geometric branch; for incomplete weld defects, gating tends to favor the thermal branch; and for crack defects, the weights of the two tend to be balanced.

6. The method for micron-level classification and recognition of welding defects in railway sleeper trusses based on an improved convolutional neural network according to claim 1, characterized in that, The voxel size of the voxel downsampling is 50μm, the spatial resolution of the laser 3D scanner is ≤50μm, the line scanning frequency is 10kHz, and the scanning time of a single truss is ≤300ms; the sampling rate of the infrared thermal imager is 100fps, and the thermal relaxation window sequence consists of 30 frames.

7. The method for micron-level classification and recognition of welding defects in railway sleeper trusses based on an improved convolutional neural network according to claim 1, characterized in that, The network training adopts a joint strategy of focus loss and online hard example mining. The focus loss γ is set to 2. The online hard example mining prioritizes sampling boundary samples whose confidence scores for both geometric and thermal branches are lower than a set threshold to enter the next round of training.

8. The method for micron-level classification and recognition of welding defects in railway sleeper trusses based on an improved convolutional neural network according to claim 1, characterized in that, The diversion and isolation process includes: when the classification result is qualified and the confidence level is ≥0.95, the sample is transported to the next process; when the classification result is unqualified or the confidence level is lower than 0.95, the sample is pushed into the corresponding defect isolation area by the pneumatic diversion mechanism; when the confidence level is in the range of 0.85–0.95, the sample is marked as pending re-inspection and transported to the manual re-inspection station.

9. A micrometer-level classification and recognition system for welding defects in railway sleeper trusses based on an improved convolutional neural network, characterized in that, include: The dual-modal acquisition unit includes a laser 3D scanner and an infrared thermal imager mounted in a coaxial optical path, which are used to simultaneously acquire point clouds of the weld area and infrared sequences of the post-weld thermal relaxation window. The preprocessing unit is used to perform voxel downsampling, adaptive sliding window median filtering and normal vector curvature estimation on point clouds, and to perform heat conduction inversion and baseline residual calculation on thermal image sequences. The geometric-thermal dual-flow collaborative network inference unit includes a sparse-dense dual-path geometric branch, a physically guided residual thermal branch, and an adaptive gated fusion module, which is used to output defect categories and micron-level localization heatmaps. The diversion control unit is used to control the allocation of truss conveying paths and defect isolation zones based on classification results and confidence thresholds. The report feedback unit is used to generate defect statistics reports and feed them back to the welding station.

10. A micrometer-level classification and recognition system for welding defects in railway sleeper trusses based on an improved convolutional neural network according to claim 9, characterized in that, The geometric-thermal dual-flow collaborative network inference unit is deployed on the edge computing unit and runs in the TensorRT quantized version, with a single truss detection cycle of ≤800ms; the dual-modal acquisition unit and the diversion control unit are linked by PLC signals, and the photoelectric sensor triggers the positioning baffle to stop the truss at the center of the calibration field of view, with a positioning accuracy of ≤±2mm along the weld direction and ≤±1mm in the vertical direction.