An underground pipe gallery-oriented optical cable state monitoring and anomaly identification method
By deploying multispectral images and thermal imagers for synchronous acquisition and feature matching in underground utility tunnels, combined with an adaptive gated temporal fusion network and prior knowledge of the utility tunnels, the problems of missed detection and false detection in optical cable monitoring were solved, and accurate, real-time monitoring and anomaly identification of optical cable status were achieved.
Patent Information
- Application Number
- CN202611065736.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-17
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2046-07-17
AI Technical Summary
Existing underground utility tunnel fiber optic cable monitoring technologies suffer from poor scene adaptability, insufficient intelligence, inability to effectively identify anomalies in small fiber optic cable targets, and weak anti-interference capabilities, resulting in high rates of missed detections and false detections, and failing to meet the requirements for real-time alarms.
The acquisition equipment employs fixed nodes and mobile inspection, combined with NTP time synchronization protocol and SIFT feature matching to achieve synchronization and spatial alignment of multispectral images and thermal imager data. The VMD-ICA joint denoising algorithm is used to remove noise, and an adaptive gated temporal fusion network for multi-scale spatial feature extraction is constructed. Feature extraction and fusion are performed through MS-SSF module, MB-AG-BiLSTM module and PASF module. The optical cable laying path prior mask is generated by combining the CAD drawings of the pipe gallery, and a dual-branch decoder is used for anomaly identification and hierarchical alarm.
It enables accurate and efficient monitoring of optical cable status, reduces the rate of missed detection and false detection, meets the real-time alarm requirements in the utility tunnel, and improves the accuracy and speed of optical cable anomaly identification.
Smart Images

