원시데이터 수집 시스템
선정목록으로

An Improved Convolutional Neural Network for Pipe Leakage Identification Based on Acoustic Emission

관련 수소연료전지 · (7) MEA(막전극접합체)

기본 정보

저자
  1. Weidong Xu — Yantai Research Institute, Harbin Engineering University, Yantai 264000, China
  2. Jiwei Huang — Marine Design & Research Institute of China, Shanghai 200011, China
  3. Lianghui Sun — Yantai Research Institute, Harbin Engineering University, Yantai 264000, China
  4. Yixin Yao — Yantai Research Institute, Harbin Engineering University, Yantai 264000, China
  5. Fan Zhu — Yantai Research Institute, Harbin Engineering University, Yantai 264000, China
  6. Yaoguo Xie — College of Shipbuilding Engineering, Harbin Engineering University, Harbin 150001, China
  7. Meng Zhang — Yantai Research Institute, Harbin Engineering University, Yantai 264000, China
DOI
10.3390/jmse12101720
저널
Journal of Marine Science and Engineering
발행년도
2024
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
11
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/jmse12101720
토픽
High voltage insulation and dielectric phenomena
OpenAlex ID
W4402964696

평가 내용

관련도
관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > MEA(막전극접합체)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Oil and gas pipelines are the lifelines of the energy market, but due to long-term use and environmental factors, these pipelines are prone to corrosion and leaks. Offshore oil and gas pipeline leaks, in particular, can lead to severe consequences such as platform fires and explosions. Therefore, it is crucial to accurately and swiftly identify oil and gas leaks on offshore platforms. This is of significant importance for improving early warning systems, enhancing maintenance efficiency, and reducing economic losses. Currently, the efficiency of identifying leaks in offshore platform pipelines still needs improvement. To address this, the present study first established an experimental platform to simulate pipeline leaks in a marine environment. Laboratory leakage signal data were collected, and on-site noise data were gathered from the “Liwan 3-1” offshore oil and gas platform. By integrating leakage signals with on-site noise data, this study aimed to closely mimic real-world application scenarios. Subsequently, several neural network-based leakage identification methods were applied to the integrated dataset, including a probabilistic neural network (PNN) combined with time-domain feature extraction, a Backpropagation Neural Network (BPNN) optimized with simulated annealing and particle swarm optimization, and a Long Short-Term Memory Network (LSTM) combined with Mel-Frequency Cepstral Coefficients (MFCC). Corresponding models were constructed, and the effectiveness of leak detection was validated using test sets. Additionally, this paper proposes an improved convolutional neural network (CNN) leakage detection technology named SART-1DCNN. This technology optimizes the network architecture by introducing attention mechanisms, transformer modules, residual blocks, and combining them with Dropout and optimization algorithms, which significantly enhances data recognition accuracy. It achieves a high accuracy rate of 99.44% on the dataset. This work is capable of detecting pipeline leaks with high accuracy.

본문 104,383자

