PAPERCommunity contribution
- Article
- Environmental Engineering
- Environmental Science & Technology
Abnormal Event Monitoring of Drainage Pipelines Based on Distributed Optical Fiber Vibration Sensing
Boyuan Xue, Haoyuan Cao, Zhi Wang, Ruihong Chen, Songliu Lu, Xiaohong Zhou
Abstract
Urban drainage networks are critical infrastructure for modern cities, yet their complex and concealed nature makes real-time monitoring of abnormal events a persistent challenge. To address this, this work proposed a distributed optical fiber vibration sensing system based on phase-sensitive optical time-domain reflectometry (Φ-OTDR) for drainage pipeline monitoring. To accurately capture abnormal events from complex environmental noise, a two-tier intelligent processing architecture comprising localization and classification modules was developed. The localization module employed an enhanced You Only Look Once (YOLO) model integrating anchor-box optimization, a channel-attention module, and an additional small-target feature layer, achieving a mean average precision of 96.8% in laboratory tests. The classification module utilized a hybrid model combining convolutional neural network, bidirectional long short-term memory, and attention classifier, achieving an overall accuracy of 98.1% for five abnormal events. During two-week of continuous field monitoring, the system localized simulated events with errors below 2.60 m and distinguished internal leakage, knocking, and drilling from walking, running, and vehicle interference with precision and recall exceeding 99.6% for the tested classes. Notably, the system successfully detected and accurately localized an actual branch pipe leakage event, demonstrating its practical effectiveness under real-world operating conditions.
1. Introduction
Urban drainage networks serve as the venous system of modern cities, representing critical infrastructure for maintaining normal urban operations, safeguarding public health, and enabling flood prevention and drainage. (1−3) While contemporary drainage management increasingly emphasizes green infrastructure and source-control measures, drainage network monitoring remains essential. (4, 5) In many cities, drainage networks have become more extensive as urbanized areas expand. (6) And prolonged exposure to extreme conditions including fluctuating water levels, microbial-induced corrosion, hydrogen sulfide attack, variable soil chemistry, and dynamic mechanical loading from overlying urban traffic renders pipelines susceptible to structural deterioration such as cracking, joint failure, and deformation, which in turn may lead to external and internal leakage. (7−9) More critically, third-party intrusions (e.g., knocking, sawing, and drilling) during urban development, have emerged as significant factors inducing major pipeline safety incidents. (10) These issues not only cause sewage exfiltration that contaminates groundwater and soil, triggering secondary disasters such as urban road subsidence, but may also exacerbate urban flooding risks through groundwater infiltration that occupies pipe capacity. (11) Therefore, abnormal event monitoring of drainage pipelines, enabling timely localization and classification of structural defects and third-party intrusions, holds urgent practical significance for ensuring urban water security, enhancing urban resilience, and achieving sustainable smart city development. (6)
Currently, detection and assessment of drainage pipelines primarily rely on conventional nondestructive testing technologies, including closed-circuit television (CCTV) inspection, quick-view (QV) pipeline inspection cameras, sonar detection, and ground-penetrating radar (GPR). (12−15) These technologies have been widely adopted in engineering practice and have demonstrated effectiveness in identifying structural defects and blockages within pipelines. However, their application is generally based on scheduled inspections or event-driven assessments, which may limit their capability to provide continuous monitoring of pipeline conditions. (7) As a result, sudden damage or gradual deterioration occurring between inspection intervals may not be immediately detected. (16) Furthermore, certain early stage defects, such as minor leakages or subsurface changes without visible surface manifestations, may be challenging to identify using conventional visual-based approaches alone. (17) Therefore, the development of complementary sensing technologies capable of supporting distributed, long-distance, and near-real-time monitoring has attracted increasing research interest in recent years. (18, 19)
Distributed optical fiber sensing, particularly phase-sensitive optical time-domain reflectometry (Φ-OTDR) based on Rayleigh scattering, has emerged as a promising approach to address these challenges. (20, 21) This technology employs optical fiber as the sensing medium, utilizing phase changes in Rayleigh backscattered light for continuous environmental vibration perception, offering inherent advantages including long measurement distances, high spatial resolution, strong electromagnetic interference immunity, and corrosion resistance. (22, 23) By deploying fibers against pipe walls or wrapping them around pipes, continuous all-weather vibration capture along pipelines becomes achievable. (24, 25) When pipe wall leakage or external intrusion occurs, the generated vibration signals transmit through the pipe wall to the fiber, inducing phase modulation. (24) In oil and gas pipeline monitoring, this technology has been successfully applied for leakage detection and damage prevention warning; however, its application in urban drainage pipelines remains in nascent stages. (26) Distributed optical fiber sensing provides continuous and real-time data that enables managers to distinguish between active ongoing issues (e.g., progressive leakage, third-party intrusion) and stable chronic conditions, thereby informing maintenance prioritization and capital planning. (19) Such sensing approaches do not replace hydraulic mass-balance analysis or CCTV inspection; instead, they can provide distributed warning information that helps decide where detailed inspection or repair should be deployed. However, drainage pipeline conditions are more complex, with unstable internal fluid flow regimes, chaotic background noise from urban surface traffic, and structural characteristics of numerous pipeline branches, presenting unique scientific challenges and technical barriers for applying Φ-OTDR technology to drainage pipeline monitoring. (17)
With the development of machine learning technology, deep learning has gradually replaced traditional digital signal processing methods, becoming the mainstream approach for analyzing Φ-OTDR time-frequency matrices. (27−30) Conventional convolutional neural networks (CNNs) and classical object detection frameworks, such as the You Only Look Once (YOLO) series, have substantially improved recognition efficiency by transforming one-dimensional time series into two-dimensional spatiotemporal images when processing optical fiber signals. (31, 32) However, abnormal event monitoring in drainage pipelines remains challenging due to several inherent factors. First, abnormal events typically occupy only a small portion of pixels within long-distance spatiotemporal matrices and are often embedded in complex background noise, which may reduce the detection accuracy of general models and increase the likelihood of missed detections or false alarms. Second, different types of abnormal events exhibit variations not only in spatial characteristics but also in temporal dependencies, reflecting complex causal relationships over time. (33) Existing approaches may encounter difficulties in simultaneously achieving real-time detection and effective feature extraction for accurate localization and classification. Therefore, the development of network architectures integrated with temporal modeling strategies has attracted increasing attention to enhance model capability in interpreting complex underground environmental signals and to support the advancement of intelligent drainage pipeline monitoring systems.
To address the above challenges, this work developed a comprehensive drainage pipeline abnormal event monitoring system based on Φ-OTDR, incorporating a two-tier intelligent processing architecture for high-precision localization and multidimensional classification of abnormal events. The key research question is whether distributed optical fiber vibration sensing can provide an effective early warning capability for drainage pipelines by determining where abnormal events occur and identifying their corresponding event types from the recorded vibration signals. In the localization stage, an enhanced YOLO-based object detection model, developed from the YOLOv5s baseline, was developed to accommodate the characteristics of small targets and complex backgrounds in abnormal event signals, aiming to enhance weak signal detection and localization performance. In the classification stage, a hybrid model integrating spatial and temporal feature extraction was constructed to enable accurate recognition of multiple types of abnormal events, including external leakage, internal leakage, knocking, sawing, and drilling. Field-scale monitoring experiments were conducted to evaluate system performance under realistic conditions. The results demonstrate stable localization repeatability and reliable classification accuracy in complex environments, including successful early detection of leakage events in branch pipelines. These findings highlight the potential of the proposed framework to support intelligent monitoring and maintenance of urban drainage infrastructure.
2. Materials and Methods
2.1. Abnormal Event Monitoring Framework for Drainage Pipelines
As shown in Figure 1, the overall methodology of the abnormal event monitoring framework for drainage pipelines based on Φ-OTDR distributed optical fiber vibration sensing technology comprised three core components, including a Φ-OTDR sensing system for continuous vibration signal acquisition along pipelines, a localization model to detect event location, and a classification model to recognize event type.