Figure CN122597404B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of interdisciplinary technology of underground utility tunnel operation and maintenance and computer vision, specifically a method for monitoring the status of optical cables and identifying anomalies in underground utility tunnels. Background Technology
[0002] Underground utility tunnels serve as vital "lifelines" for cities, with their internal fiber optic cables bearing the core functions of communication and data transmission for equipment in various compartments. Failures in these cables directly lead to monitoring disruptions, operational paralysis, and even cascading accidents. Traditional methods for monitoring fiber optic cables in underground utility tunnels often rely on manual inspections or monitoring based on OTDRs (Optical Time Domain Reflectometers). However, manual inspections (such as monthly in-tunnel checks) are inefficient, prone to missed inspections due to the damp and confined environment, and cannot capture dynamic changes such as loose cable joints or slow sheath wear. While OTDR-based monitoring can locate fiber optic breaks, it cannot distinguish between "physical damage" and "transmission attenuation," and it fails to respond to non-fracture anomalies such as cable deformation or foreign object compression. These methods result in a dual bottleneck in existing utility tunnel fiber optic cable monitoring technology: poor scenario adaptability and insufficient intelligence.
[0003] Existing monitoring technologies also have some shortcomings: First, the network structure is too simple, using a basic CNN network, which can only extract surface features of optical cables and cannot adapt to the complex background of optical cables intertwined with supports and pipelines in the utility tunnel; second, feature fusion is insufficient, the traditional CNN-BiLSTM model does not consider the characteristics of "slender and short-term deformation" and "equipment occlusion" of optical cables in the utility tunnel, and the temporal and spatial features are separated, resulting in a high rate of missed detection of small-scale anomalies (such as loose joint screws); third, the anti-interference ability is weak, the image noise caused by LED light flicker and electromagnetic radiation in the utility tunnel makes the false detection rate still high even after traditional VMD denoising.
[0004] With the development of computer vision technology, image analysis-based monitoring methods are gradually being applied to the operation and maintenance of utility tunnels. However, when directly migrating general image segmentation networks (such as SegFormer, Mask2Former, etc.) to utility tunnel scenarios, there are three adaptation problems: ① The segmentation of slender targets is discontinuous, and their pixel proportion in the image is low (often less than 5%); ② The prior knowledge of the utility tunnel is not introduced, so it is impossible to distinguish between "fiber optic cable deformation" and "inspection robot occlusion"; ③ The inference speed is slow, which cannot meet the real-time alarm requirements of the utility tunnel.
[0005] Based on this, a method for monitoring the status of optical cables and identifying anomalies in underground utility tunnels is now provided, which can eliminate the drawbacks of existing technical solutions. Summary of the Invention
[0006] The purpose of this invention is to provide a method for monitoring the status of optical cables and identifying anomalies in underground utility tunnels, so as to solve the problems of missed detection of small target anomalies in optical cables, false detection due to noise interference, and insufficient real-time performance in the prior art.
[0007] To achieve the above objectives, the present invention provides the following technical solution: A method for monitoring the status of optical cables and identifying anomalies in underground utility tunnels includes the following steps: Step S1: Deploy the acquisition equipment using a fixed node, mobile inspection mode to simultaneously acquire multispectral images and thermal imager data of the underground pipe gallery to obtain multimodal data. Based on the NTP time synchronization protocol, control the time deviation of the multimodal data to ≤10ms. Achieve spatial alignment with an alignment error of ≤2 pixels through SIFT feature matching. Step S2: The VMD-ICA joint denoising algorithm is used to denoise the multispectral image to obtain a denoised image. Then, a priori mask for the optical cable laying path is generated based on the CAD drawing of the pipe gallery. The ROI region is generated by combining Canny edge detection and morphological closing operation. Finally, the thermal imager data is calibrated according to the calibration formula to obtain calibrated temperature data. Temperature feature map generation is performed on the calibrated temperature data through spatial alignment and size matching, normalization processing, and channel expansion. Step S3: Construct an adaptive gated temporal fusion network for multi-scale spatial feature extraction. The multimodal data preprocessed in step S2 is sequentially processed through the MS-SSF module, MB-AG-BiLSTM module, and PASF module to extract and fuse features, and output feature maps of fused spatial dimension, temporal dimension, temperature dimension, and scene dimension. Step S4: Process the output fusion feature map based on the dual-branch Decoder to output pixel-level semantic segmentation map and confidence map. Combine the temperature feature map and multi-frame time series data, and complete the anomaly identification and graded alarm of the optical cable through the anomaly verification and grading module. In step S3, the adaptive gated temporal fusion network is a specific deep learning model for monitoring optical cables in underground utility tunnels. It includes an MS-SSF module, an MB-AG-BiLSTM module, a PASF module, and a dual-branch Decoder. The input is preprocessed multimodal data, and the output is pixel-level optical cable state segmentation results and anomaly confidence.
[0008] Furthermore, the MS-SSF module includes a basic ConvNeXt block, a spectral attention submodule, a spatial attention submodule, and a feature recalibration submodule; The basic ConvNeXt block adopts an improved ConvNeXt-T micro-network, which includes a depthwise separable convolutional layer, a first 1×1 pointwise convolutional layer, a GELU activation layer, a second 1×1 pointwise convolutional layer, a LayerNorm layer, and an adaptive residual connection layer arranged in sequence. The residual weights are generated by 1×1 convolution and the Sigmoid activation function to achieve dynamic adjustment of residual features. The spectral attention submodule includes a global average pooling layer, a first 1×1 convolutional layer, a ReLU activation layer, a second 1×1 convolutional layer, a Sigmoid activation layer, and a channel weighting layer arranged sequentially. It is used to enhance the channel feature response of the input feature map through channel global pooling, channel weight calculation, and feature weighting. The spatial attention submodule includes a channel average pooling layer, a channel max pooling layer, a channel splicing layer, a 3×3 convolutional layer, a sigmoid activation function layer, and a priori guided weighting layer, which are used to focus on the slender region of the optical cable and suppress background interference through spatial feature aggregation, spatial weight generation, and prior guided weighting. The feature recalibration submodule includes a 1×1 convolutional layer, a BatchNorm layer, a ReLU activation function layer, and a channel attention gating layer arranged in sequence, which are used to unify the feature dimension and suppress redundant information through 1×1 convolution.
[0009] Furthermore, the MB-AG-BiLSTM module captures temporal variation features at different rates through multi-branch temporal extraction and adaptive gating fusion, and outputs a feature map that fuses bidirectional temporal information. Specific operations include: To address the characteristic of input being sequential data, the spatial feature map is converted into a two-dimensional sequence. The high-dimensional sequence is then reduced to the LSTM input dimension through 1×1 convolution, and LayerNorm is used to eliminate dimensional differences. Three parallel LSTM branches are set up to correspond to the slow, medium and fast time-series change rates of the optical cable in the tunnel, respectively. The output of each LSTM branch is upsampled to a unified dimension sequence. The adaptive gating fusion calculates the gating coefficients through the inter-frame feature difference, designs a forget gate and input gate linkage mechanism to achieve dynamic balance between historical features and new features, and then allocates the weights of each LSTM branch through the gating coefficients. A bidirectional LSTM structure is constructed and forward and backward temporal features are output. Attention fusion is used to enhance the temporal features with high correlation to obtain the final fused features. Combined with reshape operation, 1×1 convolution and frame selection, the final temporal feature map is output.
[0010] Furthermore, the adaptive gating fusion is used to achieve dynamic weighting of branch features through inter-frame variation quantization and gating coordination, specifically including: Using the inter-frame feature difference as input, the gating coefficient is calculated as follows: ; in, The gating coefficient is and satisfies , An adjustment coefficient specifically designed for utility tunnel scenarios. The image of the current frame. The image from the previous frame. Represented as L2 norm, It is an exponential function. The closer the gate coefficient is to 1, the more significant the inter-frame changes are, indicating that an anomaly has occurred. Conversely, it is a normal fluctuation. Design a mechanism that links the forget gate and the input gate. The forget gate is represented as follows: The input gate is represented as: ; in, For the output parameters of the forget gate, The output parameters of the input gate, It is the sigmoid activation function. As a historical feature, For the bias term of the forget gate, The input gate weight matrix, This is the bias term for the input gate; The weights of each branch are assigned using gating coefficients, expressed as follows: ; in, The timing characteristics after gating fusion , and All are LSTM branch weight matrices. LSTM cell state For the tanh function, , and All of these are output features of the LSTM branch.
[0011] Furthermore, the PASF module is used to deeply fuse the output feature map of the MS-SSF module with the temporal feature map output by the MB-AG-BiLSTM module, incorporating prior knowledge and temperature features of the utility tunnel scene, and outputting a fused feature map of a unified scale. Specific operations include: A unified feature pyramid is constructed. The number of output feature map channels of the MS-SSF module and the number of temporal feature channels of the MB-AG-BiLSTM module are adjusted to a unified number through 1×1 convolution. Then, transposed convolution is used to upsample the features at each level to the input image size to obtain the pyramid features. Based on the output feature map of the MS-SSF module and the temporal feature map of the MB-AG-BiLSTM module, a spatial-temporal matching matrix is calculated to obtain the spatial and temporal features. Applying this matching matrix to the temporal features yields the matching features associated with the spatial features. The formula for calculating the spatial-temporal matching matrix is as follows: ; in, This is the space-time matching matrix. For normalized exponential functions, This is the output feature map of the MS-SSF module. The time-series feature map output by the MB-AG-BiLSTM module; By integrating optical cable path mask, fault-prone area mask and normalized temperature characteristics, the characteristics of abnormal heating areas are enhanced. The specific operation is divided into two steps as follows: Prior weighting: ,in, For fiber optic path mask, Mask for faulty areas; Temperature fusion: normalized temperature characteristics and Element-wise multiplication yields the enhanced feature map. , The normalized temperature characteristics, As a priori weighted result, the characteristics of abnormal fever areas are enhanced; By combining top-down and bottom-up bidirectional aggregation, high-level semantics and low-level details are conveyed. The bidirectionally aggregated features are then concatenated, and fused features are output through 3×3 convolution and BatchNorm. The steps for generating the optical cable path mask include: extracting a set of two-dimensional coordinate points for the optical cable laying path from the CAD drawing of the utility tunnel; connecting the extracted two-dimensional coordinate points into a continuous path using the Bresenham line algorithm; setting the width of the continuous path to the number of pixels corresponding to the actual diameter of the optical cable; generating a binary mask with pixel values of 1 for the optical cable area and 0 for the background area; and performing a morphological dilation operation on the binary mask to obtain the complete optical cable path mask. And satisfy , For height dimension, Width dimension; The steps for generating the fault-prone area mask include: collecting historical fault records of the utility tunnel operation and maintenance; marking the area within 1m around the junction box, pipeline intersections, compartment entrances and exits, and sections prone to water accumulation as fault-prone areas based on the historical fault records; mapping the physical coordinates of the fault-prone areas to image pixel coordinates through coordinate transformation to generate polygonal regions; and assigning values to the pixels inside the mapped polygonal regions, non-fault-prone areas of the optical cable path, and background areas to obtain the fault-prone area mask. ; The steps for generating the normalized temperature features include: performing spatial alignment, size matching, and normalization operations on the calibrated temperature data to obtain the normalized temperature features. .
[0012] Furthermore, the dual-branch Decoder includes a semantic segmentation branch and a confidence branch. The semantic segmentation branch is the main path, and the confidence branch is the auxiliary path. Both paths start from the feature map output by Pixel Shuffle and execute their respective processes in parallel. The semantic segmentation branch completes feature calibration through 1×1 convolution dimensionality reduction and LayerNorm normalization. Then, it uses a binary space prior mask to weight the calibrated features element by element. Subsequently, it captures local state differences through 3×3 convolution and generates pixel-level probability distribution through Softmax activation. Finally, it takes the maximum probability to obtain the semantic segmentation map, thus achieving the segmentation effect of optical cable status. The confidence branch enhances local correlation features through 3×3 convolution, then extracts global feature vectors through global average pooling, and then weights the global feature vectors with the semantic prior weight map element by element to strengthen the feature response. The confidence map is generated by mapping through a fully connected network and activating with Sigmoid to quantify the reliability of the segmentation results. The semantic prior weight map is a weight map generated based on the prior of the utility tunnel scene. It is used to strengthen the feature response of fault-prone areas in the confidence branch. The generation steps include: masking the optical cable path. and faulty area mask Element-wise weighted summation is performed, and Gaussian filtering is applied to the weighted graph to eliminate hard boundary effects at mask edges, making the weight transition smooth. Then, Min-Max normalization is performed on the smoothed weighted graph to the [0,1] interval to obtain the semantic prior weighted graph. .
[0013] Further, step S1 specifically includes: Multispectral cameras integrating RGB, near-infrared, and 940nm polarization channels are deployed at each node of the tunnel compartment. The frame rate of the multispectral cameras is set to 8 frames / second. A thermal imager is mounted on the track inspection robot to simultaneously collect images of the optical cable temperature distribution. The temperature measurement range of the thermal imager is -20℃ to 150℃, and its sampling interval is adapted to the sampling interval of the multispectral cameras. Based on the NTP time synchronization protocol, the time deviation between multispectral images and thermal imager data is ≤10ms. The spatial alignment of RGB images and thermal imager images is achieved through SIFT feature matching, with an alignment error of ≤2 pixels. All acquired images are attached with a 3D label of compartment number-coordinate-timestamp and transmitted back to the edge computing node via industrial Ethernet.
[0014] Further, step S2 specifically includes: Perform VMD decomposition on RGB and near-infrared images from multispectral imagery, with the objective function being: ; in, Represents the set of all modal components obtained from the decomposition, a single For the first One modal component, Represents the set of center frequencies corresponding to each modal component, a single For the first The center frequency of each mode Indicates time Find the partial derivative. It is the imaginary unit and satisfies , Denotes the square of the L2 norm. The input is the original image signal of the utility tunnel; Independent component analysis was performed on the decomposed high-frequency components to separate electromagnetic noise from the effective signal. The noise component was determined by a kurtosis value > 5. Finally, the denoised image was reconstructed. ; in, To produce a clear image signal after noise reduction. The set of indices for valid modal components, i.e., modal components with kurtosis values ≤ 5; A priori mask for optical cable laying path is generated based on the CAD drawings of the utility tunnel. The initial outline of the optical cable is extracted by Canny edge detection. The gaps are filled by morphological closing operation to generate the ROI region. Temperature calibration is performed on the thermal imager data, and the calibration formula is: ; in, To determine the true temperature value of the optical cable after calibration. The values are the raw temperature measurements collected by the thermal imager, and 0.03 is the distance correction factor for the utility tunnel scenario. 5 represents the actual distance between the thermal imager and the optical cable, 5 represents the optimal temperature measurement distance for the thermal imager, and 25 represents the standard ambient temperature during thermal imager calibration. The real-time ambient temperature inside the utility tunnel is collected synchronously by environmental sensors.
[0015] Furthermore, the anomaly verification and classification module in step S4 adopts an anomaly verification mechanism to filter false detection data caused by environmental interference. The anomaly verification and classification module takes semantic segmentation map, confidence map, temperature feature map and multi-frame time series data as input, and outputs anomaly type, verification result and risk level. The multi-frame time series data adopts the input sequence data of MB-AG-BiLSTM module.
[0016] Furthermore, the anomaly verification mechanism in step S4 specifically includes: First-level initial screening: For abnormal regions in the semantic segmentation map, calculate the mean confidence score and temperature difference. If the calculation results meet the following conditions: the confidence score of the abnormal region is ≥0.88, the temperature difference of abnormal heating is ≥8℃, and the area ratio of other abnormal regions is ≥0.02, then proceed to the second-level verification. Otherwise, it is marked as suspected interference, and only recorded without alarm. Secondary verification: Calculate the mean inter-frame IoU of the abnormal region in multiple consecutive frames. If the calculation result satisfies the condition that the mean inter-frame IoU is ≥0.75, it is determined to be a continuous abnormality; otherwise, the change rate is considered to determine whether it is a temporary occlusion. Three-level classification: The anomaly type and verification result are divided into three risk levels. Level 1 risk triggers audible and visual alarms, Level 2 risk triggers operation and maintenance early warning, and Level 3 risk triggers log recording. The recorded data is used for model iteration and optimization, and structured output is generated according to the risk level.
[0017] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. This invention adopts a fixed-node, mobile inspection-based data acquisition equipment deployment mode. It achieves a time deviation of ≤10ms between multispectral images and thermal images through the NTP time synchronization protocol, completes spatial alignment by combining SIFT feature matching, and adds three-dimensional labels of compartment number-coordinate-timestamp to construct a dedicated data acquisition system for utility tunnel scenarios.
[0018] 2. This invention employs a VMD-ICA joint denoising algorithm. By combining VMD decomposition and ICA separation, and using a kurtosis value >5 as the noise criterion, it achieves collaborative filtering of electromagnetic noise and light flicker. Based on the CAD drawings of the utility tunnel, a priori mask for the optical cable path is generated. Combined with Canny edge detection and morphological closing operation, the ROI region is extracted. A thermal image calibration formula for the utility tunnel scene is designed to eliminate interference from distance and ambient temperature and accurately calculate the true temperature of the optical cable.
[0019] 3. This invention constructs an adaptive gated temporal fusion network for multi-scale spatial feature extraction, achieving deep fusion of four-dimensional features: space, time, temperature, and scene. The MS-SSF module improves the ConvNeXt-T network by integrating spectral attention, spatial attention, and feature recalibration sub-modules. It enhances optical cable features and suppresses background interference through depthwise separable convolution and attention mechanisms. The MB-AG-BiLSTM module designs three parallel LSTM branches to adapt to different anomaly rates. It generates gating coefficients through inter-frame feature differences and dynamically allocates branch weights by combining forget gate and input gate linkage mechanisms. After bidirectional LSTM aggregation, the temporal feature map is reconstructed. The PASF module constructs a feature pyramid and achieves multi-scale feature collaboration through self-attention cross-scale matching, pipe gallery prior, and temperature feature fusion. It adopts bidirectional pyramid aggregation to achieve multi-scale feature collaboration. The semantic segmentation branch in the dual-branch Decoder structure achieves pixel-level segmentation of optical cable in various states through spatial prior mask weighting. The confidence branch generates reliability quantification results through global feature extraction and semantic prior weighting.
[0020] 4. The present invention also establishes an anomaly verification mechanism, which filters out false detection data caused by environmental interference through primary screening, secondary verification and tertiary classification, and adapts to the needs of anomaly identification in utility tunnels. Attached Figure Description
[0021] Figure 1 This is a schematic diagram of the method steps of the present invention.
[0022] Figure 2 This is a schematic diagram of the overall process of the present invention.
[0023] Figure 3 This is a schematic diagram of the adaptive gated timing fusion network of the present invention.
[0024] Figure 4 This is a schematic diagram of the MS-SSF module of the present invention.
[0025] Figure 5 This is a schematic diagram of the MB-AG-BiLSTM module of the present invention.
[0026] Figure 6 This is a schematic diagram of the dual-branch Decoder of the present invention.
[0027] Figure 7 This is a flowchart illustrating the anomaly verification and classification module of the present invention.
[0028] Figure label annotations: MS-SSF module 10, basic ConvNeXt block 11, spectral attention submodule 12, spatial attention submodule 13, feature recalibration submodule 14, MB-AG-BiLSTM module 20, PASF module 30, dual-branch Decoder 40. Detailed Implementation
[0029] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0030] To address the pain points of monitoring optical cables in underground utility tunnels, this invention proposes a method for monitoring and identifying the status of optical cables in underground utility tunnels that integrates multi-scale spatiotemporal features and prior knowledge of the tunnel. By designing an adaptive gated temporal fusion network and an anomaly verification mechanism, this method solves the problems of missed detection of small-target anomalies in optical cables under complex backgrounds, false detection due to noise interference, and insufficient real-time performance, thereby achieving accurate and efficient monitoring of the status of optical cables in utility tunnels. The specific scheme is shown below.
[0031] Example 1
[0032] In this embodiment, as Figures 1-7 As shown, this invention provides a method for monitoring and identifying the status of optical cables in underground utility tunnels. The method involves segmenting the current optical cable image data to obtain and detect the current status of the optical cable. Specifically, it includes the following steps: Step S1: Deploy the acquisition equipment using a fixed node, mobile inspection mode to simultaneously acquire multispectral images and thermal imager data of the underground pipe gallery to obtain multimodal data. Based on the NTP time synchronization protocol, control the time deviation of the multimodal data to ≤10ms. Achieve spatial alignment with an alignment error of ≤2 pixels through SIFT feature matching. Step S2: The VMD-ICA joint denoising algorithm is used to denoise the multispectral image to obtain a denoised image. Then, a priori mask for the optical cable laying path is generated based on the CAD drawing of the pipe gallery. Combined with Canny edge detection and morphological closing operation, a Region of Interest (ROI) is generated. The ROI refers to a sub-region or subset selected in an image, video, or multidimensional data for a specific task. These regions usually contain key features or target information. By focusing on the ROI, redundant calculations on the entire data can be reduced, improving analysis efficiency and accuracy. Finally, the thermal imager data is calibrated according to the calibration formula to obtain calibrated temperature data. Temperature feature map generation is performed on the calibrated temperature data through spatial alignment and size matching, normalization processing, and channel expansion. This step is a preprocessing step to obtain preprocessed multimodal data. Step S3: Construct an adaptive gated temporal fusion network for multi-scale spatial feature extraction. The multimodal data preprocessed in step S2 is sequentially processed by the MS-SSF module 10, the MB-AG-BiLSTM module 20, and the PASF module 30 to extract and fuse features, and output feature maps of fused spatial dimension, temporal dimension, temperature dimension and scene dimension. Step S4: Process the output fusion feature map based on the dual-branch Decoder40 to output pixel-level semantic segmentation map and confidence map. Combine the temperature feature map and multi-frame time series data, and complete the anomaly identification and graded alarm of the optical cable through the anomaly verification and grading module. In step S3, the adaptive gated temporal fusion network is a specific deep learning model for monitoring optical cables in underground utility tunnels. It includes an MS-SSF module 10, an MB-AG-BiLSTM module 20, a PASF module 30, and a dual-branch Decoder 40. The input is preprocessed multimodal data, and the output is pixel-level optical cable state segmentation results and anomaly confidence.
[0033] In this embodiment, step S1 specifically includes: Multispectral cameras integrating RGB, near-infrared, and 940nm polarization channels are deployed at each node of the tunnel compartment. For example, one multispectral camera is deployed every 50 meters in each tunnel compartment. The frame rate of the multispectral camera is set to 8 frames / second (adapted to the inspection robot's moving speed of 0.5m / s). Anti-fog and dustproof covers are added to the lenses of the multispectral cameras. A thermal imager is mounted on the track inspection robot to simultaneously collect images of the optical cable temperature distribution. The temperature measurement range of the thermal imager is -20℃ to 150℃, and its sampling interval is adapted to the sampling interval of the multispectral camera. Based on the NTP time synchronization protocol, the time deviation between multispectral images and thermal imager data is ≤10ms. The spatial alignment of RGB images and thermal imager images is achieved through SIFT feature matching, with an alignment error of ≤2 pixels. All acquired images are attached with a 3D label of compartment number-coordinate-timestamp and transmitted back to the edge computing node via industrial Ethernet.
[0034] In this embodiment, step S2 specifically includes: To address electromagnetic noise and light flicker in utility tunnels, a VMD-ICA joint denoising algorithm is proposed. This algorithm performs VMD decomposition on RGB and near-infrared images from multispectral imaging. The objective function is: ; in, Represents the set of all modal components obtained from the decomposition, a single For the first One modal component, Represents the set of center frequencies corresponding to each modal component, a single For the first The center frequency of each mode Indicates time Find the partial derivatives to reflect the time-varying characteristics of the modal components. It is the imaginary unit and satisfies , The square of the L2 norm is used to calculate signal energy. The input is the original tunnel image signal. The constraint condition indicates that the original signal needs to be completely reconstructed after all modal components are superimposed. In this embodiment, the number of decomposed modes is set to 4. Independent component analysis (ICA) was used on the decomposed high-frequency components to separate electromagnetic noise from the effective signal. The noise component was determined by a kurtosis value > 5. Finally, the denoised image was reconstructed. ; in, To produce a clear image signal after noise reduction. The set of indices for valid modal components, i.e., modal components with kurtosis values ≤ 5; Based on the CAD drawings of the utility tunnel, a priori mask for the optical cable laying path is generated. Combined with Canny edge detection (with dual thresholds set to 50 / 150), the initial outline of the optical cable is extracted. The gaps are filled by morphological closing operation (structural element 3×3 rectangle) to generate ROI regions. After clipping, the amount of data is reduced, and the efficiency of subsequent processing is improved. Perform temperature calibration on the thermal imager data to eliminate the influence of ambient temperature. The calibration formula is as follows: ; in, To determine the true temperature value of the optical cable after calibration. The values are the raw temperature measurements collected by the thermal imager. These raw temperature measurements have not been adjusted for distance and environmental interference. 0.03 is the distance correction factor for the utility tunnel scenario. This represents the actual distance between the thermal imager and the fiber optic cable, in meters (m). It can be obtained through camera ranging. 5 represents the optimal temperature measurement distance for the thermal imager, and 25 represents the standard ambient temperature during thermal imager calibration. The real-time ambient temperature inside the utility tunnel is collected synchronously by environmental sensors in the tunnel. The temperature unit is ℃. Temperature feature map generation is performed on the calibrated temperature data through spatial alignment and size matching, normalization, and channel expansion. Specifically, this includes: Spatial alignment and size matching: Using the SIFT feature matching results from step S1, the spatial alignment and size matching are performed. The aligned temperature matrix was obtained by resampling to the multispectral image size (1536×2048) using bilinear interpolation. ; Normalization processing: for Performing Min-Max normalization, expressed by the formula: ,in , The minimum and maximum values in the temperature matrix of this frame are used to obtain the normalized temperature feature map. ; Channel expansion: expanding the single-channel temperature feature map The feature map is copied and expanded to the same channel dimension as the multispectral image (e.g., 3 or 4 channels), or used as an independent single-channel feature for subsequent fusion operations to obtain the final temperature feature map. ,in, As a dimension, This represents the number of channels in the temperature feature map. The height of the temperature feature map is 1536. The width of the temperature feature map is 2048.
[0035] Among them, such as Figure 7 As shown, the anomaly verification mechanism in step S4 filters out false detection data caused by environmental interference (such as light flickering or dust obstruction) through the anomaly verification and grading module. The inputs are semantic segmentation map, confidence map, temperature feature map (from the preprocessing operation in step S2) and multi-frame time series data. The outputs are anomaly type, verification result and risk level. The multi-frame time series data adopts the input sequence data of MB-AG-BiLSTM module 20. In this embodiment, 5 consecutive frames of time series data are used.
[0036] Among them, such as Figure 7 As shown, the anomaly verification mechanism in step S4 specifically includes: First-level initial screening: For abnormal regions in the semantic segmentation map, calculate the mean confidence score and temperature difference. If the calculation results meet the following conditions: the confidence score of the abnormal region is ≥0.88, the temperature difference of abnormal heating is ≥8℃, and the area ratio of other abnormal regions is ≥0.02, then proceed to the second-level verification. Otherwise, it is marked as suspected interference, and only recorded without alarm. Secondary verification: Calculate the mean inter-frame IoU (Intersection over Union) of abnormal regions in multiple consecutive frames (5 frames). If the calculation result satisfies the mean inter-frame IoU ≥ 0.75, it is judged as a continuous abnormality (such as water immersion or mechanical compression). Otherwise, it is judged whether it is a temporary occlusion based on the rate of change. For example, if it meets the condition of "rapid change of 5 pixels / frame" and there is no temperature abnormality, it is marked as "temporary occlusion" (such as an inspection robot passing by). The above data is obtained through experiments, theoretical basis, expert experience or actual needs. Three-level classification: Anomaly types and verification results are divided into three risk levels. Level 1 risks trigger audible and visual alarms, Level 2 risks trigger operation and maintenance early warnings, and Level 3 risks trigger log recording. The recorded data is used for model iteration and optimization. Structured output is generated according to the risk level. Level 1 risks include abnormal heating (temperature difference ≥15℃), mechanical compression (area ratio ≥0.3), etc., which immediately trigger audible and visual alarms of the main pipe gallery system and push them to the operation and maintenance personnel's mobile devices. Level 2 risks include water immersion, loose joints, etc., which generate operation and maintenance work orders (specifying the compartment, coordinates, and processing time limit) and push them to the operation and maintenance personnel's mobile devices. Level 3 risks include small-area temporary anomalies, etc., which generate log records and store them in the historical database for model iteration and optimization.
[0037] Example 2
[0038] Among them, such as Figures 2 to 7 As shown, this invention also provides an adaptive gated temporal fusion network, which is a customized deep learning model for monitoring optical cables in underground utility tunnels. It addresses the pain points of discontinuous segmentation of slender optical cables, difficulty in capturing multi-rate anomalies, and strong background interference due to dense equipment in utility tunnel scenarios. Through a structural design of multimodal spatial feature extraction, multi-branch temporal fusion, and cross-scale feature aggregation, it achieves deep fusion of four-dimensional features: space, time, temperature, and scene. It outputs pixel-level optical cable state segmentation results and anomaly confidence. Modules are cascaded according to the data processing flow, and seamless connection between modules is guided by feature dimension matching and prior information. The specific process is shown below.
[0039] Among them, such as Figure 3 and Figure 4 As shown, the MS-SSF module 10 includes a basic ConvNeXt block 11, a spectral attention submodule 12, a spatial attention submodule 13, and a feature recalibration submodule 14. The basic ConvNeXt block 11 uses an improved ConvNeXt-T micronetwork, replacing standard convolutions with depthwise separable convolutions and 1×1 convolutions, reducing the number of network parameters while maintaining the model's feature extraction capabilities. This operation reduces parameters while preserving details. The spectral attention submodule 12 enhances the channel feature response of the input feature map (the near-infrared channel has high discrimination between optical cables and metal supports) through channel global pooling, channel weight calculation, and feature weighting. Designed to address multispectral modal differences, the spatial attention submodule 13 focuses on the slender region of the optical cable and suppresses background interference (such as pipe rack supports and pipelines) through spatial feature aggregation, spatial weight generation, and prior-guided weighted focusing. The feature recalibration submodule 14 unifies the feature dimension and suppresses redundant information through 1×1 convolution. Compared with the existing traditional feature fusion modules with single convolution stacking, single-dimensional attention, and insufficient lightweight modification, the MS-SSF module is more suitable for the actual working conditions of complex and dark backgrounds in pipe racks and slender and scattered optical cable targets. It makes up for the technical shortcomings of conventional feature fusion modules in defect target perception, anti-interference in complex backgrounds, and lightweight deployment. Specifically, the basic ConvNeXt block 11 adopts an improved ConvNeXt-T micronetwork, including a depthwise separable convolution layer, a first 1×1 pointwise convolution layer, a GELU activation layer, a second 1×1 pointwise convolution layer, a LayerNorm layer, and an adaptive residual connection layer arranged sequentially. The residual weights are generated through 1×1 convolutions and a sigmoid activation function to achieve dynamic adjustment of residual features. The kernel size of the depthwise separable convolution layer is 3×3, with a stride of 1 and padding of 1, and the number of input channels is... The number of output channels is (Channel-wise convolution), the number of input channels in the first 1×1 pointwise convolutional layer is The number of output channels is Used for channel expansion, the number of input channels of the second 1×1 pointwise convolutional layer is The number of output channels is It is used for channel compression. LayerNorm is for layer normalization. Compared with the existing technology, the traditional standard ConvNeXt uses 7×7 standard convolution. This invention replaces it with a combination of 3×3 depthwise separable convolution (DWConv) and 1×1 pointwise convolution to reduce the number of parameters. At the same time, it replaces fixed residual connections with adaptive residual weights, so that the network can adjust the residual contribution according to the input features and adapt to the lightweight deployment requirements at the edge of the pipe gallery. The formula for calculating the ConvNeXt block is: ; in, To achieve adaptive residual weights and dynamic adjustment of residual characteristics, This is an abbreviation for ConvNeXt block name. For layer normalization operation, For convolution operations with a kernel size of 1×1, For depthwise separable convolution operations with a kernel size of 3×3, For the input feature map, For adaptive residual weights, It is the Sigmoid activation function. The weight matrix is a learnable matrix. For learnable bias terms; The spectral attention submodule 12 includes a global average pooling layer, a first 1×1 convolutional layer, a ReLU activation layer, a second 1×1 convolutional layer, a sigmoid activation layer, and a channel weighting layer arranged sequentially. This is used to enhance the channel feature responses of the input feature map through channel global pooling, channel weight calculation, and feature weighting, achieving adaptive weighted fusion of multimodal data. The global average pooling layer increases the spatial dimension... Compressed to 1×1, output size is The number of input channels in the first 1×1 convolutional layer is The number of output channels is , The reduction ratio is set to 16; this operation is used for dimensionality reduction. The number of input channels for the second 1×1 convolutional layer is... The number of output channels is This operation is used for dimensionality increase; the Sigmoid activation layer generates channel weight vectors through the Sigmoid activation function. The channel weighting layer will use the channel weight vector Multiplying the input feature map channel by channel, compared with existing technologies, traditional channel attention only weights the RGB three channels. This invention designs spectral attention for multispectral modal data, captures the global response of each spectral channel through global pooling, enhances the ability of the near-infrared channel to distinguish between optical cables and metal supports, and realizes adaptive weighted fusion of multispectral information. The spatial attention submodule 13 includes, in sequence, a channel average pooling layer, a channel max pooling layer, a channel concatenation layer, a 3×3 convolutional layer, a sigmoid activation function layer, and a prior-guided weighting layer. This is used to focus on the slender region of the optical cable and suppress background interference through spatial feature aggregation, spatial weight generation, and prior-guided weighting. The channel average pooling layer compresses the channel dimension to 1, and the output size is... The channel max pooling layer compresses the channel dimension to 1, resulting in an output size of... The channel splicing layer splices the two pooling results together along the channel dimension, with an output size of [size missing]. The 3×3 convolutional layer has 2 input channels, 1 output channel, a stride of 1, and padding of 1. The sigmoid activation function layer generates a spatial weight map through the sigmoid activation function. Prior guidance weighted layers will use spatial weight graphs With fiber optic path mask Element-wise multiplication yields the prior guiding space weights. Then, it is multiplied element by element with the input feature map. Compared with the existing technology, traditional spatial attention (such as CBAM) generates spatial weights and then directly multiplies them with the feature map without considering scene priors. This invention introduces a prior mask of optical cable laying path to guide the spatial weights, so that the network focuses on the thin and long area of the optical cable and forcibly suppresses the response of the background area, thus solving the problem of weak feature response caused by the low pixel ratio of optical cable in the pipe gallery scene. Feature recalibration submodule 14 includes a 1×1 convolutional layer, a BatchNorm layer, a ReLU activation function layer, and a channel attention gate layer arranged sequentially. These layers are used to unify feature dimensions and suppress redundant information through 1×1 convolution. The number of input channels in the 1×1 convolutional layer is... The number of output channels is (Unified to 1024) is used for feature dimension unification. BatchNorm is batch normalization. The ReLU activation function layer is used to introduce non-linearity. The channel attention gating layer generates channel gating vectors through 1×1 convolution and Sigmoid activation function to suppress redundant channel responses. Compared with the existing technology, the traditional feature fusion operation only unifies the dimension through 1×1 convolution. This invention adds a channel gating mechanism after dimension unification to dynamically suppress redundant information according to feature importance and improve feature expression efficiency.
[0040] Among them, such as Figure 3 and Figure 5 As shown, to address the abnormal "rate heterogeneity" of optical cables in utility tunnels, this invention designs an MB-AG-BiLSTM module 20. This module captures the temporal variation features of different rates through multi-branch temporal extraction and adaptive gating fusion, and outputs a feature map that fuses bidirectional temporal information. Specific operations include: To address the characteristic of input being sequential data, the spatial feature map is converted into a two-dimensional sequence. Simultaneously, computational complexity is controlled to meet edge requirements. The T×C×H×W spatial feature map is transformed into a T×(C×H×W) two-dimensional sequence through a reshape operation. ,in, The sequence features after dimensionality reduction Let T represent the dimensions of a single-frame feature after flattening, C represent the number of channels in the feature map, H represent the height of the feature map, and W represent the width of the feature map. T×C×H×W indicates that the feature map shape is a 4-dimensional feature. T×(C×H×W) indicates that (C×H×W) is multiplied to become a 2-dimensional feature, which is then processed by a 1×1 convolution (kernel size 512×1024). The dimensionality of the sequence is reduced to 1024 dimensions using a 1×1 convolution. The size of the feature map after dimensionality reduction is [size missing]. 1024 is the input dimension of the LSTM (determined through edge computing power testing), and LayerNorm is used to eliminate dimensional differences. The specific formula is as follows: ,in, and These are learnable parameters (initial values are 1 and 0 respectively). For LayerNorm, For mathematical expectation, For variance; Three parallel LSTM branches were set up to correspond to the slow, medium and fast time-series change rates of the optical cable in the tunnel. The output of each LSTM branch was upsampled to a unified dimension sequence. The branch parameters were trained and optimized with a large amount of operation and maintenance data to ensure the targeting of anomalies. Adaptive gated fusion calculates the gate coefficients through the inter-frame feature difference, designs a forget gate and input gate linkage mechanism to achieve dynamic balance between historical features and new features, and then allocates the weights of each LSTM branch through the gate coefficients. A bidirectional LSTM structure is constructed and forward and backward temporal features are output. Attention fusion is used to strengthen the temporal features with high correlation to obtain the final fused features. Combined with reshape operation, 1×1 convolution and frame selection, the final temporal feature map is output. Specifically, such as Figure 5 As shown, the three parallel LSTM branches include: Slow branch: 2-layer LSTM, 256 hidden units, sampled once every 4 frames, adapted to water immersion (0.1 pixels / frame) and slow deformation (0.2 pixels / frame), long sampling interval improves feature aggregation capability, Dropout=0.15, prevents overfitting on small samples; Medium-speed branch: 2-layer LSTM, 512 hidden units, sampling once every 2 frames, adapting to mechanical compression (1 pixel / frame) and loose connections (0.8 pixels / frame). The medium sampling interval balances detail and efficiency. Dropout=0.2, LayerNorm inter-layer connections. Dropout is a regularization technique that represents random deactivation; for example, during training, the output of some neurons in the network is randomly set to zero with a certain probability (e.g., 0.2), equivalent to training a "sub-network" in each iteration. LayerNorm is a normalization technique that represents layer normalization. Normalization, which normalizes the output of all neurons in the same layer of a single sample (mean 0, variance 1), is independent of batch size. Dropout and LayerNorm are both commonly used regularization and normalization methods in deep learning. Setting Dropout=0.2 in the medium-speed branch aims to regularize the high-dimensional LSTM and prevent overfitting to medium-speed features such as mechanical compression. LayerNorm is used to normalize the output distribution between layers and stabilize the training dynamics of deep temporal networks. Together, they ensure that this branch has good generalization ability while balancing details and efficiency. Fast branch: 1-layer LSTM, 128 hidden units, full-frame sampling, adapting to temporary occlusion (5 pixels / frame) and sudden vibration, full sampling to capture instantaneous changes, low hidden units to control computational load, L2 regularization (weight decay = 0.001). The outputs of each LSTM branch are upsampled (using linear interpolation to avoid the transposed convolution checkerboard effect) and unified into a 20×C dimension sequence, where C is 256 for the slow branch, 512 for the medium branch, and 128 for the fast branch; Specifically, such as Figure 5 As shown, to avoid the "lack of future information" problem in unidirectional time series extraction, a bidirectional LSTM structure is constructed, and the sequence features are reconstructed into spatial feature maps to adapt to subsequent cross-scale fusion requirements: Bidirectional advance detection: The forward LSTM (t→20) captures the evolution trend of anomalies, while the backward LSTM (20→t) captures the pre-anomaly features. t represents the current time / time step, the basic time marker for the time series data. t→20 represents the time flow of the forward LSTM, indicating an inference from the current time t to the 20th time step. 20→t represents the time flow of the backward LSTM, indicating a backward inference from the 20th time step back to the current time t. 20 is the length of the time series sliding window, representing that the model will extract historical data from 20 consecutive time steps as input for each inference iteration. The outputs are forward and backward time series features, respectively. and ; Calculate the matching weights for bidirectional features: By strengthening highly correlated temporal features through dot product operations, the final fused features are obtained: , For the matching weights of bidirectional features, This is a forward temporal feature map. This is a backward time series feature map. For a moment, For the index variable of the sequence time step, for Forward temporal feature map at time step, for Back-time series feature map at time step, for Forward temporal feature map at time step, for Back-time series feature map at time step, For the final fusion feature, It is an exponential function; The final fused features are then processed using a reshape operation. The result is converted into a 20×1024×192×256 tensor, which is then subjected to a 1×1 convolution (keeping the number of channels at 1024) and frame selection (taking the last frame to meet real-time monitoring requirements) to output the final temporal feature map.
[0041] In this embodiment, adaptive gated fusion is used to achieve dynamic weighting of branch features through inter-frame variation quantization and gate coordination, solving the problem of "poor generalization" in traditional fixed-weight fusion. Specifically, it includes: Using the inter-frame feature difference as input, the gating coefficient is calculated as follows: ; in, The gating coefficient is and satisfies , An adjustment coefficient specifically designed for utility tunnel scenarios. The image of the current frame. The image from the previous frame. (Determined through testing with 500 sets of abnormal samples, making...) (Optimal discrimination) Represented as the L2 norm, it quantifies the differences in features between frames. It is an exponential function. The closer the gate coefficient is to 1, the more significant the inter-frame changes are, indicating that an anomaly has occurred. Conversely, it is a normal fluctuation. Design a mechanism that links the forget gate and the input gate. The forget gate is represented as follows: The input gate is represented as: ; in, For the output parameters of the forget gate, The output parameters of the input gate, Using the sigmoid activation function constrains the output to the [0,1] interval, ensuring the interpretability of the weights. As a historical feature, For the bias term of the forget gate, The input gate weight matrix, For the bias term of the input gate, When it increases Synchronous increase, preserving more historical anomaly features. When it increases Simultaneous increase enhances the capture of new anomalies; The weights of each branch are assigned using gating coefficients, expressed as follows: ; in, The timing characteristics after gating fusion , and All are LSTM branch weight matrices. LSTM cell state For the tanh function, , and All of these are output features of the LSTM branch.
[0042] Among them, such as Figure 3 and Figure 4 As shown, to address the semantic gap problem of features at different scales, this invention designs a PASF module 30. This module is used to deeply fuse the output feature map of the MS-SSF module 10 with the temporal feature map output by the MB-AG-BiLSTM module 20, incorporating prior knowledge and temperature features of the pipe gallery scene, and outputting a fused feature map of a unified scale. Specific operations include: A unified feature pyramid is constructed. The number of channels in the output feature map of the MS-SSF module 10 and the number of temporal feature channels of the MB-AG-BiLSTM module 20 are adjusted to a unified number (from 1024 to 256) using a 1×1 convolution. Then, transposed convolutions (stride 2, kernel 3×3) are used to upsample the features at each level to the input image size (1536×2048), resulting in the pyramid feature structure. ,in, , , and Corresponding to the 4th level upsampling feature of MS-SSF module 10, The results of temporal feature upsampling are all 256×1536×2048; Will , , and The feature map is concatenated along the channel dimension. The spliced dimensions are 256×1536×2048, and the spliced feature map is flattened: , This is a splicing feature diagram after flattening. Tensor operations represent changes to the data dimensions and order without altering the values of the data elements; At the same time It is also flattened into a 256×(1536×2048) characteristic matrix. ; Based on the output feature map of the MS-SSF module and the temporal feature map of the MB-AG-BiLSTM module, a spatial-temporal matching matrix is calculated to obtain the spatial and temporal features. Applying this matching matrix to the temporal features yields the matching features associated with the spatial features. The formula for calculating the spatial-temporal matching matrix is as follows: ; in, This is the space-time matching matrix. For normalized exponential functions, This is the output feature map of the MS-SSF module. The time-series feature map output by the MB-AG-BiLSTM module; The matching features are fused with optical cable path mask, fault-prone area mask and normalized temperature features to enhance the features of abnormal heating areas. The specific operation is divided into two steps as follows: Prior weighting: ,in, For fiber optic path mask, For areas prone to failure (weight 1.2 for areas such as junction boxes); Temperature fusion: normalized temperature characteristics and Element-wise multiplication yields the enhanced feature map. , The normalized temperature characteristics, The result is a priori weighted; By employing both top-down and bottom-up bidirectional aggregation, high-level semantics and low-level details are conveyed. The aggregated features are then concatenated, and fused features are output through 3×3 convolution (stride 1) and BatchNorm (batch normalization). The top-down aggregation... Starting from the top layer, the features are downsampled and then compared with... , , Feature addition conveys high-level semantic information, and aggregation is performed from bottom to top. Starting from the (bottom layer), the features are upsampled and then compared with... , , Feature addition supplements low-level detail information to obtain a fused feature map. ; The steps for generating the optical cable path mask include: extracting a set of two-dimensional coordinate points for the optical cable laying path from the CAD drawings of the utility tunnel, with the coordinate system consistent with the pixel coordinate system of the acquired image; connecting the extracted two-dimensional coordinate points into a continuous path using the Bresenham line algorithm; setting the width of the continuous path to the number of pixels corresponding to the actual diameter of the optical cable (e.g., 20mm) (approximately 8 pixels after camera calibration); generating a binary mask with pixel values of 1 for the optical cable area and 0 for the background area; performing a morphological dilation operation on the binary mask (with a circular structuring element and a radius of 3 pixels); filling in minor breaks in the path; and obtaining a complete optical cable path mask. And satisfy , For height dimension, Width dimension; The steps for generating a fault-prone area mask include: collecting historical fault records from the utility tunnel maintenance; marking a 1m radius around junction boxes, pipeline intersections, compartment entrances / exits, and sections prone to water accumulation as fault-prone areas based on these records; mapping the physical coordinates (compartment number - mileage marker - lateral offset) of these fault-prone areas to image pixel coordinates via coordinate transformation to generate polygonal regions; assigning values to pixels within the mapped polygonal regions, non-fault-prone areas along the fiber optic cable path, and the background region; assigning a value of 1.2 (enhanced weight) to pixels within the mapped polygonal regions, a value of 1.0 (basic weight) to non-fault-prone areas along the fiber optic cable path, and a value of 0 to the background region to obtain the fault-prone area mask. And satisfy ; The steps for generating normalized temperature characteristics include: simultaneously acquiring optical cable temperature distribution images using a thermal imager to obtain raw temperature values, and then refining the raw temperature values acquired by the thermal imager according to the aforementioned calibration formula. Pixel-by-pixel calibration yields the true temperature value of the calibrated optical cable. Spatial alignment, size matching, and normalization operations are performed on the calibrated temperature data to obtain normalized temperature characteristics. And satisfy .
[0043] Among them, such as Figure 3 , Figure 4 and Figure 6 As shown, in order to simultaneously achieve the dual objectives of "pixel-level state segmentation" and "anomaly reliability verification", the following will be implemented: After performing three levels of upsampling, this invention designs a dual-branch Decoder40, which includes a semantic segmentation branch and a confidence branch. The semantic segmentation branch is the main path, and the confidence branch is the auxiliary path. This structure allows for parallel processing of features. They share the underlying upsampling structure, and both paths start with the feature map output by Pixel Shuffle (a type of upsampling method) and execute their respective processes in parallel. The semantic segmentation branch completes feature calibration through 1×1 convolution dimensionality reduction and LayerNorm (layer normalization) standardization. Then, it uses a binary space prior mask (1 for the optical cable area and 0 for the background area) to weight the calibration features element by element. Subsequently, it captures local state differences through 3×3 convolution and generates pixel-level probability distribution through Softmax activation. Finally, it takes the maximum probability to obtain the semantic segmentation map, achieving accurate segmentation of the optical cable status and solving the background interference problem caused by the dense equipment in the pipe gallery. The confidence branch enhances local correlation features through 3×3 convolution, then extracts global feature vectors through global average pooling. Subsequently, the global feature vectors are weighted element-wise with the semantic prior weight map (faulty areas have weights of 1.0~1.2) to strengthen feature responses (such as high-risk areas like junction boxes). The channel is reduced from 32 to 16 and finally to 1 through two fully connected networks (FCNN). Then, it is activated with a sigmoid function to generate a confidence map (the sigmoid function transforms the input value between 0 and 1, which represents the segmentation confidence), quantifying the reliability of the segmentation result. The semantic prior weight map is a weight map generated based on the prior of the utility tunnel scene. It is used to strengthen the feature response of fault-prone areas in the confidence branch. The generation steps include: masking the optical cable path. and faulty area mask Performing element-wise weighted summation is represented as: The basic weight of the optical cable path area is 1.0, and the fault-prone area receives an additional weight of 0.2 on top of the basic weight. This weighted summation is applied to the weighted graph. Gaussian filtering (kernel size 5×5, standard deviation 1.5) is performed to eliminate hard boundary effects at mask edges, making the weight transition smooth. Then, Min-Max normalization is performed on the smoothed weight map to the [0,1] interval to obtain the semantic prior weight map. ; After the dual-branch Decoder40 outputs the semantic segmentation map and the confidence map, it then uses an anomaly verification mechanism to filter out false detections caused by environmental interference, ensuring that the abnormal information output to the utility tunnel system is reliable and that the verification process is deeply adapted to the utility tunnel scenario.
[0044] Specifically, such as Figure 2 As shown, Figure 2 This is a schematic diagram of the overall process of the present invention. In this embodiment, the MS-SSF module 10 with four levels of serial stacking is used to extract hierarchical spatial features step by step. After the four levels of MS-SSF complete the spatial feature extraction, they are connected to the MB-AG-BiLSTM module 20. The output of each MS-SSF module 10 and MB-AG-BiLSTM module 20 is configured with a 1×1 convolution-depthseparable convolution. The data flow from top to bottom is as follows: input features → first level MS-SSF → second level MS-SSF → third level MS-SSF → fourth level MS-SSF → MB-AG-BiLSTM. The four-layer MS-SSF employs a stepped downsampling cascade structure, progressively expanding the receptive field from shallow to deep layers. It extracts spatial features of optical cables at different granularities layer by layer. The first-layer MS-SSF (shallow module) receives the pre-processed original image feature map and is responsible for extracting shallow fine-grained features of the image, including details such as optical cable edges and skin texture. The second and third-layer MS-SSF (middle-layer modules) receive the feature map after downsampling from the previous layer, gradually compressing the feature map size and increasing the number of feature channels, taking into account both local textures and the overall outline of the optical cable area, and capturing medium-scale target features. The fourth-layer MS-SSF (deep top-layer spatial module) is the end module of the spatial extraction branch, with a receptive field covering the entire scene, outputting global high-level semantic features, representing global information such as the overall distribution of optical cables and the background environment of the pipe gallery. The MB-AG-BiLSTM module 20 input is the continuous frame top-layer spatial feature sequence output by the fourth-layer MS-SSF, which is also configured with 1×1 convolution-depth separable convolution to align the temporal feature channels and scale with the four-layer spatial features, outputting temporal features of uniform specifications. The aforementioned features are jointly output to the downstream PASF module 30, enabling the combined use of multi-scale spatial information and temporal dynamic information. , , , , This corresponds to the multi-scale feature map output by five 1×1 convolutional-depthseparable convolutions. The feature map is the output of the 5th layer 1×1 Conv-DWConv, with 512 channels, containing the semantic information of the highest layer. The feature map is the output of the 4th layer 1×1 Conv-DWConv, with 256 channels. The feature map is the output of the 3rd layer 1×1 Conv-DWConv, with 128 channels. The feature map is the output of the second layer, a 1×1 Conv-DWConv, with 64 channels. The feature map is the output of the first layer 1×1 Conv-DWConv, which has the fewest channels, the highest resolution, and retains the most spatial details; Output from the bottom-up aggregation path, integrating the underlying layers. Detailed information of the feature map and temporal correlation features in the middle layer, Output is spliced from a bidirectional aggregation intermediate layer. The output is aggregated from top to bottom, merging the top layer. The semantic information of the feature map is fused with the high-level temperature-prior features. These refined features correspond to different semantic granularities and are used by the subsequent dual-branch Decoder40 for state recognition.
[0045] Specifically, to verify the effectiveness and practicality of the above method, the actual application scenario was "full coverage monitoring of multi-compartment optical cables in urban integrated utility tunnels". The monitoring covered a 3km section of the utility tunnel, including power and communication compartments (including 6 communication optical cables and 4 power optical cables, 30 junction boxes, 45 pipeline intersections, and 52 fault-prone areas). The overall steps of the method of this invention were presented, and the monitoring effect of 6 states of optical cables (normal, abnormal heating, mechanical compression, loose joints, water immersion, and sheath wear) was achieved. 1. Preliminary preparations The monitoring range covers the urban integrated utility tunnel from K0+000 to K3+000, including the power compartment (3m wide, 2.8m high) and the communication compartment (2.5m wide, 2.6m high). Fiber optic cables are laid using both bracket suspension (2m spacing) and conduit installation (at pipeline intersections). One junction box is deployed every 200m. Fault-prone areas are marked within 1m of the junction box, pipeline intersections, compartment entrances / exits, and sections prone to water accumulation. Environmental conditions include: interior temperature 16-35℃, relative humidity 60%-90%, LED lighting flicker (50Hz frequency), electromagnetic radiation from equipment operation (electric field strength ≤12V / m), and slight dust coverage in some sections. Monitoring objectives: pixel-level segmentation of six fiber optic cable states, anomaly location error ≤5cm, single-frame inference speed ≤100ms, small target anomaly (loose joints, worn sheath) false negative rate ≤8%, and overall false positive rate ≤5%. Data Acquisition Equipment: The multispectral camera selected is MV-EM500M (resolution 1536×2048, frame rate 8 frames / second, integrated RGB, near-infrared, 940nm polarization channel), with the lens equipped with an IP67 anti-fog and dustproof cover. It is deployed at 50m intervals on the top brackets of the power compartment and communication compartment (60 units in total), with the lens facing the area where the optical cable is laid to ensure no blind spots. The thermal imager is mounted on the track inspection robot (moving speed 0.5m / s), and the selected model is FLIRA655sc (temperature measurement range -20℃~150℃). It is linked with the fixed multispectral camera through industrial Ethernet, and the sampling interval is consistent with that of the multispectral camera (0.125s / frame). Other auxiliary equipment includes edge computing nodes, environmental sensors, positioning modules, and transmission networks. The edge computing nodes are selected as NVIDIA Jetson AGXXavier (GPU computing power 32TOPS), deployed at 1km / unit (3 units in total), located at K0+500, K1+500, and K2+500 respectively, responsible for data preprocessing and model inference within the jurisdiction. The environmental sensors and multispectral cameras are deployed at the same locations, with a sampling frequency of 1Hz, to synchronously collect environmental parameters inside the cabin. The positioning module adopts UWB positioning and is integrated with the multispectral camera and inspection robot to generate 3D tags. The transmission network is industrial Ethernet (transmission rate 1Gbps). Dataset construction: 50,000 frames of normal state images were collected (covering different compartments, lighting, and environmental humidity scenarios), and 15,000 frames of artificially simulated and real fault anomaly samples were collected (including 6 types of optical cable conditions, including 3,000 frames of abnormal heating, 2,500 frames of mechanical compression, 3,000 frames of loose joints, 2,500 frames of water immersion, 2,000 frames of surface wear, and 2,000 frames of temporary obstruction). All samples were labeled with semantic segmentation tags using the LabelMe tool (optical cable area as foreground, background including supports, walls, equipment, etc.). The temperature, area, rate of change, compartment, coordinates, and other attributes of the anomaly samples were recorded in a structured table. Model training hardware: CPU Intel Xeon Gold 6248 (20 cores), GPU NVIDIA Tesla V100 (32GB VRAM), RAM 128GB, hard drive 2TB SSD; Model training software: Operating system Ubuntu 20.04, deep learning framework PyTorch 1.12.1, CUDA 11.6, OpenCV 4.5.5, Python 3.8, TensorRT 8.4.
[0046] 2. Execution Method and Steps Step S1: All multispectral cameras, inspection robots, and edge computing nodes are connected to the NTP server, and the time synchronization period is configured to be 1 second. After testing, the time deviation between multispectral images and thermal imager data is ≤7ms (meeting the ≤10ms requirement). At the same time, in the electromagnetic interference-free area in the middle of each compartment, a standard thermometer is used to calibrate the thermal imager and adjust the thermal imager parameters to ensure that the deviation between the original temperature measurement value and the standard value is ≤1℃. The exposure time of the multispectral camera is set to 10ms (adapted to LED strobe scenarios) to ensure clear imaging of the optical cable area without overexposure or underexposure. Image data is generated into 3D labels in the format of "cabin number-coordinates-timestamp". The images are transmitted back to the edge computing node in real time via industrial Ethernet. An example of a 3D label is shown below. Power Cabin -02-K0+650-X:18.7m Y:2.1m Z:2.8m-2024-07-05 10:23:15.003; The inspection robot travels along a preset path (along a track parallel to the optical cable) at a speed of 0.5 m / s, simultaneously collecting temperature images of the optical cable to ensure that the thermal imager covers the entire area where the optical cable is laid. The thermal imager pauses for 3 seconds every 50 m (collecting an additional 24 frames of data), and the coordinate information is updated in real time through the positioning module during the acquisition process. For each frame of RGB image and thermal image, the SIFT feature matching algorithm is used for spatial alignment. Feature points such as the edge of the optical cable and the corner of the junction box are selected (no less than 20 matching points per frame). The alignment error is calculated. After testing, the alignment error of all images is ≤1.6 pixels (meeting the requirement of ≤2 pixels), thereby ensuring the spatial consistency of multimodal feature fusion.
[0047] Step S2: Perform VMD decomposition on the acquired RGB and near-infrared images according to the objective function, and decompose the number of modes. Four modal components (high frequency, mid-high frequency, mid-low frequency, and low frequency) were obtained. The kurtosis value of the decomposed high frequency component was calculated, and the component with a kurtosis value >5 was identified as electromagnetic noise (such as high frequency noise generated by equipment operation). The noise and effective signal were separated by the ICA algorithm, and the effective modal components with a kurtosis value ≤5 were fused according to the reconstruction formula to obtain the denoised image. After testing, the signal-to-noise ratio (SNR) of the denoised image was improved from 27dB to 41dB, and the outline and details of the optical cable were clear without noise. Import the CAD drawings of the utility tunnel (DWG format), extract the optical cable laying path using AutoCAD secondary development tools, and generate a binary prior mask (optical cable area is 1, background is 0). The mask resolution is consistent with the acquired image (1536×2048). Call the OpenCV library to perform Canny edge detection (double threshold set to 50 / 150) to extract the initial outline of the optical cable. Perform morphological closing operation on the outline (structuring element 3×3 rectangle, iteration count 1) to fill the gaps between supports and small fracture areas. Then, based on the prior mask, crop the ROI area to obtain the region of origin (average size 350×850 pixels). After testing, the data volume is reduced by 72% compared with the original image, which greatly improves the efficiency of subsequent processing. Perform temperature calibration on thermal imager data and obtain real-time ambient temperature from environmental sensors. The actual distance between the thermal imager and the optical cable is obtained by camera ranging. The calibration formula is: After calibrating 1000 temperature samples, compared with a standard thermometer, the temperature error is ≤0.4℃, which meets the accuracy requirements for abnormal heating identification. Example 1: Raw temperature measurement value of thermal imager at K1+200 in the power compartment. The ambient temperature is 48℃. The temperature is 28℃, and the actual distance is... The value is 4.2m. Substituting this into the formula, we get: This was determined to be an abnormal fever; Example 2: Raw temperature measurement value of thermal imager at K2+300 in the communication cabin. The ambient temperature is 32℃. The temperature is 24℃, and the actual distance is... The value is 5.1m. Substituting this into the formula, we get: The temperature was determined to be normal.
[0048] Step S3: Construct an adaptive gated temporal fusion network for multi-scale spatial feature extraction, and sequentially extract and fuse features from multimodal data through MS-SSF module 10, MB-AG-BiLSTM module 20, and PASF module 30. MS-SSF module 10 is based on ConvNeXt-T, replacing the standard convolution with depthwise separable convolution (kernel size 3×3) and 1×1 convolution. MS-SSF module 10 includes a basic ConvNeXt block 11, a spectral attention submodule 12, a spatial attention submodule 13 and a feature recalibration submodule 14. The spectral attention submodule 12 enhances the feature response of the near-infrared channel, the spatial attention submodule 13 focuses on the slender region of the optical cable, and the feature recalibration submodule 14 unifies the feature dimension to 1024 through 1×1 convolution. The MB-AG-BiLSTM module 20 is configured with 3 parallel LSTM branches, featuring a dedicated adjustment coefficient for utility tunnel scenarios. (Determined based on 500 sets of abnormal samples), the number of hidden units in the bidirectional LSTM is set to 1024, and the output temporal feature map after feature reconstruction is 1536×2048×1024. The parallel LSTM branches are shown below: Slow branch: 2-layer LSTM, 256 hidden units, sampled once every 4 frames, Dropout=0.15, adapted for water immersion and slow deformation; Medium-speed branch: 2-layer LSTM, 512 hidden units, sampled once every 2 frames, Dropout=0.2, adapted to mechanical compression and loose connectors; Fast branching: 1-layer LSTM, 128 hidden units, full-frame sampling, L2 regularization (weight decay = 0.001), adaptable to temporary occlusion and sudden vibration; PASF module 30 uses 1×1 convolution to adjust the 4-level spatial features (64, 128, 256, 512 channels) of MS-SSF module 10 and the temporal features (1024 channels) of MB-AG-BiLSTM module 20 to 256 channels. It then uses transposed convolution (stride 2, kernel size 3×3) to upsample to 1536×2048, constructs a feature pyramid, and fuses the optical cable path mask, fault-prone area mask (weight 1.2), and normalized temperature features. After bidirectional pyramid aggregation, it outputs a fused feature map (1536×2048×256). Model training: The model was divided into training, validation, and test sets in a 7:2:1 ratio. The training set employed data augmentation strategies such as random flipping (horizontal / vertical), brightness adjustment (±10%), Gaussian blur (kernel size 3×3), and random cropping. Training parameters included a batch size of 8, 100 epochs, and an initial learning rate of 0.001 (using the CosineAnnealingLR scheduler, decaying to 1 / 10 of the original learning rate every 20 epochs). The loss function was "cross-entropy loss (semantic segmentation branch) + MSE loss (confidence branch)". The optimizer was AdamW (weight decay = 0.0001). Training was stopped after 65 epochs if the validation set mIoU (mean intersection-union ratio) reached the optimal level (91.8%) and showed no improvement for 5 consecutive epochs. The optimal model weights are saved, and then the trained model is quantized with INT8 precision using TensorRT (TensorRT INT8 precision quantization is a deep learning model inference optimization technique, which replaces the default floating-point precision (FP32 / FP16) with lower numerical precision (INT8, 8-bit integer), improving inference speed and reducing memory usage with almost no loss of precision). After optimization, the single-frame inference speed is increased from 115ms to 42ms (meeting the real-time monitoring requirement of ≤100ms). It adapts to the storage and computing power requirements of edge computing nodes. The edge computing nodes receive the preprocessed multimodal data and perform inference according to the process of "MS-SSF→MB-AG-BiLSTM→PASF→dual-branch Decoder", outputting a semantic segmentation map (pixel-level state classification) and a confidence map (values from 0 to 1).
[0049] Step S4, Semantic Segmentation Branch: The fused feature map output by PASF module 30 is upsampled by 3 levels of Pixel Shuffle, then reduced to 6 channels (corresponding to 6 optical cable states) by 1×1 convolution. After LayerNorm normalization, it is weighted element by element using spatial prior mask (to shield background interference). After Softmax activation, the semantic segmentation map is obtained. The pixel classification probability of each state of the optical cable is ≥0.85. Confidence branch: Global average pooling is performed on the fused feature map to extract the global feature vector. After being weighted with the semantic prior weight map (the weight of the faulty region is 1.0~1.2), it is mapped through a "32→16→1" fully connected network and activated by Sigmoid to generate a confidence map. The average confidence of abnormal regions is ≥0.90 and the confidence of normal regions is ≤0.35. Execute exception verification mechanism: First-level initial screening: For abnormal regions in the semantic segmentation map, calculate the mean confidence score and temperature difference. If the calculation results meet the following conditions: the confidence score of the abnormal region is ≥0.88 and the temperature difference of abnormal heating (abnormal region temperature - mean normal region temperature) is ≥8℃, then it is considered abnormal heating. If the confidence score of the abnormal region is ≥0.88 and the area ratio of other abnormal regions (mechanical extrusion, loose joints, etc.) is ≥0.02, then it is considered other abnormality. All of the above conditions will proceed to the second-level verification. Otherwise, it will be marked as suspected interference and only recorded without alarm. Secondary verification: Calculate the mean inter-frame IoU of the abnormal region in 5 consecutive frames. If the calculation result satisfies the mean inter-frame IoU ≥ 0.75, it is judged as a continuous abnormality (such as water immersion or mechanical compression). Otherwise, it is judged as a temporary occlusion based on the rate of change. For example, if it meets the condition of "rapid change of 5 pixels / frame" and there is no temperature abnormality, it is marked as "temporary occlusion" (such as an inspection robot passing by). Three-level classification: The anomaly type and verification result are divided into three risk levels. Level 1 risk triggers audible and visual alarms, Level 2 risk triggers operation and maintenance early warning, and Level 3 risk triggers log recording. The recorded data is used for model iteration and optimization, and structured output is generated according to the risk level.
[0050] In summary, this invention outperforms existing baseline models in terms of optical cable status segmentation accuracy and anomaly detection rate, and can meet the requirements for accuracy, real-time performance and reliability in actual operation and maintenance of utility tunnels.
[0051] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for monitoring the status of optical cables and identifying anomalies in underground utility tunnels, characterized in that, Specifically, the following steps are included: Step S1: Deploy the acquisition equipment using a fixed node, mobile inspection mode to simultaneously acquire multispectral images and thermal imager data of the underground pipe gallery to obtain multimodal data. Based on the NTP time synchronization protocol, control the time deviation of the multimodal data to ≤10ms. Achieve spatial alignment with an alignment error of ≤2 pixels through SIFT feature matching. Step S2: The VMD-ICA joint denoising algorithm is used to denoise the multispectral image to obtain a denoised image. Then, a priori mask for the optical cable laying path is generated based on the CAD drawing of the pipe gallery. The ROI region is generated by combining Canny edge detection and morphological closing operation. Finally, the thermal imager data is calibrated according to the calibration formula to obtain calibrated temperature data. Temperature feature map generation is performed on the calibrated temperature data through spatial alignment and size matching, normalization processing, and channel expansion. Step S3: Construct an adaptive gated temporal fusion network for multi-scale spatial feature extraction. The multimodal data preprocessed in step S2 is sequentially processed through the MS-SSF module, MB-AG-BiLSTM module, and PASF module to extract and fuse features, and output feature maps of fused spatial dimension, temporal dimension, temperature dimension, and scene dimension. Step S4: Process the output fusion feature map based on the dual-branch Decoder to output pixel-level semantic segmentation map and confidence map. Combine the temperature feature map and multi-frame time series data, and complete the anomaly identification and graded alarm of the optical cable through the anomaly verification and grading module. The adaptive gated temporal fusion network in step S3 is a specific deep learning model for monitoring optical cables in underground utility tunnels. It includes an MS-SSF module, an MB-AG-BiLSTM module, a PASF module, and a dual-branch Decoder. The input is preprocessed multimodal data, and the output is pixel-level optical cable state segmentation results and anomaly confidence. The dual-branch Decoder includes a semantic segmentation branch and a confidence branch. The semantic segmentation branch is the main path, and the confidence branch is the auxiliary path. Both paths start from the feature map output by Pixel Shuffle and execute their respective processes in parallel. The semantic segmentation branch completes feature calibration through 1×1 convolution dimensionality reduction and LayerNorm normalization. Then, it uses a binary space prior mask to weight the calibration features element by element. Subsequently, it captures local state differences through 3×3 convolution and generates pixel-level probability distribution through Softmax activation. Finally, it takes the maximum probability to obtain the semantic segmentation map, achieving the segmentation effect of optical cable state. The confidence branch enhances local correlation features through 3×3 convolution, then extracts global feature vectors through global average pooling, and then weights the global feature vectors with the semantic prior weight map element by element to strengthen the feature response. The confidence map is generated by mapping through a fully connected network and activating with Sigmoid to quantify the reliability of the segmentation results.
2. The method for optical cable status monitoring and anomaly identification for underground utility tunnels according to claim 1, characterized in that, The MS-SSF module includes a basic ConvNeXt block, a spectral attention submodule, a spatial attention submodule, and a feature recalibration submodule. The basic ConvNeXt block adopts an improved ConvNeXt-T micro-network, which includes a depthwise separable convolutional layer, a first 1×1 pointwise convolutional layer, a GELU activation layer, a second 1×1 pointwise convolutional layer, a LayerNorm layer, and an adaptive residual connection layer arranged in sequence. The residual weights are generated by 1×1 convolution and the Sigmoid activation function to achieve dynamic adjustment of residual features. The spectral attention submodule includes a global average pooling layer, a first 1×1 convolutional layer, a ReLU activation layer, a second 1×1 convolutional layer, a Sigmoid activation layer, and a channel weighting layer arranged sequentially. It is used to enhance the channel feature response of the input feature map through channel global pooling, channel weight calculation, and feature weighting. The spatial attention submodule includes a channel average pooling layer, a channel max pooling layer, a channel splicing layer, a 3×3 convolutional layer, a Sigmoid activation function layer, and a priori guided weighting layer, which are used to focus on the slender region of the optical cable and suppress background interference through spatial feature aggregation, spatial weight generation, and prior guided weighting. The feature recalibration submodule includes a 1×1 convolutional layer, a BatchNorm layer, a ReLU activation function layer, and a channel attention gating layer arranged in sequence, which are used to unify the feature dimension and suppress redundant information through 1×1 convolution.
3. The method for optical cable status monitoring and anomaly identification for underground utility tunnels according to claim 2, characterized in that, The MB-AG-BiLSTM module captures temporal variation features at different rates through multi-branch temporal extraction and adaptive gating fusion, and outputs a feature map that fuses bidirectional temporal information. Specific operations include: To address the characteristic of input being sequential data, the spatial feature map is converted into a two-dimensional sequence. The high-dimensional sequence is then reduced to the LSTM input dimension through 1×1 convolution, and LayerNorm is used to eliminate dimensional differences. Three parallel LSTM branches are set up to correspond to the slow, medium and fast time-series change rates of the optical cable in the tunnel, respectively. The output of each LSTM branch is upsampled to a unified dimension sequence. The adaptive gating fusion calculates the gating coefficients through the inter-frame feature difference, designs a forget gate and input gate linkage mechanism to achieve dynamic balance between historical features and new features, and then allocates the weights of each LSTM branch through the gating coefficients. A bidirectional LSTM structure is constructed and forward and backward temporal features are output. Attention fusion is used to enhance the temporal features with high correlation to obtain the final fused features. Combined with reshape operation, 1×1 convolution and frame selection, the final temporal feature map is output.
4. The method for optical cable status monitoring and anomaly identification for underground utility tunnels according to claim 3, characterized in that, The adaptive gated fusion is used to achieve dynamic weighting of branch features through inter-frame variation quantization and gated coordination, specifically including: Using the inter-frame feature difference as input, the gating coefficient is calculated as follows: ; in, The gating coefficient is and satisfies , An adjustment coefficient specifically designed for utility tunnel scenarios. The image of the current frame. The image from the previous frame. Represented as L2 norm, It is an exponential function. The closer the gate coefficient is to 1, the more significant the inter-frame changes are, indicating that an anomaly has occurred. Conversely, it is a normal fluctuation. Design a mechanism that links the forget gate and the input gate. The forget gate is represented as follows: The input gate is represented as: ; in, For the output parameters of the forget gate, The output parameters of the input gate, It is the sigmoid activation function. As a historical feature, For the bias term of the forget gate, The input gate weight matrix, This is the bias term for the input gate; The weights of each branch are assigned using gating coefficients, expressed as follows: ; in, The timing characteristics after gating fusion , , All are LSTM branch weight matrices. LSTM cell state For the tanh function, , , All are output features of the LSTM branch.
5. The method for optical cable status monitoring and anomaly identification for underground utility tunnels according to claim 3, characterized in that, The PASF module is used to deeply fuse the output feature map of the MS-SSF module with the temporal feature map output by the MB-AG-BiLSTM module, incorporating prior knowledge and temperature features of the utility tunnel scene, and outputting a fused feature map of a uniform scale. Specific operations include: A unified feature pyramid is constructed. The number of output feature map channels of the MS-SSF module and the number of temporal feature channels of the MB-AG-BiLSTM module are adjusted to a unified number through 1×1 convolution. Then, transposed convolution is used to upsample the features at each level to the input image size to obtain the pyramid features. Based on the output feature map of the MS-SSF module and the temporal feature map of the MB-AG-BiLSTM module, a spatial-temporal matching matrix is calculated to obtain the spatial and temporal features. Applying this matching matrix to the temporal features yields the matching features associated with the spatial features. The formula for calculating the spatial-temporal matching matrix is as follows: ; in, This is the space-time matching matrix. For normalized exponential functions, This is the output feature map of the MS-SSF module. The time-series feature map output by the MB-AG-BiLSTM module; By integrating optical cable path mask, fault-prone area mask and normalized temperature characteristics, the characteristics of abnormal heating areas are enhanced. The specific operation is divided into two steps as follows: Prior weighting: ,in, For fiber optic path mask, Mask for faulty areas; Temperature fusion: normalized temperature characteristics and Element-wise multiplication yields the enhanced feature map. , The normalized temperature characteristics, As a priori weighted result, the characteristics of abnormal fever areas are enhanced; By combining top-down and bottom-up bidirectional aggregation, high-level semantics and low-level details are conveyed. The bidirectionally aggregated features are then concatenated, and fused features are output through 3×3 convolution and BatchNorm. The steps for generating the optical cable path mask include: extracting a set of two-dimensional coordinate points for the optical cable laying path from the CAD drawing of the utility tunnel; connecting the extracted two-dimensional coordinate points into a continuous path using the Bresenham line algorithm; setting the width of the continuous path to the number of pixels corresponding to the actual diameter of the optical cable; generating a binary mask with pixel values of 1 for the optical cable area and 0 for the background area; and performing a morphological dilation operation on the binary mask to obtain the complete optical cable path mask. And satisfy , For height dimension, Width dimension; The steps for generating the fault-prone area mask include: collecting historical fault records of the utility tunnel operation and maintenance; marking the area within 1m around the junction box, pipeline intersections, compartment entrances and exits, and sections prone to water accumulation as fault-prone areas based on the historical fault records; mapping the physical coordinates of the fault-prone areas to image pixel coordinates through coordinate transformation to generate polygonal regions; and assigning values to the pixels inside the mapped polygonal regions, non-fault-prone areas of the optical cable path, and background areas to obtain the fault-prone area mask. ; The steps for generating the normalized temperature features include: performing spatial alignment, size matching, and normalization operations on the calibrated temperature data to obtain the normalized temperature features. .
6. The method for optical cable status monitoring and anomaly identification for underground utility tunnels according to claim 5, characterized in that, The semantic prior weight map is a weight map generated based on the prior of the utility tunnel scene. It is used to strengthen the feature response of fault-prone areas in the confidence branch. The generation steps include: masking the optical cable path. and faulty area mask Element-wise weighted summation is performed, and Gaussian filtering is applied to the weighted graph to eliminate hard boundary effects at mask edges, making the weight transition smooth. Then, Min-Max normalization is performed on the smoothed weighted graph to the [0,1] interval to obtain the semantic prior weighted graph. .
7. The method for optical cable status monitoring and anomaly identification for underground utility tunnels according to claim 1, characterized in that, Step S1 specifically includes: Multispectral cameras integrating RGB, near-infrared, and 940nm polarization channels are deployed at each node of the tunnel compartment. The frame rate of the multispectral cameras is set to 8 frames / second. A thermal imager is mounted on the track inspection robot to simultaneously collect images of the optical cable temperature distribution. The temperature measurement range of the thermal imager is -20℃ to 150℃, and its sampling interval is adapted to the sampling interval of the multispectral cameras. Based on the NTP time synchronization protocol, the time deviation between multispectral images and thermal imager data is ≤10ms. The spatial alignment of RGB images and thermal imager images is achieved through SIFT feature matching, with an alignment error of ≤2 pixels. All acquired images are attached with a 3D label of compartment number-coordinate-timestamp and transmitted back to the edge computing node via industrial Ethernet.
8. The method for optical cable status monitoring and anomaly identification for underground utility tunnels according to claim 7, characterized in that, Step S2 specifically includes: Perform VMD decomposition on RGB and near-infrared images from multispectral imagery, with the objective function being: ; in, Represents the set of all modal components obtained from the decomposition, a single For the first One modal component, Represents the set of center frequencies corresponding to each modal component, a single For the first The center frequency of each mode Indicates time Find the partial derivative. It is the imaginary unit and satisfies , Denotes the square of the L2 norm. The input is the original image signal of the utility tunnel; Independent component analysis was performed on the decomposed high-frequency components to separate electromagnetic noise from the effective signal. The noise component was determined by a kurtosis value > 5. Finally, the denoised image was reconstructed. ; in, To produce a clear image signal after noise reduction. The set of indices for valid modal components, i.e., modal components with kurtosis values ≤ 5; A priori mask for optical cable laying path is generated based on the CAD drawings of the utility tunnel. The initial outline of the optical cable is extracted by Canny edge detection. The gaps are filled by morphological closing operation to generate the ROI region. Temperature calibration is performed on the thermal imager data, and the calibration formula is: ; in, To determine the true temperature value of the optical cable after calibration. The values are the raw temperature measurements collected by the thermal imager, and 0.03 is the distance correction factor for the utility tunnel scenario. 5 represents the actual distance between the thermal imager and the optical cable, 5 represents the optimal temperature measurement distance for the thermal imager, and 25 represents the standard ambient temperature during thermal imager calibration. The real-time ambient temperature inside the utility tunnel is collected synchronously by environmental sensors.
9. The method for optical cable status monitoring and anomaly identification for underground utility tunnels according to claim 3, characterized in that, The anomaly verification and classification module in step S4 adopts an anomaly verification mechanism to filter false detection data caused by environmental interference. The anomaly verification and classification module takes semantic segmentation map, confidence map, temperature feature map and multi-frame time series data as input, and outputs anomaly type, verification result and risk level. The multi-frame time series data adopts the input sequence data of MB-AG-BiLSTM module.
10. A method for monitoring and identifying the status of optical cables in underground utility tunnels according to claim 9, characterized in that, The anomaly verification mechanism in step S4 specifically includes: First-level initial screening: For abnormal regions in the semantic segmentation map, calculate the mean confidence score and temperature difference. If the calculation results meet the following conditions: the confidence score of the abnormal region is ≥0.88, the temperature difference of abnormal heating is ≥8℃, and the area ratio of other abnormal regions is ≥0.02, then proceed to the second-level verification. Otherwise, it is marked as suspected interference, and only recorded without alarm. Secondary verification: Calculate the mean inter-frame IoU of the abnormal region in multiple consecutive frames. If the calculation result satisfies the condition that the mean inter-frame IoU is ≥0.75, it is determined to be a continuous abnormality. Otherwise, the change rate is used to determine whether it is a temporary occlusion. Three-level classification: The anomaly type and verification result are divided into three risk levels. Level 1 risk triggers audible and visual alarms, Level 2 risk triggers operation and maintenance early warning, and Level 3 risk triggers log recording. The recorded data is used for model iteration and optimization, and structured output is generated according to the risk level.
Citation Information
Patent Citations
Robot and pipe rack power cabin inspection method, system and device thereof, and storage medium
CN108761290A
RGB-T image semantic segmentation method based on modal difference reduction
CN112991350A