본문 펼치기
Oil and gas pipelines are the lifelines of the energy market, but due to long-term use and environmental factors, these pipelines are prone to corrosion and leaks.Offshore oil and gas pipeline leaks, in particular, can lead to severe consequences such as platform fires and explosions.Therefore, it is crucial to accurately and swiftly identify oil and gas leaks on offshore platforms.This is of significant importance for improving early warning systems, enhancing maintenance efficiency, and reducing economic losses.Currently, the efficiency of identifying leaks in offshore platform pipelines still needs improvement.To address this, the present study first established an experimental platform to simulate pipeline leaks in a marine environment.Laboratory leakage signal data were collected, and on-site noise data were gathered from the "Liwan 3-1" offshore oil and gas platform.By integrating leakage signals with on-site noise data, this study aimed to closely mimic real-world application scenarios.Subsequently, several neural network-based leakage identification methods were applied to the integrated dataset, including a probabilistic neural network (PNN) combined with time-domain feature extraction, a Backpropagation Neural Network (BPNN) optimized with simulated annealing and particle swarm optimization, and a Long Short-Term Memory Network (LSTM) combined with Mel-Frequency Cepstral Coefficients (MFCC).Corresponding models were constructed, and the effectiveness of leak detection was validated using test sets.Additionally, this paper proposes an improved convolutional neural network (CNN) leakage detection technology named SART-1DCNN.This technology optimizes the network architecture by introducing attention mechanisms, transformer modules, residual blocks, and combining them with Dropout and optimization algorithms, which significantly enhances data recognition accuracy.It achieves a high accuracy rate of 99.44% on the dataset.This work is capable of detecting pipeline leaks with high accuracy. Introduction Marine oil and gas pipelines are critical components of the global energy supply chain, playing an essential role in the safe and efficient transportation of oil and natural gas.With the increasing global demand for energy, the significance of marine oil and gas pipelines has become increasingly prominent.However, these pipelines are often exposed to harsh marine environments, leading to gradual material degradation and corrosion over extended periods of service, making them highly susceptible to leaks [1].Therefore, timely and effective leak detection is crucial for ensuring energy supply security, preventing environmental pollution, and avoiding economic losses.There are various pipeline leak detection techniques, including flow monitoring [2,3], pressure testing [4,5], vibration testing [6,7], visual inspection [8,9], and acoustic detection [10,11].Current research mainly focuses on the following areas: Introduction (1) Leak Detection Methods Combining Models and Mechanisms These methods primarily integrate actual operating conditions with theories such as fluid dynamics and heat transfer to analyze and locate leak points.For example, Jesús Peralta [12] explored the use of directional signal diagram processing techniques to detect and locate damage in pressurized pipelines, particularly focusing on the identification of transient patterns in faulty main pipelines.The study was based on a linearized model of the healthy part of the pipeline and a dual-port lumped model for leaks and blockages, deriving and transforming the directional signal diagrams of sound source signals under single-and dual-fault scenarios using graphical tools.Wasiu Yussuf Oseni [13] studied a first-order differential leak detection model based on the first-order differential method, using COMSOL Multi-physics for finite element simulation.The study considered the axial leak coefficient KL and incorporated turbulence kinetic energy transfer and kinetic energy rate models.By calculating the eigenvalues of velocity and pressure and observing their behavior in time diagrams across different pipeline sections, the model can assess system stability and detect leaks.Xuan Yang [14] investigated the impact of interference and environmental noise on leak detection in water pipelines.By combining experimental and numerical simulation methods and focusing on acceleration signals, the study analyzed the characteristics of leak signals under varying pressures and leak orifice sizes.Keramat [15] addressed the multi-leak localization problem in Transient-Based Leak Detection (TBLD) by introducing Metaheuristic and Gradient-Based Optimization (MGBO) techniques.Using a multidimensional nonlinear objective function, the method was optimized through two initialization algorithms for scenarios involving single, double, and triple leaks.Experimental results demonstrated that this approach performed excellently in situations with single, double, and triple leaks, particularly standing out in triple-leak localization, where more than 96% of cases had an error rate below 15%. Introduction ( 2) Methods Combining Machine Learning or Deep Learning Techniques In recent years, with the advancement of artificial intelligence technology, the application of machine learning and deep learning in pipeline leak detection has been increasingly adopted.These methods extract complex feature patterns from historical data through training, which are then used for leak detection.Liu [16] proposed a Bayesian network model-based method for probabilistic simulation of natural gas pipeline leak orifice diameters.By constructing a Bayesian network, this method integrates prior knowledge, observational data, and uncertainty analysis to achieve precise assessment of leak orifice diameters.Wenhao Xie [17] introduced a pipeline leak detection algorithm that combines pressure and flow information with a discount factor BPA and an SVM classifier.This method utilizes wavelet packet decomposition of signals, integrates multi-sensor decision results, and ultimately enhances detection accuracy through a discount factor and D-S evidence theory.Chengsan Zhang [18] proposed a neural network model for a natural gas pipeline leak detection system named mCNN-LFLBs.The mCNN captures features from different frequency bands of the signals through multi-scale convolution kernels, while LFLB enhances the model's ability to express local features and improves the quality of feature mining.Experimental results show that the mCNN-LFLBs model achieves a classification accuracy as high as 98.6%, with a test response time of approximately 10 ms, demonstrating excellent performance in convergence speed.Pengchao Chen [19] explored the importance of surface defect detection in long-distance oil and gas pipelines and the limitations of existing magnetic flux leakage detection methods.Using a dataset containing various simulated defects generated in a laboratory, the model was trained, and an algorithm combining YOLOv5 and Vision Transformer (ViT) was proposed to achieve accurate detection and classification of pipeline defects. 2) Methods Combining Machine Learning or Deep Learning Techniques ( 3) Methods Combining Various Sensors To enhance the accuracy and reliability of leak detection, researchers have recently developed various sensor-based leak detection technologies.Jing Xie [20] proposed a pipeline leak detection technique that combines infrared thermography (IRT) with the Faster Region Convolutional Neural Network (Faster R-CNN).This method collects data through a designed pipeline network system and constructs a Faster R-CNN model based on an improved VGG16 network, achieving automated and high-precision leak detection in complex backgrounds.Xingyuan Miao [21] proposed a novel semi-supervised domain generalization leakage diagnosis method based on laser optical sensing technology and an Improved Auxiliary Classifier Generative Adversarial Network (IACGAN).This method achieves accurate diagnosis of leakage conditions in both source and unseen target domains by optimizing the network structure and loss functions, combined with a Capsule network improved via DenseBlocks.Experiments have shown that this model has an average recognition accuracy exceeding 95% in cross-domain leakage diagnosis and potential leakage risk identification, outperforming existing methods.Mingjiang Shi [22] proposed a detection and diagnosis method for internal leaks in ball valves of buried pipelines.This method first collects and denoises valve chamber pressure signals using pressure sensors, then inputs these signals into a constructed CSSOA-BP neural network for leak rate prediction and failure mode diagnosis.Experimental comparisons show that this method significantly outperforms other algorithms, such as SSA-BP and BP neural networks, in terms of prediction error and diagnostic accuracy.The maximum prediction error is reduced to 13.6%, and the diagnostic accuracy reaches as high as 83.3%. 3) Methods Combining Various Sensors Despite the advantages of these sensor-based methods, their practical application is often limited by operational constraints and environmental factors.Among these technologies, acoustic-based leak detection is considered one of the most effective methods due to its efficiency and accuracy.Acoustic emission (AE) technology, for instance, detects leaks by capturing the high-frequency sound waves generated by the leak.The propagation characteristics of these sound waves through the pipeline material can be used to accurately detect leaks.The AE-based method not only enables early detection of pipeline leaks but also allows for inspection without interrupting pipeline operations, significantly enhancing the practicality and efficiency of the detection process.Ozevin [23] studied the impact of aging over time and instantaneous threats on pipelines and proposed a novel two-dimensional layout pipeline network leak localization method based on AE principles.This method utilizes sensors to detect elastic waves generated by leaks and precisely identifies the leak location by calculating time differences and incorporating geometric connectivity.Mostafapour [24] proposed a method that combines wavelet analysis and modal localization theory for continuous leak source localization in gas pipelines and noisy environments using a single sensor.By denoising and reconstructing signals through wavelet decomposition, the method analyzes the modal characteristics of signals within the 0-250 kHz frequency band using wavelet packet decomposition, determines modal arrival times, and calculates group velocity to achieve high-precision leak localization.Butterfield [25] researched the use of vibration acoustic emission (VAE) signal processing technology to quantify leakage flow rates in water distribution pipelines.The study found a strong correlation between the RMS of VAE signals and leak flow rates, leading to the construction of a flow prediction model.Zahoor Ahmad [26] proposed a leak detection and localization technique for industrial fluid pipelines.This technique utilizes pipeline AE signals, combined with a multi-scale Mann-Whitney test and AE event tracking method, to achieve high-precision leak detection and localization.By applying a constant false alarm rate algorithm based on the variance index and wave propagation theory to filter out AE events related to leaks, the method reduces false alarm rates and improves localization accuracy.Some scholars have also proposed methods combining acoustic emission signals with machine learning or deep learning techniques.Ali [27] addressed the resource scarcity and economic losses caused by the increasing non-revenue water in Water Distribution Networks (WDNs) by introducing an innovative leakage detection system.This system integrates acoustic emission components, signal processing, and machine learning (ML) techniques.It was field-tested over two years in a real-world WDN in Hong Kong, employing wireless noise loggers to collect acoustic emission signals and exploring various ML algorithms to develop detection models suitable for operational and buried WDNs.The research involved extracting acoustic signal features from both the time and frequency domains, constructing a rich feature set to support ML model training.Sajjad [28] introduced a new pipeline leakage detection technique that first transforms acoustic emission signals into acoustic images (AE images) using continuous wavelet transformation and then applies a convolutional autoencoder and a convolutional neural network; the former extracts global features, while the latter focuses on local feature extraction.These features are then merged into a single feature vector for classification via a shallow artificial neural network to determine the presence of leaks.Experimental results show that this algorithm performs excellently under various leak sizes and fluid pressures, achieving high classification accuracy.Niamat [29] proposed an innovative pipeline leakage detection and analysis method utilizing acoustic emission (AE) signal technology and time-series deep learning algorithms.The study designed an AE-based automatic detection system incorporating deep learning models such as LSTM, Bi-LSTM, and GRU, which identify the normal state of pipelines, minor leaks, moderate leaks, and severe ruptures by detecting subtle changes in AE signals.The experiments used three AE sensors to optimize sampling rates and validated the model's performance with various evaluation metrics, with the BiLSTM model performing excellently in most cases, achieving a classification accuracy of up to 99.78%. 3) Methods Combining Various Sensors For the pipeline systems of offshore oil and gas platforms, monitoring methods that can detect leakage accurately and timely are crucial.Extracting pipeline leakage information precisely and efficiently from complex signals with significant noise interference has become a core technological challenge that needs to be addressed urgently.Against this research backdrop, this study first established a laboratory pipeline model in the Ocean Engineering Mechanics Laboratory at Harbin Engineering University using a Z4DSY type electric pressure self-control testing pump manufactured by Shanghai Luoji Pump Industry Co., Ltd., seamless steel pipes, PCI-2 acoustic emission detection equipment produced by American Physical Acoustics Corporation, and other experimental setups to simulate and collect leakage signals.Additionally, it gathered on-site noise data from the landmark offshore facility-the Liwan 3-1 natural gas integrated processing platform in the South China Sea.To better reflect real-world conditions, the on-site noise was merged with the laboratory leakage signals to create a dataset.Subsequently, three neural network-based leak identification methods-TDF-PNN, SA-PSO-BPNN, and MFCC-LSTM-were applied to model the dataset, and their effectiveness was validated on a test set.Furthermore, this paper introduces an improved end-to-end convolutional neural network-based leak recognition technology called SART-1DCNN.This network incorporates attention mechanisms and transformer modules, enabling it to perform adaptive feature learning directly from raw acoustic emission signals.The results from the test set show that the recognition accuracy of this method exceeds 99%, outperforming the other methods discussed in this study by providing more accurate identification of pipeline leakage signals. Acoustic Emission and Pipeline Leak Research Acoustic emission (AE) technology, as a crucial non-destructive testing method, requires the collection of AE signals generated by pipelines.In the application to offshore oil and gas pipelines, AE technology can effectively monitor minute changes and damage in the pipeline, thereby providing early warnings of potential leaks.When applying AE technology to actual marine environments, the primary challenge to be addressed is environmental noise interference.The complex and dynamic conditions of offshore platforms, coupled with high-intensity background noise, pose significant challenges to the capture and analysis of AE signals. Acoustic Emission and Pipeline Leak Research To thoroughly investigate and validate the effectiveness of AE technology in leak detection for oil and gas pipelines, this Section will conduct two experiments.First, a pipeline leak model will be constructed in the laboratory, where leaks will be artificially induced to collect clear AE signals of pipeline leaks.Additionally, real environmental noise signals will be collected from the actual environment of an offshore platform.By combining these two types of signals, we will simulate the AE signals produced during pipeline leaks in real-world conditions.Subsequently, these signals will be compared in both the time and frequency domains, analyzing the characteristics of the leak AE signals to provide a foundation for subsequent leak detection research. Pipeline Leak Simulation Experiment During the experiment, the PCI-2 acoustic emission detection equipment provided by the Beijing representative office of Physical Acoustics Corporation (PAC), located in Chaoyang District, Beijing, was utilized.This equipment is a high-sensitivity, multi-channel synchronous acquisition device with a sampling frequency that ranges from 1 kHz to 3 MHz, capable of storing acoustic emission waveform information to the hard disk at a speed of 10 million points per second.The experiment employed R15 sensors, which have a central frequency of 150 kHz.During the data acquisition phase, the PCI-2 acoustic emission detection equipment was operated and controlled through AEwin TM software (Standard Edition).To enhance signal quality, the experiment was also equipped with preamplifiers featuring 2, 4, and 6 channels, with adjustable gain settings of 20, 40, and 60 dB, respectively. Pipeline Leak Simulation Experiment The pipeline leakage experiment is conducted in a specially designed laboratory pipeline leakage simulation system, where natural gas is used as the fluid in the pipeline.The system includes pressure gauges, pressure pipelines, pressure pumps, and multiple control valves.The pressure pipeline adheres to the GB/T 8163-2018 [30] national standard, made of seamless steel with a wall thickness of 0.5 cm, a diameter of 10.5 cm, and an overall length of 620 cm.The system is divided into two main sections: the experimental section, which is 500 cm long and equipped with several high-pressure welded needle valves to simulate and control leaks, and the buffer section, which is 120 cm long and connected to the pressurizing device via flexible rubber tubing.The pressurizing device used is a Z4DSY-type electric pressure self-control testing pump.Figure 1 illustrates the laboratory pipeline structure model, and Figure 2 shows the composition and principle of the pipeline AE detection system. Pipeline Leak Simulation Experiment coupled with high-intensity background noise, pose significant challenges to the capture and analysis of AE signals. Pipeline Leak Simulation Experiment To thoroughly investigate and validate the effectiveness of AE technology in leak detection for oil and gas pipelines, this Section will conduct two experiments.First, a pipeline leak model will be constructed in the laboratory, where leaks will be artificially induced to collect clear AE signals of pipeline leaks.Additionally, real environmental noise signals will be collected from the actual environment of an offshore platform.By combining these two types of signals, we will simulate the AE signals produced during pipeline leaks in real-world conditions.Subsequently, these signals will be compared in both the time and frequency domains, analyzing the characteristics of the leak AE signals to provide a foundation for subsequent leak detection research. Pipeline Leak Simulation Experiment During the experiment, the PCI-2 acoustic emission detection equipment provided by the Beijing representative office of Physical Acoustics Corporation (PAC), located in Chaoyang District, Beijing, was utilized.This equipment is a high-sensitivity, multi-channel synchronous acquisition device with a sampling frequency that ranges from 1 kHz to 3 MHz, capable of storing acoustic emission waveform information to the hard disk at a speed of 10 million points per second.The experiment employed R15 sensors, which have a central frequency of 150 kHz.During the data acquisition phase, the PCI-2 acoustic emission detection equipment was operated and controlled through AEwin TM software (Standard Edition).To enhance signal quality, the experiment was also equipped with preamplifiers featuring 2, 4, and 6 channels, with adjustable gain settings of 20, 40, and 60 dB, respectively. Pipeline Leak Simulation Experiment The pipeline leakage experiment is conducted in a specially designed laboratory pipeline leakage simulation system, where natural gas is used as the fluid in the pipeline.The system includes pressure gauges, pressure pipelines, pressure pumps, and multiple control valves.The pressure pipeline adheres to the GB/T 8163-2018 [30] national standard, made of seamless steel with a wall thickness of 0.5 cm, a diameter of 10.5 cm, and an overall length of 620 cm.The system is divided into two main sections: the experimental section, which is 500 cm long and equipped with several high-pressure welded needle valves to simulate and control leaks, and the buffer section, which is 120 cm long and connected to the pressurizing device via flexible rubber tubing.The pressurizing device used is a Z4DSY-type electric pressure self-control testing pump.Figure 1 illustrates the laboratory pipeline structure model, and Figure 2 shows the composition and principle of the pipeline AE detection system.In the constructed laboratory pipeline leak simulation system, two R15 sensors were installed at both ends of the pipeline in the experimental section, positioned 10 cm from the edge.To ensure close contact between the sensors and the pipeline surface, industrialgrade white petroleum jelly was used as a coupling medium between the sensors and the pipeline surface.The sensors were then secured with adhesive tape, and the acquisition In the constructed laboratory pipeline leak simulation system, two R15 sensors were installed at both ends of the pipeline in the experimental section, positioned 10 cm from the edge.To ensure close contact between the sensors and the pipeline surface, industrial-grade white petroleum jelly was used as a coupling medium between the sensors and the pipeline surface.The sensors were then secured with adhesive tape, and the acquisition parameters were preset and optimized in the AEwin TM software To verify the coupling effectiveness of the sensors with the pipeline and the stability of signal transmission, as well as to confirm that the data recording equipment was functioning correctly without any storage issues, a pencil lead break (PLB) test was conducted.After confirming that all adjustments were accurate, the pipeline leak AE experiments were carried out, and multiple sets of pipeline leak AE data were collected. Pipeline Leak Simulation Experiment parameters were preset and optimized in the AEwin TM software To verify the coupling effectiveness of the sensors with the pipeline and the stability of signal transmission, as well as to confirm that the data recording equipment was functioning correctly without any storage issues, a pencil lead break (PLB) test was conducted.After confirming that all adjustments were accurate, the pipeline leak AE experiments were carried out, and multiple sets of pipeline leak AE data were collected. On-Site Noise Collection Experiment A noise measurement experiment was conducted on the Liwan 3-1 offshore platform in the South China Sea.As shown in Figure 3, the platform's vertical height (jacket section) reaches 196 m.The platform's foundation structure is designed with eight jacket legs, which are securely connected and fixed to the seabed by 16 skirt piles, with an underwater depth of 191 m.The main structure consists of three main decks, with elevations of 19, 29, and 41 m, respectively.The platform is constructed entirely of steel, with a float-over weight of 32,000 tons. On-Site Noise Collection Experiment A noise measurement experiment was conducted on the Liwan 3-1 offshore platform in the South China Sea.As shown in Figure 3, the platform's vertical height (jacket section) reaches 196 m.The platform's foundation structure is designed with eight jacket legs, which are securely connected and fixed to the seabed by 16 skirt piles, with an underwater depth of 191 m.The main structure consists of three main decks, with elevations of 19, 29, and 41 m, respectively.The platform is constructed entirely of steel, with a float-over weight of 32,000 tons. On-Site Noise Collection Experiment parameters were preset and optimized in the AEwin TM software To verify the coupling effectiveness of the sensors with the pipeline and the stability of signal transmission, as well as to confirm that the data recording equipment was functioning correctly without any storage issues, a pencil lead break (PLB) test was conducted.After confirming that all adjustments were accurate, the pipeline leak AE experiments were carried out, and multiple sets of pipeline leak AE data were collected. On-Site Noise Collection Experiment A noise measurement experiment was conducted on the Liwan 3-1 offshore platform in the South China Sea.As shown in Figure 3, the platform's vertical height (jacket section) reaches 196 m.The platform's foundation structure is designed with eight jacket legs, which are securely connected and fixed to the seabed by 16 skirt piles, with an underwater depth of 191 m.The main structure consists of three main decks, with elevations of 19, 29, and 41 m, respectively.The platform is constructed entirely of steel, with a float-over weight of 32,000 tons.For the on-site noise measurement experiment on the site of the oil pipelines, a detailed site survey was first conducted to select representative monitoring points for testing.Subsequently, acoustic emission sensors of the same specifications and parameters were uniformly installed at predetermined locations, which were chosen to be less affected by external weather conditions, and the sensor setup was strictly aligned with laboratory standards.Next, long-term automatic sampling was initiated, and a large amount of noise signal data from 16 to 27 June 2024 was collected, which was saved for subsequent research.Figure 4 illustrates the installation of some of the AE sensors on the offshore platform pipelines.For the on-site noise measurement experiment on the site of the oil pipelines, a detailed site survey was first conducted to select representative monitoring points for testing.Subsequently, acoustic emission sensors of the same specifications and parameters were uniformly installed at predetermined locations, which were chosen to be less affected by external weather conditions, and the sensor setup was strictly aligned with laboratory standards.Next, long-term automatic sampling was initiated, and a large amount of noise signal data from 16 to 27 June 2024 was collected, which was saved for subsequent research.Figure 4 illustrates the installation of some of the AE sensors on the offshore platform pipelines. Analysis of Noise Signal Injection in Offshore Platform Pipelines In the laboratory pipeline leak experiment described in Section 2.1, multiple sets of pipeline leak signals were collected.Figure 5 shows the waveform of one such segment.During the operational phase of offshore platforms, the pipeline system is subject to various disturbances due to equipment operation and the dynamic behavior of the pipelines themselves, leading to a range of noise phenomena.However, the noise levels in a laboratory environment are relatively low and do not accurately reflect the actual conditions on an offshore platform.Therefore, in this study, the measured on-site noise was integrated with the leak signals collected in the laboratory to validate the pipeline leak detection methods based on AE technology.Since both are continuous signals, the signal power [31] was used to determine the percentage of noise, with the following calculation formula: Analysis of Noise Signal Injection in Offshore Platform Pipelines In the laboratory pipeline leak experiment described in Section 2.1, multiple sets of pipeline leak signals were collected.Figure 5 shows the waveform of one such segment.For the on-site noise measurement experiment on the site of the oil pipelines, a detailed site survey was first conducted to select representative monitoring points for testing.Subsequently, acoustic emission sensors of the same specifications and parameters were uniformly installed at predetermined locations, which were chosen to be less affected by external weather conditions, and the sensor setup was strictly aligned with laboratory standards.Next, long-term automatic sampling was initiated, and a large amount of noise signal data from 16 to 27 June 2024 was collected, which was saved for subsequent research.Figure 4 illustrates the installation of some of the AE sensors on the offshore platform pipelines. Analysis of Noise Signal Injection in Offshore Platform Pipelines In the laboratory pipeline leak experiment described in Section 2.1, multiple sets of pipeline leak signals were collected.Figure 5 shows the waveform of one such segment.During the operational phase of offshore platforms, the pipeline system is subject to various disturbances due to equipment operation and the dynamic behavior of the pipelines themselves, leading to a range of noise phenomena.However, the noise levels in a laboratory environment are relatively low and do not accurately reflect the actual conditions on an offshore platform.Therefore, in this study, the measured on-site noise was integrated with the leak signals collected in the laboratory to validate the pipeline leak detection methods based on AE technology.Since both are continuous signals, the signal power [31] was used to determine the percentage of noise, with the following calculation formula: During the operational phase of offshore platforms, the pipeline system is subject to various disturbances due to equipment operation and the dynamic behavior of the pipelines themselves, leading to a range of noise phenomena.However, the noise levels in a laboratory environment are relatively low and do not accurately reflect the actual conditions on an offshore platform.Therefore, in this study, the measured on-site noise was integrated with the leak signals collected in the laboratory to validate the pipeline leak detection methods based on AE technology.Since both are continuous signals, the signal power [31] was used to determine the percentage of noise, with the following calculation formula: Analysis of Noise Signal Injection in Offshore Platform Pipelines where P Z represents the noise power, P X represents the signal power, and RMS Z and RMS X are the root mean square (RMS) values of the noise and leak signals, respectively.The leak signal F with the fused noise can be obtained using the following equation: Analysis of Noise Signal Injection in Offshore Platform Pipelines where L is the collected leak signal, and N is the measured noise signal. Analysis of Noise Signal Injection in Offshore Platform Pipelines A segment of the collected signals was extracted for visualization.Figure 6a shows the waveform of the noise signal measured on the platform, while Figure 6b displays the waveform after randomly selecting and injecting noise collected from different pipeline locations into the leak signal.As can be seen from the figures, the amplitude differences between the two signals are minimal.Subsequently, the spectrum and time-frequency diagrams of these signals were plotted, as shown in Figures 7 and 8.In the spectrum diagrams, it is evident that both the platform-measured noise signal and the noise-infused leak signal exhibit a very prominent peak at the low-frequency end (near 0 Hz), indicating a high concentration of energy in the low-frequency range.Additionally, as the frequency increases, the power density generally decreases, meaning that the energy of the signal is mainly concentrated in the low-frequency range, with less energy in the high-frequency range.In the time-frequency diagrams, strong signal intensity can also be observed in the mid-to-low frequency range (where the red-orange regions are more concentrated), indicating that these frequency components dominate the signal. Analysis of Noise Signal Injection in Offshore Platform Pipelines where represents the noise power, represents the signal power, and and are the root mean square (RMS) values of the noise and leak signals, respectively.The leak signal with the fused noise can be obtained using the following equation: Analysis of Noise Signal Injection in Offshore Platform Pipelines where is the collected leak signal, and is the measured noise signal. Analysis of Noise Signal Injection in Offshore Platform Pipelines A segment of the collected signals was extracted for visualization.Figure 6a shows the waveform of the noise signal measured on the platform, while Figure 6b displays the waveform after randomly selecting and injecting noise collected from different pipeline locations into the leak signal.As can be seen from the figures, the amplitude differences between the two signals are minimal.Subsequently, the spectrum and time-frequency diagrams of these signals were plotted, as shown in Figures 7 and 8.In the spectrum diagrams, it is evident that both the platform-measured noise signal and the noise-infused leak signal exhibit a very prominent peak at the low-frequency end (near 0 Hz), indicating a high concentration of energy in the low-frequency range.Additionally, as the frequency increases, the power density generally decreases, meaning that the energy of the signal is mainly concentrated in the low-frequency range, with less energy in the high-frequency range.In the time-frequency diagrams, strong signal intensity can also be observed in the mid-to-low frequency range (where the red-orange regions are more concentrated), indicating that these frequency components dominate the signal.In summary, after infusing the measured noise into the leak signal, the noise-infused leak signal closely resembles the measured noise signal.Therefore, identifying this signal solely from the time or frequency domain is challenging. Analysis of Noise Signal Injection in Offshore Platform Pipelines where is the collected leak signal, and is the measured noise signal. Analysis of Noise Signal Injection in Offshore Platform Pipelines A segment of the collected signals was extracted for visualization.Figure 6a shows the waveform of the noise signal measured on the platform, while Figure 6b displays the waveform after randomly selecting and injecting noise collected from different pipeline locations into the leak signal.As can be seen from the figures, the amplitude differences between the two signals are minimal.Subsequently, the spectrum and time-frequency diagrams of these signals were plotted, as shown in Figures 7 and 8.In the spectrum diagrams, it is evident that both the platform-measured noise signal and the noise-infused leak signal exhibit a very prominent peak at the low-frequency end (near 0 Hz), indicating a high concentration of energy in the low-frequency range.Additionally, as the frequency increases, the power density generally decreases, meaning that the energy of the signal is mainly concentrated in the low-frequency range, with less energy in the high-frequency range.In the time-frequency diagrams, strong signal intensity can also be observed in the mid-to-low frequency range (where the red-orange regions are more concentrated), indicating that these frequency components dominate the signal.In summary, after infusing the measured noise into the leak signal, the noise-infused leak signal closely resembles the measured noise signal.Therefore, identifying this signal solely from the time or frequency domain is challenging.To facilitate subsequent research, the dataset was created after completing the signal data collection.First, the noise-infused segments were evenly divided into non-overlapping sections of 1024 sampling points in length, resulting in 900 samples of leak signals infused with measured noise.Additionally, from the on-site noise collection experiment In summary, after infusing the measured noise into the leak signal, the noise-infused leak signal closely resembles the measured noise signal.Therefore, identifying this signal solely from the time or frequency domain is challenging. Analysis of Noise Signal Injection in Offshore Platform Pipelines To facilitate subsequent research, the dataset was created after completing the signal data collection.First, the noise-infused segments were evenly divided into non-overlapping sections of 1024 sampling points in length, resulting in 900 samples of leak signals infused with measured noise.Additionally, from the on-site noise collection experiment described in Section 2.2., raw noise signals were collected from the offshore platform pipelines.These signals were also divided into non-overlapping sections of 1024 sampling points in length, yielding 900 noise signal samples.Finally, the two types of signal samples were combined to form the original dataset for the subsequent deep learning network training process. Pipeline Leak Detection on Offshore Platforms Using Existing Neural Network Methods Traditional methods for pipeline leak detection on offshore platforms include pressure monitoring, flow rate monitoring, gas detection, and visual inspection.However, these methods have certain limitations in practical applications.For instance, pressure and flow rate monitoring respond slowly to leaks and are easily influenced by environmental changes; although gas detection has high sensitivity, it is prone to false alarms in complex noise environments; visual inspection relies heavily on lighting conditions and the clarity of the camera equipment, presenting significant limitations.Over the past few years, with the rapid development of information technology and artificial intelligence, data-driven pipeline leakage detection methods have gradually become a research hotspot [32].These methods identify leakage events by collecting various data during pipeline operations and applying data analysis techniques, offering advantages such as real-time detection, high accuracy, and low cost [33].Among the many data-driven approaches, neural networkbased methods have garnered significant attention due to their powerful nonlinear fitting capabilities and robustness. Pipeline Leak Detection on Offshore Platforms Using Existing Neural Network Methods This part focuses on analyzing and researching the aforementioned dataset using several neural network-based leak detection methods.These include Tan's method, which employs time-domain features and a probabilistic neural network (PNN) for pipeline leak detection [34]; Zhou's method, which combines simulated annealing (SA) and particle swarm optimization (PSO) with a BP Neural Network (BPNN) for leak detection [35]; and Zhang's method, which integrates Mel-Frequency Cepstral Coefficients (MFCC) with a Long Short-Term Memory (LSTM) network for pipeline leak detection [36]. Pipeline Leak Detection Based on Time-Domain Features-Probabilistic Neural Network Time-domain features (TDFs) directly reflect the variations in a signal over time.By monitoring the time-domain characteristics of a signal, it is possible to identify anomalies or sudden changes within the signal.In Tan's study, the characteristics of natural gas leaks were first analyzed, and certain TDFs of methane concentration and temperature were selected as feature vectors extracted from the raw signal data.The specific features extracted are shown in Table 1: Pipeline Leak Detection Based on Time-Domain Features-Probabilistic Neural Network The feature vectors derived from the table above are then input into the PNN model.A PNN is a special type of feedforward neural network primarily used for classification tasks.It is based on Bayesian decision theory and kernel estimation theory, allowing it to provide a theoretically optimal solution during classification.The structure of a PNN typically consists of four layers: the input layer, the pattern layer (also known as the hidden layer), the summation layer, and the output layer [37].The basic structure is illustrated in Figure 9. Pipeline Leak Detection Based on Time-Domain Features-Probabilistic Neural Network Table 1.Extracted TDFs of methane gas and their calculation formulas. Feature Calculation Formula Methane Concentration and Temperature Feature Calculation Formula Mean In this section, Tan's method [34] is used to identify the fused data.Since the ment only involves AE signals during pipeline operation, the correlation coefficie cluded from the feature set.Therefore, the features extracted from the raw AE sign used as input feature vectors for the PNN include the following: mean, standard tion, square root amplitude, RMS, peak value, impulse factor, skewness, kurtosis form factor, crest factor, and marginal factor. Feature Calculation Formula To proceed with the analysis, 80% of the dataset from Section 2 (1440 samples) as the training set, while 20% (360 samples) is reserved as the test set.A PNN m then defined, applying the Gaussian function to calculate the density.The density puted as the average of the Gaussian function values based on the distance betwe sample and the same-class training samples.Each test sample is classified into t gory with the highest density value.Figure 10 illustrates the recognition results of the test set (90 samples).The pattern layer, also known as the hidden layer, contains nodes where each node represents a training sample.Each neuron in the pattern layer calculates the Euclidean distance between the input vector and the training sample it represents.This distance is then processed through a radial basis function (RBF), which outputs a value indicating the similarity between the input vector and the training sample. Feature Calculation Formula where x is the input vector, x i is the training sample corresponding to the neuron in the pattern layer, and β is the smoothing parameter, which determines the width of the radial basis function.In the summation layer, each neuron corresponds to a category and is responsible for summing the outputs of all pattern layer neurons that belong to the same category.The purpose of this step is to accumulate the probability scores for each category. Feature Calculation Formula The output layer typically contains a single neuron, which selects the category with the highest probability as the final classification result.In this section, Tan's method [34] is used to identify the fused data.Since the experiment only involves AE signals during pipeline operation, the correlation coefficient is excluded from the feature set.Therefore, the features extracted from the raw AE signals and used as input feature vectors for the PNN include the following: mean, standard deviation, square root amplitude, RMS, peak value, impulse factor, skewness, kurtosis, waveform factor, crest factor, and marginal factor. Feature Calculation Formula To proceed with the analysis, 80% of the dataset from Section 2 (1440 samples) is used as the training set, while 20% (360 samples) is reserved as the test set.A PNN model is then defined, applying the Gaussian function to calculate the density.The density is computed as the average of the Gaussian function values based on the distance between each sample and the same-class training samples.Each test sample is classified into the category with the highest density value.Figure 10 illustrates the recognition results for 25% of the test set (90 samples).In this section, Tan's method [34] is used to identify the fused data.Since the experiment only involves AE signals during pipeline operation, the correlation coefficient is excluded from the feature set.Therefore, the features extracted from the raw AE signals and used as input feature vectors for the PNN include the following: mean, standard deviation, square root amplitude, RMS, peak value, impulse factor, skewness, kurtosis, waveform factor, crest factor, and marginal factor. Feature Calculation Formula To proceed with the analysis, 80% of the dataset from Section 2 (1440 samples) is used as the training set, while 20% (360 samples) is reserved as the test set.A PNN model is then defined, applying the Gaussian function to calculate the density.The density is computed as the average of the Gaussian function values based on the distance between each sample and the same-class training samples.Each test sample is classified into the category with the highest density value.Figure 10 illustrates the recognition results for 25% of the test set (90 samples).(143 + 163)/360 = 85%, indicating that the method performs poorly in terms of both false positives and false negatives, particularly with a higher rate of false negatives, which leads to a lower overall recognition accuracy. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network The simulated annealing (SA) algorithm is an optimization technique inspired by the annealing process in statistical physics.The core idea is to simulate the behavior of a material in a high-temperature state where its particles move freely, and then gradually cool it down until it reaches its lowest energy state, thus finding the global optimal solution [38]. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network The temperature update formula is given by Equation ( 4), where represents the temperature at the -th iteration, and is the cooling rate (0 < < 1 ).The algorithm starts at a high temperature, allowing for a large random search step.As the "temperature" gradually decreases, the step size is reduced, narrowing the search range until the global optimal solution is reached.Particle swarm optimization (PSO) is a populationbased optimization algorithm that simulates the foraging behavior of bird flocks to search for the optimal solution.Each particle represents a potential solution, and the particles adjust their positions and velocities by following both their own historical best positions and the global best position of the swarm [39]. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network ( + 1) = () + ( + 1) Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network The speed and position update formulas are shown in Equations ( 5) and ( 6), where () represents the velocity of particle at the -th iteration, is the inertia weight, and 1 and 2 are the cognitive and social acceleration constants, respectively. 1 and 2 are random numbers (0 < 1 , 2 < 1), is the historical best position of particle , is the global best position of the swarm, and is the current position of particle .The algorithm iteratively updates the positions and velocities of the particles, causing the swarm to gradually converge to the optimal solution. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network A Backpropagation Neural Network (BPNN) is a type of multi-layer feedforward neural network that is trained using the error backpropagation algorithm. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network The simulated annealing (SA) algorithm is an optimization technique inspired by the annealing process in statistical physics.The core idea is to simulate the behavior of a material in a high-temperature state where its particles move freely, and then gradually cool it down until it reaches its lowest energy state, thus finding the global optimal solution [38]. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network The temperature update formula is given by Equation ( 4), where T k represents the temperature at the k-th iteration, and α is the cooling rate (0 < α < 1).The algorithm starts at a high temperature, allowing for a large random search step.As the "temperature" gradually decreases, the step size is reduced, narrowing the search range until the global optimal solution is reached.Particle swarm optimization (PSO) is a population-based optimization algorithm that simulates the foraging behavior of bird flocks to search for the optimal solution.Each particle represents a potential solution, and the particles adjust their positions and velocities by following both their own historical best positions and the global best position of the swarm [39]. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network (5) Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network The speed and position update formulas are shown in Equations ( 5) and ( 6), where v i (t) represents the velocity of particle i at the t-th iteration, w is the inertia weight, and c 1 and c 2 are the cognitive and social acceleration constants, respectively.r 1 and r 2 are random numbers (0 < r 1 ,r 2 < 1), p i is the historical best position of particle i, p g is the global best position of the swarm, and x i is the current position of particle i.The algorithm iteratively updates the positions and velocities of the particles, causing the swarm to gradually converge to the optimal solution. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network A Backpropagation Neural Network (BPNN) is a type of multi-layer feedforward neural network that is trained using the error backpropagation algorithm. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network The error backpropagation formula is given by Equation (7), where δ l represents the error term of a layer, θ l is the activation function, and W l+1 is the weight matrix of the layer.A BPNN calculates the error between the output and the target and then backpropagates this error through the network layers.The weights and biases are updated to minimize the error.By iteratively adjusting these parameters, the network learns complex mapping relationships, enabling it to perform tasks such as classification and regression. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network In Zhou's study [35], two optimization algorithms-particle swarm optimization (PSO) and simulated annealing (SA)-are combined with the Backpropagation Neural Network (BPNN).While PSO can effectively optimize various functions, it often gets trapped in local minima during multi-objective optimization.SA, on the other hand, can escape the original state by accepting some suboptimal solutions with a certain probability, continuing the search process.During computation, these two algorithms iterate alternately, and by comparing the values of the objective function, the optimal result is obtained.The implementation steps are summarized as follows: Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network (1) Initial Optimization via PSO Algorithm (1) Initialize particle swarm: in the PSO algorithm, each particle represents a potential solution.After initializing the particle swarm, the iteration process begins; (2) Update position and velocity: each particle updates its position and velocity based on its own best position and the global best position; (3) Fitness evaluation: evaluate the fitness of each particle, which is the loss function value of the BPNN. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network (2) Improved Optimization via SA Algorithm Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network (1) Accept suboptimal solutions: in each iteration, the SA algorithm accepts suboptimal solutions based on a temperature probability, allowing it to escape local optima; (2) Temperature update: as the iterations proceed, the temperature gradually decreases, reducing the probability of accepting suboptimal solutions. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network ( Particle update: if the SA algorithm finds a better solution, a random particle is selected and its position is updated to increase the diversity of the particle swarm; (3) Initial position setting: if the PSO algorithm finds a better solution, the SA algorithm uses that solution as the initial position for further search, improving search efficiency.The SA-PSO parameter optimization process is illustrated in Figure 12. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network In this part, Zhou's method is applied for modeling and predictive analysis on the dataset.The process begins with data preprocessing, including normalization and matrix formation.The dataset is then split into training, validation, and test sets in a 5:3:2 ratio.A three-layer BPNN is constructed, comprising two hidden layers with 512 and 256 neurons, respectively, followed by a Sigmoid activation function. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network To optimize the parameters of the BPNN model, the PSO algorithm is initially used to simulate the movement of particles in the search space to find the optimal solution.The swarm size for PSO is set to 100, with 100 optimization iterations.Next, the SA algorithm is employed for further optimization, with an initial temperature of 100, a cooling rate of 0.9, and 100 training iterations.PSO is then used again to refine the model parameters further.Finally, the optimized model is evaluated on the test set, with the accuracy calculated and the confusion matrix plotted to visualize the classification performance. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network Figure 13 shows the recognition results of this method.In this part, Zhou's method is applied for modeling and predictive analysis on the dataset.The process begins with data preprocessing, including normalization and matrix formation.The dataset is then split into training, validation, and test sets in a 5:3:2 ratio.A three-layer BPNN is constructed, comprising two hidden layers with 512 and 256 neurons, respectively, followed by a Sigmoid activation function. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network To optimize the parameters of the BPNN model, the PSO algorithm is initially used to simulate the movement of particles in the search space to find the optimal solution.The swarm size for PSO is set to 100, with 100 optimization iterations.Next, the SA algorithm is employed for further optimization, with an initial temperature of 100, a cooling rate of 0.9, and 100 training iterations.PSO is then used again to refine the model parameters further.Finally, the optimized model is evaluated on the test set, with the accuracy calculated and the confusion matrix plotted to visualize the classification performance. Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network Figure 13 shows the recognition results of this method.The method identified 143 leak signals and misclassified 37 noisy leak signals as noise signals (false positives).It correctly identified 177 noise signals and misclassified 3 noise signals as noisy leak signals (false negatives).The recognition accuracy is (143 + 177)/360 = 88.9%.Compared to the TDF-PNN method, this approach has improved the issue of false positives but still has a high rate of false negatives.This indicates that the method is better at avoiding the misclassification of noise signals as noisy leak signals but still requires improvements in accurately identifying noisy leak signals. Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network Mel-Frequency Cepstral Coefficients (MFCCs) is a feature extraction method introduced from speech recognition.MFCCs are coefficients derived from a linear transformation of the logarithmic energy spectrum based on the nonlinear Mel scale of frequency.These coefficients effectively reflect the spectral characteristics of a speech signal [40].The steps for extracting MFCCs are as follows: Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network (1) Pre-emphasis: the input sound signal is filtered to enhance high-frequency components, resulting in a smoother spectrum; (2) Framing and windowing: the continuous sound signal is segmented into multiple frames, with each frame containing a fixed number of samples.To reduce edge effects, each frame is multiplied by a window function; Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network (3) Fast Fourier transform (FFT): a fast Fourier transform is applied to each frame to con- Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network Mel-Frequency Cepstral Coefficients (MFCCs) is a feature extraction method introduced from speech recognition.MFCCs are coefficients derived from a linear transformation of the logarithmic energy spectrum based on the nonlinear Mel scale of frequency.These coefficients effectively reflect the spectral characteristics of a speech signal [40].The steps for extracting MFCCs are as follows: Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network (1) Pre-emphasis: the input sound signal is filtered to enhance high-frequency components, resulting in a smoother spectrum; Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network (2) Framing and windowing: the continuous sound signal is segmented into multiple frames, with each frame containing a fixed number of samples.To reduce edge effects, each frame is multiplied by a window function; (3) Fast Fourier transform (FFT): a fast Fourier transform is applied to each frame to convert the time-domain signal into a frequency-domain signal, resulting in a spectrum.The FFT formula is given by Equation ( 8): Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network where X[k] is the FFT result, N is the number of points in the FFT, x w is the input signal, and k is the index of the frequency bin; Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network (4) Mel-frequency filtering and summation: the spectrum is weighted and summed using a Mel-frequency filter bank, which converts the spectrum to the Mel-frequency scale. Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network The conversion formula to the Mel-frequency scale is given by Equation ( 9): Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network where f is the linear frequency in Hertz (Hz), and Mel( f ) is the corresponding frequency on the Mel scale; Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network (5) Discrete Cosine Transform (DCT): the output energies of the filter bank are subjected to a Discrete Cosine Transform (DCT) to generate the MFCC features.The DCT formula is given by Equation ( 10): Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network )) Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network where C n is the n-th MFCC coefficient, M is the number of filters in the filter bank, and E m is the energy of the m-th filter.The main process of MFCC extraction is shown in Figure 14.A Long Short-Term Memory Network (LSTM) is a specialized type of Recurrent Neural Network (RNN) that effectively learns and remembers long-term dependencies in sequence data.Figure 15 depicts the internal structure of an LSTM neuron.An LSTM unit comprises three gate units: the forget gate, the input gate, and the output gate, as well as a memory cell [41].The computation at each time step involves the following steps: A Long Short-Term Memory Network (LSTM) is a specialized type of Recurrent Neural Network (RNN) that effectively learns and remembers long-term dependencies in sequence data.Figure 15 depicts the internal structure of an LSTM neuron.An LSTM unit comprises three gate units: the forget gate, the input gate, and the output gate, as well as a memory cell [41].The computation at each time step involves the following steps: Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network (1) Forget gate: the forget gate decides how much of the previous time step's cell state needs to be forgotten.The calculation for the forget gate is given by Equation ( 11): Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network where f t is the forget gate's output.σ is the Sigmoid activation function.W f is the weight matrix of the forget gate.b f is the bias term of the forget gate.h t−1 is the hidden state from the previous time step.x t is the input at the current time step; Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network (2) Input gate: the input gate determines how much of the current time step's input needs to be remembered.The input gate's calculation is divided into two steps: first, the part that needs to be updated is calculated using Equation ( 12): Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network Then, the candidate cell state is calculated using Equation ( 13): Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network where i t is the input gate's output. ∼ C t is the candidate cell state.tanh is the activation function.W i is the weight matrix for the input gate.b i is the bias term for the input gate.W C is the weight matrix for the candidate cell state.b C is the bias term for the candidate cell state; ∼ (3) Cell state update: the cell state is updated by combining the previous time step's cell state and the current time step's input information, as shown in Equation ( 14): ∼ where C t is the current time step's cell state, and C t−1 is the previous time step's cell state; ∼ (4) Output gate: the output gate determines how much of the current time step's cell state should be output as the hidden state.The output gate's calculation is given by Equation ( 15): ∼ The hidden state at the current time step is then calculated using Equation ( 16): ∼ where o t is the output gate's output.h t is the hidden state at the current time step.W o is the weight matrix for the output gate.b o is the bias term for the output gate.Zhang et al. [36] proposed a method combining MFCC and LSTM for pipeline leak detection.This method extracts MFCC features from AE signals through steps including pre-emphasis, framing, FFT, mapping and filtering, and DCT.The extracted MFCC features are then input into an LSTM network for training and testing.In this section, Zhang's method is applied to construct an MFCC-LSTM which is then used for analysis and prediction. ∼ where is the -th MFCC coefficient, is the number of filters in the filter bank, and is the energy of the -th filter.The main process of MFCC extraction is shown in Figure 14.A Long Short-Term Memory Network (LSTM) is a specialized type of Recurrent Neural Network (RNN) that effectively learns and remembers long-term dependencies in sequence data.Figure 15 depicts the internal structure of an LSTM neuron.An LSTM unit comprises three gate units: the forget gate, the input gate, and the output gate, as well as a memory cell [41].The computation at each time step involves the following steps: (1) Forget gate: the forget gate decides how much of the previous time step's cell state needs to be forgotten.The calculation for the forget gate is given by Equation ( 11): Filter banks MFCC where is the forget gate's output. is the Sigmoid activation function. is the weight matrix of the forget gate. is the bias term of the forget gate.ℎ −1 is the hidden First, for the MFCC feature extraction method, the sampling frequency is set to 1 MHz, the MFCC dimension is set to 96D as in Zhang's paper, the FFT window size is set to 1024, and the number of Mel filters is set to 48.MFCC features are then extracted from all samples in the dataset, and the resulting feature vectors are divided into training and test sets. Filter banks MFCC As can be seen from Figure 16, the method identified 172 leak signals and misclassifying 8 noisy leak signals as noise signals (false negatives).It correctly identified 167 noise signals and misclassified 13 noise signals as noisy leak signals (false positives).The recognition accuracy is (167 + 172)/360 = 94.16%.Compared to the SA-PSO-BPNN method, this approach shows better performance in reducing false negatives, but the number of false positives has increased.Overall, the recognition accuracy has improved by about 5%. Filter banks MFCC Zhang et al. [36] proposed a method combining MFCC and LSTM for pipeline leak detection.This method extracts MFCC features from AE signals through steps including pre-emphasis, framing, FFT, mapping and filtering, and DCT.The extracted MFCC features are then input into an LSTM network for training and testing.In this section, Zhang's method is applied to construct an MFCC-LSTM model, which is then used for analysis and prediction. Filter banks MFCC First, for the MFCC feature extraction method, the sampling frequency is set to 1 MHz, the MFCC dimension is set to 96D as in Zhang's paper, the FFT window size is set to 1024, and the number of Mel filters is set to 48.MFCC features are then extracted from all samples in the dataset, and the resulting feature vectors are divided into training and test sets. Filter banks MFCC As can be seen from Figure 16 Limitations of the above Neural Network-Based Detection Methods For pipeline leaks, the risk of false negatives (missed leaks) is greater than that of false positives (false alarms), so more attention needs to be paid to reducing false negatives in models.Although the pipeline leak detection methods for ocean platforms have demonstrated varying degrees of effectiveness in theory and experiments, there are the following shortcomings in the analysis process and identification results of pipeline leak signals: Limitations of the above Neural Network-Based Detection Methods (1) TDF-PNN method: the TDF method only extracts time-domain features, ignoring frequency-domain and time-frequency domain characteristics.Pipeline leak signals may manifest significant characteristics not only in the time domain but also in the frequency and time-frequency domains.Extracting only TDFs may fail to comprehensively capture all critical information of the signal.Additionally, the use of a probabilistic neural network (PNN) model, which has a relatively simple structure, might not be able to capture complex patterns and nonlinear relationships within the data, leading to low classification accuracy and a notable incidence of false negatives; (2) SA-PSO-BPNN method: firstly, when searching for optimal solutions in the parameter space, both simulated annealing (SA) and particle swarm optimization (PSO) algorithms have high computational complexity, resulting in longer training times.Secondly, both SA and PSO algorithms have several hyperparameters that need to be adjusted, such as initial temperature, cooling rate, swarm size, and inertia weight.These parameters significantly impact the final optimization results, yet tuning them often requires repeated experimentation, increasing the difficulty of use.Despite iterating one hundred times each, neither parameter optimization algorithm led to a significant improvement in accuracy compared to the TDF-PNN method, nor did they improve the situation with false negatives; (3) MFCC-LSTM method: MFCC features are primarily used in speech signal processing, and the extracted features are static.When applied to pipeline leak signals, some important frequency or time-domain information might be lost, along with the dynamic characteristics of the leak signal over time.Although there was an improvement in overall accuracy and the rate of false negatives compared to the previous two methods, there remains room for enhancement in the identification performance. Leak Detection for Offshore Platform Pipelines Based on Improved End-to-End Convolutional Neural Networks Convolutional neural networks (CNN) are a type of feedforward neural network that includes convolutional computations and has a deep structure.CNNs effectively extract and classify features from input data by mimicking the operation mechanisms of the human visual system, particularly by utilizing properties such as local receptive fields and weight sharing [42].The early concept of this network originated from the research conducted by Hubel and Wiesel [43] on the visual cortex of cats in the 1960s, while the modern framework of CNNs was mainly proposed and refined by LeCun [44] in the early 1990s. Convolutional Neural Network CNNs can be categorized into one-dimensional (1D-CNN), two-dimensional (2D-CNN), and three-dimensional (3D-CNN) based on the dimensionality of the data they process.1D-CNNs are primarily used for analyzing one-dimensional time series, 2D-CNNs are widely applied in computer vision and image processing, while 3D-CNNs are mainly used for the recognition and analysis of medical images and video data.In this paper, a 1D-CNN is employed to analyze and process the one-dimensional AE signals generated during pipeline operation. One-Dimensional Convolutional Neural Network The basic structure of a 1D-CNN includes an input layer, convolutional layers, pooling layers, fully connected layers, and an output layer.In a 1D-CNN, the convolutional layers are responsible for extracting temporal or sequential features from the input data.This process is carried out using one or more convolutional kernels to generate transformed feature maps.During the convolution operation, the kernel begins at one end of the input data and slides along the length of the data, computing the dot product of the kernel and the input data at each step.Assuming there is an input sequence x and a convolutional kernel k, where the length of x is L and the length of k is M, the length of the output y will depend on the input length, the kernel size, and the stride S. The calculation for each element in the output y is given by the following formula: One-Dimensional Convolutional Neural Network where t is the index of the output sequence, and b is the bias term.Commonly used pooling layers include max pooling and average pooling.Average pooling reduces the size of the feature map by calculating the average value of each small region in the input feature map. One-Dimensional Convolutional Neural Network During average pooling, a window is selected, which slides over the input feature map according to the window size.The pixel values within the covered region of the window are averaged, and this average value replaces the original pixel values in the window region.Assuming the operation is performed over a region of size n × n, the average pooling operation can be expressed as follows: One-Dimensional Convolutional Neural Network where Y arg (x) is an element in the output feature map, and x ij is the value at position (i, j) in the input feature map.Average pooling helps the network reduce the spatial dimensions while preserving background information and less prominent features in the image, making the network more robust to small positional changes.Even if there are slight shifts in the object's position within the image, the features extracted through average pooling can maintain consistency.Max pooling is used to reduce the size of the feature map, decrease computational load, and provide a certain degree of translation invariance.Max pooling achieves this by selecting the maximum value within a given window.For a feature map region, the max pooling operation can be expressed as follows: One-Dimensional Convolutional Neural Network where X is the set of elements in the feature map region covered by the pooling window, and Y m (x) is the maximum value extracted from X.The introduction of max pooling and average pooling in CNNs allows for the extraction of key features while simultaneously reducing the dimensionality of the feature map and the number of parameters.This reduction in complexity helps decrease computational load and prevents overfitting. One-Dimensional Convolutional Neural Network In a 1D-CNN, the fully connected layer plays a crucial role in integrating the features extracted by the previous layers and in performing classification or regression tasks.The fully connected layer is a form of a traditional neural network layer, where each input node is connected to every output node.This layer is typically located at the end of the network and receives the output of the previous convolutional or pooling layers, which has been flattened as input.Through the weights in the fully connected layer, the network learns how to extract useful information from the combined features to make decisions.The computation in the fully connected layer is essentially a linear transformation followed by a nonlinear activation function.The expression for the regression in the fully connected layer is as follows: One-Dimensional Convolutional Neural Network where x m−1 is the input from the previous layer to the fully connected layer, ω and b represent the weights and biases of the neuron, respectively, and f is the activation function, commonly ReLU, Sigmoid, or Tanh.As shown in Figure 17, the 1D-CNN uses one-dimensional convolution to extract local one-dimensional segments from the time series and performs convolution and pooling operations to extract sequence features. Framework of the Proposed Method Traditional fault diagnosis techniques rely on the expertise and experience of technicians and generally involve data processing and signal conversion.However, these conventional methods may suffer from issues such as low accuracy and poor robustness.In contrast, a 1D-CNN can directly perform pipeline leak detection from raw signal data.Compared to traditional methods, it not only eliminates the need for complex data pre- Framework of the Proposed Method Traditional fault diagnosis techniques rely on the expertise and experience of technicians and generally involve data processing and signal conversion.However, these conventional methods may suffer from issues such as low accuracy and poor robustness.In contrast, a 1D-CNN can directly perform pipeline leak detection from raw signal data.Compared to traditional methods, it not only eliminates the need for complex data preprocessing and signal transformation but also significantly improves the accuracy of fault diagnosis.Building upon the 1D-CNN framework, this paper incorporates spatial attention mechanisms, residual modules, and transformer modules.According to the characteristics of the model, the improved 1D-CNN network is named the Spatial Attention-Residual-Transformer 1D Convolutional Neural Network (SART-1DCNN). Improvement Approach (1) Spatial Attention Mechanism The goal of the spatial attention mechanism is to assign attention weights to different spatial positions in the input feature map based on their importance.These weights reflect the regions that the model should focus on when processing the feature map.Attention weights are usually calculated using the global information of the feature map. Improvement Approach (1) Spatial Attention Mechanism Assume the input feature map is X with dimensions H × W × C, where H is the height, W is the width, and C is the number of channels.The main calculation process of the spatial attention mechanism is as follows: first, global information is extracted from the feature map through average pooling and max pooling.Then, the results of the average pooling and max pooling are concatenated to generate a two-dimensional feature map: Improvement Approach (1) Spatial Attention Mechanism where A max (x, y) and A avg (x, y) represent the results of max pooling and average pooling at position (x, y), respectively; A(x, y) has a size of H × W × 2, meaning that each spatial position has two channels.Next, a convolutional layer with a kernel size of k × k is applied to the concatenated feature map, resulting in a single-channel attention map: Improvement Approach (1) Spatial Attention Mechanism where W represents the convolution kernel, * denotes the convolution operation, b is the bias term, σ is the activation function, and M(x, y) is the final spatial attention map.Finally, the generated spatial attention map M(x, y) is element-wise multiplied with the original input feature map X, resulting in a weighted feature map: Improvement Approach (1) Spatial Attention Mechanism where X out is the feature map after being weighted by the spatial attention.The spatial attention mechanism enables the model to focus on important regions while suppressing less relevant parts.Introducing this mechanism is highly effective in enhancing the model's ability to recognize target objects. Improvement Approach (1) Spatial Attention Mechanism (2) Residual Connections Improvement Approach (1) Spatial Attention Mechanism Residual connections are primarily used to address the issue of vanishing or exploding gradients as the number of network layers increases.The core idea is to allow the output of one layer to be directly connected to a later layer, typically through a "shortcut connection", making the training of deep networks more efficient.Residual connections were first proposed by Kaiming He et al. [45].In a residual network, a basic residual block can be expressed as follows: Improvement Approach (1) Spatial Attention Mechanism where x is the input to the residual block, F(x, {W i }) represents the mapping function passed through the weights {W i } in the block, and y is the output of the residual block. Improvement Approach (1) Spatial Attention Mechanism The above equation indicates that if x is already a good output, the network only needs to learn the residual part from x to y, rather than learning the entire y.This approach allows for more effective gradient propagation, even as the network depth increases, because the direct path provided by the shortcut connection preserves the strength of the gradient, thereby mitigating the issue of vanishing gradients.In this study, by adding residual connections between convolutional layers, the model is able to maintain stability and efficiency in training as the depth increases.This design enables the network to learn more complex and abstract feature representations. Improvement Approach (1) Spatial Attention Mechanism ( 3) Transformer Module The transformer module is based on the self-attention mechanism, which was originally proposed by Vaswani et al. in their 2017 paper [46].The self-attention mechanism allows the model to consider all positions in the entire sequence simultaneously when calculating the representation of each position in the sequence.Specifically, for each element in the input sequence, three vectors are generated through linear transformations: the Query vector, the Key vector, and the Value vector.The calculation formulas for these vectors are as follows: 3) Transformer Module where X represents the input sequence, and XW Q , XW K , XW V are the parameter matrices used for the linear transformations.In the transformer layer, the output of the self-attention mechanism is passed through a feedforward neural network.This is a position-wise fully connected network that independently operates on each position within the sequence.The calculation formula for the feedforward neural network is as follows: 3) Transformer Module where W 1 and W 2 are the weight matrices, b 1 and b 2 are the bias terms, and max(0, x) represents the ReLU activation function.To prevent gradient vanishing and accelerate training, the transformer uses residual connections and layer normalization in each sublayer.Overall, the transformer architecture consists of an encoder and a decoder.Each layer of the encoder includes a self-attention mechanism and a feedforward network.The decoder has a similar structure to the encoder, but in addition to the self-attention mechanism, it also includes a cross-attention mechanism with the encoder's output.This structure effectively captures long-range dependencies within sequences. 3) Transformer Module (4) Application of Dropout and Optimization Algorithms Dropout is a regularization technique used to prevent overfitting in neural networks, first proposed by Hinton et al. [47].During training, Dropout randomly drops a portion of the neurons in the network (i.e., sets their output to zero).This can be represented as follows: 3) Transformer Module where x is the input vector to a neuron, m is a randomly generated 0−1 (Obey Bernoulli distribution) vector with the same dimension as x, and ⊗ denotes element-wise multiplication.The working principle of Dropout is that during each forward pass, some neurons in the hidden layer, along with their corresponding connections, are temporarily removed from the network at random.This means that these neurons do not participate in the current forward and backward propagation calculations or in gradient updates.By doing so, the model effectively trains with different network architectures on each pass, reducing dependency on specific training samples and improving the model's generalization ability. 3) Transformer Module In addition, the Adam optimization algorithm is used to adjust the network weights.Adam is an adaptive learning rate optimization algorithm proposed by Diederik P. Kingma and Jimmy Ba in 2014 [48].It calculates an adaptive learning rate for each parameter, which can be expressed as follows: 3) Transformer Module where θ represents the parameter, η is the learning rate, mt and vt are bias-corrected estimates of the first and second moments, respectively, and ϵ is a small constant added for numerical stability.These improvements work together to enhance the performance of the improved 1D-CNN model in the task of offshore platform pipeline leak detection. Structure of SART-1DCNN Model The CNN model is an 8-layer lightweight CNN framework, composed of several core components.The main structural parameters of this network are shown in Table 2. First, preliminary features are extracted through a convolutional layer, followed by a spatial attention mechanism layer to enhance important features.The features then enter the first residual block for further processing and are down-sampled through an average pooling layer.Subsequently, the features pass through a transformer encoder layer to capture global dependencies within the sequence.Next, the features go through the second residual block, and after being processed by another convolutional layer, they are flattened and passed through a fully connected layer for final classification.The improved 1D-CNN structure is illustrated in Figure 18. Diagnostic Process The diagnostic process for the SART-1DCNN for offshore platform pipeli tection is illustrated in Figure 19.The process begins with the collection of AE s the pipeline to create the dataset, which is then divided into 60% training set, 2 tion set, and 20% test set.The training phase involves building the improve model and tuning the model parameters until the training is completed and output. Diagnostic Process The process then follows two possible directions: If the model's accuracy requirements, the model is output and saved, and the test set is used for predi evaluation, after which the process ends.If the accuracy is insufficient, adjus made, and the process is repeated. Diagnostic Process The diagnostic process for the SART-1DCNN for offshore platform pipeline leak detection is illustrated in Figure 19.The process begins with the collection of AE signals from the pipeline to create the dataset, which is then divided into 60% training set, 20% validation set, and 20% test set.The training phase involves building the improved 1D-CNN model and tuning the model parameters until the training is completed and results are output. Diagnostic Process The process then follows two possible directions: If the model's accuracy meets the requirements, the model is output and saved, and the test set is used for prediction result evaluation, after which the process ends.If the accuracy is insufficient, adjustments are made, and the process is repeated. Model Training and Prediction Results Analysis The CNN was trained and tested using the dataset consisting of 1800 sets of data as described in Section 2. These sets of data were randomly divided, with 1080 sets used as the model training set, 360 sets as the validation set for assisting in model parameter tuning, and 360 sets as the test set. Model Training and Prediction Results Analysis The CNN was trained and tested using the dataset consisting of 1800 sets of data as described in Section 2. These sets of data were randomly divided, with 1080 sets used as the model training set, 360 sets as the validation set for assisting in model parameter tuning, and 360 sets as the test set. Model Training and Prediction Results Analysis The CNN was trained and tested using the dataset consisting of 1800 sets of data as described in Section 2. These sets of data were randomly divided, with 1080 sets used as the model training set, 360 sets as the validation set for assisting in model parameter tuning, and 360 sets as the test set.After completing the model training and validation, the trained model was used to extract high-dimensional features from the test data.The t-SNE (t-distributed Stochastic Neighbor Embedding) algorithm was then applied to reduce the dimensionality of these high-dimensional features into a two-dimensional space, generating the t-SNE plot shown in Figure 21.In the t-SNE plot, distinct clusters of data can be observed, with clear boundaries between them.This indicates that the model performs well in feature extraction and can effectively distinguish between different categories. Model Training and Prediction Results Analysis After completing the model training and validation, the trained model was used to extract high-dimensional features from the test data.The t-SNE (t-distributed Stochastic Neighbor Embedding) algorithm was then applied to reduce the dimensionality of these high-dimensional features into a two-dimensional space, generating the t-SNE plot shown in Figure 21.In the t-SNE plot, distinct clusters of data can be observed, with clear boundaries between them.This indicates that the model performs well in feature extraction and can effectively distinguish between different categories.After completing the model training and validation, the trained model was used to extract high-dimensional features from the test data.The t-SNE (t-distributed Stochastic Neighbor Embedding) algorithm was then applied to reduce the dimensionality of these high-dimensional features into a two-dimensional space, generating the t-SNE plot shown in Figure 21.In the t-SNE plot, distinct clusters of data can be observed, with clear boundaries between them.This indicates that the model performs well in feature extraction and can effectively distinguish between different categories. Comparative Analysis Two typical CNNs, LeNet and AlexNet, were used to analyze the AE leak data.LeNet is a classic CNN structure proposed by Yann LeCun et al. [44] in 1998, originally designed for handwritten digit recognition tasks (MNIST dataset).AlexNet, proposed by Alex Krizhevsky et al. [49] in 2012, is a CNN that achieved significant success in the ImageNet image classification competition.When applying these two CNN architectures to the leak analysis in this study, the original 2D convolutional and pooling layers in both networks were replaced with 1D convolutional and pooling layers, respectively.The frameworks of the two models are shown in Figure 23.[44] in 1998, originally designed for handwritten digit recognition tasks (MNIST dataset).AlexNet, proposed by Alex Krizhevsky et al. [49] in 2012, is a CNN that achieved significant success in the ImageNet image classification competition.When applying these two CNN architectures to the leak analysis in this study, the original 2D convolutional and pooling layers in both networks were replaced with 1D convolutional and pooling layers, respectively.The frameworks of the two models are shown in Figure 23.The batch size for training LeNet and AlexNet was set to be the same as that of the network used in this study, and the same number of training epochs was applied.A comparison was made between the three methods from Section 3 and the method presented in this Section, with the results shown in Table 3.The batch size for training LeNet and AlexNet was set to be the same as that of the network used in this study, and the same number of training epochs was applied.A comparison was made between the three methods from Section 3 and the method presented in this Section, with the results shown in Table 3.It can be seen that the accuracy obtained using the LeNet model is the lowest, likely due to the network structure being too simple to effectively learn the features of the data.The SA-PSO-BPNN method performs better than the TDF-PNN method, indicating that the use of optimization algorithms can improve the network's recognition performance to some extent.Both the MFCC-LSTM and AlexNet methods achieve accuracy rates above 90%, but the MFCC-LSTM network has significantly fewer parameters than AlexNet and also achieves higher accuracy.Finally, the SART-1DCNN method has a number of parameters between those of LeNet and AlexNet, and it achieves an accuracy of 99.44% on the test set, higher than all other methods mentioned in this study. Conclusions This paper first designs and sets up a pipeline leakage model, formulates corresponding experimental protocols, collects pipeline leakage signals and noise signals from marine platform pipelines, and integrates the leakage signals with actual measured noise signals to simulate real-world leakage scenarios.Subsequently, several existing networkbased leakage identification methods were trained and validated on the dataset, and their shortcomings were identified.Finally, it proposes an improved method based on CNNnamed SART-1DCNN-and compares it with other methods.The specific conclusions are as follows: Conclusions (1) It implements and compares three pipeline leakage identification methods: TDF-PNN, SA-PSO-BPNN, and MFCC-LSTM.Among these, the TDF-PNN method extracts timedomain features of the signal and classifies them using a probabilistic neural network (PNN), but its recognition performance is poor under noisy conditions (85.00%). Conclusions The SA-PSO-BPNN method optimizes the parameters of the BP neural network via simulated annealing (SA) and particle swarm optimization (PSO) algorithms, thus enhancing recognition performance (88.90%).In contrast, the MFCC-LSTM method exhibits the best performance, achieving a recognition accuracy rate of 94.16%; (2) The 1D-CNN model can directly take the original acoustic emission signal as input for training and testing, effectively addressing the complexities of data preprocessing and feature extraction during the fault diagnosis of gas pipelines, achieving accurate end-to-end fault diagnosis.This paper introduces the SART-1DCNN method for processing original acoustic emission signals.The similarity between the input vector and the training sample T k Conclusions Temperature of the k-th iteration of simulated annealing algorithm v i (t) Conclusions The velocity of particle i at t iterations x i (t) Conclusions The position of particle i at the t-th iteration An element in the output feature map of a convolutional neural network Y m (x) Conclusions The maximum value extracted from x in the max pooling operation y(x m ) Conclusions Output of fully connected layer A(x, y) Two-dimensional feature map in spatial attention mechanism M(x, y) Conclusions Single-channel attention map in spatial attention mechanism X out (x, Figure 1 . Figure 1.Pipeline structure model. Figure 1 . Figure 1.Pipeline structure model. Figure 2 . Figure 2. Pipeline AE detection system. Figure 2 . Figure 2. Pipeline AE detection system. Figure 2 . Figure 2. Pipeline AE detection system. Figure 3 . Figure 3. LW3-1 CEP platform.(a) LW3-1 framework model; (b) LW3-1 on-site image. Figure 3 . Figure 3. LW3-1 CEP platform.(a) LW3-1 framework model; (b) LW3-1 on-site image. Figure 4 . Figure 4. AE sensor layout on offshore platform pipelines.(a) Sensor installation position 1; (b) sensor installation position 2. Figure 5 . Figure 5. Laboratory leak signal waveform. Figure 4 . Figure 4. AE sensor layout on offshore platform pipelines.(a) Sensor installation position 1; (b) sensor installation position 2. Figure 3 . Figure 3. LW3-1 CEP platform.(a) LW3-1 framework model; (b) LW3-1 on-site image. Figure 4 . Figure 4. AE sensor layout on offshore platform pipelines.(a) Sensor installation position 1; (b) sensor installation position 2. Figure 5 . Figure 5. Laboratory leak signal waveform. Figure 5 . Figure 5. Laboratory leak signal waveform. Figure 6 . Figure 6.Measured noise signal on platform and leak signal with noise added.(a) Measured noise signal on platform; (b) leak signal with noise added. Figure 6 . Figure 6.Measured noise signal on platform and leak signal with noise added.(a) Measured noise signal on platform; (b) leak signal with noise added. Figure 6 . Figure 6.Measured noise signal on platform and leak signal with noise added.(a) Measured noise signal on platform; (b) leak signal with noise added. Figure 7 . Figure 7. Frequency spectrum and time-frequency plot of measured noise signal on platform.(a) Frequency spectrum of measured noise signal on platform; (b) time-frequency plot of signal with noise added. Figure 7 .Figure 8 . Figure 7. Frequency spectrum and time-frequency plot of measured noise signal on platform.(a) Frequency spectrum of measured noise signal on platform; (b) time-frequency plot of signal with noise added. Figure 8 . Figure 8. Frequency spectrum and time-frequency plot of leak signal with noise added.(a) Frequency spectrum of signal with noise added; (b) time-frequency plot of signal with noise added. 2 JFigure 9 . Figure 9. PNN structure diagram. Figure 9 . Figure 9. PNN structure diagram. Figure 9 . Figure 9. PNN structure diagram. Figure 10 . Figure 10.PNN classification results diagram (part).The confusion matrix in Figure 11 illustrates the recognition results.Out of 360 test cases, the method identified 143 noise signals and misclassified 37 noisy leak signals as noise signals (false negatives).It correctly identified 163 noise signals and incorrectly classified 17 noise signals as noisy leak signals (false positives).The recognition accuracy is Figure 10 . Figure 10.PNN classification results diagram (part).The confusion matrix in Figure 11 illustrates the recognition results.Out of 360 test cases, the method identified 143 noise signals and misclassified 37 noisy leak signals as noise signals (false negatives).It correctly identified 163 noise signals and incorrectly classified 17 noise signals as noisy leak signals (false positives).The recognition accuracy is (143 + 163)/360 = 85%, indicating that the method performs poorly in terms of both false positives and false negatives, particularly with a higher rate of false negatives, which leads to a lower overall recognition accuracy. Figure 11 . Figure 11.Confusion matrix for the TDF-PNN method test set. Figure 11 . Figure 11.Confusion matrix for the TDF-PNN method test set. Figure 12 . Figure 12.SA-PSO parameter optimization process. Figure 12 . Figure 12.SA-PSO parameter optimization process.J. Mar.Sci.Eng.2024, 12, x FOR PEER REVIEW 15 of 31 Figure 13 . Figure 13.Confusion matrix for the SA-PSO-BPNN method test set. Figure 13 . Figure 13.Confusion matrix for the SA-PSO-BPNN method test set. JFigure 14 . Figure 14.Main extraction process of Mel-Frequency Cepstral Coefficients. Figure 14 . Figure 14.Main extraction process of Mel-Frequency Cepstral Coefficients. Figure 14 . Figure 14.Main extraction process of Mel-Frequency Cepstral Coefficients. Figure 15 . Figure 15.LSTM neuron structure. Figure 15 . Figure 15.LSTM neuron structure. Figure 15 . , the method identified 172 leak signals and misclassifying 8 noisy leak signals as noise signals (false negatives).It correctly identified 167 noise signals and misclassified 13 noise signals as noisy leak signals (false positives).The recognition accuracy is (167 + 172)/360 = 94.16%.Compared to the SA-PSO-BPNN method, this approach shows better performance in reducing false negatives, but the number of false positives has increased.Overall, the recognition accuracy has improved by about 5%. Figure 16 . Figure 16.Confusion matrix for the MFCC-LSTM method test set. Figure 16 . Figure 16.Confusion matrix for the MFCC-LSTM method test set. JFigure 17 . Figure 17.Working principle of one-dimensional CNN. Figure 17 . Figure 17.Working principle of one-dimensional CNN. JFigure 18 . Figure 18.Structure of the SART-1DCNN. Figure 18 . Figure 18.Structure of the SART-1DCNN. 4. 3 .1.Network Training All data were input into the improved one-dimensional CNN model with a batch size of 128 and a learning rate set to 10-5.The model was trained for 100 epochs.After training, the accuracy and loss functions for both the training and validation datasets were visualized.The accuracy and loss function curves are shown in Figure 20.In the figure, the data points on the accuracy and loss curves represent the results at the 1st, 50th, and 100th epochs.It can be seen that after 100 epochs of training, the accuracy for both the training and test datasets reached over 99%.(a) (b) Figure 20 . Figure 20.Accuracy and loss function curves for 100 epochs on training and validation sets.(a) training metrics; (b) validation metrics. Figure 19 . Figure 19.Diagnostic process for the SART-1DCNN model. 4. 3 .1.Network Training All data were input into the improved one-dimensional CNN model with a batch size of 128 and a learning rate set to 10-5.The model was trained for 100 epochs.After training, the accuracy and loss functions for both the training and validation datasets were visualized.The accuracy and loss function curves are shown in Figure 20.In the figure, the data points on the accuracy and loss curves represent the results at the 1st, 50th, and 100th epochs.It can be seen that after 100 epochs of training, the accuracy for both the training and test datasets reached over 99%. 4. 3 .1.Network Training All data were input into the improved one-dimensional CNN model with a batch size of 128 and a learning rate set to 10-5.The model was trained for 100 epochs.After training, the accuracy and loss functions for both the training and validation datasets were visualized.The accuracy and loss function curves are shown in Figure 20.In the figure, the data points on the accuracy and loss curves represent the results at the 1st, 50th, and 100th epochs.It can be seen that after 100 epochs of training, the accuracy for both the training and test datasets reached over 99%.(a) (b) Figure 20 . Figure 20.Accuracy and loss function curves for 100 epochs on training and validation sets.(a) training metrics; (b) validation metrics. Figure 20 . Figure 20.Accuracy and loss function curves for 100 epochs on training and validation sets.(a) training metrics; (b) validation metrics. Figure 21 . Figure 21.t−SNE plot of the test set data. Figure 22 Figure22shows the confusion matrix obtained from the predictions made by the trained model on the test set.From this confusion matrix, we can observe that the model successfully identified all noise-containing leakage signals, while misclassifying two actual noise signals as noise-containing leakage signals (false negatives).The identification accuracy is (178 + 180)/360 = 99.44%.Compared to the three methods discussed in Section 3, this method significantly reduces both false negatives and false positives, resulting in a notable improvement in accuracy. Figure 22 . Figure 22.Confusion matrix for test set prediction results. Figure 21 . Figure 21.t-SNE plot of the test set data. Figure 22 Figure 22 shows the confusion matrix obtained from the predictions made by the trained model on the test set.From this confusion matrix, we can observe that the model successfully identified all noise-containing leakage signals, while misclassifying two actual noise signals as noise-containing leakage signals (false negatives).The identification accuracy is (178 + 180)/360 = 99.44%.Compared to the three methods discussed in Section 3, this method significantly reduces both false negatives and false positives, resulting in a notable improvement in accuracy. Figure 21 . Figure 21.t−SNE plot of the test set data. Figure 22 Figure 22 shows the confusion matrix obtained from the predictions made by the trained model on the test set.From this confusion matrix, we can observe that the model successfully identified all noise-containing leakage signals, while misclassifying two actual noise signals as noise-containing leakage signals (false negatives).The identification accuracy is (178 + 180)/360 = 99.44%.Compared to the three methods discussed in Section 3, this method significantly reduces both false negatives and false positives, resulting in a notable improvement in accuracy. Figure 22 . Figure 22.Confusion matrix for test set prediction results.Figure 22. Confusion matrix for test set prediction results. Figure 22 . Figure 22.Confusion matrix for test set prediction results.Figure 22. Confusion matrix for test set prediction results. Figure 23 . Figure 23.Frameworks of LeNet and AlexNet. Figure 23 . Figure 23.Frameworks of LeNet and AlexNet. Figure 23 . The method identified 143 leak signals and misclassified 37 noisy leak signals as noise signals (false positives).It correctly identified 177 noise signals and misclassified 3 noise signals as noisy leak signals (false negatives).The recognition accuracy is (143 + 177)/360 = 88.9%.Compared to the TDF-PNN method, this approach has improved the issue of false positives but still has a high rate of false negatives.This indicates that the method is better at avoiding the misclassification of noise signals as noisy leak signals but still requires improvements in accurately identifying noisy leak signals. Table 2 . Structural parameters of the SART-1DCNN model. Table 2 . J. Mar.Sci.Eng.2024, 12, x FOR PEER REVIEW 27 of 31 4.3.2.Comparative Analysis Two typical CNNs, LeNet and AlexNet, were used to analyze the AE leak data.LeNet is a classic CNN structure proposed by Yann LeCun et al. Table 3 . Performance comparison of different network models. Table 3 . Performance comparison of different network models. Table 3 . This improved model combines attention modules, residual modules, and convolutional modules.After 100 training epochs, it achieves a high accuracy rate of 99.72% on the test set, demonstrating the efficiency and accuracy of this model compared to others.