The Φ-OTDR system utilized communication-grade single-mode optical fibers as distributed sensors, enabling real-time acquisition of vibration signals along the entire pipeline length (Figure 2a). Optical fibers were introduced into the pipelines through utility access covers, wound five turns around each pipeline joint and secured with clips─a configuration that increases mechanical coupling and vibration transmission efficiency through enhanced contact area and strain accumulation at these critical failure-prone locations─and then laid linearly along the inner pipe wall and fixed using waterproof tape. Rayleigh backscattered light phase changes induced by pipeline vibrations were captured and converted into spatiotemporal signal matrices for subsequent analysis. The intelligent processing architecture followed a localization-classification paradigm. In the first tier, an enhanced YOLO model, incorporating anchor box optimization, attention mechanism introduction, and additional feature extraction layer integration, was employed to accurately localize abnormal events from complex background noise (Figure 2b). In the second tier, a hybrid model combining 2D Convolutional Neural Networks (2DCNN), Bidirectional Long Short-Term Memory (BiLSTM), and Attention modules, named 2DCNN-BiLSTM-Attention model, was designed to classify detected events into specific categories, effectively fusing spatiotemporal features of vibration signals (Figure 2c).

2.2. Φ-OTDR System
A direct power detection configuration was adopted for the Φ-OTDR system, rather than a coherent-detection scheme, which featured a simpler optical layout and lower hardware cost, making it more suitable for field monitoring applications. (34) This reliance on intensity-only measurements, which were less informative than phase-resolved schemes, necessitated the subsequent use of powerful deep learning models to achieve accurate localization and classification. The Φ-OTDR system in this work was constructed based on the hardware configuration illustrated in Figure 2a, including component-level assembly of the experimental setup (Figure S1) and final system integration (Figure S2). Specifically, the continuous light emitted by the NKT E15 laser was amplified through an erbium-doped fiber amplifier (EDFA), then filtered through a dense wavelength division multiplexer (DWDM). The filtered light was modulated into pulsed light through an acoustic-optic modulator (AOM), and the pulsed light was transmitted through a circulator into Corning SMF-28e+ single-mode optical fiber for data acquisition. After passing through the circulator, Rayleigh backscattered light was reflected back to a photodetector (PD) for conversion to electrical signals, which were then sampled by a data acquisition card (DAQ). Table S1 provides detailed system parameter settings. For subsequent analysis, digital signals were transmitted to a computer equipped with an AMD Ryzen 7 5800H 8-core 16-thread processor and Nvidia GeForce RTX 3060 Ti (11 GB) GPU. Model training and validation were implemented in Python (v3.8) under the Windows 11 operating system.
2.3. Drainage Pipeline Abnormal Event Localization Model
To facilitate accurate recognition of abnormal event types, the events first needed to be localized. The localization model proposed in this study was an enhanced object detection architecture developed based on the YOLOv5s network structure, with three key enhancements (anchor box optimization, attention mechanism introduction, and additional feature extraction layer integration) specifically designed for the detection requirements of drainage pipeline abnormal events (primarily small targets) (Figure 2b). (35) The overall model maintained the classic single-stage detection framework of the YOLOv5 series, but internal modules and connection methods have been optimized accordingly. The three specific optimization strategies are described in detail in the following paragraph.
First, we recalibrated the model’s default detection window sizes using the K-means++ clustering algorithm the bounding box dimensions (widths and heights) of all manually annotated event targets in the original 2,834 labeled samples from the laboratory pipeline simulation data set (details in Section 2.5). K-means++ is an improved initialization scheme for standard K-means that selects initial cluster centers with a probability proportional to their squared distance from the nearest existing center, thereby reducing initialization sensitivity and improving clustering stability. (36) This ensured that the detection windows matched the actual spatial footprint of pipeline vibration events, significantly reducing the chance of missing small-amplitude leaks or weak intrusion signals. Second, we integrated an adaptive feature-weighting module (Squeeze-and-Excitation attention) into the feature extraction backbone. This module calculated channel descriptors from feature maps by global pooling and learned channel-wise weights through two fully connected layers and a sigmoid activation; these weights were then multiplied with the corresponding channels so that event-related features were emphasized and less informative background channels were suppressed during training. Third, we appended a dedicated processing layer to preserve fine spatial details of weak events and fuse them with high-level contextual information. This multiscale strategy allowed the model to handle a wide range of event intensities simultaneously─from subtle seepage (small targets) to heavy impacts (large targets)─without sacrificing detection performance at either extreme. The model was trained for 100 epochs using the laboratory pipeline simulation data set (details in Section 2.5). Each epoch involved one complete pass through the training set and took approximately 1 min. Model performance was evaluated using confusion matrix (Note S1), precision-recall (PR) curve (Note S2), and frames per second (FPS) measurements (Note S3).
2.4. Drainage Pipeline Abnormal Event Classification Model
After localizing drainage pipeline abnormal events, identification and classification were performed. 2DCNN-BiLSTM-Attention model was proposed for multicategory sensing pattern recognition in distributed optical fiber vibration sensing systems (Figure 2c). 2DCNN extracted spatial features of distributed optical fiber signals through convolution operations, BiLSTM maintained temporal relationships between signals by controlling corresponding cell states, and Attention modules enhanced focus on abnormal events through weighting. Table S2 provides specific details of the model network structure.
The first layer of the hybrid structure was the 2DCNN layer, primarily used for data input and spatial feature extraction. The 2DCNN output served as input to the BiLSTM units, where temporal dependencies in time series could be maintained through the BiLSTM. Finally, fully connected layers, Attention modules, and Softmax classifiers were used to generate final recognition results for given signal values. To simplify and stabilize model training, batch normalization was employed in the hidden layers. The classification model was trained on the same laboratory pipeline simulation data set for 100 epochs, with approximately 1 min per epoch. Its performance was evaluated using a confusion matrix (Note S1), 10-fold cross-validation (Note S4), a receiver operating characteristic (ROC) curve (Note S5), and FPS measurements (Note S3).
2.5. Laboratory Data Set Generation
Five abnormal events of structural defects and third-party intrusions (external leakage, internal leakage, knocking, sawing, and drilling) were generated using a laboratory simulation apparatus (Figure 3, Note S6). Specifically, external leakage refers to water escaping from the pipe through a defect into the surrounding medium, representing potential exfiltration and associated risks of soil and groundwater contamination. Internal leakage refers to external water entering the pipe through a leakage port or damaged joint, representing infiltration that may reduce hydraulic capacity or alter flow conditions. Knocking, sawing, and drilling represent mechanical disturbances or intrusion processes associated with maintenance activities, construction-related damage, or unauthorized connections. Background noise appeared disorganized and random in the spatiotemporal matrix. External leakage and internal leakage both manifested as broadband continuous vibrations near the leakage point, but they differed in energy distribution and dominant frequency because the flow direction, coupling pathway, and pressure fluctuation conditions differed. Knocking presented as transient spike pulses with concentrated energy and rapid decay. Sawing appeared as sustained high-frequency vibration. Drilling showed low-frequency periodic vibration. With the event occurrence as the spatiotemporal center, signals from 100 sampling points (9,840–9,920 m, totaling 80 m in optical-fiber distance rather than physical pipe length) were monitored within 12,000 sampling periods (1.5 s), yielding a Φ-OTDR space-time signal matrix of 12,000 × 100. Data differentiation and single-level wavelet denoising were then applied. Ultimately, 1,032 background samples and 1,802 event samples were collected, including 270 external leakage, 423 internal leakage, 291 knocking, 366 sawing, and 452 drilling samples.

