A multi-source heterogeneous railway tunnel disease detection method based on feature decoupling
By employing feature decoupling and loss function optimization, the problems of feature conflict and data misalignment in multimodal collaborative detection were resolved, thereby improving the accuracy and consistency of railway tunnel defect detection.
Patent Information
- Application Number
- CN202611171567.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-04
- Publication Date
- 2026-11-20
AI Technical Summary
Existing multimodal collaborative detection schemes suffer from feature space conflicts in railway tunnel defect detection, which weakens key defect features, resulting in low detection accuracy. Furthermore, the misalignment of multi-source heterogeneous data leads to a high false alarm rate.
By using feature decoupling, shared and unique features of radar, visible light and infrared images are extracted respectively, and weighted fusion is performed using heterogeneity parameters. The network is optimized by combining cross-modal consistency alignment loss and feature decoupling orthogonal loss to ensure that features are close to each other and independent in the feature space.
It improved the overall detection rate of complex surface defects in tunnels under complex environments, reduced the false alarm rate of defects, and improved the accuracy and consistency of detection.
Smart Images

Figure CN123142143A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of intelligent transportation and non-destructive testing technology, specifically a method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling. Background Technology
[0002] With the rapid development of railway transportation, the safe maintenance of tunnel structures has become increasingly important. Traditional tunnel defect detection methods mostly rely on single sensors, which suffer from limited sensing range and high false negative rates. In recent years, multi-source detection technology combining ground-penetrating radar, visible light cameras, and infrared thermal imagers has gradually become mainstream, aiming to comprehensively acquire the deep surface condition of tunnels.
[0003] However, in practical applications, existing multimodal collaborative detection schemes have significant technical shortcomings. Radar signals primarily characterize changes in underground structural depth, visible light images reflect surface texture details, and infrared images capture temperature and moisture anomalies. These three types of data exhibit strong heterogeneity in their generation mechanisms and underlying data distribution. Existing processing methods typically force data aggregation by directly splicing feature channels or adding pixels after feature extraction. This fusion approach ignores the statistical distribution differences between different modalities, easily leading to severe feature space conflicts within the model. This causes features representing common disease areas to intertwine and interfere with the features of independent attributes from each sensor. In this mixed state, key disease features of a specific modality can be masked or weakened by the strong representational data of other modalities, making it difficult for the network model to capture complex composite diseases such as minute voids detected by radar or hidden water seepage detected by infrared, resulting in a low overall detection rate.
[0004] Furthermore, due to differences in installation location and sampling frequency among sensors during the dynamic operation of the inspection train, the multi-source data collected inherently exhibits temporal and spatial misalignment. If a strict spatiotemporal synchronization benchmark is not established during the front-end data acquisition stage, and misaligned heterogeneous data is forcibly sent into the network for processing, it will further exacerbate feature misalignment and boundary blurring during the fusion stage, leading to a high false alarm rate for defects in the target detection network. Therefore, how to eliminate feature conflicts caused by the direct fusion of multi-source heterogeneous data, and achieve feature stripping and synergy based on spatiotemporal alignment, has become a pressing technical challenge in this field. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a multi-source heterogeneous railway tunnel defect detection method based on feature decoupling. This method solves the problem that existing tunnel defect detection methods are prone to feature space conflicts when directly fusing multi-source heterogeneous data such as radar, visible light, and infrared, which weakens the key defect features of specific modes and results in low accuracy of multi-modal collaborative detection.
[0006] To achieve the above objectives, the present invention provides the following technical solution:
[0007] This invention provides a method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling, comprising the following steps:
[0008] Acquire temporally and spatially synchronized radar, visible light, and infrared images of railway tunnels;
[0009] Feature extraction is performed on the radar image, the visible light image, and the infrared image respectively to obtain radar features, visible light features, and infrared features of a unified dimension;
[0010] Calculate the statistical distribution differences of the radar features, visible light features, and infrared features in the feature space to generate heterogeneity parameters;
[0011] Using the heterogeneity parameter, the radar features are decoupled into radar shared features and radar-specific features, the visible light features are decoupled into visible light shared features and visible light-specific features, and the infrared features are decoupled into infrared shared features and infrared-specific features.
[0012] The radar shared features, the visible light shared features, the infrared shared features, the radar-specific features, the visible light-specific features, and the infrared-specific features are spliced and fused to obtain fused detection features;
[0013] The fused detection features are input into the target detection network to output the detection results of railway tunnel defects.
[0014] As a further supplement to the above technical solution, in the process of acquiring multi-source image data, the mileage markers and corresponding timestamps triggered by displacement during the movement of the track inspection vehicle are acquired.
[0015] Radar images are generated by extracting a fixed-length window from continuous radar signals based on mileage markers.
[0016] Simultaneously, visible light image frames and infrared image frames whose time difference with the timestamp is within the trigger time difference constraint range are selected as visible light images and infrared images at the corresponding positions, respectively, to achieve spatial and temporal synchronization of multi-source heterogeneous data.
[0017] In the feature extraction stage, a hybrid feature extraction network containing convolutional neural networks and transformer encoders is used to process radar images, extract local profile texture features and global features, and obtain radar features after channel mapping processing.
[0018] Features of visible light and infrared images were extracted using a visual transformer network based on a sliding window self-attention mechanism. These visual features were then converted into visible light and infrared features of a unified dimension after multi-scale feature fusion and channel mapping.
[0019] Regarding the feature decoupling mechanism, firstly, global average pooling is performed on radar features, visible light features and infrared features respectively, and each pooled feature is converted into its corresponding normalized probability distribution data.
[0020] Calculate the pairwise local divergence between each normalized probability distribution data, and calculate the mean of each local divergence as a comprehensive deviation measure.
[0021] The overall deviation metric is then input into the multilayer perceptron network and mapped to a continuous numerical range through an activation function to generate a heterogeneity parameter. This heterogeneity parameter reflects the degree of distribution difference of the multimodal signal under the current sampling cross-section.
[0022] After obtaining the heterogeneity parameters, the radar features, visible light features, and infrared features are input into the corresponding shared feature mapping network and unique feature mapping network, respectively. The mapping network is composed of a cascade of 1×1 convolutional layers, batch normalization layers, and ReLU nonlinear activation functions.
[0023] The system uses the heterogeneity parameter as the first allocation ratio to perform weighted operations on the outputs of each shared feature mapping network to generate shared features for each modality.
[0024] Using the difference between the value 1 and the heterogeneity parameter as the second allocation ratio, the outputs of each unique feature mapping network are weighted to generate unique features for each modality.
[0025] This method employs an end-to-end joint training approach to optimize the network model. The joint loss function used includes cross-modal consistency alignment loss, feature decoupling orthogonal loss, and target detection loss. Specifically, the cross-modal consistency alignment loss is constructed by calculating the squared mean of the pairwise Euclidean distances between radar shared features, visible light shared features, and infrared shared features, and is used to constrain the shared features to be closer to each other in the feature space.
[0026] The feature decoupling orthogonal loss is constructed by converting the shared features and unique features of each modality into a 2D matrix with spatial dimension, and then calculating the sum of the squares of the Frobenius norm of the inner product of the two matrices to ensure the mutual independence between the shared features and unique features.
[0027] The railway tunnel defect detection results output by the above method specifically cover the coordinate range and specific defect category determination results of one or more typical defect states, including lining cracks, water leakage, lining spalling or falling off, voids behind the lining or internal hollowing, and insufficient lining thickness.
[0028] This invention constructs a dynamic feature decoupling framework, which changes the architectural logic of direct aggregation of multimodal features in existing technologies. When processing three types of signals with different mechanisms—radar representing underground depth structure, visible light representing surface texture, and infrared representing temperature anomalies—this invention uses a heterogeneity parameter as an adaptive weight to explicitly decompose the hybrid features into shared features representing common area information and unique features representing the independent attributes of each sensor.
[0029] By combining consistency alignment loss and orthogonality loss as joint constraints, common features among modalities are enhanced, while the unique disease features of each modality are not canceled out during the fusion stage. This mechanism eliminates feature interference caused by direct splicing of heterogeneous data and improves the overall detection rate of the disease detection network for deep-surface complex diseases in complex environments.
[0030] This invention provides a method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling. It has the following beneficial effects:
[0031] 1. This invention generates a heterogeneity parameter by calculating the statistical distribution differences of radar features, visible light features, and infrared features in the feature space. The heterogeneity parameter is then used as a weight allocation ratio to dynamically decouple each modal feature into shared features and unique features. This avoids feature space conflicts that occur when multi-source heterogeneous data are directly spliced together, allowing information representing common regions to be isolated from information representing independent sensor attributes. This, in turn, improves the comprehensive detection rate of complex deep surface defects in tunnels under complex environments.
[0032] 2. This invention introduces a joint loss function that includes cross-modal consistency alignment loss and feature decoupling orthogonal loss to perform end-to-end optimization of the network model. This ensures that the shared features of radar, visible light and infrared remain close to each other in the feature space, while constraining the spatial independence between shared features and unique features under each modality. This strictly guarantees the output quality of the dynamic feature decoupling mechanism from the model training level, thereby eliminating the problems of information redundancy and feature overlap in the subsequent splicing and fusion stage.
[0033] 3. This invention extracts fixed-length radar signals by acquiring mileage markers triggered by displacement of the track inspection vehicle, and selects synchronized visible light image frames and infrared image frames based on the time difference constraint range of the corresponding timestamps. This eliminates coordinate misalignment caused by positional differences and inconsistent sampling frequencies of different types of sensors during dynamic acquisition. Therefore, it provides strict spatiotemporal aligned underlying data for subsequent multimodal feature decoupling and fusion, thereby reducing the false alarm rate of the target detection network caused by misaligned input data. Attached Figure Description
[0034] Figure 1 This is a flowchart of a method provided in an embodiment of the present invention.
[0035] Figure 2 This is a flowchart of spatiotemporal synchronization acquisition and preprocessing provided in an embodiment of the present invention.
[0036] Figure 3 This is a schematic diagram of the structure of the heterogeneous sensing modal feature encoding and extraction network provided in an embodiment of the present invention.
[0037] Figure 4 The flowchart shows the logic of the cross-modal heterogeneous quantization and adaptive parameter generation module provided in this embodiment of the invention.
[0038] Figure 5 This is a schematic diagram of the logical structure of the feature space decoupling module based on heterogeneity provided in an embodiment of the present invention.
[0039] Figure 6 This is a flowchart of end-to-end model training and joint loss function construction provided in an embodiment of the present invention.
[0040] Figure 7 This is a schematic diagram of the logical structure of the feature fusion and disease target detection module provided in an embodiment of the present invention. Detailed Implementation
[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0042] The service environment of railway tunnels is characterized by scarce natural light, moisture interference, and dense dust, making it difficult for a single sensor's imaging mechanism to fully cover the detection needs under such complex conditions. To address the inherent blind spots of single sensors in defect detection, this embodiment introduces ground-penetrating radar, a visible light industrial camera, and an infrared thermal imager for multi-source collaborative sensing.
[0043] Based on the aforementioned multi-source sensing architecture, the differences in the working principles of the three sensors lead to significant modal heterogeneity in the acquired data in terms of data structure, spatial distribution, and feature semantics. Conventional multimodal fusion methods are prone to causing disordered feature spatial distribution and interference from redundant information. Therefore, this invention provides a multi-source heterogeneous railway tunnel defect detection method based on feature decoupling to eliminate redundancy and conflicts in heterogeneous data at the feature level.
[0044] See attached document Figure 1 The multi-source heterogeneous railway tunnel defect detection method based on feature decoupling provided in this invention is composed of logical modules such as data acquisition, feature extraction, distribution difference assessment, feature decoupling, and fusion detection connected in series, and specifically includes the following steps:
[0045] S100: Acquires time- and space-synchronized radar, visible light, and infrared images of railway tunnels.
[0046] Due to differences in sampling references, the data collected directly by sensors of different mechanisms mounted on the same track inspection vehicle are misaligned in time and space.
[0047] As a preferred approach, an industrial control computer uniformly receives the pulse signals triggered by the movement of the detection vehicle, thereby generating a unique mileage identifier and timestamp. The system uses the mileage identifier to extract continuous radar signals into a fixed-length window, and uses this timestamp as a time reference to filter visible light and infrared image frames within the trigger time difference constraint range, thus establishing strict alignment of multimodal data in terms of spatial location and acquisition time.
[0048] Before inputting the model, all images are uniformly adjusted to matrix data of a preset resolution size (e.g., 640×640 pixels) based on preprocessing logic to meet the receptive field and tensor dimension requirements of the subsequent feature encoding network.
[0049] S200: Feature extraction is performed on radar images, visible light images, and infrared images respectively to obtain radar features, visible light features, and infrared features of a unified dimension.
[0050] Sensing modal heterogeneity manifests at the data level as inconsistency in input dimensions, requiring the model to match a specific network structure based on the properties of the input signal.
[0051] To address the characteristic of radar images containing deep structural reflection signals, a hybrid feature extraction network comprising a convolutional neural network and a transformer encoder is employed to process radar images.
[0052] In this embodiment, the hybrid feature extraction network is specifically structured as a series of four downsampling convolutional modules and two multi-head self-attention encoding modules. The data flow sequentially passes through the texture extraction of the local receptive field and the context capture of the global sequence to obtain radar features with depth perception capabilities.
[0053] To address the surface texture characteristics of visible light images and the temperature field characteristics of infrared images, a visual transformer network based on a sliding window self-attention mechanism is used for processing.
[0054] For the internal forward propagation mechanism of convolutional neural networks and visual transformer networks, those skilled in the art can use existing image feature extraction algorithms.
[0055] To eliminate the differences in feature dimensions caused by different network structures, a channel mapping module is set at the end of each feature extraction network to forcibly project the multi-scale features extracted from different modalities onto a unified feature space of preset dimensions, thus establishing the dimensional basis for subsequent statistical distribution measurements. In this embodiment, a 256-dimensional feature vector is preferred.
[0056] S300: Calculates the statistical distribution differences of radar features, visible light features, and infrared features in the feature space, and generates heterogeneity parameters.
[0057] Different imaging mechanisms result in different probability distributions for each feature within a unified dimensional space. Based on the divergence metric principle in probability statistics, this step transforms the spatial feature map into a one-dimensional sequence through pooling operations, and then uses a normalization function to transform the one-dimensional sequence into probability distribution data.
[0058] To ensure the integrity of the algorithm's operation, a preset small constant is introduced during normalization calculation to avoid the denominator approaching zero due to eigenvalue extrema, which could lead to numerical overflow anomalies.
[0059] The calculation model uses a divergence algorithm to evaluate the degree of deviation between the above probability distribution data pairwise, and calculates a comprehensive deviation metric based on the mean of the deviations of each factor.
[0060] The overall deviation metric is processed by the forward operation of the multilayer perceptron network and mapped by the activation function to output a heterogeneity parameter that is within a continuous numerical range.
[0061] This heterogeneity parameter is used to quantitatively characterize the degree of heterogeneity among the sensor information in the current sample group.
[0062] S400: Using heterogeneity parameters, radar features are decoupled into radar-shared features and radar-specific features, visible light features are decoupled into visible light-shared features and visible light-specific features, and infrared features are decoupled into infrared-shared features and infrared-specific features.
[0063] As a core design feature of this invention, the heterogeneity parameter, a dynamically allocated ratio generated by network adaptive learning, determines the weight distribution for feature information splitting. The acquired modal features are then input into the corresponding shared feature mapping network and the unique feature mapping network, respectively.
[0064] The system uses the heterogeneity parameter itself as the first allocation ratio to perform weighted operations on the outputs of each shared feature mapping network, and extracts the semantic representations shared across modalities among multi-source data.
[0065] The system uses the difference between the numerical value 1 and the heterogeneity parameter as the second allocation ratio to perform weighted calculations on the outputs of each unique feature mapping network, preserving the unique advantages of specific sensors in complex environments. In this way, redundant and overlapping information and independent advantageous information are completely separated at the deep semantic level.
[0066] S500: It stitches and fuses radar shared features, visible light shared features, infrared shared features, radar-specific features, visible light-specific features, and infrared-specific features to obtain fused detection features.
[0067] After decoupling and separation, the six feature units respectively carry cross-modal consistency information and independent supplementary information from each sensor at the channel level.
[0068] The above features are concatenated and stitched together without loss along the channel dimension to form a comprehensive feature vector that removes heterogeneous conflict noise and is rich in high-dimensional semantics, i.e., fused detection features.
[0069] During the model training phase, a three-modal synchronous sample group with pre-labeled real disease bounding boxes and corresponding categories is used as training data. A joint optimization objective is constructed based on cross-modal consistency alignment loss, feature decoupling orthogonal loss, and target detection loss.
[0070] Alignment loss and orthogonality loss are used as penalty terms in backpropagation to ensure that the network parameters strictly maintain the independence between shared features and unique features during the update process from two dimensions: distance constraint and inner product constraint.
[0071] S600: Inputs the fused detection features into the target detection network and outputs the detection results of railway tunnel defects.
[0072] The object detection network uses fused detection features as the final input to the detection head to perform bounding box regression and category classification tasks.
[0073] The network ultimately outputs the coordinate range of the preset disease target and the specific disease category determination result.
[0074] In this embodiment, the detection results specifically cover five typical defects: lining cracks, water leakage, lining spalling or falling off, voids behind the lining or internal hollowing, and insufficient lining thickness. The above multi-dimensional prediction output results can be directly used to support the subsequent operation and maintenance inspection of the tunnel structure.
[0075] See attached document Figure 2 In real-world environments, ground-penetrating radar, visible light industrial cameras, and infrared thermal imagers differ in their sampling frequencies and imaging mechanisms.
[0076] These underlying hardware differences can cause misalignment in the spatial coordinates and acquisition time points of the data acquired by different sensors. Directly performing deep feature extraction and fusion on this spatiotemporally misaligned data will introduce spatial alignment noise, disrupting the geometric consistency of the diseased targets.
[0077] Based on the above causal relationship, this embodiment establishes a strict alignment mechanism for multimodal data through physical-level constraints and temporal-level matching before entering the feature encoding of the deep learning network.
[0078] Specifically, the process of acquiring temporally and spatially synchronized radar images, visible light images, and infrared images of railway tunnels includes the following sub-steps:
[0079] S110: Construct an acquisition platform based on a rigid support to establish the initial spatial coordinate alignment relationship of multi-source sensors.
[0080] In this embodiment, a rigid inspection bracket is constructed on the track inspection vehicle, and the ground penetrating radar, visible light industrial camera and infrared thermal imager are uniformly integrated and installed on the rigid inspection bracket.
[0081] To overcome the positional deviation of different sensor field of view angles, a multi-source co-directional calibration strategy with a fixed relative coordinate system is adopted, so that the detection radiation area of the ground penetrating radar, the optical field of view of the visible light industrial camera, and the optical field of view of the infrared thermal imager cover the same detection area of the tunnel lining surface.
[0082] Based on this fixed integrated structure and the corresponding sensor extrinsic calibration matrix, parallax interference caused by differences in installation position is eliminated, and initial hardware alignment of the three sensing modes in the spatial coordinate system is achieved.
[0083] For the joint calibration of intrinsic and extrinsic parameters of a camera with overlapping fields of view from multiple sensors, those skilled in the art can use existing mature technologies such as the Zhang Zhengyou calibration method.
[0084] S120: Based on the displacement triggering mechanism, generate a globally unified timestamp and mileage identifier.
[0085] Ground-penetrating radar, visible light industrial cameras, and infrared thermal imagers are all centrally controlled by an industrial control computer mounted on a track inspection vehicle. As the track inspection vehicle moves along the railway line, the onboard encoder senses the rotational displacement of the wheels in real time.
[0086] As a preferred method, the on-board encoder sends a hardware trigger pulse to the industrial control computer every time the track inspection vehicle moves a fixed distance of 0.1m.
[0087] It should be noted that the selection of the 0.1m displacement threshold is based on the combined constraints of the minimum characteristic size of common micro-cracks in tunnel lining and the Nyquist sampling theorem for sensors.
[0088] Upon receiving the hardware trigger pulse, the industrial control computer generates and records a globally unified timestamp and the corresponding current mileage identifier. This displacement triggering mechanism ensures that subsequent data acquisition operations have a precise reference unaffected by fluctuations in the speed of the inspection vehicle.
[0089] S130: Based on timestamps and mileage identifiers, perform multimodal data window capture and synchronous filtering.
[0090] The raw signal acquired by the ground penetrating radar is a one-dimensional electromagnetic wave profile data continuously recorded along the direction of travel of the detection vehicle, namely the A-Scan echo signal.
[0091] The system uses the recorded mileage marker as a reference position and extracts a continuous one-dimensional radar signal of a preset length along that position.
[0092] Subsequently, the system spatially arrays and stitches the continuously captured one-dimensional signals according to the time sequence of acquisition, and generates a radar profile image with two-dimensional spatial structure information, namely B-Scan image, through a mapping algorithm from waveform amplitude to pixel gray value.
[0093] On the other hand, since the frame rate and exposure time of the visual camera and the infrared camera operate independently according to their respective hardware clocks, the system uses the trigger timestamp corresponding to the mileage marker as the central time point and performs a traversal search in the continuously recorded video stream. The program selects visible light image frames and infrared image frames with an absolute time difference of no more than 20ms from the trigger timestamp, and uses them as visible light images and infrared images that match the current radar image space, respectively.
[0094] Image frames exceeding the 20ms time difference threshold constraint are directly discarded.
[0095] The 20ms time difference constraint threshold is calculated by back-calculating based on the maximum operating speed of the track inspection vehicle and the maximum allowable pixel-level misalignment error.
[0096] This constraint strategy eliminates dynamic motion blur and inter-frame misalignment errors caused by the operation of the detection vehicle.
[0097] S140: Construct a 3-modal synchronous sample set and perform spatial dimension homogenization preprocessing.
[0098] After the displacement triggering and timing matching described above, a radar image, a visible light image, and an infrared image that are associated with the same mileage marker together constitute a set of 3-modal synchronization samples with the same scene semantics.
[0099] To address the issue of varying imaging resolutions among different hardware sensors, the system performs a uniform size adjustment on each image before inputting the aforementioned sample group into the feature extraction network. Specifically, an image interpolation algorithm is used to uniformly scale the spatial resolution of radar images, visible light images, and infrared images to 640×640 pixels.
[0100] This dimension normalization process satisfies the standardization requirements of subsequent deep learning network models for the receptive field of the input tensor, thereby ensuring the spatial scale correspondence of each modality feature when mapping the network channel dimension.
[0101] For basic image resampling algorithms such as bilinear interpolation used in image spatial resolution adjustment, those skilled in the art can implement them using existing digital image processing techniques.
[0102] The preprocessed 3-modal synchronous sample set will be output to the next-level feature encoding network in the form of a standard tensor matrix.
[0103] See attached document Figure 3 The preprocessed three-modal synchronous sample group has achieved spatial scale alignment. Due to the fundamental differences in the working mechanisms of ground-penetrating radar, visible light, and infrared sensors, the semantic features contained within their data exhibit significant heterogeneity.
[0104] Based on the differences in data characteristics mentioned above, this embodiment employs targeted independent coding branches for matching feature extraction. The process of extracting features from radar images, visible light images, and infrared images respectively to obtain radar features, visible light features, and infrared features of a unified dimension specifically includes the following sub-steps:
[0105] S210: Extraction of local profile texture features and global features from radar images based on a hybrid feature extraction network.
[0106] Ground-penetrating radar profiles essentially record the reflected echo signals of electromagnetic waves within the tunnel lining medium. These signals not only exhibit hyperbolic textures in local space but also show a sequential dependence along the depth direction globally.
[0107] Based on this characteristic, a hybrid feature extraction network containing convolutional neural networks and transformer encoders is used to process radar images.
[0108] Specifically, the front end of this hybrid network is configured as a convolutional neural network containing four cascaded residual blocks. The input radar image is processed by the convolutional neural network through layer-by-layer downsampling. During this process, the spatial resolution of the feature map is gradually reduced to 1 / 16th of its original size, while the channel dimension is expanded accordingly, thereby generating a two-dimensional feature map rich in local profile texture features.
[0109] To accommodate the input requirements of the subsequent self-attention mechanism for sequence data, the system compresses the spatial dimension of the two-dimensional feature map into a one-dimensional sequence through a spatial flattening operation, and then sends it into the back-end transformer encoder.
[0110] The transformer encoder consists of two stacked multi-head self-attention layers, which are used to calculate the contextual relationships of the global receptive field of a one-dimensional sequence, thereby extracting global features that reflect the deep structure.
[0111] S220: Performs multi-level feature extraction of visible light and infrared images based on a visual transformer network.
[0112] Unlike ground-penetrating radar, which has deep penetration characteristics, visible light images mainly reflect the two-dimensional optical texture of the tunnel lining surface, while infrared images mainly reflect the thermal radiation temperature field of the lining surface.
[0113] For these two modalities with typical two-dimensional grid distribution characteristics, a visual transformer network based on a sliding window self-attention mechanism is used to extract features from visible light images and infrared images, respectively. As a preferred network structure configuration, the input image is first divided into non-overlapping image blocks of size 4×4 pixels through a block embedding layer.
[0114] Since infrared images are single-channel grayscale matrices and visible light images are three-channel red-green-blue matrices, the network retains standard three-channel weights for the visible light branch at the data input interface, while modifying the interface channel parameters to single-channel for the infrared branch to match the grayscale data structure.
[0115] After being projected through the corresponding embedding layer, the image is sequentially input into a visual transformer network containing four stages.
[0116] In this embodiment, the number of attention modules configured in the above four stages are 2, 2, 6 and 2 respectively.
[0117] Each stage extracts hierarchical feature data under different receptive fields by alternately performing window multi-head self-attention calculation and moving window multi-head self-attention calculation. The model concatenates the multi-scale hierarchical features output from the above four stages to achieve multi-scale feature fusion and obtain surface features that take into account both local disease details and global background structure.
[0118] S230: Perform channel mapping processing to generate feature vectors of uniform dimension.
[0119] To meet the requirements of subsequent measurement of statistical distribution differences and matrix calculation for feature space decoupling, the inconsistency in size of the high-dimensional features extracted by the three independent networks must be eliminated.
[0120] In this embodiment, each independent feature extraction network is connected to a channel mapping module consisting of a 1×1 convolutional layer and an activation function at its end.
[0121] This channel mapping module serves as a dimension-forced transformation interface. It uses a 1×1 convolution kernel to linearly scale the channel dimension of the input tensor without changing the spatial receptive field. It forces the radar global features output by the hybrid feature extraction network, as well as the visible light surface features and infrared surface features output by the visual transformer network, onto a unified feature space of a preset dimension.
[0122] After this channel mapping process, the final output channels all have 256-dimensional radar features, visible light features, and infrared features. This dimension normalization operation provides an equivalent algebraic basis for the subsequent adaptive calculation of cross-modal feature parameters.
[0123] For the specific tensor dot product operation process of the convolutional forward propagation mechanism inside the residual block in the above steps, and the moving window multi-head self-attention mechanism in the visual transformer network, those skilled in the art can use existing deep learning basic algorithm architectures to implement it.
[0124] See attached document Figure 4 After the forward propagation operation of the feature extraction network, radar features, visible light features, and infrared features have been forcibly projected into a preset unified dimensional space.
[0125] Due to the differences in imaging mechanisms among different sensors, these characterization signals exhibit statistical asymmetry and directional deviation in the same multidimensional feature space.
[0126] To guide subsequent network isolation and eliminate fusion conflicts caused by underlying heterogeneity, this embodiment constructs a heterogeneity evaluation branch to quantitatively calculate distribution differences.
[0127] The process of calculating the statistical distribution differences of radar features, visible light features, and infrared features in the feature space and generating heterogeneity parameters includes the following sub-steps:
[0128] S310: Based on global feature pooling and normalization functions, spatial feature maps are transformed into channel-level probability distribution sequences.
[0129] The high-dimensional features extracted by each coding branch contain complex spatial pixel layouts. To eliminate local computational interference caused by pixel fluctuations in spatial location, the system performs global average pooling operations on the preprocessed radar features, visible light features, and infrared features respectively.
[0130] This operation, while preserving deep semantic associations, calculates the mean of the numerical matrix in the spatial dimension, thereby reducing and compressing each feature map into a one-dimensional feature sequence that retains only the channel-level response.
[0131] To meet the stringent requirements of probability distribution data in subsequent information entropy calculations, the system further utilizes a normalized exponential function to process the aforementioned one-dimensional feature sequence, based on probability and statistics theory. The specific mathematical transformation formula is as follows:
[0132] ;
[0133] in, The transformed channel-level probability distribution sequence represents the sequence at the th... The probability distribution values on each channel; Represents the one-dimensional feature sequence at the th The original feature activation values on each channel; Indicates the total number of feature channels; This represents the maximum value of the activation values of all channels in the one-dimensional feature sequence; Represented by natural constant An exponential function with base 0.
[0134] As part of the algorithm's logical completeness, the system uniformly extracts and subtracts the maximum channel value before calculating the exponential function. The purpose of this operation is to prevent overflow exceptions in the floating-point exponentiation operations of the underlying processor caused by excessively large feature extrema output by the deep network.
[0135] After the above sequence transformation, the activation values of each feature channel are transformed into probability distribution data that are strictly within the continuous interval of 0 to 1 and whose sum is equal to one.
[0136] The system's final outputs are the radar distribution probability, visible light distribution probability, and infrared distribution probability, which characterize the intrinsic semantic structure of the original multi-source sensing signal.
[0137] S320: Calculates the comprehensive deviation metric between multi-source sensor data based on the principle of relative entropy.
[0138] After obtaining the channel-level probability distribution data for each modality, the model uses the Kullback-Leibler divergence algorithm to evaluate the asymmetry between the above distribution patterns based on the general mathematical principles of statistical distribution measurement.
[0139] This divergence value intuitively reflects the degree of mutual deviation between the disease characteristics captured by different sensor modes in the deep network space.
[0140] Since the multi-source sensing architecture involves three independent sensing modalities, the system sequentially calculates the local divergence between radar and visible light, radar and infrared, and the probability distributions of visible light and infrared, respectively. The mathematical formula for calculating the local divergence is as follows:
[0141] ;
[0142] in, Represents the probability distribution of the first mode. Relative to the second mode probability distribution The local divergence value; This represents the total number of channels in the unified feature space, which, combined with the aforementioned network structure configuration, corresponds to a value of 256. and These represent the two evaluation modes at the 1st... Normalized response values on each feature channel; A small constant constraint term is used to prevent singularity in algebraic operations and numerical overflow.
[0143] If the probability distribution approaches the limit zero, the independent variable of the logarithmic function becomes meaningless, leading to gradient explosion. Therefore, as a preferred approach, its value is set to 10. -7 .
[0144] After obtaining the local divergence values of the pairwise cross-combinations of the above three modalities, to avoid the biased judgment caused by relying solely on single-modal comparisons, the system calculates the comprehensive deviation metric of the overall perception network based on equally weighted logic. The specific calculation logic is as follows:
[0145] ;
[0146] in, To calculate the overall deviation metric value; The radar distribution probability; The probability distribution of visible light; This represents the infrared probability distribution.
[0147] This metric, as a scalar feature that integrates multi-dimensional differences, objectively reflects the global heterogeneous state of the current input synchronous sample group under the interference of a complex tunnel environment.
[0148] S330: Generates adaptive heterogeneity parameters for subsequent feature splitting based on a multilayer perceptron network.
[0149] The aforementioned comprehensive deviation metric is an absolute scalar without clear numerical boundaries, and cannot be directly used as a network weight matrix for the proportional cutting and recombination of deep features. Based on this data application gap, the system introduces a multilayer perceptron network composed of fully connected layers as a learnable parameter mapping module, transforming the scalar metric into an adaptive ratio with channel feature allocation capabilities.
[0150] In this embodiment, the multilayer perceptron network is explicitly configured as a 3-layer cascaded structure. Its input layer receives the comprehensive deviation metric value input from a single node;
[0151] The subsequent data stream is passed sequentially to the first hidden layer, which contains 16 neurons, and the second hidden layer, which contains 8 neurons.
[0152] The above hidden layer is configured with a linear rectified activation function to extract the nonlinear correlation between heterogeneous deviation and feature cutting ratio.
[0153] The end of the multilayer perceptron network is connected to the output layer containing only a single neuron node, and the final nonlinear mapping is performed using a sigmoid-type continuous activation function.
[0154] This mapping process smoothly constrains the absolute output of the network to a continuous numerical range of 0 to 1, thereby generating the final heterogeneity parameter.
[0155] The heterogeneity parameter, as a dynamic gating weight generated by the features of multimodal raw data, can adaptively adjust the information splitting ratio in the subsequent feature decoupling stage when individual sensors fail or noise pollution occurs due to complex environments such as water vapor and dust.
[0156] The aforementioned measurement and generation mechanisms establish technical support for everything from statistical difference assessment to deep network feature stripping.
[0157] For the interlayer weight backpropagation and fundamental matrix multiplication mechanism inside the multilayer perceptron, those skilled in the art can use existing feedforward neural network basic algorithms to implement it.
[0158] See attached document Figure 5 After the above feature space mapping and evaluation processing, the multi-source heterogeneous sensing data has been projected onto a feature space of a unified dimension, and a heterogeneity parameter for quantitatively characterizing global distribution differences has been generated.
[0159] If the above-mentioned multi-source high-dimensional features are directly spliced and fused, the overlapping semantic information between the modalities and the conflicting environmental noise will be disorderly superimposed in the data channel.
[0160] This feature coupling phenomenon severely interferes with the subsequent extraction of key semantics of tunnel defects by the target detection network.
[0161] Based on this causal relationship, this embodiment introduces a feature decoupling mechanism before entering the fusion network. The system uses the generated heterogeneity parameter as a dynamic routing weight to deconstruct and separate the mixed information extracted from each modality into a cross-modal consistent shared representation and a unique representation reflecting the detection advantages of each sensor.
[0162] The process of decoupling radar features, visible light features, and infrared features into shared features and unique features using heterogeneity parameters includes the following sub-steps:
[0163] S410: Performs cross-channel semantic structure reorganization based on an independent feature mapping network.
[0164] The radar features, visible light features, and infrared features output from the front-end network are input into the corresponding shared feature mapping network and unique feature mapping network, respectively.
[0165] In this embodiment, the bottom layer of the above-mentioned mapping network is explicitly configured as a processing module consisting of a cascaded convolutional layer of size 1×1, a batch normalization layer, and a ReLU (linear rectified) nonlinear activation function.
[0166] The introduction of the ReLU activation function aims to provide nonlinear mapping capabilities for the originally linear convolution operation, thereby enabling the network to fit the complex nonlinear feature boundaries of tunnel defects.
[0167] Since the channel dimensions of each modality feature have undergone forced uniformization in the early stage, the 1×1 convolutional layer can aggregate feature elements across channels and perform linear combination without destroying the existing spatial receptive field and pixel arrangement.
[0168] Through this process, the original hybrid feature matrices of each modality are initially split and mapped into two different semantic subspaces: a shared semantic space representing the common basic structure of tunnel defects, and a unique semantic space representing specific perceptual attributes.
[0169] S420: Adaptive soft-weighted operation for feature splitting using heterogeneity parameters.
[0170] The effectiveness of multi-source sensor data in complex environments exhibits dynamic fluctuations. Based on the initial splitting characteristics of the aforementioned mapping network output, the system introduces a heterogeneity parameter generated from a comprehensive deviation metric, which serves as a dynamic control factor for feature energy allocation.
[0171] In low-level algebraic operations, due to the heterogeneity parameter The sequence is a channel-level scalar sequence, while the feature matrix output by the feature network is a 4-dimensional tensor containing batch, channel, and spatial dimensions. The system uses a tensor broadcasting mechanism to forcibly copy and expand the heterogeneity parameter along the spatial dimension, thereby satisfying the dimensional alignment requirement of the Hadamard product. The mathematical weighted decoupling logic executed by the underlying program is as follows:
[0172] ;
[0173] ;
[0174] in, Representing modes Corresponding to the unified dimensional features of the input, combined with the aforementioned perceptual architecture, The specific values correspond to radar, visible light, or infrared modes; and These represent the shared feature mapping network and the unique feature mapping network deployed within the corresponding modality, respectively. This indicates that the heterogeneity parameter generated by the aforementioned calculation has a numerical range strictly limited to 0 to 1 by the preceding activation function. and These represent the shared features and unique features of the final output after the decoupling operation, respectively.
[0175] As a manifestation of the algorithm's logical completeness, the aforementioned weighted formula clarifies the energy conservation constraint mechanism for the underlying feature decomposition. The heterogeneity parameter, as the first allocation ratio, directly affects the shared feature mapping result, while the system simultaneously uses the absolute difference between the value 1 and this heterogeneity parameter as the second allocation ratio, applying it inversely to the unique feature mapping result.
[0176] The purpose of this operation is to establish a dynamic gating mechanism. When dust obstruction or water vapor interference causes a significant deviation in the distribution of data across different modes, the system automatically suppresses the proportion of shared information in the contaminated modes and correspondingly amplifies the proportion of unique information in the undisturbed modes through the aforementioned scalar weights with complementary characteristics. This achieves the separation of redundant and overlapping information from independent and advantageous features at the deep semantic level.
[0177] S430: Outputs decoupled feature units and performs tensor dimension integrity checks.
[0178] After the above adaptive weighted operation based on distribution differences, the system generates a total of 6 independent decoupled feature units for the three sensing modes of radar, visible light and infrared.
[0179] The aforementioned units specifically include radar shared features, visible light shared features, infrared shared features, radar-specific features, visible light-specific features, and infrared-specific features.
[0180] To ensure that the data flow direction does not become misaligned during matrix stitching of the subsequent splicing and fusion network, as a preferred approach, the underlying program performs assertion verification on the channel dimension and spatial resolution of the above 6 decoupled feature units. That is, it forcibly verifies whether each feature unit strictly conforms to the standard 4D tensor format with 256 channels and spatial size matching the current downsampling stage of the network.
[0181] After the program confirms that the tensor shapes of all decoupled features are completely consistent and there are no null matrices, the system outputs the above independent units to the subsequent fusion detection module.
[0182] For the forward propagation process of the batch normalization layer and the tensor-based memory layout logic in the above mapping network, those skilled in the art can use existing deep learning basic operation logic to implement it.
[0183] See attached document Figure 6 After the above feature space decoupling process, the multi-source sensor data has been split into shared features and unique features.
[0184] To ensure that the decoupling mechanism converges stably and takes effect in deep networks, that is, to ensure that shared features are extracted to extract consistent underlying semantics across modalities, while unique features retain only information unique to each sensor, this embodiment introduces a joint loss function during the model training phase.
[0185] Through an end-to-end backpropagation mechanism, the aforementioned feature extraction network and decoupling module are driven to adaptively update their weights. The process of end-to-end model training and joint loss function construction specifically includes the following sub-steps:
[0186] S510: Construct a shared feature consistency loss based on cross-modal semantic alignment.
[0187] Because radar, visible light, and infrared sensors have different observation perspectives and mechanisms, the shared features they extract will inevitably have biases in algebraic space.
[0188] To force the network to narrow the distance between the same defect target in different modal shared semantic spaces, the system calculates the mean square error between the shared features of each modality after decoupling. By constraining the Euclidean distance of the shared features of different modalities, the network is forced to learn the structural representation of the common characteristics of tunnel defects. The specific calculation logic of the shared feature consistency loss is as follows:
[0189] ;
[0190] in, This represents the consistency loss due to shared features; , and These correspond to the radar shared features, visible light shared features, and infrared shared features generated by the aforementioned decoupling module, respectively. This represents the L2 norm square operation for calculating tensor differences.
[0191] This loss term is used to minimize the cross-modal expression variance, so that different sensor feature extraction networks tend to output the same tunnel background and common contours of the disease.
[0192] S520: Construct a feature difference decoupling loss based on vector orthogonality.
[0193] Even with constraints on the consistency of shared features, without additional intervention, redundant semantics that overlap with shared features will still remain within unique features.
[0194] Based on the orthogonal mapping principle in linear algebra, the system calculates the norm of the inner product matrix between the shared features and the unique features of each sensing modality.
[0195] Considering that the current feature unit is a 4-dimensional high-dimensional tensor, before the underlying computation, the system forcibly reorganizes and flattens the decoupled feature tensor in spatial dimensions, transforming it into a two-dimensional feature matrix with the number of channels as the number of rows and the total number of spatial pixels as the number of columns. This satisfies the dimensional alignment requirement of matrix inner product multiplication. By pushing this orthogonal loss term to its minimum, the shared semantic space and the unique semantic space are forced to remain algebraically perpendicular. The specific mathematical definition of the feature difference decoupling loss is as follows:
[0196] ;
[0197] in, This represents the decoupling loss due to feature differences; Represents the feature modality index; , , These represent radar mode, visible light mode, and infrared mode, respectively. This represents the transpose matrix of the corresponding modal shared features after the above spatial dimension reorganization and channel flattening operations; A two-dimensional matrix representing the unique characteristics of the corresponding mode; The Frobenius norm squared of a matrix is calculated.
[0198] Through this operation, the network is restricted to retaining only perceptual information that is completely unrelated to common information in the unique feature channels, thereby establishing a strict isolation mechanism for multi-source feature anti-aliasing at the deep semantic level.
[0199] S530: Construct a monitoring target loss for tunnel defect detection tasks.
[0200] The decoupled features are then spliced and fused through a network before being output to the target detection regression end. To guide the network in accurately locating and identifying defects such as cracks, seepage, and voids on the tunnel lining surface, the system combines pre-annotated, manually labeled real defect data to calculate the statistical bias between classification prediction and bounding box regression.
[0201] In this embodiment, the real label data specifically includes discrete integer codes for preset disease categories, as well as normalized center coordinates and width and height parameters representing the true location of the disease. For classification tasks, the system introduces a dynamic scaling factor to reduce the weight of a large number of easily classifiable background samples, forcing the model to focus on the subtle disease categories that are difficult to distinguish.
[0202] For bounding box regression tasks, the system uses generalized intersection-union (GUC) to evaluate the overlap between the predicted and ground truth bounding boxes in terms of scale and relative position. The formula for calculating the supervised target loss is as follows:
[0203] ;
[0204] in, Indicates the loss of the monitored target; This represents the focus classification loss constructed based on the network output probability distribution and the true labels; This represents the generalized intersection-union loss constructed based on the predicted coordinate frame and the true coordinate frame.
[0205] The overall task loss directly reflects the actual disease identification accuracy of the entire detection model under the current feature expression state.
[0206] S540: Parameter weighting and backpropagation optimization of the joint loss function.
[0207] After obtaining the spatial and task evaluation metrics from the different dimensions mentioned above, the system constructs a globally unified joint loss function through a linear weighting strategy.
[0208] This multi-task joint loss function will serve as the single optimization scalar benchmark for the network backpropagation algorithm. The specific parameter weighting configuration is as follows:
[0209] ;
[0210] in, This is the final output value of the joint loss function; This is a consistency constraint hyperparameter used to control the penalty strength for cross-modal semantic alignment; This is an orthogonality constraint hyperparameter used to balance the degree of enforcement of feature space isolation.
[0211] As a preferred approach, based on a comprehensive consideration of the balance between the numerical magnitudes of the independent loss terms and the network's convergence stability, The value is set to 0.1. The value is set to 0.2.
[0212] After each forward propagation during model training, the system extracts the calculated joint loss function value. The adaptive moment estimator optimizer is used to compute the gradient descent vectors of all learnable parameters in the network.
[0213] Subsequently, the system iteratively updates the weight matrix within the multimodal feature extraction, heterogeneous evaluation, and feature decoupling networks along the negative gradient direction at a preset dynamic learning rate.
[0214] To ensure that those skilled in the art can reproduce the training process of the model, as a preferred training hyperparameter configuration, the system sets the training batch size to 8, the initial learning rate to 0.001, and uses a cosine annealing strategy to gradually decay the learning rate over 100 training rounds.
[0215] After multiple rounds of sample feeding and reverse optimization, the model's various loss indicators steadily decreased to the threshold range, thus completing the end-to-end training closed loop of the entire tunnel defect perception network.
[0216] For the specific corresponding definitions of the manually labeled format in the above steps, as well as the calculation process of cross entropy and area intersection involved in the underlying cross-entropy and area intersection of focus classification loss and generalized intersection-union loss, those skilled in the art can use existing deep learning object detection training architectures to implement them.
[0217] See attached document Figure 7 After the aforementioned feature space decoupling process, the multi-source sensing data has been split into shared features and unique features that have been stripped of environmental interference.
[0218] Since the above six feature units are discretely distributed along the channel dimension, in order to establish a structured understanding of the overall tunnel defects, the system deeply aggregates the above independently distributed feature units and maps them to a specific detection space.
[0219] Based on this technical requirement, this embodiment constructs a multi-level fusion and detection network. The process of fusing decoupled shared and unique features and performing tunnel defect target detection specifically includes the following sub-steps:
[0220] S610: Cross-modal feature aggregation based on tensor cascade and convolutional dimensionality reduction.
[0221] The six feature units output from the previous feature decoupling stage are all in a high-dimensional channel state. Combined with the aforementioned network architecture configuration, each decoupled feature unit maintains a channel depth of 256 dimensions.
[0222] If these 6 units are directly concatenated in memory as channel-dimensional tensors, an ultra-high-dimensional feature tensor of 1536 dimensions will be generated, which will lead to a surge in the number of parameters in the subsequent detection network and unnecessary consumption of computing resources.
[0223] Based on this causal relationship, the system performs a concatenation operation along the channel dimension on radar shared features, visible light shared features, infrared shared features, radar-specific features, visible light-specific features, and infrared-specific features in the underlying memory. Immediately afterwards, it uses a feature aggregation module containing a 1×1 convolutional kernel to integrate and reduce cross-channel information. The relevant mathematical aggregation logic is as follows:
[0224] ;
[0225] in, This represents the comprehensive feature tensor output after fusion and dimensionality reduction, whose channel number is forcibly compressed to 256 dimensions; This represents a tensor splicing operation along the channel dimension; and These represent the learnable weight matrix and bias vector of a 1×1 convolutional layer, respectively. This represents a two-dimensional cross-correlation convolution operation; To represent a nonlinear activation function, the ReLU activation function, which has the advantage of suppressing gradient vanishing, is preferred.
[0226] The purpose of this operation is to compress the dispersed multimodal semantics back into a compact feature space, while preserving the advantageous structural information of each modality, thus providing a solid data foundation for subsequent scale changes.
[0227] S620: Multi-scale disease semantic enhancement based on feature pyramid network.
[0228] In actual engineering projects, tunnel defects span a wide range on a physical scale. This range includes both minute surface cracks and large areas of lining voids and water seepage.
[0229] To overcome the limitation of a single receptive field in taking into account targets at extreme scales, the system inputs the aforementioned comprehensive feature tensor into the feature pyramid network.
[0230] In this embodiment, to construct the pyramid hierarchy, the system uses three consecutive downsampling convolutional modules with a stride of 2 to perform bottom-up feature extraction on the comprehensive feature tensor, thereby deriving a basic feature map containing three different spatial resolution dimensions: low, medium, and high.
[0231] Subsequently, the network relies on a top-down bilinear interpolation upsampling path and a lateral connection mechanism to add deep high-level semantic features to shallow high-resolution spatial details element-wise.
[0232] Through the aforementioned multi-scale structural reorganization, the system generates a set of feature maps containing multiple resolution levels. This hierarchical feature representation enables the detection model to adaptively match disease targets of different sizes, thereby reducing the false negative rate of minor diseases.
[0233] S630: Perform classification and bounding box regression and output the final detection results.
[0234] After acquiring a multi-scale feature map set, the data stream is directed to the output of the object detection function. This output is configured with parallel classification and regression branches.
[0235] To decouple the feature representations for different tasks, both the classification and regression branches are composed of four consecutive 3×3 two-dimensional convolutional layers coupled with activation functions at their bottom layers. The classification branch extracts discrete mapping relationships in the feature space based on the convolutional layers, outputting the confidence probability of each preset anchor box corresponding to the disease category such as cracks, seepage, and cavities. The regression branch calculates the positional offset of the true boundary box of the disease relative to the anchor box in terms of its center coordinates and width and height dimensions.
[0236] Because the network generates a large number of highly overlapping prediction boxes for the same disease during dense prediction, the system introduces a non-maximum suppression algorithm at the output end to remove redundant information.
[0237] The program iterates through all predicted boxes in descending order of classification confidence and removes candidate boxes whose intersection-union ratio with the local maximum score box exceeds a preset overlap threshold.
[0238] As a preferred approach, to balance the probabilities of missed detections and false detections, the overlap threshold is set to 0.5. After filtering, the system finally outputs accurate tunnel defect detection results. These results directly correspond to the location and category attributes of each defect on the actual tunnel lining surface and internal medium, providing data guidance for subsequent engineering repairs.
[0239] The coordination mechanism between the convolution downsampling operation stride and the padding parameter in the above steps, as well as the iterative sorting and intersection-union ratio calculation logic at the bottom layer of the nonmaximum suppression algorithm, can be implemented by those skilled in the art using existing deep learning object detection basic algorithms.
Claims
1. A method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling, characterized in that, Includes the following steps: Acquire temporally and spatially synchronized radar, visible light, and infrared images of railway tunnels; Feature extraction is performed on the radar image, the visible light image, and the infrared image respectively to obtain radar features, visible light features, and infrared features of a unified dimension; Calculate the statistical distribution differences of the radar features, visible light features, and infrared features in the feature space to generate heterogeneity parameters; Using the heterogeneity parameter, the radar features are decoupled into radar shared features and radar-specific features, the visible light features are decoupled into visible light shared features and visible light-specific features, and the infrared features are decoupled into infrared shared features and infrared-specific features. The radar shared features, the visible light shared features, the infrared shared features, the radar-specific features, the visible light-specific features, and the infrared-specific features are spliced and fused to obtain fused detection features; The fused detection features are input into the target detection network to output the detection results of railway tunnel defects.
2. The method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling according to claim 1, characterized in that, The acquisition of time- and space-synchronized radar images, visible light images, and infrared images of railway tunnels includes: Obtain the mileage markers and corresponding timestamps triggered by displacement during the movement of the track inspection vehicle; Based on the mileage markers, a fixed-length window is used to extract continuous radar signals to generate the radar image. Visible light image frames and infrared image frames whose time difference with the timestamp is within the trigger time difference constraint range are selected and used as the visible light image and the infrared image, respectively.
3. The method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling according to claim 1, characterized in that, The step of extracting features from the radar image, the visible light image, and the infrared image respectively to obtain radar features, visible light features, and infrared features of a unified dimension includes: A hybrid feature extraction network, comprising a convolutional neural network and a transformer encoder, is used to extract local profile texture features and global features from the radar image. After channel mapping processing, the radar features are obtained. The visible light image and the infrared image are extracted using a visual transformer network based on a sliding window self-attention mechanism. After multi-scale feature fusion and channel mapping processing, the visible light features and the infrared features are obtained.
4. The method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling according to claim 1, characterized in that, The calculation of the statistical distribution differences of the radar features, visible light features, and infrared features in the feature space to generate heterogeneity parameters includes: Global average pooling is performed on the radar features, visible light features and infrared features respectively, and the pooled features are converted into corresponding normalized probability distribution data. Calculate the pairwise local divergence between the probability distributions corresponding to the radar feature, the visible light feature, and the infrared feature, and calculate the mean of each local divergence as a comprehensive deviation metric. The comprehensive deviation metric is input into the multilayer perceptron network and mapped to a continuous numerical range through an activation function to generate the heterogeneity parameter.
5. The method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling according to claim 1, characterized in that, The method of using the heterogeneity parameter to decouple the radar features into radar-shared features and radar-specific features, the visible light features into visible light-shared features and visible light-specific features, and the infrared features into infrared-shared features and infrared-specific features includes: The radar features, visible light features, and infrared features are respectively input into the corresponding shared feature mapping network and unique feature mapping network; Using the heterogeneity parameter as the first allocation ratio, the outputs of each shared feature mapping network are weighted and calculated to obtain the radar shared feature, the visible light shared feature, and the infrared shared feature. Using the difference between the value 1 and the heterogeneity parameter as the second allocation ratio, the outputs of each unique feature mapping network are weighted and calculated to obtain the radar-specific feature, the visible light-specific feature, and the infrared-specific feature.
6. The method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling according to claim 5, characterized in that, Both the shared feature mapping network and the unique feature mapping network include a processing module consisting of a cascaded convolutional layer of size 1×1, a batch normalization layer, and a ReLU nonlinear activation function.
7. The method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling according to claim 1, characterized in that, The method is optimized using an end-to-end joint training approach, and the joint loss function of the method includes cross-modal consistency alignment loss, feature decoupling orthogonal loss, and object detection loss; The cross-modal consistency alignment loss is used to constrain the Euclidean distance between the radar shared feature, the visible light shared feature, and the infrared shared feature; The feature decoupling orthogonal loss is used to constrain the independence between the radar shared features, the visible light shared features, and the infrared shared features, and the radar-specific features, the visible light-specific features, and the infrared-specific features, respectively.
8. The method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling according to claim 7, characterized in that, The calculation process for the cross-modal consistency alignment loss includes: Calculate the Euclidean distances between the radar shared feature and the visible light shared feature, between the radar shared feature and the infrared shared feature, and between the visible light shared feature and the infrared shared feature, respectively. The mean of the squares of the Euclidean distances mentioned above is used as the cross-modal consistency alignment loss.
9. The method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling according to claim 7, characterized in that, The calculation process of the feature decoupling orthogonal loss includes: The radar shared features, the visible light shared features, the infrared shared features, and the radar-specific features, the visible light-specific features, and the infrared-specific features are recombined and flattened in the spatial dimension, and converted into corresponding two-dimensional matrices of shared features and two-dimensional matrices of specific features. Calculate the Frobenius norm of the inner product matrix between the shared feature two-dimensional matrix and the unique feature two-dimensional matrix under each homogeneous mode of radar, visible light and infrared; The sum of the squares of the Frobenius norms of each term is used as the feature decoupling orthogonal loss.
10. The method for detecting defects in multi-source heterogeneous railway tunnels based on feature decoupling according to claim 1, characterized in that, The detection results of the railway tunnel defects include: The coordinate range and specific defect category determination results for one or more typical defects, including lining cracks, water leakage, lining spalling or falling off, voids behind the lining or internal hollowing, and insufficient lining thickness.