섹션 본문 213문단 · 95,503자

(제목 없음)

1Oil and gas pipelines are the lifelines of the energy market, but due to long-term use and environmental factors, these pipelines are prone to corrosion and leaks.Offshore oil and gas pipeline leaks, in particular, can lead to severe consequences such as platform fires and explosions.Therefore, it is crucial to accurately and swiftly identify oil and gas leaks on offshore platforms.This is of significant importance for improving early warning systems, enhancing maintenance efficiency, and reducing economic losses.Currently, the efficiency of identifying leaks in offshore platform pipelines still needs improvement.To address this, the present study first established an experimental platform to simulate pipeline leaks in a marine environment.Laboratory leakage signal data were collected, and on-site noise data were gathered from the "Liwan 3-1" offshore oil and gas platform.By integrating leakage signals with on-site noise data, this study aimed to closely mimic real-world application scenarios.Subsequently, several neural network-based leakage identification methods were applied to the integrated dataset, including a probabilistic neural network (PNN) combined with time-domain feature extraction, a Backpropagation Neural Network (BPNN) optimized with simulated annealing and particle swarm optimization, and a Long Short-Term Memory Network (LSTM) combined with Mel-Frequency Cepstral Coefficients (MFCC).Corresponding models were constructed, and the effectiveness of leak detection was validated using test sets.Additionally, this paper proposes an improved convolutional neural network (CNN) leakage detection technology named SART-1DCNN.This technology optimizes the network architecture by introducing attention mechanisms, transformer modules, residual blocks, and combining them with Dropout and optimization algorithms, which significantly enhances data recognition accuracy.It achieves a high accuracy rate of 99.44% on the dataset.This work is capable of detecting pipeline leaks with high accuracy.