2.6. Data Augmentation
To enhance model generalization capability and mitigate class imbalance issues, augmentation processing was applied to original data while preserving the space-time characteristics of signals. For two-dimensional space-time signal matrices, traditional data augmentation methods from image recognition could not be directly adopted. To ensure that the data augmentation operations did not compromise the physical authenticity of the distributed optical fiber vibration signals, each operation must satisfy specific physical constraints (Table S3). Due to space-time characteristics, rotation was infeasible; due to causality in the temporal direction, flip was infeasible; however in the spatial direction, since perturbations near the disturbance position were essentially symmetric, flip was permissible; considering signal integrity, stretch and signal gain were also infeasible. Additionally, shift operations were permissible. The final augmentation operations were spatial/temporal shifts and spatial flipping, but not rotation, temporal flipping, stretching, or signal gain processing.
Data augmentation was performed using MATLAB (R2024b) (Figure S3). To avoid data leakage, the 2,834 independent original samples were first divided into training, validation, and test sets at a ratio of 8:1:1; augmentation was then applied only within each split so that augmented samples derived from one original matrix could not appear in a different split. Translation was first applied, shifting the signal matrix (1.5 s × 80 m) by −0.2 s, −0.1 s, 0.1 s, 0.2 s in the temporal direction and −10 m, −5 m, 5 m, 10 m in the spatial direction, generating 8 additional samples per original sample. Horizontal flipping was then considered, generating 1 additional sample per original sample. A total of (1,032 + 1,802) × (1 + 8) × 2 = 51,012 matrix samples were generated for supervised model training, validation, and testing. Model robustness was therefore interpreted with reference to both the augmented sample number and the smaller number of independent original samples.
2.7. Data Annotation
To generate label files required by the model, a combination of manual and automatic methods was used for data annotation (Figure S4). Labelimg (v1.8.6) was used to manually annotate the initial data set comprising 2,834 original event samples. Event boundaries were identified from the high-energy or characteristic texture region around the event center in the spatiotemporal matrix, and labels included both the event class and the bounding box covering the visible abnormal vibration region. Subsequently, a deep learning model was trained on this annotated data set to generate weight files. These weights were then applied in Python (v3.8) to automatically label the extended data set of the remaining 48,178 samples. All automatically generated labels were visually checked against the original matrix and the expected augmentation operation, and incorrect class labels or shifted bounding boxes were manually corrected.
3. Results and Discussion
3.1. Performance Evaluation of Drainage Pipeline Abnormal Event Localization
For model enhancement, all enhancement strategies were based on the baseline model YOLOv5s (Table 1). Specifically, anchor box optimization increased precision by 1.8% and recall by 2.3%, indicating that the adjusted anchor box dimensions better matched the actual distribution of abnormal event targets in drainage pipelines. Attention mechanism introduction improved precision by 1.9% and recall by 1.9%, demonstrating that channel attention can enhance classification accuracy and target recall. Additional feature extraction layer integration achieved the most significant performance improvement, with precision increasing by 3.6% and recall by 2.5%, validating the effectiveness of multiscale feature fusion for complex abnormal event localization. Under conditions of augmentation factor 20 (Table S4), Focal-EIoU loss function (Table S5), and attention mechanism positioned at Backbone Layer 3 (Table S6), the final comprehensive optimization scheme achieved overall enhancement compared to baseline: Precision increased to 97.4%, Recall to 93.0%, F1 score to 95.2%, and mean average precision at IoU threshold of 0.5 (mAP_0.5) to 96.8%, with parameters increasing by only 4.2% to 7.5 Million (M). The collaborative design of the three improvement schemes had a universal enhancing effect on the small target detection task. (37)
Table 1. Evaluation Indexes of YOLO Model with Different Enhancements
| Model enhancement | Precision | Recall | F1 score | mAP_0.5 | Parameters (M) |
|---|---|---|---|---|---|
| YOLOv5s (baseline model) | 93.2% | 89.8% | 91.5% | 92.6% | 7.2 |
| Anchor box optimization | 95.0% | 92.1% | 93.5% | 94.6% | 7.2 |
| Attention mechanism introduction | 95.1% | 91.7% | 93.4% | 94.6% | 7.3 |
| Additional feature extraction layer integration | 96.8% | 92.3% | 94.5% | 96.1% | 7.4 |
| Enhanced YOLO (our work) | 97.4% | 93.0% | 95.2% | 96.8% | 7.5 |
Using the laboratory pipeline simulation data set, the model was trained for 100 epochs. After approximately 80 epochs, the rate of decrease in both training and validation losses became much smaller, and the validation loss showed no substantial further improvement (Figure 4a). Therefore, the model was considered converged for this data set and training was terminated at 100 epochs. As training progressed, the bounding box regression loss for both the training and validation sets gradually decreased, demonstrating continuous improvement in object localization performance. Meanwhile, the reduction in object loss for both data sets suggested progressively improved accuracy in object identification.

Concurrently, the confusion matrix was used to evaluate the training process (Figure 4b). In this task, at a confidence level of 0.865, precision reached 100%. With a confidence threshold of 0, our model’s recall could reach 98%. The model showed higher F1 score at moderate confidence levels (approximately 0.2–0.6), indicating a good balance between precision and recall. With a confidence threshold of 0.565, the F1 score for all classes reached 96%. With an IoU threshold of 0.5, the model’s mAP_0.5 was 96.8%. Notably, in practical applications, the confidence threshold needs to be adjusted according to specific requirements to obtain optimal model performance. In drainage pipeline event monitoring, high recall is extremely important because missing events may lead to serious consequences. Therefore, the model’s confidence threshold may need adjustment to ensure sufficient positive sample identification in practical applications.
Through comparison of YOLOv5s and enhanced YOLO in typical knocking signal detection, the performance improvements brought by model enhancement could be deeply understood (Figure 4c). In two key test scenarios, enhanced YOLO demonstrated significant advantages: in the test containing both strong and weak knocking signals, the baseline model could only identify the higher-intensity signal, while enhanced YOLO successfully detected both events; in the test containing sustained knocking signals, the original model could only capture the initial intense vibration, while the improved model completely identified the entire vibration process. These differences demonstrated substantial improvements in feature extraction and signal processing achieved by enhanced YOLO.
Furthermore, the enhanced YOLO method was compared with other algorithms including SSD 300, Faster R-CNN, Swin Transformer Mask R-CNN, RetinaNet, YOLOv5s, and YOLOv5s-Transformer (Figure 4d, Table S7). Enhanced YOLO ’s high accuracy (96.8% mAP_0.5) enabled identification of various abnormal events, the high inference speed (74.8 FPS) met real-time monitoring requirements, and the lightweight design (7.5 M) facilitated deployment on edge computing devices, substantially reducing hardware costs. Particularly noteworthy was that while maintaining the high speed of YOLO-series single-stage detectors, its accuracy even surpassed complex models such as Transformer-based YOLOv5s-Transformer and Swin Transformer Mask R-CNN.
To validate the model’s adaptability to various scenarios, anti-interference experiments were conducted. By introducing various types and levels of noise, model performance change trends were quantitatively analyzed to provide data support for model selection and system design in engineering applications. Specifically, three common noise types were considered: Gaussian noise, salt-and-pepper noise, and uniform noise, each with different intensity or density parameters (Figure S5). In Gaussian noise testing, noise mean was set to 0, with noise variance set to 0.4, 0.8, 1.2, 1.6, 2.0. In salt-and-pepper noise testing, noise density was set to 0.02, 0.04, 0.06, 0.08, 0.10. In uniform noise testing, noise intensity was set to 0.04, 0.08, 0.12, 0.16, 0.20. For each batch of noise experiments, all signal matrices in training, validation, and test sets underwent noise addition processing.
Enhanced YOLO was used to identify the noise-processed signal matrices and compared with the baseline model YOLOv5s (Figure 4e). In anti-interference experiments, the enhanced YOLO model demonstrated clear advantages over the baseline. As noise intensity increased, both models showed performance degradation, but enhanced YOLO consistently maintained leadership, with advantages becoming more pronounced at higher noise levels. Specifically, for Gaussian noise, enhanced YOLO maintained 83.4% mAP_0.5, leading YOLOv5s by 12.2% when noise variance increased to 2.0; for salt-and-pepper noise, the advantage was most pronounced with a lead of 14.7% at density of 0.10; for uniform noise, enhanced YOLO consistently maintained over 10% advantage, with 88.7% mAP_0.5 at maximum intensity of 0.20, 12.8% higher than YOLOv5s. Experimental results demonstrated that enhanced YOLO exhibited stronger robustness against all types of noise, making it particularly suitable for drainage pipeline monitoring scenarios with noise interference. The artificially added noises served as a controlled, systematic way to evaluate the model’s performance degradation under signal deterioration─effectively probing the tolerance upper bound of the model when signal quality was compromised. It is important, however, to distinguish between the synthetic noise tests described above and actual field noise conditions, so conducting direct field validation is necessary.
3.2. Performance Evaluation of Drainage Pipeline Abnormal Event Classification
Under conditions of convolution kernel size 5 (Figure S6), ReLU activation function (Figure S7), and Adam optimization algorithm (Figure S8), the confusion matrix and evaluation indexes of the optimized 2DCNN-BiLSTM-Attention model on the event validation set were obtained (Figure 5a). In the distributed optical fiber vibration sensing event classification task, the 2DCNN-BiLSTM-Attention model achieved an overall accuracy of 98.1% on the validation set. Its confusion matrix showed that prediction results for the five event classes (external leakage, internal leakage, knocking, sawing, and drilling) were concentrated on the matrix diagonal (correct classification), indicating the model possessed excellent global classification capability. Specifically, minor mutual misjudgments existed between structural defects (external leakage to internal leakage 1.6%, internal leakage to external leakage 2.1%), possibly related to similarities in vibration signals between the two. However, confusion between structural defects and third-party intrusion events was minimal, indicating the model could clearly distinguish these two major event categories. Among third-party intrusion events, there was slight misclassification between sawing and knocking (knocking to sawing: 0.7%; sawing to knocking: 0.8%), possibly attributed to similar periodic vibration characteristics. Although the recall rate for drilling events (96.9%) was slightly lower, the misclassification distribution was uniform without obvious bias. Overall, the model showed balanced performance, demonstrating that the proposed 2DCNN-BiLSTM-Attention model possessed good feature extraction and event classification capabilities for distributed optical fiber sensing event data.