Introduction

2Marine oil and gas pipelines are critical components of the global energy supply chain, playing an essential role in the safe and efficient transportation of oil and natural gas.With the increasing global demand for energy, the significance of marine oil and gas pipelines has become increasingly prominent.However, these pipelines are often exposed to harsh marine environments, leading to gradual material degradation and corrosion over extended periods of service, making them highly susceptible to leaks [1].Therefore, timely and effective leak detection is crucial for ensuring energy supply security, preventing environmental pollution, and avoiding economic losses.There are various pipeline leak detection techniques, including flow monitoring [2,3], pressure testing [4,5], vibration testing [6,7], visual inspection [8,9], and acoustic detection [10,11].Current research mainly focuses on the following areas:

3(1) Leak Detection Methods Combining Models and Mechanisms These methods primarily integrate actual operating conditions with theories such as fluid dynamics and heat transfer to analyze and locate leak points.For example, Jesús Peralta [12] explored the use of directional signal diagram processing techniques to detect and locate damage in pressurized pipelines, particularly focusing on the identification of transient patterns in faulty main pipelines.The study was based on a linearized model of the healthy part of the pipeline and a dual-port lumped model for leaks and blockages, deriving and transforming the directional signal diagrams of sound source signals under single-and dual-fault scenarios using graphical tools.Wasiu Yussuf Oseni [13] studied a first-order differential leak detection model based on the first-order differential method, using COMSOL Multi-physics for finite element simulation.The study considered the axial leak coefficient KL and incorporated turbulence kinetic energy transfer and kinetic energy rate models.By calculating the eigenvalues of velocity and pressure and observing their behavior in time diagrams across different pipeline sections, the model can assess system stability and detect leaks.Xuan Yang [14] investigated the impact of interference and environmental noise on leak detection in water pipelines.By combining experimental and numerical simulation methods and focusing on acceleration signals, the study analyzed the characteristics of leak signals under varying pressures and leak orifice sizes.Keramat [15] addressed the multi-leak localization problem in Transient-Based Leak Detection (TBLD) by introducing Metaheuristic and Gradient-Based Optimization (MGBO) techniques.Using a multidimensional nonlinear objective function, the method was optimized through two initialization algorithms for scenarios involving single, double, and triple leaks.Experimental results demonstrated that this approach performed excellently in situations with single, double, and triple leaks, particularly standing out in triple-leak localization, where more than 96% of cases had an error rate below 15%.