To verify the stability and generalization capability of the 2DCNN-BiLSTM-Attention model, cross-validation was performed (Figure 5b). Through 10-fold cross-validation, the event data set was divided into 10 equal parts, with 9 parts used as training set and the remaining 1 part used as test set each time. The 2DCNN-BiLSTM-Attention model demonstrated good model generalization capability and stability, with classification accuracy of 98.0–99.3% and standard deviation of 0.45%. To visualize the recognition and classification performance of the proposed model for each sensing pattern, ROC curves for the five events were plotted (Figure 5c). Overall, the average area under curve (AUC) value reached 0.983, indicating the model possessed strong category discrimination capability. Particularly, the AUC for knocking events reached 0.988, approaching a perfect classifier. From the perspective of category balance, there was no significant category performance difference, with only a 0.011 gap between the highest AUC for knocking events (0.988) and the lowest for internal leakage events (0.977), indicating the model’s detection capability was relatively balanced across all event types.
To evaluate the comprehensive capability the event classification performance of our model, was compared with LSTM, BiLSTM, 2DCNN, and 2DCNN-BiLSTM, whose structures were consistent with the corresponding structure in 2DCNN-BiLSTM-Attention. All five network models used the same ReLU activation function, cross-entropy loss function, and Adam optimization algorithm, obtaining event classification results after 100 epochs on the same data set (Figure 5d). In terms of convergence speed, the 2DCNN-BiLSTM-Attention model demonstrated significant convergence advantages, breaking through 50% accuracy in only 12 epochs, 80% in 28 epochs, and reaching 95% accuracy in 44 epochs. In comparison, 2DCNN-BiLSTM, 2DCNN, BiLSTM, and LSTM required 23, 33, 30, and 46 epochs respectively to break through 50% accuracy, showing limitations of pure temporal architectures in vibration detection tasks. In terms of final accuracy, 2DCNN-BiLSTM-Attention ultimately achieved the best validation set accuracy of 98.1%, leading other models (2DCNN-BiLSTM 93.4%, 2DCNN 91.9%, BiLSTM 90.7%, and LSTM 90.0%). The 10-fold cross-validation comparison showed that 2DCNN-BiLSTM-Attention significantly outperformed other models with an average accuracy of 98.7% (Figure 5e). ROC curve comparison showed that 2DCNN-BiLSTM-Attention performed best with an average AUC value of 0.983 (Figure 5f). This comparison demonstrated the model’s advancement in event classification and reflected the performance improvement contributed by the 2DCNN, BiLSTM, and Attention modules.
A comprehensive comparison of accuracy, speed, and model parameters among different models was further conducted (Figure 5g). 2DCNN had the fastest computation speed (238.5 FPS) and smallest parameters (0.05 M), but the lowest accuracy. As model complexity increased (adding BiLSTM, Attention modules, etc.), FPS gradually decreased: 2DCNN-BiLSTM-Attention (95.2 FPS) decreased by approximately 60% compared to 2DCNN, but gained an 8.11% accuracy improvement. Parameters gradually increased from 2DCNN (0.05 M), LSTM (0.84 M), BiLSTM (1.66 M), 2DCNN-BiLSTM (1.69 M) to 2DCNN-BiLSTM-Attention (1.72 M), reflecting increased model complexity. It is worth noting that although the efficiency of 2DCNN-BiLSTM-Attention was lower than that of other models, it could still meet the requirements for real-time monitoring. Therefore, the 2DCNN-BiLSTM-Attention model enabled the system to achieve not only high recognition accuracy but also high recognition efficiency, thus meeting the real-time monitoring requirements of the system. (38)
3.3. Field Abnormal Event Monitoring of Drainage Pipelines
From April to May 2025, abnormal event monitoring experiments were conducted in drainage pipelines using the Φ-OTDR-based distributed optical fiber vibration sensing system at a densely populated demonstration site in the Baishuihu drainage area, Jiujiang City, Jiangxi Province, China (longitude 115°59′58.6″ E and latitude 29°42′8.9″ N) (Figure 6a). The monitored pipeline length was approximately 500 m, covering an area of about 0.52 km2. A fiber deployment strategy consisting of linear installation along the pipeline wall with reinforced sampling at pipeline joints was adopted (Figure S9). Monitoring was carried out using the Φ-OTDR distributed optical fiber vibration sensing system (Figure S10). The acquired time-frequency signals were subjected to first-order wavelet denoising followed by differential processing. Event localization was performed using enhanced YOLO, while event classification was achieved using 2DCNN-BiLSTM-Attention. To improve system usability, a dedicated event localization and classification software interface was developed to integrate these processes and provide real-time warning functions (Figure 6b).