4(

2) Methods Combining Machine Learning or Deep Learning Techniques

5In recent years, with the advancement of artificial intelligence technology, the application of machine learning and deep learning in pipeline leak detection has been increasingly adopted.These methods extract complex feature patterns from historical data through training, which are then used for leak detection.Liu [16] proposed a Bayesian network model-based method for probabilistic simulation of natural gas pipeline leak orifice diameters.By constructing a Bayesian network, this method integrates prior knowledge, observational data, and uncertainty analysis to achieve precise assessment of leak orifice diameters.Wenhao Xie [17] introduced a pipeline leak detection algorithm that combines pressure and flow information with a discount factor BPA and an SVM classifier.This method utilizes wavelet packet decomposition of signals, integrates multi-sensor decision results, and ultimately enhances detection accuracy through a discount factor and D-S evidence theory.Chengsan Zhang [18] proposed a neural network model for a natural gas pipeline leak detection system named mCNN-LFLBs.The mCNN captures features from different frequency bands of the signals through multi-scale convolution kernels, while LFLB enhances the model's ability to express local features and improves the quality of feature mining.Experimental results show that the mCNN-LFLBs model achieves a classification accuracy as high as 98.6%, with a test response time of approximately 10 ms, demonstrating excellent performance in convergence speed.Pengchao Chen [19] explored the importance of surface defect detection in long-distance oil and gas pipelines and the limitations of existing magnetic flux leakage detection methods.Using a dataset containing various simulated defects generated in a laboratory, the model was trained, and an algorithm combining YOLOv5 and Vision Transformer (ViT) was proposed to achieve accurate detection and classification of pipeline defects.

6(

3) Methods Combining Various Sensors

7To enhance the accuracy and reliability of leak detection, researchers have recently developed various sensor-based leak detection technologies.Jing Xie [20] proposed a pipeline leak detection technique that combines infrared thermography (IRT) with the Faster Region Convolutional Neural Network (Faster R-CNN).This method collects data through a designed pipeline network system and constructs a Faster R-CNN model based on an improved VGG16 network, achieving automated and high-precision leak detection in complex backgrounds.Xingyuan Miao [21] proposed a novel semi-supervised domain generalization leakage diagnosis method based on laser optical sensing technology and an Improved Auxiliary Classifier Generative Adversarial Network (IACGAN).This method achieves accurate diagnosis of leakage conditions in both source and unseen target domains by optimizing the network structure and loss functions, combined with a Capsule network improved via DenseBlocks.Experiments have shown that this model has an average recognition accuracy exceeding 95% in cross-domain leakage diagnosis and potential leakage risk identification, outperforming existing methods.Mingjiang Shi [22] proposed a detection and diagnosis method for internal leaks in ball valves of buried pipelines.This method first collects and denoises valve chamber pressure signals using pressure sensors, then inputs these signals into a constructed CSSOA-BP neural network for leak rate prediction and failure mode diagnosis.Experimental comparisons show that this method significantly outperforms other algorithms, such as SSA-BP and BP neural networks, in terms of prediction error and diagnostic accuracy.The maximum prediction error is reduced to 13.6%, and the diagnostic accuracy reaches as high as 83.3%.

8Despite the advantages of these sensor-based methods, their practical application is often limited by operational constraints and environmental factors.Among these technologies, acoustic-based leak detection is considered one of the most effective methods due to its efficiency and accuracy.Acoustic emission (AE) technology, for instance, detects leaks by capturing the high-frequency sound waves generated by the leak.The propagation characteristics of these sound waves through the pipeline material can be used to accurately detect leaks.The AE-based method not only enables early detection of pipeline leaks but also allows for inspection without interrupting pipeline operations, significantly enhancing the practicality and efficiency of the detection process.Ozevin [23] studied the impact of aging over time and instantaneous threats on pipelines and proposed a novel two-dimensional layout pipeline network leak localization method based on AE principles.This method utilizes sensors to detect elastic waves generated by leaks and precisely identifies the leak location by calculating time differences and incorporating geometric connectivity.Mostafapour [24] proposed a method that combines wavelet analysis and modal localization theory for continuous leak source localization in gas pipelines and noisy environments using a single sensor.By denoising and reconstructing signals through wavelet decomposition, the method analyzes the modal characteristics of signals within the 0-250 kHz frequency band using wavelet packet decomposition, determines modal arrival times, and calculates group velocity to achieve high-precision leak localization.Butterfield [25] researched the use of vibration acoustic emission (VAE) signal processing technology to quantify leakage flow rates in water distribution pipelines.The study found a strong correlation between the RMS of VAE signals and leak flow rates, leading to the construction of a flow prediction model.Zahoor Ahmad [26] proposed a leak detection and localization technique for industrial fluid pipelines.This technique utilizes pipeline AE signals, combined with a multi-scale Mann-Whitney test and AE event tracking method, to achieve high-precision leak detection and localization.By applying a constant false alarm rate algorithm based on the variance index and wave propagation theory to filter out AE events related to leaks, the method reduces false alarm rates and improves localization accuracy.Some scholars have also proposed methods combining acoustic emission signals with machine learning or deep learning techniques.Ali [27] addressed the resource scarcity and economic losses caused by the increasing non-revenue water in Water Distribution Networks (WDNs) by introducing an innovative leakage detection system.This system integrates acoustic emission components, signal processing, and machine learning (ML) techniques.It was field-tested over two years in a real-world WDN in Hong Kong, employing wireless noise loggers to collect acoustic emission signals and exploring various ML algorithms to develop detection models suitable for operational and buried WDNs.The research involved extracting acoustic signal features from both the time and frequency domains, constructing a rich feature set to support ML model training.Sajjad [28] introduced a new pipeline leakage detection technique that first transforms acoustic emission signals into acoustic images (AE images) using continuous wavelet transformation and then applies a convolutional autoencoder and a convolutional neural network; the former extracts global features, while the latter focuses on local feature extraction.These features are then merged into a single feature vector for classification via a shallow artificial neural network to determine the presence of leaks.Experimental results show that this algorithm performs excellently under various leak sizes and fluid pressures, achieving high classification accuracy.Niamat [29] proposed an innovative pipeline leakage detection and analysis method utilizing acoustic emission (AE) signal technology and time-series deep learning algorithms.The study designed an AE-based automatic detection system incorporating deep learning models such as LSTM, Bi-LSTM, and GRU, which identify the normal state of pipelines, minor leaks, moderate leaks, and severe ruptures by detecting subtle changes in AE signals.The experiments used three AE sensors to optimize sampling rates and validated the model's performance with various evaluation metrics, with the BiLSTM model performing excellently in most cases, achieving a classification accuracy of up to 99.78%.

9For the pipeline systems of offshore oil and gas platforms, monitoring methods that can detect leakage accurately and timely are crucial.Extracting pipeline leakage information precisely and efficiently from complex signals with significant noise interference has become a core technological challenge that needs to be addressed urgently.Against this research backdrop, this study first established a laboratory pipeline model in the Ocean Engineering Mechanics Laboratory at Harbin Engineering University using a Z4DSY type electric pressure self-control testing pump manufactured by Shanghai Luoji Pump Industry Co., Ltd., seamless steel pipes, PCI-2 acoustic emission detection equipment produced by American Physical Acoustics Corporation, and other experimental setups to simulate and collect leakage signals.Additionally, it gathered on-site noise data from the landmark offshore facility-the Liwan 3-1 natural gas integrated processing platform in the South China Sea.To better reflect real-world conditions, the on-site noise was merged with the laboratory leakage signals to create a dataset.Subsequently, three neural network-based leak identification methods-TDF-PNN, SA-PSO-BPNN, and MFCC-LSTM-were applied to model the dataset, and their effectiveness was validated on a test set.Furthermore, this paper introduces an improved end-to-end convolutional neural network-based leak recognition technology called SART-1DCNN.This network incorporates attention mechanisms and transformer modules, enabling it to perform adaptive feature learning directly from raw acoustic emission signals.The results from the test set show that the recognition accuracy of this method exceeds 99%, outperforming the other methods discussed in this study by providing more accurate identification of pipeline leakage signals.

Acoustic Emission and Pipeline Leak Research

10Acoustic emission (AE) technology, as a crucial non-destructive testing method, requires the collection of AE signals generated by pipelines.In the application to offshore oil and gas pipelines, AE technology can effectively monitor minute changes and damage in the pipeline, thereby providing early warnings of potential leaks.When applying AE technology to actual marine environments, the primary challenge to be addressed is environmental noise interference.The complex and dynamic conditions of offshore platforms, coupled with high-intensity background noise, pose significant challenges to the capture and analysis of AE signals.

11To thoroughly investigate and validate the effectiveness of AE technology in leak detection for oil and gas pipelines, this Section will conduct two experiments.First, a pipeline leak model will be constructed in the laboratory, where leaks will be artificially induced to collect clear AE signals of pipeline leaks.Additionally, real environmental noise signals will be collected from the actual environment of an offshore platform.By combining these two types of signals, we will simulate the AE signals produced during pipeline leaks in real-world conditions.Subsequently, these signals will be compared in both the time and frequency domains, analyzing the characteristics of the leak AE signals to provide a foundation for subsequent leak detection research.

Pipeline Leak Simulation Experiment

12During the experiment, the PCI-2 acoustic emission detection equipment provided by the Beijing representative office of Physical Acoustics Corporation (PAC), located in Chaoyang District, Beijing, was utilized.This equipment is a high-sensitivity, multi-channel synchronous acquisition device with a sampling frequency that ranges from 1 kHz to 3 MHz, capable of storing acoustic emission waveform information to the hard disk at a speed of 10 million points per second.The experiment employed R15 sensors, which have a central frequency of 150 kHz.During the data acquisition phase, the PCI-2 acoustic emission detection equipment was operated and controlled through AEwin TM software (Standard Edition).To enhance signal quality, the experiment was also equipped with preamplifiers featuring 2, 4, and 6 channels, with adjustable gain settings of 20, 40, and 60 dB, respectively.

13The pipeline leakage experiment is conducted in a specially designed laboratory pipeline leakage simulation system, where natural gas is used as the fluid in the pipeline.The system includes pressure gauges, pressure pipelines, pressure pumps, and multiple control valves.The pressure pipeline adheres to the GB/T 8163-2018 [30] national standard, made of seamless steel with a wall thickness of 0.5 cm, a diameter of 10.5 cm, and an overall length of 620 cm.The system is divided into two main sections: the experimental section, which is 500 cm long and equipped with several high-pressure welded needle valves to simulate and control leaks, and the buffer section, which is 120 cm long and connected to the pressurizing device via flexible rubber tubing.The pressurizing device used is a Z4DSY-type electric pressure self-control testing pump.Figure 1 illustrates the laboratory pipeline structure model, and Figure 2 shows the composition and principle of the pipeline AE detection system.

14coupled with high-intensity background noise, pose significant challenges to the capture and analysis of AE signals.

15To thoroughly investigate and validate the effectiveness of AE technology in leak detection for oil and gas pipelines, this Section will conduct two experiments.First, a pipeline leak model will be constructed in the laboratory, where leaks will be artificially induced to collect clear AE signals of pipeline leaks.Additionally, real environmental noise signals will be collected from the actual environment of an offshore platform.By combining these two types of signals, we will simulate the AE signals produced during pipeline leaks in real-world conditions.Subsequently, these signals will be compared in both the time and frequency domains, analyzing the characteristics of the leak AE signals to provide a foundation for subsequent leak detection research.

16During the experiment, the PCI-2 acoustic emission detection equipment provided by the Beijing representative office of Physical Acoustics Corporation (PAC), located in Chaoyang District, Beijing, was utilized.This equipment is a high-sensitivity, multi-channel synchronous acquisition device with a sampling frequency that ranges from 1 kHz to 3 MHz, capable of storing acoustic emission waveform information to the hard disk at a speed of 10 million points per second.The experiment employed R15 sensors, which have a central frequency of 150 kHz.During the data acquisition phase, the PCI-2 acoustic emission detection equipment was operated and controlled through AEwin TM software (Standard Edition).To enhance signal quality, the experiment was also equipped with preamplifiers featuring 2, 4, and 6 channels, with adjustable gain settings of 20, 40, and 60 dB, respectively.

17The pipeline leakage experiment is conducted in a specially designed laboratory pipeline leakage simulation system, where natural gas is used as the fluid in the pipeline.The system includes pressure gauges, pressure pipelines, pressure pumps, and multiple control valves.The pressure pipeline adheres to the GB/T 8163-2018 [30] national standard, made of seamless steel with a wall thickness of 0.5 cm, a diameter of 10.5 cm, and an overall length of 620 cm.The system is divided into two main sections: the experimental section, which is 500 cm long and equipped with several high-pressure welded needle valves to simulate and control leaks, and the buffer section, which is 120 cm long and connected to the pressurizing device via flexible rubber tubing.The pressurizing device used is a Z4DSY-type electric pressure self-control testing pump.Figure 1 illustrates the laboratory pipeline structure model, and Figure 2 shows the composition and principle of the pipeline AE detection system.In the constructed laboratory pipeline leak simulation system, two R15 sensors were installed at both ends of the pipeline in the experimental section, positioned 10 cm from the edge.To ensure close contact between the sensors and the pipeline surface, industrialgrade white petroleum jelly was used as a coupling medium between the sensors and the pipeline surface.The sensors were then secured with adhesive tape, and the acquisition In the constructed laboratory pipeline leak simulation system, two R15 sensors were installed at both ends of the pipeline in the experimental section, positioned 10 cm from the edge.To ensure close contact between the sensors and the pipeline surface, industrial-grade white petroleum jelly was used as a coupling medium between the sensors and the pipeline surface.The sensors were then secured with adhesive tape, and the acquisition parameters were preset and optimized in the AEwin TM software To verify the coupling effectiveness of the sensors with the pipeline and the stability of signal transmission, as well as to confirm that the data recording equipment was functioning correctly without any storage issues, a pencil lead break (PLB) test was conducted.After confirming that all adjustments were accurate, the pipeline leak AE experiments were carried out, and multiple sets of pipeline leak AE data were collected.

18parameters were preset and optimized in the AEwin TM software To verify the coupling effectiveness of the sensors with the pipeline and the stability of signal transmission, as well as to confirm that the data recording equipment was functioning correctly without any storage issues, a pencil lead break (PLB) test was conducted.After confirming that all adjustments were accurate, the pipeline leak AE experiments were carried out, and multiple sets of pipeline leak AE data were collected.

On-Site Noise Collection Experiment

19A noise measurement experiment was conducted on the Liwan 3-1 offshore platform in the South China Sea.As shown in Figure 3, the platform's vertical height (jacket section) reaches 196 m.The platform's foundation structure is designed with eight jacket legs, which are securely connected and fixed to the seabed by 16 skirt piles, with an underwater depth of 191 m.The main structure consists of three main decks, with elevations of 19, 29, and 41 m, respectively.The platform is constructed entirely of steel, with a float-over weight of 32,000 tons.

20A noise measurement experiment was conducted on the Liwan 3-1 offshore platform in the South China Sea.As shown in Figure 3, the platform's vertical height (jacket section) reaches 196 m.The platform's foundation structure is designed with eight jacket legs, which are securely connected and fixed to the seabed by 16 skirt piles, with an underwater depth of 191 m.The main structure consists of three main decks, with elevations of 19, 29, and 41 m, respectively.The platform is constructed entirely of steel, with a float-over weight of 32,000 tons.

21parameters were preset and optimized in the AEwin TM software To verify the coupling effectiveness of the sensors with the pipeline and the stability of signal transmission, as well as to confirm that the data recording equipment was functioning correctly without any storage issues, a pencil lead break (PLB) test was conducted.After confirming that all adjustments were accurate, the pipeline leak AE experiments were carried out, and multiple sets of pipeline leak AE data were collected.

22A noise measurement experiment was conducted on the Liwan 3-1 offshore platform in the South China Sea.As shown in Figure 3, the platform's vertical height (jacket section) reaches 196 m.The platform's foundation structure is designed with eight jacket legs, which are securely connected and fixed to the seabed by 16 skirt piles, with an underwater depth of 191 m.The main structure consists of three main decks, with elevations of 19, 29, and 41 m, respectively.The platform is constructed entirely of steel, with a float-over weight of 32,000 tons.For the on-site noise measurement experiment on the site of the oil pipelines, a detailed site survey was first conducted to select representative monitoring points for testing.Subsequently, acoustic emission sensors of the same specifications and parameters were uniformly installed at predetermined locations, which were chosen to be less affected by external weather conditions, and the sensor setup was strictly aligned with laboratory standards.Next, long-term automatic sampling was initiated, and a large amount of noise signal data from 16 to 27 June 2024 was collected, which was saved for subsequent research.Figure 4 illustrates the installation of some of the AE sensors on the offshore platform pipelines.For the on-site noise measurement experiment on the site of the oil pipelines, a detailed site survey was first conducted to select representative monitoring points for testing.Subsequently, acoustic emission sensors of the same specifications and parameters were uniformly installed at predetermined locations, which were chosen to be less affected by external weather conditions, and the sensor setup was strictly aligned with laboratory standards.Next, long-term automatic sampling was initiated, and a large amount of noise signal data from 16 to 27 June 2024 was collected, which was saved for subsequent research.Figure 4 illustrates the installation of some of the AE sensors on the offshore platform pipelines.

Analysis of Noise Signal Injection in Offshore Platform Pipelines

23In the laboratory pipeline leak experiment described in Section 2.1, multiple sets of pipeline leak signals were collected.Figure 5 shows the waveform of one such segment.During the operational phase of offshore platforms, the pipeline system is subject to various disturbances due to equipment operation and the dynamic behavior of the pipelines themselves, leading to a range of noise phenomena.However, the noise levels in a laboratory environment are relatively low and do not accurately reflect the actual conditions on an offshore platform.Therefore, in this study, the measured on-site noise was integrated with the leak signals collected in the laboratory to validate the pipeline leak detection methods based on AE technology.Since both are continuous signals, the signal power [31] was used to determine the percentage of noise, with the following calculation formula:

24In the laboratory pipeline leak experiment described in Section 2.1, multiple sets of pipeline leak signals were collected.Figure 5 shows the waveform of one such segment.For the on-site noise measurement experiment on the site of the oil pipelines, a detailed site survey was first conducted to select representative monitoring points for testing.Subsequently, acoustic emission sensors of the same specifications and parameters were uniformly installed at predetermined locations, which were chosen to be less affected by external weather conditions, and the sensor setup was strictly aligned with laboratory standards.Next, long-term automatic sampling was initiated, and a large amount of noise signal data from 16 to 27 June 2024 was collected, which was saved for subsequent research.Figure 4 illustrates the installation of some of the AE sensors on the offshore platform pipelines.

25In the laboratory pipeline leak experiment described in Section 2.1, multiple sets of pipeline leak signals were collected.Figure 5 shows the waveform of one such segment.During the operational phase of offshore platforms, the pipeline system is subject to various disturbances due to equipment operation and the dynamic behavior of the pipelines themselves, leading to a range of noise phenomena.However, the noise levels in a laboratory environment are relatively low and do not accurately reflect the actual conditions on an offshore platform.Therefore, in this study, the measured on-site noise was integrated with the leak signals collected in the laboratory to validate the pipeline leak detection methods based on AE technology.Since both are continuous signals, the signal power [31] was used to determine the percentage of noise, with the following calculation formula: During the operational phase of offshore platforms, the pipeline system is subject to various disturbances due to equipment operation and the dynamic behavior of the pipelines themselves, leading to a range of noise phenomena.However, the noise levels in a laboratory environment are relatively low and do not accurately reflect the actual conditions on an offshore platform.Therefore, in this study, the measured on-site noise was integrated with the leak signals collected in the laboratory to validate the pipeline leak detection methods based on AE technology.Since both are continuous signals, the signal power [31] was used to determine the percentage of noise, with the following calculation formula:

26where P Z represents the noise power, P X represents the signal power, and RMS Z and RMS X are the root mean square (RMS) values of the noise and leak signals, respectively.The leak signal F with the fused noise can be obtained using the following equation:

27where L is the collected leak signal, and N is the measured noise signal.

28A segment of the collected signals was extracted for visualization.Figure 6a shows the waveform of the noise signal measured on the platform, while Figure 6b displays the waveform after randomly selecting and injecting noise collected from different pipeline locations into the leak signal.As can be seen from the figures, the amplitude differences between the two signals are minimal.Subsequently, the spectrum and time-frequency diagrams of these signals were plotted, as shown in Figures 7 and 8.In the spectrum diagrams, it is evident that both the platform-measured noise signal and the noise-infused leak signal exhibit a very prominent peak at the low-frequency end (near 0 Hz), indicating a high concentration of energy in the low-frequency range.Additionally, as the frequency increases, the power density generally decreases, meaning that the energy of the signal is mainly concentrated in the low-frequency range, with less energy in the high-frequency range.In the time-frequency diagrams, strong signal intensity can also be observed in the mid-to-low frequency range (where the red-orange regions are more concentrated), indicating that these frequency components dominate the signal.

29where represents the noise power, represents the signal power, and and are the root mean square (RMS) values of the noise and leak signals, respectively.The leak signal with the fused noise can be obtained using the following equation:

30where is the collected leak signal, and is the measured noise signal.

31A segment of the collected signals was extracted for visualization.Figure 6a shows the waveform of the noise signal measured on the platform, while Figure 6b displays the waveform after randomly selecting and injecting noise collected from different pipeline locations into the leak signal.As can be seen from the figures, the amplitude differences between the two signals are minimal.Subsequently, the spectrum and time-frequency diagrams of these signals were plotted, as shown in Figures 7 and 8.In the spectrum diagrams, it is evident that both the platform-measured noise signal and the noise-infused leak signal exhibit a very prominent peak at the low-frequency end (near 0 Hz), indicating a high concentration of energy in the low-frequency range.Additionally, as the frequency increases, the power density generally decreases, meaning that the energy of the signal is mainly concentrated in the low-frequency range, with less energy in the high-frequency range.In the time-frequency diagrams, strong signal intensity can also be observed in the mid-to-low frequency range (where the red-orange regions are more concentrated), indicating that these frequency components dominate the signal.In summary, after infusing the measured noise into the leak signal, the noise-infused leak signal closely resembles the measured noise signal.Therefore, identifying this signal solely from the time or frequency domain is challenging.

32where is the collected leak signal, and is the measured noise signal.

33A segment of the collected signals was extracted for visualization.Figure 6a shows the waveform of the noise signal measured on the platform, while Figure 6b displays the waveform after randomly selecting and injecting noise collected from different pipeline locations into the leak signal.As can be seen from the figures, the amplitude differences between the two signals are minimal.Subsequently, the spectrum and time-frequency diagrams of these signals were plotted, as shown in Figures 7 and 8.In the spectrum diagrams, it is evident that both the platform-measured noise signal and the noise-infused leak signal exhibit a very prominent peak at the low-frequency end (near 0 Hz), indicating a high concentration of energy in the low-frequency range.Additionally, as the frequency increases, the power density generally decreases, meaning that the energy of the signal is mainly concentrated in the low-frequency range, with less energy in the high-frequency range.In the time-frequency diagrams, strong signal intensity can also be observed in the mid-to-low frequency range (where the red-orange regions are more concentrated), indicating that these frequency components dominate the signal.In summary, after infusing the measured noise into the leak signal, the noise-infused leak signal closely resembles the measured noise signal.Therefore, identifying this signal solely from the time or frequency domain is challenging.To facilitate subsequent research, the dataset was created after completing the signal data collection.First, the noise-infused segments were evenly divided into non-overlapping sections of 1024 sampling points in length, resulting in 900 samples of leak signals infused with measured noise.Additionally, from the on-site noise collection experiment In summary, after infusing the measured noise into the leak signal, the noise-infused leak signal closely resembles the measured noise signal.Therefore, identifying this signal solely from the time or frequency domain is challenging.

34To facilitate subsequent research, the dataset was created after completing the signal data collection.First, the noise-infused segments were evenly divided into non-overlapping sections of 1024 sampling points in length, resulting in 900 samples of leak signals infused with measured noise.Additionally, from the on-site noise collection experiment described in Section 2.2., raw noise signals were collected from the offshore platform pipelines.These signals were also divided into non-overlapping sections of 1024 sampling points in length, yielding 900 noise signal samples.Finally, the two types of signal samples were combined to form the original dataset for the subsequent deep learning network training process.

Pipeline Leak Detection on Offshore Platforms Using Existing Neural Network Methods

35Traditional methods for pipeline leak detection on offshore platforms include pressure monitoring, flow rate monitoring, gas detection, and visual inspection.However, these methods have certain limitations in practical applications.For instance, pressure and flow rate monitoring respond slowly to leaks and are easily influenced by environmental changes; although gas detection has high sensitivity, it is prone to false alarms in complex noise environments; visual inspection relies heavily on lighting conditions and the clarity of the camera equipment, presenting significant limitations.Over the past few years, with the rapid development of information technology and artificial intelligence, data-driven pipeline leakage detection methods have gradually become a research hotspot [32].These methods identify leakage events by collecting various data during pipeline operations and applying data analysis techniques, offering advantages such as real-time detection, high accuracy, and low cost [33].Among the many data-driven approaches, neural networkbased methods have garnered significant attention due to their powerful nonlinear fitting capabilities and robustness.

36This part focuses on analyzing and researching the aforementioned dataset using several neural network-based leak detection methods.These include Tan's method, which employs time-domain features and a probabilistic neural network (PNN) for pipeline leak detection [34]; Zhou's method, which combines simulated annealing (SA) and particle swarm optimization (PSO) with a BP Neural Network (BPNN) for leak detection [35]; and Zhang's method, which integrates Mel-Frequency Cepstral Coefficients (MFCC) with a Long Short-Term Memory (LSTM) network for pipeline leak detection [36].

Pipeline Leak Detection Based on Time-Domain Features-Probabilistic Neural Network

37Time-domain features (TDFs) directly reflect the variations in a signal over time.By monitoring the time-domain characteristics of a signal, it is possible to identify anomalies or sudden changes within the signal.In Tan's study, the characteristics of natural gas leaks were first analyzed, and certain TDFs of methane concentration and temperature were selected as feature vectors extracted from the raw signal data.The specific features extracted are shown in Table 1:

38The feature vectors derived from the table above are then input into the PNN model.A PNN is a special type of feedforward neural network primarily used for classification tasks.It is based on Bayesian decision theory and kernel estimation theory, allowing it to provide a theoretically optimal solution during classification.The structure of a PNN typically consists of four layers: the input layer, the pattern layer (also known as the hidden layer), the summation layer, and the output layer [37].The basic structure is illustrated in Figure 9.

39Table 1.Extracted TDFs of methane gas and their calculation formulas.

Feature Calculation Formula

40Methane Concentration and Temperature

41Mean In this section, Tan's method [34] is used to identify the fused data.Since the ment only involves AE signals during pipeline operation, the correlation coefficie cluded from the feature set.Therefore, the features extracted from the raw AE sign used as input feature vectors for the PNN include the following: mean, standard tion, square root amplitude, RMS, peak value, impulse factor, skewness, kurtosis form factor, crest factor, and marginal factor.

42To proceed with the analysis, 80% of the dataset from Section 2 (1440 samples) as the training set, while 20% (360 samples) is reserved as the test set.A PNN m then defined, applying the Gaussian function to calculate the density.The density puted as the average of the Gaussian function values based on the distance betwe sample and the same-class training samples.Each test sample is classified into t gory with the highest density value.Figure 10 illustrates the recognition results of the test set (90 samples).The pattern layer, also known as the hidden layer, contains nodes where each node represents a training sample.Each neuron in the pattern layer calculates the Euclidean distance between the input vector and the training sample it represents.This distance is then processed through a radial basis function (RBF), which outputs a value indicating the similarity between the input vector and the training sample.

43where x is the input vector, x i is the training sample corresponding to the neuron in the pattern layer, and β is the smoothing parameter, which determines the width of the radial basis function.In the summation layer, each neuron corresponds to a category and is responsible for summing the outputs of all pattern layer neurons that belong to the same category.The purpose of this step is to accumulate the probability scores for each category.

44The output layer typically contains a single neuron, which selects the category with the highest probability as the final classification result.In this section, Tan's method [34] is used to identify the fused data.Since the experiment only involves AE signals during pipeline operation, the correlation coefficient is excluded from the feature set.Therefore, the features extracted from the raw AE signals and used as input feature vectors for the PNN include the following: mean, standard deviation, square root amplitude, RMS, peak value, impulse factor, skewness, kurtosis, waveform factor, crest factor, and marginal factor.

45To proceed with the analysis, 80% of the dataset from Section 2 (1440 samples) is used as the training set, while 20% (360 samples) is reserved as the test set.A PNN model is then defined, applying the Gaussian function to calculate the density.The density is computed as the average of the Gaussian function values based on the distance between each sample and the same-class training samples.Each test sample is classified into the category with the highest density value.Figure 10 illustrates the recognition results for 25% of the test set (90 samples).In this section, Tan's method [34] is used to identify the fused data.Since the experiment only involves AE signals during pipeline operation, the correlation coefficient is excluded from the feature set.Therefore, the features extracted from the raw AE signals and used as input feature vectors for the PNN include the following: mean, standard deviation, square root amplitude, RMS, peak value, impulse factor, skewness, kurtosis, waveform factor, crest factor, and marginal factor.

46To proceed with the analysis, 80% of the dataset from Section 2 (1440 samples) is used as the training set, while 20% (360 samples) is reserved as the test set.A PNN model is then defined, applying the Gaussian function to calculate the density.The density is computed as the average of the Gaussian function values based on the distance between each sample and the same-class training samples.Each test sample is classified into the category with the highest density value.Figure 10 illustrates the recognition results for 25% of the test set (90 samples).(143 + 163)/360 = 85%, indicating that the method performs poorly in terms of both false positives and false negatives, particularly with a higher rate of false negatives, which leads to a lower overall recognition accuracy.

Pipeline Leak Detection Based on Simulated Annealing-Particle Swarm Optimization-BP Neural Network

47The simulated annealing (SA) algorithm is an optimization technique inspired by the annealing process in statistical physics.The core idea is to simulate the behavior of a material in a high-temperature state where its particles move freely, and then gradually cool it down until it reaches its lowest energy state, thus finding the global optimal solution [38].

48The temperature update formula is given by Equation ( 4), where represents the temperature at the -th iteration, and is the cooling rate (0 < < 1 ).The algorithm starts at a high temperature, allowing for a large random search step.As the "temperature" gradually decreases, the step size is reduced, narrowing the search range until the global optimal solution is reached.Particle swarm optimization (PSO) is a populationbased optimization algorithm that simulates the foraging behavior of bird flocks to search for the optimal solution.Each particle represents a potential solution, and the particles adjust their positions and velocities by following both their own historical best positions and the global best position of the swarm [39].

49( + 1) = () + ( + 1)

50The speed and position update formulas are shown in Equations ( 5) and ( 6), where () represents the velocity of particle at the -th iteration, is the inertia weight, and 1 and 2 are the cognitive and social acceleration constants, respectively. 1 and 2 are random numbers (0 < 1 , 2 < 1), is the historical best position of particle , is the global best position of the swarm, and is the current position of particle .The algorithm iteratively updates the positions and velocities of the particles, causing the swarm to gradually converge to the optimal solution.

51A Backpropagation Neural Network (BPNN) is a type of multi-layer feedforward neural network that is trained using the error backpropagation algorithm.

52The simulated annealing (SA) algorithm is an optimization technique inspired by the annealing process in statistical physics.The core idea is to simulate the behavior of a material in a high-temperature state where its particles move freely, and then gradually cool it down until it reaches its lowest energy state, thus finding the global optimal solution [38].

53The temperature update formula is given by Equation ( 4), where T k represents the temperature at the k-th iteration, and α is the cooling rate (0 < α < 1).The algorithm starts at a high temperature, allowing for a large random search step.As the "temperature" gradually decreases, the step size is reduced, narrowing the search range until the global optimal solution is reached.Particle swarm optimization (PSO) is a population-based optimization algorithm that simulates the foraging behavior of bird flocks to search for the optimal solution.Each particle represents a potential solution, and the particles adjust their positions and velocities by following both their own historical best positions and the global best position of the swarm [39].

54(5)

55The speed and position update formulas are shown in Equations ( 5) and ( 6), where v i (t) represents the velocity of particle i at the t-th iteration, w is the inertia weight, and c 1 and c 2 are the cognitive and social acceleration constants, respectively.r 1 and r 2 are random numbers (0 < r 1 ,r 2 < 1), p i is the historical best position of particle i, p g is the global best position of the swarm, and x i is the current position of particle i.The algorithm iteratively updates the positions and velocities of the particles, causing the swarm to gradually converge to the optimal solution.

56A Backpropagation Neural Network (BPNN) is a type of multi-layer feedforward neural network that is trained using the error backpropagation algorithm.

57The error backpropagation formula is given by Equation (7), where δ l represents the error term of a layer, θ l is the activation function, and W l+1 is the weight matrix of the layer.A BPNN calculates the error between the output and the target and then backpropagates this error through the network layers.The weights and biases are updated to minimize the error.By iteratively adjusting these parameters, the network learns complex mapping relationships, enabling it to perform tasks such as classification and regression.

58In Zhou's study [35], two optimization algorithms-particle swarm optimization (PSO) and simulated annealing (SA)-are combined with the Backpropagation Neural Network (BPNN).While PSO can effectively optimize various functions, it often gets trapped in local minima during multi-objective optimization.SA, on the other hand, can escape the original state by accepting some suboptimal solutions with a certain probability, continuing the search process.During computation, these two algorithms iterate alternately, and by comparing the values of the objective function, the optimal result is obtained.The implementation steps are summarized as follows:

59(1) Initial Optimization via PSO Algorithm (1) Initialize particle swarm: in the PSO algorithm, each particle represents a potential solution.After initializing the particle swarm, the iteration process begins; (2) Update position and velocity: each particle updates its position and velocity based on its own best position and the global best position; (3) Fitness evaluation: evaluate the fitness of each particle, which is the loss function value of the BPNN.

60(2) Improved Optimization via SA Algorithm

61(1) Accept suboptimal solutions: in each iteration, the SA algorithm accepts suboptimal solutions based on a temperature probability, allowing it to escape local optima; (2) Temperature update: as the iterations proceed, the temperature gradually decreases, reducing the probability of accepting suboptimal solutions.

62( Particle update: if the SA algorithm finds a better solution, a random particle is selected and its position is updated to increase the diversity of the particle swarm; (3) Initial position setting: if the PSO algorithm finds a better solution, the SA algorithm uses that solution as the initial position for further search, improving search efficiency.The SA-PSO parameter optimization process is illustrated in Figure 12.

63In this part, Zhou's method is applied for modeling and predictive analysis on the dataset.The process begins with data preprocessing, including normalization and matrix formation.The dataset is then split into training, validation, and test sets in a 5:3:2 ratio.A three-layer BPNN is constructed, comprising two hidden layers with 512 and 256 neurons, respectively, followed by a Sigmoid activation function.

64To optimize the parameters of the BPNN model, the PSO algorithm is initially used to simulate the movement of particles in the search space to find the optimal solution.The swarm size for PSO is set to 100, with 100 optimization iterations.Next, the SA algorithm is employed for further optimization, with an initial temperature of 100, a cooling rate of 0.9, and 100 training iterations.PSO is then used again to refine the model parameters further.Finally, the optimized model is evaluated on the test set, with the accuracy calculated and the confusion matrix plotted to visualize the classification performance.

65Figure 13 shows the recognition results of this method.In this part, Zhou's method is applied for modeling and predictive analysis on the dataset.The process begins with data preprocessing, including normalization and matrix formation.The dataset is then split into training, validation, and test sets in a 5:3:2 ratio.A three-layer BPNN is constructed, comprising two hidden layers with 512 and 256 neurons, respectively, followed by a Sigmoid activation function.

66To optimize the parameters of the BPNN model, the PSO algorithm is initially used to simulate the movement of particles in the search space to find the optimal solution.The swarm size for PSO is set to 100, with 100 optimization iterations.Next, the SA algorithm is employed for further optimization, with an initial temperature of 100, a cooling rate of 0.9, and 100 training iterations.PSO is then used again to refine the model parameters further.Finally, the optimized model is evaluated on the test set, with the accuracy calculated and the confusion matrix plotted to visualize the classification performance.

67Figure 13 shows the recognition results of this method.The method identified 143 leak signals and misclassified 37 noisy leak signals as noise signals (false positives).It correctly identified 177 noise signals and misclassified 3 noise signals as noisy leak signals (false negatives).The recognition accuracy is (143 + 177)/360 = 88.9%.Compared to the TDF-PNN method, this approach has improved the issue of false positives but still has a high rate of false negatives.This indicates that the method is better at avoiding the misclassification of noise signals as noisy leak signals but still requires improvements in accurately identifying noisy leak signals.

Pipeline Leak Detection Based on Mel-Frequency Cepstral Coefficients-Long Short-Term Memory Network

68Mel-Frequency Cepstral Coefficients (MFCCs) is a feature extraction method introduced from speech recognition.MFCCs are coefficients derived from a linear transformation of the logarithmic energy spectrum based on the nonlinear Mel scale of frequency.These coefficients effectively reflect the spectral characteristics of a speech signal [40].The steps for extracting MFCCs are as follows:

69(1) Pre-emphasis: the input sound signal is filtered to enhance high-frequency components, resulting in a smoother spectrum; (2) Framing and windowing: the continuous sound signal is segmented into multiple frames, with each frame containing a fixed number of samples.To reduce edge effects, each frame is multiplied by a window function;

70(3) Fast Fourier transform (FFT): a fast Fourier transform is applied to each frame to con-

71Mel-Frequency Cepstral Coefficients (MFCCs) is a feature extraction method introduced from speech recognition.MFCCs are coefficients derived from a linear transformation of the logarithmic energy spectrum based on the nonlinear Mel scale of frequency.These coefficients effectively reflect the spectral characteristics of a speech signal [40].The steps for extracting MFCCs are as follows:

72(1) Pre-emphasis: the input sound signal is filtered to enhance high-frequency components, resulting in a smoother spectrum;

73(2) Framing and windowing: the continuous sound signal is segmented into multiple frames, with each frame containing a fixed number of samples.To reduce edge effects, each frame is multiplied by a window function; (3) Fast Fourier transform (FFT): a fast Fourier transform is applied to each frame to convert the time-domain signal into a frequency-domain signal, resulting in a spectrum.The FFT formula is given by Equation ( 8):

74where X[k] is the FFT result, N is the number of points in the FFT, x w is the input signal, and k is the index of the frequency bin;

75(4) Mel-frequency filtering and summation: the spectrum is weighted and summed using a Mel-frequency filter bank, which converts the spectrum to the Mel-frequency scale.

76The conversion formula to the Mel-frequency scale is given by Equation ( 9):

77where f is the linear frequency in Hertz (Hz), and Mel( f ) is the corresponding frequency on the Mel scale;

78(5) Discrete Cosine Transform (DCT): the output energies of the filter bank are subjected to a Discrete Cosine Transform (DCT) to generate the MFCC features.The DCT formula is given by Equation ( 10):

79))