To evaluate localization repeatability, 30 knocking events were generated using a pickaxe at 325 m from the fiber tail under no-rainfall conditions, with 325 m defined as the ground-truth position. The center position of the enhanced YOLO localization box was taken as the predicted location. The results showed an average localization value of 325.52 m and a standard deviation of 1.58 m (Figure 6c). The localization repeatability error, defined as the sum of the mean deviation and standard deviation, was 2.10 m, slightly higher than the laboratory value of 1.71 m (Figure S11). This difference was attributed to increased environmental noise and variability in excitation conditions under field environments, which are commonly reported to affect localization stability in distributed optical fiber sensing systems. (39) To evaluate localization continuity, consecutive knocking events were generated at 0, 10, 20, and 30 m, using the fiber-end position (300 m) as the 0 m reference point. The results showed that the localization outputs followed the stepwise changes in event positions (Figure 6d). The localization continuity error, defined as the sum of the maximum mean deviation and standard deviation, was 2.60 m (at 30 m), which was higher than the laboratory value of 1.79 m (Figure S12). The increased localization deviation under field conditions was consistent with previous studies indicating that environmental disturbances introduce additional uncertainty in vibration-based distributed sensing measurements. (40) And the increasing error with distance is likely due to signal attenuation along the fiber length and cumulative environmental noise. The localization error was valued as the maximum observed error across all tests, i.e., 2.60 m. A localization uncertainty below 2.60 m is sufficient to guide inspection to a short pipe section, branch connection, or joint zone in this demonstration pipeline.
Under dry conditions, three typical drainage pipeline abnormal events (internal leakage, knocking, drilling) and three environmental interferences (walking, running, vehicle passing) were simulated at the fiber end, and space-time signals were recorded (Note S7). After data cleaning, 2,162 event signals and 2,726 noise signals were collected, distributed as follows: internal leakage (n = 708), knocking (n = 726), drilling (n = 728), walking (n = 912), running (n = 908), vehicle passing (n = 906). It should be noted that the field validation covered three of the five laboratory event classes; external leakage and sawing were not artificially reproduced in the field validation because of site-safety and operational constraints. Each simulated event was time-stamped and its location logged, providing definitive ground truth. The precision and recall metrics calculated using these confirmed ground-truth labels achieved >99.6% for all abnormal events, with false positive and false negative rates <0.5% (Table 2). No false positives were observed for environmental interferences, demonstrating robust noise suppression and reliable event discrimination.
Table 2. Field Simulation Event Classification Results
| Event | Precision | Recall | False positive rate | False negative rate |
|---|---|---|---|---|
| Internal leakage | 99.8% | 99.8% | 0.4% | 0.2% |
| Knocking | 100% | 100% | 0% | 0% |
| Drilling | 99.6% | 99.6% | 0.2% | 0.4% |
In the time-frequency domain, different events exhibited distinct characteristic differences (Figure 6e), consistent with the characteristics of the simulated events in the laboratory (Figure 3). Environmental interference event signals possessed distinctly different structures: walking and running presented as quasi-periodic ground vibration sequences with stable fundamental frequencies and their harmonics, with low energy and regular distribution; vehicle passing manifested as short-duration vibration envelopes, but was submerged due to excessively low signal energy (Figure S13). Key discriminative features, including energy distribution, frequency components, temporal structure, and periodicity, were automatically extracted from spatiotemporal signal matrices using enhanced YOLO and 2DCNN-BiLSTM-Attention models. The classification results provide an identification of abnormal vibration events and their corresponding locations, thereby providing actionable information for drainage-pipeline monitoring and operation. We further clarify that the detected vibration pattern is interpreted as a specific abnormal event based on the established signal–event relationship, while further assessment of the underlying pipeline condition or environmental implications should be supported by field inspection and hydraulic information. Potential false positives may arise from maintenance activities or construction vibrations with frequency structures similar to drilling or sawing, whereas false negatives may occur when leakage energy is weak, coupling is poor, or high water levels and sediment damp the vibration transfer to the fiber.
During a two-week continuous monitoring period, routine environmental interferences were effectively filtered through real-time feature extraction, resulting in a false alarm rate of 0%. The continuously recorded signals established a stable vibration baseline for the monitored pipeline. During one monitoring interval, abnormal vibration signals were detected in the middle section of the pipeline. These signals exhibited sustained broadband characteristics with medium-to-low energy levels, consistent with typical external leakage patterns (Figure 6f). (41) The system automatically triggered an alarm, and the localization model identified the event location at approximately 350 m from the monitoring terminal. Field inspection by the pipeline operation team confirmed continuous external leakage at a branch-pipe connection to the main pipeline. The leakage was located at a bridge-crossing junction, specifically near the transition between exposed and buried pipe sections, rather than along a straight pipe segment. Based on the field inspection, the event was confirmed as water escaping from the pipeline through the damaged connection, corresponding to external leakage. The detected vibration signal therefore successfully directed the inspection team to the specific branch-pipe zone where the leakage occurred. However, the vibration data alone could not determine the leakage flux or quantify its potential impact on environmental risk, which would require further hydraulic and field measurements. The real-time monitoring workflow consisted of five steps: (i) acquisition of a 1.5 s data window (12,000 sampling periods), (ii) first-order wavelet denoising and differential processing, (iii) abnormal-event localization using the enhanced YOLO model, (iv) event classification using the 2DCNN-BiLSTM-Attention model, and (v) alarm generation and output through the software interface. From abnormal signal detection to alarm generation, the end-to-end system response time was within 30 s. The data-window length used for each decision was 1.5 s, the inference time of localization was approximately 13 ms per frame (74.8 FPS), and inference time of classification was approximately 11 ms per sample (95.2 FPS). Therefore, the reported end-to-end response time of <30 s is mainly determined by data-window acquisition, preprocessing, software queuing, and warning output.
The two-week deployment indicated stable operation during the demonstration period, but longer-term drainage environments may introduce sediment deposition, biofilm growth, high water levels, pipe cleaning disturbance, and maintenance-related contact changes. Meanwhile, the present study did not yet quantify the influence of pollutant transport, infiltration/exfiltration fluxes, pipe materials, diameters, burial depths, and hydraulic regimes. These factors can alter vibration coupling between the pipe wall and optical fiber and should be evaluated in future multisite deployments. Therefore, more long-term monitoring data are needed to further evaluate the reliability of abnormal-event monitoring under these changing field conditions. Broad application claims need stronger multiscenario validation.
3.4. Environmental Significance
The environmental significance of this work lies not merely in improving the numerical performance of signal processing, but in converting distributed vibration measurements into spatially and temporally resolved information on abnormal events in drainage pipelines. Urban drainage networks are critical pathways for rainwater, wastewater, and associated contaminants, and their deterioration or third-party intrusion can lead to sewage exfiltration, groundwater and soil contamination, road subsidence, and increased urban flooding risk. (7−10) Conventional CCTV, QV, sonar, and GPR inspections remain essential, but they are generally periodic or event-driven and may miss intermittent or concealed abnormal events between inspection intervals. (12−15) The proposed Φ-OTDR and machine-learning framework provides continuous, distributed, and near-real-time screening of pipeline vibration signals, enabling abnormal events to be identified and localized before they are confirmed by conventional inspection. (18, 19) In this sense, machine learning transforms high-dimensional and noise-contaminated vibration records into actionable information on event type and location, which is the key step required for environmental and infrastructure management. (27−30, 39)
The value of improved localization and classification precision is therefore best understood through the decisions it enables. The enhanced YOLO model achieved a laboratory mAP_0.5 of 96.8%, and the 2DCNN-BiLSTM-Attention model achieved an overall classification accuracy of 98.1% for five abnormal events. In field monitoring, localization errors remained below 2.60 m, and precision and recall exceeded 99.6% for the tested event classes. These performance levels allow the system to distinguish abnormal vibrations from noise interference, and to narrow the suspected location to a short pipe section, joint zone, or branch-pipe connection. For infrastructure managers, this capability can support targeted inspection and maintenance prioritization rather than blind network-wide surveys. The approximately 2% classification imprecision was mainly minor confusions between signal-similar classes, such as external versus internal leakage and knocking versus sawing, rather than complete failure to detect abnormal activity. For screening and early warning purposes, this level of imprecision is likely acceptable because an abnormal event is still flagged and its location can guide field verification; the event type can then be confirmed by inspection or additional measurements. (41)
At the same time, the deployment and policy implications of such a sensing network require careful consideration. Distributed optical fiber sensing can cover long distances with a single fiber and is well suited to continuous operation, which may reduce the per-point sensing cost compared with dense point-sensor networks. (22−25) However, the installation of optical fibers, demodulation equipment, and data-processing infrastructure still involves capital and operational costs. (17) If such systems are installed only during new construction or major rehabilitation, their benefits may accrue unevenly across communities, and older or under-invested drainage systems may be left with less monitoring coverage. (40) This raises equity considerations that cannot be resolved by technical performance alone. Public investment strategies should therefore consider prioritizing high-risk, aging, or environmentally sensitive drainage areas, and should evaluate deployment costs against the avoided costs of delayed leak detection, emergency repair, and environmental remediation. A full life-cycle cost–benefit analysis is beyond the scope of this study, but the results provide a basis for such assessment by demonstrating that distributed vibration sensing can generate operationally useful event information.
From the perspective of urban environmental assessment, the proposed system can provide spatially and temporally resolved information on abnormal events, but it does not directly measure flow, pollutant concentration, or leakage flux. Therefore, these data should not be interpreted as directly closing urban nutrient budgets. Closing such budgets requires hydraulic measurements, chemical concentrations, leakage or infiltration rates, and information on pipe characteristics and receiving environments. The contribution of this work is complementary: abnormal-event detection and localization can trigger targeted flow and water-quality sampling, help identify potential infiltration or exfiltration hotspots, and provide event timing and location as contextual information for urban drainage and contaminant-transport models. In this way, vibration-based monitoring can improve the efficiency of chemical and hydraulic monitoring by directing limited measurement resources to the most relevant locations, rather than replacing those measurements.
Addressing challenges in urban drainage pipeline abnormal event monitoring including concealed locations, harsh environments, and high real-time requirements, this study proposed a Φ-OTDR distributed optical fiber vibration sensing monitoring system. By constructing a localization-classification two-tier intelligent processing architecture, high-precision detection and recognition of abnormal events along pipelines were achieved. At the localization level, the enhanced YOLO model significantly enhanced detection capability for weak abnormal signals through anchor box optimization, attention mechanism introduction, and additional feature extraction layer integration, achieving an mAP_0.5 of 96.8% in laboratory testing, with superior robustness in antinoise interference. At the classification level, the 2DCNN-BiLSTM-Attention model effectively fused spatiotemporal features of signals, achieving recognition accuracy of 98.1% for five abnormal events including external leakage, internal leakage, knocking, sawing, and drilling. Field monitoring showed that localization errors remained below 2.60 m while classification precision and recall exceeded 99.6%. During 2 weeks of continuous monitoring, the system successfully detected and localized an actual branch pipe leakage event. These results demonstrate that the proposed Φ-OTDR-based system can accurately localize and classify several abnormal vibration events in drainage pipelines under laboratory and field conditions, and can detect and localize an actual leakage event. These findings support its potential as a complementary tool for early warning and abnormal-event screening. However, broader validation is still needed under diverse pipeline conditions and natural operating environments. Future work should expand multisite field data sets, evaluate more event types and long-term sensing stability, and integrate vibration-based warnings with hydraulic and water-quality information to further assess their value for drainage-system management.
Author Contributions
The manuscript was written through contributions of all authors.