80where C n is the n-th MFCC coefficient, M is the number of filters in the filter bank, and E m is the energy of the m-th filter.The main process of MFCC extraction is shown in Figure 14.A Long Short-Term Memory Network (LSTM) is a specialized type of Recurrent Neural Network (RNN) that effectively learns and remembers long-term dependencies in sequence data.Figure 15 depicts the internal structure of an LSTM neuron.An LSTM unit comprises three gate units: the forget gate, the input gate, and the output gate, as well as a memory cell [41].The computation at each time step involves the following steps: A Long Short-Term Memory Network (LSTM) is a specialized type of Recurrent Neural Network (RNN) that effectively learns and remembers long-term dependencies in sequence data.Figure 15 depicts the internal structure of an LSTM neuron.An LSTM unit comprises three gate units: the forget gate, the input gate, and the output gate, as well as a memory cell [41].The computation at each time step involves the following steps:

81(1) Forget gate: the forget gate decides how much of the previous time step's cell state needs to be forgotten.The calculation for the forget gate is given by Equation ( 11):

82where f t is the forget gate's output.σ is the Sigmoid activation function.W f is the weight matrix of the forget gate.b f is the bias term of the forget gate.h t−1 is the hidden state from the previous time step.x t is the input at the current time step;

83(2) Input gate: the input gate determines how much of the current time step's input needs to be remembered.The input gate's calculation is divided into two steps: first, the part that needs to be updated is calculated using Equation ( 12):

84Then, the candidate cell state is calculated using Equation ( 13):

85where i t is the input gate's output.

∼

86C t is the candidate cell state.tanh is the activation function.W i is the weight matrix for the input gate.b i is the bias term for the input gate.W C is the weight matrix for the candidate cell state.b C is the bias term for the candidate cell state;

87(3) Cell state update: the cell state is updated by combining the previous time step's cell state and the current time step's input information, as shown in Equation ( 14):

88where C t is the current time step's cell state, and C t−1 is the previous time step's cell state;

89(4) Output gate: the output gate determines how much of the current time step's cell state should be output as the hidden state.The output gate's calculation is given by Equation ( 15):

90The hidden state at the current time step is then calculated using Equation ( 16):

91where o t is the output gate's output.h t is the hidden state at the current time step.W o is the weight matrix for the output gate.b o is the bias term for the output gate.Zhang et al. [36] proposed a method combining MFCC and LSTM for pipeline leak detection.This method extracts MFCC features from AE signals through steps including pre-emphasis, framing, FFT, mapping and filtering, and DCT.The extracted MFCC features are then input into an LSTM network for training and testing.In this section, Zhang's method is applied to construct an MFCC-LSTM which is then used for analysis and prediction.

92where is the -th MFCC coefficient, is the number of filters in the filter bank, and is the energy of the -th filter.The main process of MFCC extraction is shown in Figure 14.A Long Short-Term Memory Network (LSTM) is a specialized type of Recurrent Neural Network (RNN) that effectively learns and remembers long-term dependencies in sequence data.Figure 15 depicts the internal structure of an LSTM neuron.An LSTM unit comprises three gate units: the forget gate, the input gate, and the output gate, as well as a memory cell [41].The computation at each time step involves the following steps: (1) Forget gate: the forget gate decides how much of the previous time step's cell state needs to be forgotten.The calculation for the forget gate is given by Equation ( 11):

Filter banks MFCC

93where is the forget gate's output. is the Sigmoid activation function. is the weight matrix of the forget gate. is the bias term of the forget gate.ℎ −1 is the hidden First, for the MFCC feature extraction method, the sampling frequency is set to 1 MHz, the MFCC dimension is set to 96D as in Zhang's paper, the FFT window size is set to 1024, and the number of Mel filters is set to 48.MFCC features are then extracted from all samples in the dataset, and the resulting feature vectors are divided into training and test sets.

94As can be seen from Figure 16, the method identified 172 leak signals and misclassifying 8 noisy leak signals as noise signals (false negatives).It correctly identified 167 noise signals and misclassified 13 noise signals as noisy leak signals (false positives).The recognition accuracy is (167 + 172)/360 = 94.16%.Compared to the SA-PSO-BPNN method, this approach shows better performance in reducing false negatives, but the number of false positives has increased.Overall, the recognition accuracy has improved by about 5%.

95Zhang et al. [36] proposed a method combining MFCC and LSTM for pipeline leak detection.This method extracts MFCC features from AE signals through steps including pre-emphasis, framing, FFT, mapping and filtering, and DCT.The extracted MFCC features are then input into an LSTM network for training and testing.In this section, Zhang's method is applied to construct an MFCC-LSTM model, which is then used for analysis and prediction.

96First, for the MFCC feature extraction method, the sampling frequency is set to 1 MHz, the MFCC dimension is set to 96D as in Zhang's paper, the FFT window size is set to 1024, and the number of Mel filters is set to 48.MFCC features are then extracted from all samples in the dataset, and the resulting feature vectors are divided into training and test sets.

97As can be seen from Figure 16

Limitations of the above Neural Network-Based Detection Methods

98For pipeline leaks, the risk of false negatives (missed leaks) is greater than that of false positives (false alarms), so more attention needs to be paid to reducing false negatives in models.Although the pipeline leak detection methods for ocean platforms have demonstrated varying degrees of effectiveness in theory and experiments, there are the following shortcomings in the analysis process and identification results of pipeline leak signals:

99(1) TDF-PNN method: the TDF method only extracts time-domain features, ignoring frequency-domain and time-frequency domain characteristics.Pipeline leak signals may manifest significant characteristics not only in the time domain but also in the frequency and time-frequency domains.Extracting only TDFs may fail to comprehensively capture all critical information of the signal.Additionally, the use of a probabilistic neural network (PNN) model, which has a relatively simple structure, might not be able to capture complex patterns and nonlinear relationships within the data, leading to low classification accuracy and a notable incidence of false negatives; (2) SA-PSO-BPNN method: firstly, when searching for optimal solutions in the parameter space, both simulated annealing (SA) and particle swarm optimization (PSO) algorithms have high computational complexity, resulting in longer training times.Secondly, both SA and PSO algorithms have several hyperparameters that need to be adjusted, such as initial temperature, cooling rate, swarm size, and inertia weight.These parameters significantly impact the final optimization results, yet tuning them often requires repeated experimentation, increasing the difficulty of use.Despite iterating one hundred times each, neither parameter optimization algorithm led to a significant improvement in accuracy compared to the TDF-PNN method, nor did they improve the situation with false negatives; (3) MFCC-LSTM method: MFCC features are primarily used in speech signal processing, and the extracted features are static.When applied to pipeline leak signals, some important frequency or time-domain information might be lost, along with the dynamic characteristics of the leak signal over time.Although there was an improvement in overall accuracy and the rate of false negatives compared to the previous two methods, there remains room for enhancement in the identification performance.

Leak Detection for Offshore Platform Pipelines Based on Improved End-to-End Convolutional Neural Networks

100Convolutional neural networks (CNN) are a type of feedforward neural network that includes convolutional computations and has a deep structure.CNNs effectively extract and classify features from input data by mimicking the operation mechanisms of the human visual system, particularly by utilizing properties such as local receptive fields and weight sharing [42].The early concept of this network originated from the research conducted by Hubel and Wiesel [43] on the visual cortex of cats in the 1960s, while the modern framework of CNNs was mainly proposed and refined by LeCun [44] in the early 1990s.

Convolutional Neural Network

101CNNs can be categorized into one-dimensional (1D-CNN), two-dimensional (2D-CNN), and three-dimensional (3D-CNN) based on the dimensionality of the data they process.1D-CNNs are primarily used for analyzing one-dimensional time series, 2D-CNNs are widely applied in computer vision and image processing, while 3D-CNNs are mainly used for the recognition and analysis of medical images and video data.In this paper, a 1D-CNN is employed to analyze and process the one-dimensional AE signals generated during pipeline operation.

One-Dimensional Convolutional Neural Network

102The basic structure of a 1D-CNN includes an input layer, convolutional layers, pooling layers, fully connected layers, and an output layer.In a 1D-CNN, the convolutional layers are responsible for extracting temporal or sequential features from the input data.This process is carried out using one or more convolutional kernels to generate transformed feature maps.During the convolution operation, the kernel begins at one end of the input data and slides along the length of the data, computing the dot product of the kernel and the input data at each step.Assuming there is an input sequence x and a convolutional kernel k, where the length of x is L and the length of k is M, the length of the output y will depend on the input length, the kernel size, and the stride S. The calculation for each element in the output y is given by the following formula:

103where t is the index of the output sequence, and b is the bias term.Commonly used pooling layers include max pooling and average pooling.Average pooling reduces the size of the feature map by calculating the average value of each small region in the input feature map.

104During average pooling, a window is selected, which slides over the input feature map according to the window size.The pixel values within the covered region of the window are averaged, and this average value replaces the original pixel values in the window region.Assuming the operation is performed over a region of size n × n, the average pooling operation can be expressed as follows:

105where Y arg (x) is an element in the output feature map, and x ij is the value at position (i, j) in the input feature map.Average pooling helps the network reduce the spatial dimensions while preserving background information and less prominent features in the image, making the network more robust to small positional changes.Even if there are slight shifts in the object's position within the image, the features extracted through average pooling can maintain consistency.Max pooling is used to reduce the size of the feature map, decrease computational load, and provide a certain degree of translation invariance.Max pooling achieves this by selecting the maximum value within a given window.For a feature map region, the max pooling operation can be expressed as follows:

106where X is the set of elements in the feature map region covered by the pooling window, and Y m (x) is the maximum value extracted from X.The introduction of max pooling and average pooling in CNNs allows for the extraction of key features while simultaneously reducing the dimensionality of the feature map and the number of parameters.This reduction in complexity helps decrease computational load and prevents overfitting.

107In a 1D-CNN, the fully connected layer plays a crucial role in integrating the features extracted by the previous layers and in performing classification or regression tasks.The fully connected layer is a form of a traditional neural network layer, where each input node is connected to every output node.This layer is typically located at the end of the network and receives the output of the previous convolutional or pooling layers, which has been flattened as input.Through the weights in the fully connected layer, the network learns how to extract useful information from the combined features to make decisions.The computation in the fully connected layer is essentially a linear transformation followed by a nonlinear activation function.The expression for the regression in the fully connected layer is as follows:

108where x m−1 is the input from the previous layer to the fully connected layer, ω and b represent the weights and biases of the neuron, respectively, and f is the activation function, commonly ReLU, Sigmoid, or Tanh.As shown in Figure 17, the 1D-CNN uses one-dimensional convolution to extract local one-dimensional segments from the time series and performs convolution and pooling operations to extract sequence features.

Framework of the Proposed Method

109Traditional fault diagnosis techniques rely on the expertise and experience of technicians and generally involve data processing and signal conversion.However, these conventional methods may suffer from issues such as low accuracy and poor robustness.In contrast, a 1D-CNN can directly perform pipeline leak detection from raw signal data.Compared to traditional methods, it not only eliminates the need for complex data pre-

110Traditional fault diagnosis techniques rely on the expertise and experience of technicians and generally involve data processing and signal conversion.However, these conventional methods may suffer from issues such as low accuracy and poor robustness.In contrast, a 1D-CNN can directly perform pipeline leak detection from raw signal data.Compared to traditional methods, it not only eliminates the need for complex data preprocessing and signal transformation but also significantly improves the accuracy of fault diagnosis.Building upon the 1D-CNN framework, this paper incorporates spatial attention mechanisms, residual modules, and transformer modules.According to the characteristics of the model, the improved 1D-CNN network is named the Spatial Attention-Residual-Transformer 1D Convolutional Neural Network (SART-1DCNN).

Improvement Approach (1) Spatial Attention Mechanism

111The goal of the spatial attention mechanism is to assign attention weights to different spatial positions in the input feature map based on their importance.These weights reflect the regions that the model should focus on when processing the feature map.Attention weights are usually calculated using the global information of the feature map.

112Assume the input feature map is X with dimensions H × W × C, where H is the height, W is the width, and C is the number of channels.The main calculation process of the spatial attention mechanism is as follows: first, global information is extracted from the feature map through average pooling and max pooling.Then, the results of the average pooling and max pooling are concatenated to generate a two-dimensional feature map:

113where A max (x, y) and A avg (x, y) represent the results of max pooling and average pooling at position (x, y), respectively; A(x, y) has a size of H × W × 2, meaning that each spatial position has two channels.Next, a convolutional layer with a kernel size of k × k is applied to the concatenated feature map, resulting in a single-channel attention map:

114where W represents the convolution kernel, * denotes the convolution operation, b is the bias term, σ is the activation function, and M(x, y) is the final spatial attention map.Finally, the generated spatial attention map M(x, y) is element-wise multiplied with the original input feature map X, resulting in a weighted feature map:

115where X out is the feature map after being weighted by the spatial attention.The spatial attention mechanism enables the model to focus on important regions while suppressing less relevant parts.Introducing this mechanism is highly effective in enhancing the model's ability to recognize target objects.

116(2) Residual Connections

117Residual connections are primarily used to address the issue of vanishing or exploding gradients as the number of network layers increases.The core idea is to allow the output of one layer to be directly connected to a later layer, typically through a "shortcut connection", making the training of deep networks more efficient.Residual connections were first proposed by Kaiming He et al. [45].In a residual network, a basic residual block can be expressed as follows:

118where x is the input to the residual block, F(x, {W i }) represents the mapping function passed through the weights {W i } in the block, and y is the output of the residual block.

119The above equation indicates that if x is already a good output, the network only needs to learn the residual part from x to y, rather than learning the entire y.This approach allows for more effective gradient propagation, even as the network depth increases, because the direct path provided by the shortcut connection preserves the strength of the gradient, thereby mitigating the issue of vanishing gradients.In this study, by adding residual connections between convolutional layers, the model is able to maintain stability and efficiency in training as the depth increases.This design enables the network to learn more complex and abstract feature representations.

120(

3) Transformer Module

121The transformer module is based on the self-attention mechanism, which was originally proposed by Vaswani et al. in their 2017 paper [46].The self-attention mechanism allows the model to consider all positions in the entire sequence simultaneously when calculating the representation of each position in the sequence.Specifically, for each element in the input sequence, three vectors are generated through linear transformations: the Query vector, the Key vector, and the Value vector.The calculation formulas for these vectors are as follows:

122where X represents the input sequence, and XW Q , XW K , XW V are the parameter matrices used for the linear transformations.In the transformer layer, the output of the self-attention mechanism is passed through a feedforward neural network.This is a position-wise fully connected network that independently operates on each position within the sequence.The calculation formula for the feedforward neural network is as follows:

123where W 1 and W 2 are the weight matrices, b 1 and b 2 are the bias terms, and max(0, x) represents the ReLU activation function.To prevent gradient vanishing and accelerate training, the transformer uses residual connections and layer normalization in each sublayer.Overall, the transformer architecture consists of an encoder and a decoder.Each layer of the encoder includes a self-attention mechanism and a feedforward network.The decoder has a similar structure to the encoder, but in addition to the self-attention mechanism, it also includes a cross-attention mechanism with the encoder's output.This structure effectively captures long-range dependencies within sequences.

124(4) Application of Dropout and Optimization Algorithms Dropout is a regularization technique used to prevent overfitting in neural networks, first proposed by Hinton et al. [47].During training, Dropout randomly drops a portion of the neurons in the network (i.e., sets their output to zero).This can be represented as follows:

125where x is the input vector to a neuron, m is a randomly generated 0−1 (Obey Bernoulli distribution) vector with the same dimension as x, and ⊗ denotes element-wise multiplication.The working principle of Dropout is that during each forward pass, some neurons in the hidden layer, along with their corresponding connections, are temporarily removed from the network at random.This means that these neurons do not participate in the current forward and backward propagation calculations or in gradient updates.By doing so, the model effectively trains with different network architectures on each pass, reducing dependency on specific training samples and improving the model's generalization ability.

126In addition, the Adam optimization algorithm is used to adjust the network weights.Adam is an adaptive learning rate optimization algorithm proposed by Diederik P. Kingma and Jimmy Ba in 2014 [48].It calculates an adaptive learning rate for each parameter, which can be expressed as follows:

127where θ represents the parameter, η is the learning rate, mt and vt are bias-corrected estimates of the first and second moments, respectively, and ϵ is a small constant added for numerical stability.These improvements work together to enhance the performance of the improved 1D-CNN model in the task of offshore platform pipeline leak detection.

Structure of SART-1DCNN Model

128The CNN model is an 8-layer lightweight CNN framework, composed of several core components.The main structural parameters of this network are shown in Table 2. First, preliminary features are extracted through a convolutional layer, followed by a spatial attention mechanism layer to enhance important features.The features then enter the first residual block for further processing and are down-sampled through an average pooling layer.Subsequently, the features pass through a transformer encoder layer to capture global dependencies within the sequence.Next, the features go through the second residual block, and after being processed by another convolutional layer, they are flattened and passed through a fully connected layer for final classification.The improved 1D-CNN structure is illustrated in Figure 18.

Diagnostic Process

129The diagnostic process for the SART-1DCNN for offshore platform pipeli tection is illustrated in Figure 19.The process begins with the collection of AE s the pipeline to create the dataset, which is then divided into 60% training set, 2 tion set, and 20% test set.The training phase involves building the improve model and tuning the model parameters until the training is completed and output.

130The process then follows two possible directions: If the model's accuracy requirements, the model is output and saved, and the test set is used for predi evaluation, after which the process ends.If the accuracy is insufficient, adjus made, and the process is repeated.

131The diagnostic process for the SART-1DCNN for offshore platform pipeline leak detection is illustrated in Figure 19.The process begins with the collection of AE signals from the pipeline to create the dataset, which is then divided into 60% training set, 20% validation set, and 20% test set.The training phase involves building the improved 1D-CNN model and tuning the model parameters until the training is completed and results are output.

132The process then follows two possible directions: If the model's accuracy meets the requirements, the model is output and saved, and the test set is used for prediction result evaluation, after which the process ends.If the accuracy is insufficient, adjustments are made, and the process is repeated.

Model Training and Prediction Results Analysis

133The CNN was trained and tested using the dataset consisting of 1800 sets of data as described in Section 2. These sets of data were randomly divided, with 1080 sets used as the model training set, 360 sets as the validation set for assisting in model parameter tuning, and 360 sets as the test set.

134The CNN was trained and tested using the dataset consisting of 1800 sets of data as described in Section 2. These sets of data were randomly divided, with 1080 sets used as the model training set, 360 sets as the validation set for assisting in model parameter tuning, and 360 sets as the test set.

135The CNN was trained and tested using the dataset consisting of 1800 sets of data as described in Section 2. These sets of data were randomly divided, with 1080 sets used as the model training set, 360 sets as the validation set for assisting in model parameter tuning, and 360 sets as the test set.After completing the model training and validation, the trained model was used to extract high-dimensional features from the test data.The t-SNE (t-distributed Stochastic Neighbor Embedding) algorithm was then applied to reduce the dimensionality of these high-dimensional features into a two-dimensional space, generating the t-SNE plot shown in Figure 21.In the t-SNE plot, distinct clusters of data can be observed, with clear boundaries between them.This indicates that the model performs well in feature extraction and can effectively distinguish between different categories.

136After completing the model training and validation, the trained model was used to extract high-dimensional features from the test data.The t-SNE (t-distributed Stochastic Neighbor Embedding) algorithm was then applied to reduce the dimensionality of these high-dimensional features into a two-dimensional space, generating the t-SNE plot shown in Figure 21.In the t-SNE plot, distinct clusters of data can be observed, with clear boundaries between them.This indicates that the model performs well in feature extraction and can effectively distinguish between different categories.After completing the model training and validation, the trained model was used to extract high-dimensional features from the test data.The t-SNE (t-distributed Stochastic Neighbor Embedding) algorithm was then applied to reduce the dimensionality of these high-dimensional features into a two-dimensional space, generating the t-SNE plot shown in Figure 21.In the t-SNE plot, distinct clusters of data can be observed, with clear boundaries between them.This indicates that the model performs well in feature extraction and can effectively distinguish between different categories.

Comparative Analysis

137Two typical CNNs, LeNet and AlexNet, were used to analyze the AE leak data.LeNet is a classic CNN structure proposed by Yann LeCun et al. [44] in 1998, originally designed for handwritten digit recognition tasks (MNIST dataset).AlexNet, proposed by Alex Krizhevsky et al. [49] in 2012, is a CNN that achieved significant success in the ImageNet image classification competition.When applying these two CNN architectures to the leak analysis in this study, the original 2D convolutional and pooling layers in both networks were replaced with 1D convolutional and pooling layers, respectively.The frameworks of the two models are shown in Figure 23.[44] in 1998, originally designed for handwritten digit recognition tasks (MNIST dataset).AlexNet, proposed by Alex Krizhevsky et al. [49] in 2012, is a CNN that achieved significant success in the ImageNet image classification competition.When applying these two CNN architectures to the leak analysis in this study, the original 2D convolutional and pooling layers in both networks were replaced with 1D convolutional and pooling layers, respectively.The frameworks of the two models are shown in Figure 23.The batch size for training LeNet and AlexNet was set to be the same as that of the network used in this study, and the same number of training epochs was applied.A comparison was made between the three methods from Section 3 and the method presented in this Section, with the results shown in Table 3.The batch size for training LeNet and AlexNet was set to be the same as that of the network used in this study, and the same number of training epochs was applied.A comparison was made between the three methods from Section 3 and the method presented in this Section, with the results shown in Table 3.It can be seen that the accuracy obtained using the LeNet model is the lowest, likely due to the network structure being too simple to effectively learn the features of the data.The SA-PSO-BPNN method performs better than the TDF-PNN method, indicating that the use of optimization algorithms can improve the network's recognition performance to some extent.Both the MFCC-LSTM and AlexNet methods achieve accuracy rates above 90%, but the MFCC-LSTM network has significantly fewer parameters than AlexNet and also achieves higher accuracy.Finally, the SART-1DCNN method has a number of parameters between those of LeNet and AlexNet, and it achieves an accuracy of 99.44% on the test set, higher than all other methods mentioned in this study.

Conclusions

138This paper first designs and sets up a pipeline leakage model, formulates corresponding experimental protocols, collects pipeline leakage signals and noise signals from marine platform pipelines, and integrates the leakage signals with actual measured noise signals to simulate real-world leakage scenarios.Subsequently, several existing networkbased leakage identification methods were trained and validated on the dataset, and their shortcomings were identified.Finally, it proposes an improved method based on CNNnamed SART-1DCNN-and compares it with other methods.The specific conclusions are as follows:

139(1) It implements and compares three pipeline leakage identification methods: TDF-PNN, SA-PSO-BPNN, and MFCC-LSTM.Among these, the TDF-PNN method extracts timedomain features of the signal and classifies them using a probabilistic neural network (PNN), but its recognition performance is poor under noisy conditions (85.00%).

140The SA-PSO-BPNN method optimizes the parameters of the BP neural network via simulated annealing (SA) and particle swarm optimization (PSO) algorithms, thus enhancing recognition performance (88.90%).In contrast, the MFCC-LSTM method exhibits the best performance, achieving a recognition accuracy rate of 94.16%; (2) The 1D-CNN model can directly take the original acoustic emission signal as input for training and testing, effectively addressing the complexities of data preprocessing and feature extraction during the fault diagnosis of gas pipelines, achieving accurate end-to-end fault diagnosis.This paper introduces the SART-1DCNN method for processing original acoustic emission signals.The similarity between the input vector and the training sample T k

141Temperature of the k-th iteration of simulated annealing algorithm v i (t)

142The velocity of particle i at t iterations x i (t)

143The position of particle i at the t-th iteration An element in the output feature map of a convolutional neural network Y m (x)

144The maximum value extracted from x in the max pooling operation y(x m )

145Output of fully connected layer A(x, y) Two-dimensional feature map in spatial attention mechanism M(x, y)

146Single-channel attention map in spatial attention mechanism X out (x,

Figure 1 .

147Figure 1.Pipeline structure model.

148Figure 1.Pipeline structure model.

Figure 2 .

149Figure 2. Pipeline AE detection system.

150Figure 2. Pipeline AE detection system.

151Figure 2. Pipeline AE detection system.

Figure 3 .

152Figure 3. LW3-1 CEP platform.(a) LW3-1 framework model; (b) LW3-1 on-site image.

153Figure 3. LW3-1 CEP platform.(a) LW3-1 framework model; (b) LW3-1 on-site image.

Figure 4 .

154Figure 4. AE sensor layout on offshore platform pipelines.(a) Sensor installation position 1; (b) sensor installation position 2.

Figure 5 .

155Figure 5. Laboratory leak signal waveform.

Figure 4 .

156Figure 4. AE sensor layout on offshore platform pipelines.(a) Sensor installation position 1; (b) sensor installation position 2.

Figure 3 .

157Figure 3. LW3-1 CEP platform.(a) LW3-1 framework model; (b) LW3-1 on-site image.

Figure 4 .

158Figure 4. AE sensor layout on offshore platform pipelines.(a) Sensor installation position 1; (b) sensor installation position 2.

Figure 5 .

159Figure 5. Laboratory leak signal waveform.

160Figure 5. Laboratory leak signal waveform.

Figure 6 .

161Figure 6.Measured noise signal on platform and leak signal with noise added.(a) Measured noise signal on platform; (b) leak signal with noise added.

162Figure 6.Measured noise signal on platform and leak signal with noise added.(a) Measured noise signal on platform; (b) leak signal with noise added.

163Figure 6.Measured noise signal on platform and leak signal with noise added.(a) Measured noise signal on platform; (b) leak signal with noise added.

Figure 7 .

164Figure 7. Frequency spectrum and time-frequency plot of measured noise signal on platform.(a) Frequency spectrum of measured noise signal on platform; (b) time-frequency plot of signal with noise added.

Figure 7 .Figure 8 .

165Figure 7. Frequency spectrum and time-frequency plot of measured noise signal on platform.(a) Frequency spectrum of measured noise signal on platform; (b) time-frequency plot of signal with noise added.

Figure 8 .

166Figure 8. Frequency spectrum and time-frequency plot of leak signal with noise added.(a) Frequency spectrum of signal with noise added; (b) time-frequency plot of signal with noise added.

2 JFigure 9 .

167Figure 9. PNN structure diagram.

Figure 9 .

168Figure 9. PNN structure diagram.

169Figure 9. PNN structure diagram.

Figure 10 .

170Figure 10.PNN classification results diagram (part).The confusion matrix in Figure 11 illustrates the recognition results.Out of 360 test cases, the method identified 143 noise signals and misclassified 37 noisy leak signals as noise signals (false negatives).It correctly identified 163 noise signals and incorrectly classified 17 noise signals as noisy leak signals (false positives).The recognition accuracy is

171Figure 10.PNN classification results diagram (part).The confusion matrix in Figure 11 illustrates the recognition results.Out of 360 test cases, the method identified 143 noise signals and misclassified 37 noisy leak signals as noise signals (false negatives).It correctly identified 163 noise signals and incorrectly classified 17 noise signals as noisy leak signals (false positives).The recognition accuracy is (143 + 163)/360 = 85%, indicating that the method performs poorly in terms of both false positives and false negatives, particularly with a higher rate of false negatives, which leads to a lower overall recognition accuracy.

Figure 11 .

172Figure 11.Confusion matrix for the TDF-PNN method test set.

173Figure 11.Confusion matrix for the TDF-PNN method test set.

Figure 12 .

174Figure 12.SA-PSO parameter optimization process.

175Figure 12.SA-PSO parameter optimization process.J. Mar.Sci.Eng.2024, 12, x FOR PEER REVIEW 15 of 31

Figure 13 .

176Figure 13.Confusion matrix for the SA-PSO-BPNN method test set.

177Figure 13.Confusion matrix for the SA-PSO-BPNN method test set.

JFigure 14 .

178Figure 14.Main extraction process of Mel-Frequency Cepstral Coefficients.

Figure 14 .

179Figure 14.Main extraction process of Mel-Frequency Cepstral Coefficients.

180Figure 14.Main extraction process of Mel-Frequency Cepstral Coefficients.

Figure 15 .

181Figure 15.LSTM neuron structure.

182Figure 15.LSTM neuron structure.

183, the method identified 172 leak signals and misclassifying 8 noisy leak signals as noise signals (false negatives).It correctly identified 167 noise signals and misclassified 13 noise signals as noisy leak signals (false positives).The recognition accuracy is (167 + 172)/360 = 94.16%.Compared to the SA-PSO-BPNN method, this approach shows better performance in reducing false negatives, but the number of false positives has increased.Overall, the recognition accuracy has improved by about 5%.

Figure 16 .

184Figure 16.Confusion matrix for the MFCC-LSTM method test set.

185Figure 16.Confusion matrix for the MFCC-LSTM method test set.

JFigure 17 .

186Figure 17.Working principle of one-dimensional CNN.

Figure 17 .

187Figure 17.Working principle of one-dimensional CNN.

JFigure 18 .

188Figure 18.Structure of the SART-1DCNN.

Figure 18 .

189Figure 18.Structure of the SART-1DCNN.

4. 3

190.1.Network Training All data were input into the improved one-dimensional CNN model with a batch size of 128 and a learning rate set to 10-5.The model was trained for 100 epochs.After training, the accuracy and loss functions for both the training and validation datasets were visualized.The accuracy and loss function curves are shown in Figure 20.In the figure, the data points on the accuracy and loss curves represent the results at the 1st, 50th, and 100th epochs.It can be seen that after 100 epochs of training, the accuracy for both the training and test datasets reached over 99%.(a) (b)

Figure 20 .

191Figure 20.Accuracy and loss function curves for 100 epochs on training and validation sets.(a) training metrics; (b) validation metrics.

Figure 19 .

192Figure 19.Diagnostic process for the SART-1DCNN model.

4. 3

193.1.Network Training All data were input into the improved one-dimensional CNN model with a batch size of 128 and a learning rate set to 10-5.The model was trained for 100 epochs.After training, the accuracy and loss functions for both the training and validation datasets were visualized.The accuracy and loss function curves are shown in Figure 20.In the figure, the data points on the accuracy and loss curves represent the results at the 1st, 50th, and 100th epochs.It can be seen that after 100 epochs of training, the accuracy for both the training and test datasets reached over 99%.

194.1.Network Training All data were input into the improved one-dimensional CNN model with a batch size of 128 and a learning rate set to 10-5.The model was trained for 100 epochs.After training, the accuracy and loss functions for both the training and validation datasets were visualized.The accuracy and loss function curves are shown in Figure 20.In the figure, the data points on the accuracy and loss curves represent the results at the 1st, 50th, and 100th epochs.It can be seen that after 100 epochs of training, the accuracy for both the training and test datasets reached over 99%.(a) (b)

Figure 20 .

195Figure 20.Accuracy and loss function curves for 100 epochs on training and validation sets.(a) training metrics; (b) validation metrics.

196Figure 20.Accuracy and loss function curves for 100 epochs on training and validation sets.(a) training metrics; (b) validation metrics.

Figure 21 .

197Figure 21.t−SNE plot of the test set data.

Figure 22

198Figure22shows the confusion matrix obtained from the predictions made by the trained model on the test set.From this confusion matrix, we can observe that the model successfully identified all noise-containing leakage signals, while misclassifying two actual noise signals as noise-containing leakage signals (false negatives).The identification accuracy is (178 + 180)/360 = 99.44%.Compared to the three methods discussed in Section 3, this method significantly reduces both false negatives and false positives, resulting in a notable improvement in accuracy.

Figure 22 .

199Figure 22.Confusion matrix for test set prediction results.

Figure 21 .

200Figure 21.t-SNE plot of the test set data.

Figure 22

201Figure 22 shows the confusion matrix obtained from the predictions made by the trained model on the test set.From this confusion matrix, we can observe that the model successfully identified all noise-containing leakage signals, while misclassifying two actual noise signals as noise-containing leakage signals (false negatives).The identification accuracy is (178 + 180)/360 = 99.44%.Compared to the three methods discussed in Section 3, this method significantly reduces both false negatives and false positives, resulting in a notable improvement in accuracy.

Figure 21 .

202Figure 21.t−SNE plot of the test set data.

Figure 22

203Figure 22 shows the confusion matrix obtained from the predictions made by the trained model on the test set.From this confusion matrix, we can observe that the model successfully identified all noise-containing leakage signals, while misclassifying two actual noise signals as noise-containing leakage signals (false negatives).The identification accuracy is (178 + 180)/360 = 99.44%.Compared to the three methods discussed in Section 3, this method significantly reduces both false negatives and false positives, resulting in a notable improvement in accuracy.

Figure 22 .

204Figure 22.Confusion matrix for test set prediction results.Figure 22. Confusion matrix for test set prediction results.

205Figure 22.Confusion matrix for test set prediction results.Figure 22. Confusion matrix for test set prediction results.

Figure 23 .

206Figure 23.Frameworks of LeNet and AlexNet.

207Figure 23.Frameworks of LeNet and AlexNet.

208The method identified 143 leak signals and misclassified 37 noisy leak signals as noise signals (false positives).It correctly identified 177 noise signals and misclassified 3 noise signals as noisy leak signals (false negatives).The recognition accuracy is (143 + 177)/360 = 88.9%.Compared to the TDF-PNN method, this approach has improved the issue of false positives but still has a high rate of false negatives.This indicates that the method is better at avoiding the misclassification of noise signals as noisy leak signals but still requires improvements in accurately identifying noisy leak signals.

Table 2 .

209Structural parameters of the SART-1DCNN model.

210J. Mar.Sci.Eng.2024, 12, x FOR PEER REVIEW 27 of 31 4.3.2.Comparative Analysis Two typical CNNs, LeNet and AlexNet, were used to analyze the AE leak data.LeNet is a classic CNN structure proposed by Yann LeCun et al.

Table 3 .

211Performance comparison of different network models.

212Performance comparison of different network models.

213This improved model combines attention modules, residual modules, and convolutional modules.After 100 training epochs, it achieves a high accuracy rate of 99.72% on the test set, demonstrating the efficiency and accuracy of this model compared to others.

참고문헌 43건

  1. Continuous leakage location in noisy environment using modal and wavelet analysis with one AE sensor Ultrasonics · Elsevier BV · 2015 10.1016/j.ultras.2015.06.004
  2. Novel leak localization in pressurized pipeline networks using acoustic emission and geometric connectivity International Journal of Pressure Vessels and Piping · Elsevier BV · 2012 10.1016/j.ijpvp.2012.01.001
  3. Gradient-based learning applied to document recognition Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 1998 10.1109/5.726791
  4. Receptive fields, binocular interaction and functional architecture in the cat's visual cortex The Journal of Physiology · Wiley · 1962 10.1113/jphysiol.1962.sp006837
  5. ImageNet Classification with Deep Convolutional Neural Networks Neural Information Processing Systems · 2012
  6. Sub-sea Pipelines Leak Detection And Location Based On Fluid Transient And FDI The Fourteenth International Offshore and Polar Engineering Conference · 2004
  7. Experimental investigation into vibro-acoustic emission signal processing techniques to quantify leak flow rate in plastic water distribution pipes Applied Acoustics · Elsevier BV · 2017 10.1016/j.apacoust.2017.01.002
  8. Audio and Speech Processing with MATLAB CRC Press eBooks · Informa · 2018 10.1201/9780429444067
  9. Development of sound pressure identification method to detect internal leak of safety relief valves in nuclear power plants Nuclear Engineering and Design · Elsevier BV · 2020 10.1016/j.nucengdes.2020.110761
  10. A low latency modular-level deeply integrated MFCC feature extraction architecture for speech recognition Integration · Elsevier BV · 2020 10.1016/j.vlsi.2020.09.002
  11. Quantitative assessment of leakage orifices within gas pipelines using a Bayesian network Reliability Engineering & System Safety · Elsevier BV · 2021 10.1016/j.ress.2021.107438
  12. Automatic Visual Leakage Detection and Localization from Pipelines in Chemical Process Plants Using Machine Vision Techniques Engineering · Elsevier BV · 2021 10.1016/j.eng.2020.08.026
  13. Research on damage identification of hull girder based on Probabilistic Neural Network (PNN) Ocean Engineering · Elsevier BV · 2021 10.1016/j.oceaneng.2021.109737
  14. Acoustic method of high-pressure natural gas pipelines leakage detection: Numerical and applications International Journal of Pressure Vessels and Piping · Elsevier BV · 2021 10.1016/j.ijpvp.2021.104540
  15. A Method for Pipeline Leak Detection Based on Acoustic Imaging and Deep Learning Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22041562
  16. A Machine Vision—Based Pipe Leakage Detection System for Automated Power Plant Maintenance Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22041588
  17. Leakage identification in water pipes using explainable ensemble tree model of vibration signals Measurement · Elsevier BV · 2022 10.1016/j.measurement.2022.110996
  18. Leak detection in real water distribution networks based on acoustic emission and machine learning Environmental Technology · Taylor & Francis · 2022 10.1080/09593330.2022.2074320
  19. Pressure pattern for fault diagnosis in gas pipelines through graph tools Mechanical Systems and Signal Processing · Elsevier BV · 2022 10.1016/j.ymssp.2022.109604
  20. Leakage diagnosis and localization of the gas extraction pipeline based on SA-PSO BP neural network Reliability Engineering & System Safety · Elsevier BV · 2022 10.1016/j.ress.2022.109051
  21. Internal leakage rate prediction and failure diagnosis of buried pipeline ball valve based on valve cavity pressure detection Flow Measurement and Instrumentation · Elsevier BV · 2022 10.1016/j.flowmeasinst.2022.102303
  22. Industrial fluid pipeline leak detection and localization based on a multiscale Mann-Whitney test and acoustic emission event tracking Mechanical Systems and Signal Processing · Elsevier BV · 2022 10.1016/j.ymssp.2022.110067
  23. Leak detection and localization techniques in oil and gas pipeline: A bibliometric and systematic review Engineering Failure Analysis · Elsevier BV · 2023 10.1016/j.engfailanal.2023.107060
  24. Automated leakage detection method of pipeline networks under complicated backgrounds by combining infrared thermography and Faster R-CNN technique Process Safety and Environmental Protection · Elsevier BV · 2023 10.1016/j.psep.2023.04.006
  25. Spectral transient-based multiple leakage identification in water pipelines: An efficient hybrid gradient-metaheuristic optimization Expert Systems with Applications · Elsevier BV · 2023 10.1016/j.eswa.2023.120021
  26. Mathematical modelling and simulation of leak detection system in crude oil pipeline Heliyon · Elsevier BV · 2023 10.1016/j.heliyon.2023.e15412
  27. Modeling of pressure-dependent background leakages in water distribution networks Mathematics and Computers in Simulation · Elsevier BV · 2023 10.1016/j.matcom.2023.06.008
  28. MFCC-LSTM framework for leak detection and leak size identification in gas-liquid two-phase flow pipelines based on acoustic emission Measurement · Elsevier BV · 2023 10.1016/j.measurement.2023.113238
  29. Corrosion leakage risk diagnosis of oil and gas pipelines based on semi-supervised domain generalization model Reliability Engineering & System Safety · Elsevier BV · 2023 10.1016/j.ress.2023.109486
  30. One-dimensional residual convolutional neural network and percussion-based method for pipeline leakage and water deposit detection Process Safety and Environmental Protection · Elsevier BV · 2023 10.1016/j.psep.2023.07.059
  31. A new leak recognition method for natural gas pipelines in the urban underground space based on probabilistic neural network Journal of Loss Prevention in the Process Industries · Elsevier BV · 2023 10.1016/j.jlp.2023.105162
  32. Internal leakage rate prediction and unilateral and bilateral internal leakage identification of ball valves in the gas pipeline based on pressure detection Engineering Failure Analysis · Elsevier BV · 2023 10.1016/j.engfailanal.2023.107584
  33. A ship trajectory prediction method based on GAT and LSTM Ocean Engineering · Elsevier BV · 2023 10.1016/j.oceaneng.2023.116159
  34. A cascaded deep learning approach for detecting pipeline defects via pretrained YOLOv5 and ViT models based on MFL data Mechanical Systems and Signal Processing · Elsevier BV · 2023 10.1016/j.ymssp.2023.110919
  35. The pipeline leak detection algorithm based on D-S evidence theory and signal fusion mechanism Alexandria Engineering Journal · Elsevier BV · 2023 10.1016/j.aej.2023.11.043
  36. Numerical and experimental research on vibration signal characteristics of water pipeline leakage Measurement · Elsevier BV · 2024 10.1016/j.measurement.2024.114118
  37. UWFBG array vibration sensing technology for gas pipeline leakage detection and location Optics Communications · Elsevier BV · 2024 10.1016/j.optcom.2024.130414
  38. Study on vibration signals identification method for pipeline leakage detection based on deep learning technology Optics Communications · Elsevier BV · 2024 10.1016/j.optcom.2024.130588
  39. Pipeline damage identification in nuclear industry using a particle swarm optimization-enhanced machine learning approach Engineering Applications of Artificial Intelligence · Elsevier BV · 2024 10.1016/j.engappai.2024.108467
  40. Structural health monitoring of oil and gas pipelines: Developments, applications and future directions Ocean Engineering · Elsevier BV · 2024 10.1016/j.oceaneng.2024.118293
  41. Combining simulated annealing and RBF networks for accurate volumetric fraction determination of two-phase flows Flow Measurement and Instrumentation · Elsevier BV · 2024 10.1016/j.flowmeasinst.2024.102653
  42. A Non-Metallic pipeline leak size recognition method based on CWT acoustic image transformation and CNN Applied Acoustics · Elsevier BV · 2024 10.1016/j.apacoust.2024.110180
  43. Pipeline Leak Detection System for a Smart City: Leveraging Acoustic Emission Sensing and Sequential Deep Learning Smart Cities · Multidisciplinary Digital Publishing Institute · 2024 10.3390/smartcities7040091