Oil pipeline working condition identification method based on multi-source time sequence data

The method for identifying the operating conditions of oil pipelines using multi-source time-series data, by utilizing sensor data and LSTM models, solves the problems of low efficiency and poor accuracy in existing technologies, and achieves efficient and accurate operating condition identification and leak detection, thus ensuring the safety of oil and gas transportation.

CN123174474APending Publication Date: 2026-11-27PIPECHINA SOUTH CHINA CO +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510690815.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, the monitoring of oil pipeline operating conditions relies on manual analysis, which is inefficient and inaccurate, and is prone to misjudgment or omission, leading to safety hazards.

Method used

A pipeline operating condition identification method based on multi-source time-series data is adopted. By acquiring sensor data from each monitoring node, the operating condition type is determined using a trained target operating condition identification model, and identification and verification are performed using an LSTM model and feature data intervals.

Benefits of technology

It improves the convenience and accuracy of identifying operating conditions, enhances the accuracy and real-time nature of leak detection and location, reduces safety hazards caused by untimely determination of operating conditions, and ensures the safety of oil and gas transportation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123174474A_ABST
    Figure CN123174474A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on multi-source time series data's oil pipeline working condition identification method.The method comprises: obtaining the current monitoring data of multiple sensors at each monitoring node of oil pipeline;Current monitoring data is input into the target working condition identification model trained, and the change characteristic data corresponding to current monitoring data is obtained, and based on change characteristic data, the initial working condition type corresponding to current monitoring data is determined;Target working condition identification model is based on the time series monitoring data under different kinds of working condition types and the theoretical characteristic data interval corresponding to different kinds of working condition types Training obtains;If the change characteristic data of all current monitoring data under the same initial working condition type is in the theoretical characteristic data interval under initial working condition type, then determine that initial working condition type is the target working condition type of all current monitoring data under initial working condition type.The technical scheme provided in the embodiment of the application realizes the effect of improving the convenience and accuracy of working condition type identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of oil and gas pipeline monitoring technology, and in particular to a method for identifying the operating conditions of oil pipelines based on multi-source time-series data. Background Technology

[0002] The safe and efficient operation of oil pipelines is crucial for energy transportation. To ensure the safety of oil pipelines, it is usually necessary to monitor their operating conditions.

[0003] However, in existing technologies, the detection of oil pipeline operating conditions typically relies on manual analysis of pipeline operational data. This method, which depends on manual determination of operating conditions, not only suffers from low efficiency and poor accuracy but is also prone to misjudgment or omission. Summary of the Invention

[0004] This invention provides a method for identifying the operating conditions of oil pipelines based on multi-source time-series data, thereby improving the convenience, accuracy, and comprehensiveness of identifying oil pipeline operating condition types.

[0005] According to one aspect of the present invention, a working condition identification method is provided, the method comprising:

[0006] Acquire current monitoring data from multiple sensors at various monitoring nodes along the oil pipeline;

[0007] For each current monitoring data point, the current monitoring data is input into a trained target operating condition identification model to obtain the change feature data corresponding to the current monitoring data. Based on the change feature data, the initial operating condition type corresponding to the current monitoring data is determined. The target operating condition identification model is trained based on time-series monitoring data under different operating condition types and theoretical feature data intervals corresponding to different operating condition types. The time-series monitoring data is collected from multiple sensors.

[0008] If the change characteristic data of all the current monitoring data under the same initial operating condition type are all within the theoretical characteristic data range of the initial operating condition type, then the initial operating condition type is determined as the target operating condition type of all the current monitoring data under the initial operating condition type.

[0009] According to another aspect of the present invention, a working condition identification device is provided, the device comprising:

[0010] The current monitoring data acquisition module is used to acquire the current monitoring data from multiple sensors at each monitoring node of the oil pipeline;

[0011] The initial operating condition type determination module is used to input the current monitoring data into a trained target operating condition recognition model for each current monitoring data, obtain the change feature data corresponding to the current monitoring data, and determine the initial operating condition type corresponding to the current monitoring data based on the change feature data; wherein, the target operating condition recognition model is trained based on time-series monitoring data under different operating condition types and theoretical feature data intervals corresponding to different operating condition types; the time-series monitoring data is obtained based on data collected by multiple sensors;

[0012] The target operating condition type determination module is used to determine the initial operating condition type as the target operating condition type for all the current monitoring data under the same initial operating condition type if the change characteristic data of all the current monitoring data under the same initial operating condition type are within the theoretical characteristic data range under the initial operating condition type.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] At least one processor; and a memory communicatively connected to said at least one processor; wherein,

[0015] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the working condition identification method according to any embodiment of the present invention.

[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the working condition identification method according to any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the working condition identification method as described in any embodiment of the present invention.

[0018] The technical solution of this invention involves acquiring current monitoring data from multiple sensors at various monitoring nodes of an oil pipeline; inputting the current monitoring data into a trained target operating condition identification model to obtain change feature data corresponding to the current monitoring data; and determining the initial operating condition type corresponding to the current monitoring data based on the change feature data. The target operating condition identification model is trained based on time-series monitoring data under different operating condition types and theoretical feature data intervals corresponding to different operating condition types. The time-series monitoring data is acquired from multiple sensors. If the change feature data of all current monitoring data under the same initial operating condition type are within the theoretical feature data interval of the initial operating condition type... Within a given timeframe, the initial operating condition type is determined as the target operating condition type for all current monitoring data under that initial operating condition type. This solves the problems of low efficiency and poor accuracy in existing technologies that rely on manual analysis of oil pipeline operating condition types. It improves the convenience and timeliness of determining the operating condition type while also enhancing the accuracy of operating condition type identification. When the changing characteristic data of any current monitoring data under the same initial operating condition type is not within the theoretical characteristic data range of the initial operating condition type, maintenance of the oil pipeline can be carried out. This improves the accuracy and real-time performance of oil pipeline leak detection and location, greatly reduces safety hazards caused by untimely determination of operating conditions, and ensures the safety of oil and gas transportation.

[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a flowchart of a working condition identification method provided in Embodiment 1 of the present invention;

[0022] Figure 2 This is a flowchart of a working condition recognition model training method provided in Embodiment 2 of the present invention;

[0023] Figure 3 This is a schematic diagram of the structure of a working condition identification device according to Embodiment 3 of the present invention;

[0024] Figure 4 This is a schematic diagram of the structure of an electronic device that implements the working condition identification method of the present invention. Detailed Implementation

[0025] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0027] Example 1

[0028] Figure 1 This is a flowchart of a working condition identification method according to Embodiment 1 of the present invention. This embodiment is applicable to any situation requiring the determination of the working condition of an oil pipeline. The method includes a working condition identification model obtained by a working condition identification model training method. This method can be executed by a working condition identification device, which can be implemented in hardware and / or software and can be configured in a computing device. Figure 1 As shown, the method is as follows:

[0029] S110. Obtain the current monitoring data of multiple sensors at each monitoring node of the oil pipeline.

[0030] In this context, an oil pipeline refers to a pipeline route used to transport oil. A monitoring node refers to a specific location along the oil pipeline route used to monitor the pipeline's status. For example, a monitoring node can be an oil pumping station, an inlet / outlet station, an oil storage tank, a valve chamber, etc., and these monitoring nodes are equipped with one or more sensors. Sensors include, but are not limited to, pressure sensors, temperature sensors, flow sensors, power sensors, equipment operating status detection sensors, and various other types of sensors. Each sensor and / or monitoring node is relatively independent, meaning that the data type or physical quantity meaning of the corresponding monitoring data is different; that is, each sensor is a current data acquisition source.

[0031] In this embodiment, the communication interface and parameters of this system can be configured according to the communication protocol adopted by the SCADA (Supervisory Control and Data Acquisition) system. Based on the communication interface and parameters, a connection between this system and the SCADA system can be established. Then, current monitoring data collected by multiple sensors at various monitoring nodes of the oil pipeline can be obtained from the SCADA system in real time or periodically. For example, current monitoring data includes, but is not limited to: pressure data (such as inlet and outlet pressures of the oil pipeline, inlet and outlet pressures of the oil pump, and the pressure difference before and after the outlet regulating valve), temperature data (such as inlet and outlet oil temperatures, and inlet and outlet oil temperatures of heating equipment), flow data (such as inlet and outlet flow rates of the oil pipeline), equipment status data (such as the operating status of the oil pump unit and the opening and closing status of valves), and liquid level data (such as the liquid level of the oil storage tank). The changes in the current monitoring data are analyzed to determine the corresponding operating condition type. It should be noted that before identifying the operating condition type, data transmission tests between this system and the SCADA system can be performed to verify the accuracy and stability of data acquisition and avoid data loss or transmission errors.

[0032] To improve the accuracy of operating condition type identification, the acquired current monitoring data can be preprocessed, including data cleaning (removing missing values ​​and outliers) and normalization (unifying the data to a specific range, such as the 0-1 interval, to eliminate the influence of different feature units), so that its format is consistent with the data used when training the operating condition identification model, thereby improving data quality.

[0033] S120. For each current monitoring data, input the current monitoring data into the trained target working condition recognition model to obtain the change feature data corresponding to the current monitoring data, and determine the initial working condition type corresponding to the current monitoring data based on the change feature data.

[0034] Among them, the change characteristic data is used to characterize the changes and patterns of the data characteristics of the current monitoring data. The target operating condition identification model is trained based on time-series monitoring data under different operating condition types and the theoretical characteristic data intervals corresponding to different operating condition types; the time-series monitoring data is collected from multiple sensors. Time-series monitoring data is data with time-series characteristics. The theoretical characteristic data interval can be a characteristic representation interval that can truly reflect the data changes of sensor monitoring data under an ideal operating condition type. Operating condition types can be used to characterize the different working states of oil pipelines or equipment in oil pipelines during operation. For example, operating condition types include at least one of the following: pump start / stop, pipeline cleaning, oil batch switching, variable frequency speed control, distribution, PID regulation, etc. Of course, it is not limited to these, which will not be elaborated here.

[0035] In this embodiment, a pre-trained target operating condition identification model can be invoked. Each current monitoring data point is used as input data. The model processes and analyzes the input data based on the learned patterns, outputting the change feature data corresponding to each current monitoring data point. By analyzing the change feature data, the operating condition type of the current monitoring data can be determined, thereby obtaining the initial operating condition type corresponding to the monitoring node.

[0036] Optionally, the change characteristic data can be feature data under multiple feature dimensions, including at least statistical feature dimensions, time-domain feature dimensions, frequency-domain feature dimensions, and trend feature dimensions. Specifically, feature data under the statistical feature dimension is used to characterize the central tendency, dispersion, and overall distribution of the change characteristic data. Feature data under the time-domain feature dimension is used to characterize the range and trend of change characteristic data over time. Feature data under the frequency-domain feature dimension is used to characterize the frequency components and energy distribution of the change characteristic data. Feature data under the trend feature dimension is used to characterize the trend of change characteristic data over time, such as rising, falling, or remaining stable. Determining the initial operating condition type of the current monitoring data by using feature data from multiple feature dimensions can improve the accuracy of operating condition identification.

[0037] S130. If the change characteristic data of all current monitoring data under the same initial working condition type are all within the theoretical characteristic data range of the initial working condition type, then the initial working condition type is determined as the target working condition type of all current monitoring data under the initial working condition type.

[0038] In this embodiment, the theoretical feature data range corresponding to the working condition type obtained based on the working condition recognition model training method is acquired. The change feature data of all current monitoring data under the same working condition type is compared with the theoretical feature data range corresponding to that working condition type. If the change feature data of all current monitoring data under the initial working condition type are all within the theoretical feature data range of the initial working condition type, then the initial working condition type is determined as the target working condition type for all current monitoring data under the initial working condition type. If any current monitoring data is not within the theoretical feature data range, the working condition detection result is considered a failure. In this case, a failure notification message can be generated to help users promptly detect abnormalities and maintain the oil pipeline in a timely manner, ensuring the safety of the oil pipeline.

[0039] For example, the target operating condition identification model can be a trained LSTM (Long Short-Term Memory) model. Current monitoring data from multiple sensors at each monitoring node can be obtained from the SCADA system and input into the trained LSTM model to obtain corresponding change feature data. If the change feature data of the current monitoring data falls within the theoretical feature data range corresponding to the initial operating condition type, the current monitoring data is labeled. When all current monitoring data under the same initial operating condition type are labeled, the initial operating condition type is determined as the target operating condition type for all current monitoring data under that initial operating condition type. After determining the target operating condition type of the current monitoring data, the target operating condition type can be associated with the current monitoring data and recorded in a database. Simultaneously, it can be displayed to operators through a visual interface to promptly understand the current operating condition type in the oil pipeline.

[0040] It should be noted that after applying the target operating condition identification model to the operating condition identification of the current monitoring data, the technical solution provided in this embodiment can further check whether the actual operating condition type corresponding to the current monitoring data is the target operating condition type determined by the model by viewing system logs, pipeline operation records, equipment status, or other reliable information sources, thus clarifying which operating condition type actually occurred. The target operating condition type determined by the model is matched one by one with the actual operating condition type, and the matching accuracy is calculated. A confusion matrix can also be used to visually display the matching situation, including the number of correctly matched samples and the number of samples misclassified as other operating condition types. For mismatches, the possible causes of misjudgment are analyzed, such as insufficient model learning of features for certain special operating conditions, noise interference in the real-time sensor monitoring data, or unreasonable setting of theoretical feature data intervals. Based on the determined causes of misjudgment, the model structure or model parameters are adjusted, or the theoretical feature data interval of the operating condition type is adjusted to improve the accuracy of operating condition type identification.

[0041] Based on the above technical solutions, detailed information such as current monitoring data, predicted change characteristic data from the target operating condition identification model, theoretical characteristic data ranges, and the final target operating condition type can be recorded in the database for subsequent data analysis and traceability. Operating condition types should be regularly evaluated and analyzed to check the accuracy and reliability of operating condition type identification. If problems or inaccuracies are found, the causes can be analyzed, and the parameters of the operating condition identification model or the theoretical characteristic data range can be readjusted to continuously improve the accuracy of operating condition identification.

[0042] The technical solution provided in this embodiment acquires current monitoring data from multiple sensors at various monitoring nodes of the oil pipeline; inputs the current monitoring data into a trained target operating condition identification model to obtain the change feature data corresponding to the current monitoring data; and determines the initial operating condition type corresponding to the current monitoring data based on the change feature data. The target operating condition identification model is trained based on time-series monitoring data under different operating condition types and the theoretical feature data ranges corresponding to different operating condition types. The time-series monitoring data is acquired from multiple sensors. If the change feature data of all current monitoring data under the same initial operating condition type are within the theoretical feature data range of the initial operating condition type... Within the specified interval, the initial operating condition type is determined as the target operating condition type for all current monitoring data under the initial operating condition type. This solves the problems of low efficiency and poor accuracy in existing technologies that rely on manual analysis of oil pipeline operating condition types. It improves the convenience and timeliness of determining the operating condition type while also improving the accuracy of operating condition type identification. When the change characteristic data of any current monitoring data under the same initial operating condition type is not within the theoretical characteristic data range of the initial operating condition type, maintenance of the oil pipeline can be carried out. This improves the accuracy and real-time performance of oil pipeline leak detection and location, greatly reduces safety hazards caused by untimely determination of operating conditions, and ensures the safety of oil and gas transportation.

[0043] Example 2

[0044] Figure 2 This is a flowchart of a working condition identification model training method according to Embodiment 2 of the present invention. Based on the foregoing embodiments, a target working condition identification model can also be pre-trained. Specific implementation details can be found in the technical solution of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here.

[0045] like Figure 2 As shown, the method specifically includes the following steps:

[0046] S210. Acquire time-series monitoring data from multiple sensors at each monitoring node of the oil pipeline, and filter and process the multiple time-series monitoring data to obtain at least one associated monitoring data strongly correlated with each type of operating condition.

[0047] In this embodiment, corresponding monitoring data can be collected by sensors at various monitoring nodes along the oil pipeline and transmitted to a database or a SCADA (Supervisory Control and Data Acquisition) system. To train a model for identifying the operating conditions of the oil pipeline, monitoring data collected at various monitoring nodes along the pipeline at multiple times can be obtained from the database or SCADA system as time-series monitoring data. Time-series monitoring data includes, but is not limited to: pressure data (such as inlet and outlet pressures of the oil pipeline, inlet and outlet pressures of the oil pump, and the pressure difference before and after the outlet regulating valve), temperature data (such as inlet and outlet oil temperatures, and inlet and outlet oil temperatures of heating equipment), flow data (such as inlet and outlet flow rates of the oil pipeline), equipment status data (such as the operating status of the oil pump unit and the opening and closing status of valves), and liquid level data (such as the liquid level of the oil storage tank). To improve the accuracy of the model's operating condition identification, the time-series monitoring data can also be preprocessed (such as outlier handling and noise removal), and the preprocessed time-series monitoring data can be used as new time-series monitoring data.

[0048] Furthermore, each time-series monitoring data point can be analyzed for different operating conditions. Time-series monitoring data points with strong correlations to each operating condition type can be selected, while those with weak correlations to operating condition changes can be removed. This yields at least one time-series monitoring data point associated with each operating condition type, which serves as the associated monitoring data. For example, statistical methods such as analysis of variance can be used to select the feature most relevant to the operating condition type, identify which time-series monitoring data points match that feature, and obtain the associated monitoring data points for that operating condition type. The advantage of this approach is that it reduces the amount of time-series monitoring data, decreases data processing workload, and effectively improves model accuracy by extracting associated monitoring data points with strong correlations to operating condition changes.

[0049] S220. For each type of working condition, process each associated monitoring data associated with the working condition to obtain the feature data to be used corresponding to each associated monitoring data. Based on at least one feature data to be used, update the theoretical feature data interval corresponding to the working condition. Combine the updated theoretical feature data interval with each associated monitoring data to form a training sample.

[0050] The feature data to be used can be a feature representation that reflects the changes in the associated monitoring data. It should be noted that the initial theoretical feature data range corresponding to each operating condition type can be determined by technicians based on actual conditions or historical monitoring data, or determined based on operating condition experiments. It should also be noted that the method for updating the theoretical feature data range corresponding to each operating condition type is the same; the explanation can be given by taking the updating of the theoretical feature data range corresponding to any one of the operating condition types as an example.

[0051] In this embodiment, for a specific operating condition type, the strongly correlated monitoring data associated with that operating condition type can be preprocessed, such as through wavelet transform, sparse representation-based denoising, Fourier transform, or data cleaning. Then, feature extraction algorithms or models can be used to extract features from the processed correlated monitoring data to obtain the feature data to be used for each correlated monitoring data under that operating condition type. Furthermore, at least one feature data to be used can be compared with the theoretical feature data interval corresponding to that operating condition type, and the theoretical feature data interval corresponding to that operating condition type can be updated based on the comparison result. After updating, each correlated monitoring data under that operating condition type and the updated theoretical feature data interval can be combined to form a training sample. Correspondingly, multiple training samples can be obtained, each containing a correlated monitoring data and the theoretical feature data interval corresponding to the operating condition type associated with that correlated monitoring data.

[0052] To further improve model accuracy, in the process of processing each associated monitoring data related to the operating condition type to obtain the corresponding feature data, the following steps can be taken: For each associated monitoring data related to the operating condition type, the associated monitoring data is denoised to obtain the monitoring data to be processed; features are extracted from the monitoring data to obtain the corresponding feature data under different feature dimensions; the feature dimensions include at least statistical feature dimensions, time domain feature dimensions, frequency domain feature dimensions, and trend feature dimensions. Feature data under the statistical feature dimension is used to characterize the central tendency, dispersion, and overall distribution of the monitoring data to be processed. Feature data under the time domain feature dimension is used to characterize the range and trend of the monitoring data to be processed over time. Feature data under the frequency domain feature dimension is used to characterize the frequency components and energy distribution of the monitoring data to be processed. Feature data under the trend feature dimension is used to characterize the trend of the monitoring data to be processed over time, such as rising, falling, or remaining stable.

[0053] In this embodiment, for a specific piece of associated monitoring data, a denoising algorithm can be used to denoise the associated monitoring data, resulting in the processed associated monitoring data as the monitoring data to be processed. Optionally, the denoising algorithm can be a spatial domain denoising algorithm (such as mean filtering, median filtering, bilateral filtering), a frequency domain denoising algorithm (such as Fourier transform, wavelet transform), Kalman filtering, nonlocal mean (NLM) denoising, data cleaning methods (such as direct deletion, nearest neighbor-based denoising), deep learning-based denoising algorithms (such as neural networks, denoising autoencoders, Transformer models), etc. Furthermore, statistical functions can be used to extract feature data of the monitoring data to be processed in the statistical feature dimension. For example, the feature data in the statistical feature dimension includes, but is not limited to, mean (which can represent the average level of the data), variance (used to measure the dispersion of the data; the larger the variance, the greater the data fluctuation), standard deviation (the square root of the variance), skewness (measures the symmetry of the data distribution; a skewness of 0 indicates a symmetrical distribution), and kurtosis (measures the sharpness of the data distribution; a larger kurtosis indicates a sharper distribution). It is also possible to extract the time-domain features of the monitoring data to be processed, obtaining feature data in the time-domain feature dimension. For example, feature data in the time-domain feature dimension includes, but is not limited to, maximum value (representing the upper limit of data fluctuation), minimum value (representing the lower limit of data fluctuation), median, range, root mean square (RMS) value, zero-crossing rate, waveform factor (the ratio of RMS value to average value), and impulse factor (the ratio of peak value to average value). It is also possible to perform a Fourier transform on the monitoring data to be processed, converting it to the frequency domain, and extracting feature data in the frequency domain feature dimension. For example, feature data in the frequency domain feature dimension includes, but is not limited to, frequency variance (the degree of dispersion of data distribution), centroid frequency (the center frequency of data), root mean square frequency, frequency standard deviation, dominant frequency (which can represent the main vibration frequency of data), spectral energy, spectral entropy, and band energy. It is also possible to perform quantitative trend analysis on the monitoring data to be processed by fitting curves (such as linear fitting and polynomial fitting), obtaining feature data in the trend feature dimension. Optionally, feature data in the trend feature dimension includes, but is not limited to, slope, intercept, polynomial coefficients, and the rate of change of data at adjacent time points. For example, under a certain operating condition, the flow rate data shows a linear upward trend over time, and the characteristic data under the trend feature dimension is a slope of 0.5 cubic meters per hour.

[0054] By using the above feature extraction method, we can obtain the feature data to be used in different feature dimensions of the monitoring data to be processed, so as to use these feature data for subsequent model training, in order to achieve accurate identification and prediction of working condition types.

[0055] In this embodiment, there are at least two ways to denoise the associated monitoring data to obtain the monitoring data to be processed. In order to make the technical solution of the present invention clearer to those skilled in the art, the implementation of each way of determining the monitoring data to be processed will be described below.

[0056] One implementation method is as follows: based on the sparse signal reconstruction algorithm and the working condition feature dictionary, the associated monitoring data is processed to obtain at least two sparse coefficients; the at least two sparse coefficients are denoised to obtain the processed sparse coefficients; and the data is reconstructed based on the processed sparse coefficients and the working condition feature dictionary to obtain the monitoring data to be processed.

[0057] The sparse signal reconstruction algorithm can be an orthogonal matching pursuit (OMP) or basis pursuit (BP) algorithm. The operating condition feature dictionary can be a pre-constructed matrix containing multiple basis vectors, which can represent the signal characteristics under different operating conditions. For example, the operating condition feature dictionary can be a discrete cosine transform (DCT) dictionary, a wavelet dictionary, or a learned dictionary, such as one learned by the KSVD algorithm, to better adapt to the characteristics of the data. The sparsity coefficients represent the degree to which the input data is represented by the basis vectors in the operating condition feature dictionary.

[0058] Specifically, the associated monitoring data can be used as the input signal, and sparse coefficients can be solved using sparse signal reconstruction algorithms and a working condition feature dictionary. For example, the OMP algorithm can be used to progressively find the most relevant basis vectors from the residuals and update the sparse coefficients. Then, a sparse coefficient denoising method is used to threshold at least two sparse coefficients to remove noise coefficients, resulting in processed sparse coefficients. Optionally, the sparse coefficient denoising method can be a hard threshold denoising method or a soft threshold denoising method. Hard threshold denoising sets sparse coefficients with absolute values ​​less than a threshold to zero, retaining those with absolute values ​​greater than the threshold; soft threshold denoising shrinks sparse coefficients with absolute values ​​greater than the threshold. The threshold can be determined based on the distribution of the sparse coefficients or empirical rules. For example, by analyzing the histogram of the sparse coefficients, a suitable threshold can be selected so that most noise coefficients are removed while important features are retained. Furthermore, the processed sparse coefficients and the working condition feature dictionary can be used to reconstruct the monitoring data to be processed through a linear combination. The reconstruction formula can be: Monitoring data to be processed = Operating condition feature dictionary × Processed sparse coefficients. The advantage of this approach is that, through the operating condition feature dictionary, noisy data is sparsely represented within that dictionary. Then, the sparse coefficients are processed to remove noise components, and finally, the data is reconstructed using the sparse coefficients. This provides more reliable data support for subsequent operating condition analysis and improves the accuracy of operating condition determination.

[0059] For example, algorithms such as Orthogonal Matching Pursuit (OMP) and Basis Pursuit (BP) are used to sparsely represent strongly correlated monitoring data under a selected dictionary D (i.e., the working condition feature dictionary) to obtain sparse coefficients. Fixed thresholding and adaptive thresholding methods are used to threshold the sparse coefficients, removing those caused by noise. Matrix multiplication is then used to process the processed sparse coefficients and the dictionary matrix D to reconstruct the denoised monitoring data to be processed. For example, the noisy temperature data in the correlated monitoring data is: x_noisy=[25℃,33℃,17℃]; the solved sparse coefficient α is: α=[25,0,0]; the reconstructed monitoring data to be processed is: x_denoised=D×α=25×

[0060] [1,1,1] = [25℃,25℃,25℃].

[0061] Another approach is to perform wavelet decomposition on the associated monitoring data to obtain wavelet coefficients at different scales; denoise the high-frequency wavelet coefficients among at least two wavelet coefficients to obtain processed wavelet coefficients; and reconstruct the data based on the processed wavelet coefficients to obtain the monitoring data to be processed.

[0062] Wavelet coefficients are the results obtained by performing wavelet transform on the associated monitoring data. Wavelet coefficients can be used to represent the characteristic information of associated monitoring data at different scales and frequencies. Wavelet coefficients include high-frequency and low-frequency wavelet coefficients. High-frequency wavelet coefficients are used to represent local changes or detailed information in the associated monitoring data, reflecting rapid changes in the data over a shorter time scale. For example, in the associated monitoring data for a pump, high-frequency wavelet coefficients can represent local features such as pump vibration, impact, or noise. Low-frequency wavelet coefficients are used to represent the global trend or main characteristics of the associated monitoring data, reflecting changes over a longer time scale.

[0063] In this embodiment, wavelet basis functions are determined based on the characteristic attributes and analytical requirements of the associated monitoring data. For example, wavelet basis functions can be Haar wavelets, Daubechies wavelets, Symlet wavelets, Coiflet wavelets, Morlet wavelets, etc. Different wavelet basis functions have different characteristics. For instance, Haar wavelets are simple to compute and suitable for fast processing; Daubechies wavelets have good tight support and regularity, and can better preserve the local features of the signal. The number of wavelet decomposition levels is determined based on the characteristic attributes and noise level of the associated monitoring data. For example, the more noise there is, the more decomposition levels are needed for better noise separation. Based on the wavelet basis functions and the number of decomposition levels, wavelet decomposition is performed on the associated monitoring data, decomposing the data into low-frequency and high-frequency wavelet coefficients at different scales and locations.

[0064] In practical applications, high-frequency wavelet coefficients often contain noise information. For example, in the associated monitoring data of equipment, small fluctuations in high-frequency wavelet coefficients may represent background noise, while abrupt changes may indicate equipment fault signals, such as bearing wear or motor overload. Based on this, a threshold denoising method can be used to denoise at least two high-frequency wavelet coefficients to remove noise from the associated monitoring data. Optionally, the threshold denoising method includes soft threshold denoising or hard threshold denoising. Hard threshold denoising sets wavelet coefficients with absolute values ​​less than a threshold to zero, while wavelet coefficients with values ​​greater than the threshold remain unchanged. Soft threshold denoising sets wavelet coefficients with absolute values ​​less than the threshold to zero, and subtracts the threshold from wavelet coefficients with values ​​greater than the threshold. Further, using the denoised high-frequency and low-frequency wavelet coefficients, data reconstruction is performed through inverse wavelet transform to obtain the denoised associated monitoring data, which is the monitoring data to be processed. For example, multiplying the processed wavelet coefficients by the inverse matrix of the wavelet transform yields the monitoring data to be processed. By using the above noise reduction methods, useful information can be effectively extracted from the associated monitoring data, noise can be removed from the associated monitoring data, and the monitoring data to be processed can be obtained.

[0065] For example, using Haar wavelet decomposition and reconstruction, assume the associated monitoring data is a one-dimensional signal: [8,4,2,6]. Divide the associated monitoring data into two adjacent groups: [8,4] and [2,6]. Calculate the average (low-frequency wavelet coefficients) and difference (high-frequency wavelet coefficients) for each group as follows:

[0066] Group 1: Average value = (8+4) / 2 = 6, difference = 8-4 = 4.

[0067] Group 2: Average value = (2+6) / 2 = 4, difference = 2-6 = -4.

[0068] That is, the low-frequency wavelet coefficients are [6,4], and the high-frequency wavelet coefficients are [4,-4].

[0069] Restore the first group [6,4]. The first value is 6 + 4 / 2 = 8, and the second value is 6 - 4 / 2 = 4.

[0070] Restore the second group [4,-4]. The first value is 4+(-4) / 2=2, and the second value is 4-(-4) / 2=6.

[0071] The reconstructed monitoring data to be processed is: [8,4,2,6].

[0072] The technical solution provided in this embodiment obtains noise-free monitoring data by performing wavelet transform or denoising based on sparse representation on the associated monitoring data that is strongly correlated with the working condition type. This provides more reliable data support for subsequent working condition analysis and improves the accuracy of working condition determination.

[0073] In this embodiment, updating the theoretical feature data range corresponding to the working condition type based on at least one feature data to be used includes: if at least one feature data to be used is not within the theoretical feature data range corresponding to the working condition type, then the theoretical feature data range is updated.

[0074] Specifically, for each operating condition type, the feature data to be used corresponding to multiple associated monitoring data under that operating condition type can be compared with the theoretical feature data range corresponding to that operating condition type. For example, if the feature data to be used is within the theoretical feature data range, then the actual operating condition type corresponding to the associated monitoring data is considered to be that operating condition type. If the feature data to be used exceeds the theoretical feature data range, then the actual operating condition type corresponding to the associated monitoring data may not be that operating condition type. If the feature data to be used is not within the theoretical feature data range, the theoretical feature data range can be adjusted and optimized to ensure that the feature data to be used is within the updated theoretical feature data range.

[0075] For example, taking the inlet and outlet pressures of a pump and the operating condition type as normal pump operation, when the pressure difference between the inlet and outlet pressures in the characteristic data to be used does not fluctuate much (the pressure difference remains at around 0.5MPa), the operating condition type is normal operation; when the pressure difference drops or rises rapidly by 0.3MPa within one minute, the operating condition type is pump start-up and pump shutdown; when the pressure difference drops or rises by 0.25MPa, it exceeds the pressure difference range in the theoretical characteristic data, but the operating condition type is still pump operation. At this time, the pressure difference range in the theoretical characteristic data can be lowered, and the adjusted theoretical characteristic data is the updated theoretical characteristic data.

[0076] It should be noted that the feature data to be used includes feature data under multiple feature dimensions. In order to ensure the accuracy of the update of the theoretical feature data range, the feature data to be used and the theoretical feature data range can be compared under the same feature dimension. Based on the comparison results, the feature data range under that feature dimension in the theoretical feature data range can be adjusted and the theoretical feature data range can be updated.

[0077] The technical solution provided in this embodiment updates the theoretical feature data range based on the feature data to be used, which makes the theoretical feature data range closer to the actual data changes of the working conditions. The updated theoretical feature data range is then used for subsequent model training, which can effectively improve the accuracy of model working condition identification, facilitate timely and accurate detection of abnormal working conditions on oil pipelines, and take measures in advance to avoid failures.

[0078] S230. Divide all training samples to obtain a first sample set including a portion of the training samples and a second sample set including another portion of the training samples.

[0079] In this embodiment, after obtaining the training samples, a portion of the training samples can be selected from all the training samples according to a preset ratio to form a first sample set, which is used to train the initial working condition recognition model. Another portion of the training samples is used as a second sample set to train the target working condition recognition model. For example, the preset ratio can be 1:3, 3:1, or 3:2. Assuming there are 1000 training samples, if the preset ratio is 3:2, then the first sample set includes 600 training samples out of the 1000, and the second sample set includes the remaining 400 training samples.

[0080] S240. An initial working condition recognition model is obtained by training multiple training samples in the first sample set.

[0081] For each training sample, the associated monitoring data from the training sample can be input into the initial model, and the model outputs the predicted change feature data. Then, based on a preset loss function, the loss value between the predicted change feature data and the theoretical feature data range in the training sample can be calculated. For example, the loss function can be the mean squared error loss function, the cosine similarity loss function, or other loss functions. Based on the calculated loss value, optimization algorithms (such as gradient descent, Adam optimizer, RMSprop optimizer) are used to correct the model parameters in the initial model to minimize the loss value. After each training iteration, it can be checked whether the loss value is below a certain threshold; if it is below the threshold, the convergence condition is considered met; if it is above the threshold, the convergence condition is considered not met. When the convergence condition is met, or when the number of training iterations reaches a preset number, the initial model trained at this point can be used as the initial working condition recognition model, enabling the trained initial model to determine the change feature data of the associated monitoring data.

[0082] Optionally, the initial model can be an LSTM (Long Short-Term Memory) model. An LSTM model includes three gates (input gate, forget gate, and output gate) and a cell state. The advantage of choosing an LSTM model is that it allows the condition recognition model to handle long-term dependencies in the sequence well.

[0083] S250: Acquire historical monitoring data from multiple sensors at various monitoring nodes along the oil pipeline.

[0084] The amount of historical monitoring data is greater than that of time-series monitoring data.

[0085] Specifically, data collected by multiple sensors at various monitoring nodes along the oil pipeline can be obtained from the database or SCADA system as historical monitoring data, so as to filter out monitoring data under different operating conditions from a large amount of historical monitoring data.

[0086] S260. Based on the theoretical feature data intervals in each historical monitoring data and multiple training samples in the second sample set, and the feature data to be used corresponding to the associated monitoring data, train the initial working condition identification model to obtain the target working condition identification model.

[0087] In this embodiment, monitoring data for training the operating condition identification model can be selected from a large amount of time-series historical monitoring data corresponding to at least one monitoring node on the oil pipeline, based on the feature data to be used corresponding to the associated monitoring data in multiple training samples in the second sample set, thereby improving the richness of the training data. Then, based on the selected monitoring data and the second sample set, the initial operating condition identification model is trained together to obtain the target operating condition identification model, thereby improving the model accuracy.

[0088] To improve model accuracy, monitoring data with high similarity to the feature data to be used under different working conditions and the theoretical feature data range can be identified from historical monitoring data.

[0089] In this embodiment, an initial working condition identification model is trained based on the theoretical feature data intervals in multiple training samples of each historical monitoring data and the feature data to be used corresponding to the associated monitoring data, to obtain a target working condition identification model. This includes: for each historical monitoring data, preprocessing the historical monitoring data to obtain selectable monitoring data, and extracting features from the selectable monitoring data to obtain matchable feature data; determining the matchable matching degree between the matchable feature data and the theoretical feature data intervals in each training sample of the second sample set, and determining the application matching degree between the matchable feature data and the feature data to be used corresponding to the associated monitoring data in each training sample; based on the matchable matching degree and the application matching degree, determining at least one monitor data to be used from multiple selectable monitoring data, and determining the working condition type associated with each monitor data to be used; for each monitor data to be used, using the monitor data to be used and the theoretical feature data interval corresponding to its associated working condition type as a new training sample; and training the initial working condition identification model based on the second sample set and all new training samples to obtain the target working condition identification model.

[0090] The feature data to be matched includes feature data under at least the statistical feature dimension, the time domain feature dimension, the frequency domain feature dimension, and the trend feature dimension. The matching degree to be used is used to characterize the similarity between the feature data to be matched and the updated theoretical feature data range; the matching degree to be applied is used to characterize the similarity between the feature data to be matched and the feature data to be used; for example, the larger the matching degree value, the higher the similarity.

[0091] In this embodiment, for each historical monitoring data point, preprocessing can be performed, such as data cleaning (removing missing values ​​and outliers) and data normalization (unifying data from different ranges to the same scale, such as the 0-1 interval). The processed data is then used as the selected monitoring data to improve data quality and subsequent data processing efficiency. Furthermore, feature extraction can be performed on the selected monitoring data under different feature dimensions to obtain the matching feature data, similar to the method for determining the feature data to be used, and will not be elaborated here. Further, a similarity calculation method can be used to determine the similarity between the matching feature data and the theoretical feature data intervals in each training sample of the second sample set, obtaining the matching degree between the matching feature data and each theoretical feature data interval. Simultaneously, a similarity calculation method is used to determine the similarity between the matching feature data and the corresponding feature data to be used in each training sample, obtaining the application matching degree. Optionally, similarity calculation methods include, but are not limited to, Euclidean distance, Manhattan distance, Chebyshev distance, cosine similarity, Pearson correlation coefficient, Jaccard similarity coefficient, Mahalanobis distance, Hamming distance, KL divergence, Spearman rank correlation coefficient, etc. Further, the monitoring data corresponding to the matching feature data with a matching degree greater than the first similarity is used as the monitoring data to be used. The working condition type corresponding to the theoretical feature data interval corresponding to the matching degree is taken as the working condition type associated with the monitoring data to be used. Alternatively, the monitoring data corresponding to the matching feature data with a matching degree greater than the second similarity can be used as the monitoring data to be used, and the working condition type corresponding to the associated monitoring data with the associated matching degree is taken as the working condition type associated with the monitoring data to be used. Each monitoring data to be used and its associated working condition type's corresponding theoretical feature data interval are combined to form a new training sample. Based on the second sample set and all newly added training samples, the initial working condition identification model is trained to obtain the target working condition identification model, which enables the model to accurately predict the changing characteristics of monitoring data associated with each type of working condition.

[0092] To further improve model accuracy, after identifying the monitoring data to be used, further screening can be performed to remove data that, while partially matching certain features, have low overall reliability. For example, if one or more monitoring data only exhibit a few common features while others differ significantly, they should be excluded. The filtered monitoring data will then be used as the new monitoring data to be used. The training sample data, consisting of the monitoring data to be used, related monitoring data, and corresponding theoretical feature data intervals, provides rich and high-quality information for model training. This helps the model learn the feature data of different operating conditions, enabling it to accurately predict the feature data of the associated monitoring data for each operating condition type.

[0093] For example, massive amounts of historical monitoring data are collected from the SCADA system. This data can be stored in different formats, such as CSV and database tables. The retrieved historical monitoring data is preprocessed to obtain the monitoring data to be selected. Statistical characteristics of each data point to be selected are calculated, such as mean, variance, and standard deviation. For example, for a certain normal oil transportation operating condition, the mean of the pressure monitoring data is 50 Pascals, and the variance is 2 Pascals². When screening the data to be selected, the statistical characteristics of the data to be selected are compared with the characteristics of the associated monitoring data. If the difference in statistical characteristics is within the range of the associated characteristics (e.g., the difference in mean does not exceed 5%, and the difference in variance does not exceed 10%), then the data to be selected is considered to have commonalities with the associated monitoring data. The changing trend of the associated monitoring data for each operating condition in the data to be selected over time can also be analyzed by fitting curves (e.g., linear fitting, polynomial fitting), such as rising, falling, or stable. For example, under a certain operating condition, the pressure data shows a linear upward trend over time with a slope of 0.5 Pascals per minute (Pa / min). When screening candidate monitoring data, if the slope difference is within 0.1 Pascals per minute of the candidate feature data, the trend is considered to be common. Alternatively, when screening candidate monitoring data, check whether the feature value of each data point falls within the theoretical feature data range of the corresponding operating condition. For example, for a certain operating condition, the temperature range of the candidate monitoring data is 20-30 degrees Celsius. If the temperature feature value in the candidate monitoring data falls within this range, it is considered to meet the commonality requirement. Another approach is to analyze the correlation between the candidate monitoring data and related monitoring data. For example, there may be a positive or negative correlation between pressure and flow rate. When screening candidate monitoring data, check whether the correlation coefficient (such as the Pearson correlation coefficient) between different related monitoring data is consistent with or within a certain error range of the correlation coefficient in the candidate monitoring data. If so, it is considered to meet the commonality requirement. This method can be used to screen candidate monitoring data that share common patterns with related monitoring data, finding candidate monitoring data that meet all commonality conditions, and forming new training samples for model training.

[0094] In this embodiment, the initial working condition identification model is trained based on the second sample set and all newly added training samples to obtain the target working condition identification model. This includes: for each training sample in the second sample set and all newly added training samples, inputting the monitoring data in the training sample into the initial working condition identification model to obtain the estimated feature data; determining the error value based on the estimated feature data and the theoretical feature data range in the training sample; and correcting the model parameters in the initial working condition identification model based on the error value to obtain the target working condition identification model.

[0095] For each training sample, the monitoring data from the training sample can be input into the initial working condition identification model, and the model predicts the estimated feature data. Then, based on a preset loss function, the error value between the estimated feature data and the theoretical feature data range in the training sample can be calculated. Based on the calculated error value, optimization algorithms (such as gradient descent, Adam optimizer, RMSprop optimizer) are used to correct the model parameters in the initial working condition identification model to minimize the error value. When the loss value falls below a certain threshold, or when the number of training iterations reaches a preset number, the initial working condition identification model trained at this point can be used as the target working condition identification model.

[0096] To further improve model accuracy, after training the initial operating condition recognition model based on the second sample set and all newly added training samples to obtain the target operating condition recognition model, real-time monitoring data from multiple sensors at each monitoring node on the oil pipeline and the corresponding actual operating condition type can be obtained. For each real-time monitoring data, the real-time monitoring data is input into the target operating condition recognition model to obtain predicted feature data. Based on the predicted feature data, the predicted operating condition type corresponding to the real-time monitoring data is determined. Based on the predicted operating condition type and the actual operating condition type, the prediction accuracy is determined. If the prediction accuracy does not meet the preset conditions, counterexamples are determined based on real-time monitoring data where the predicted operating condition type and the actual operating condition type are inconsistent. The operation of training the target operating condition recognition model is then performed based on the counterexamples to update the target operating condition recognition model.

[0097] Prediction accuracy can be used to characterize the accuracy of the model's predictions of changes in real-time monitoring data under different operating conditions. For example, a higher prediction accuracy value indicates a more accurate prediction; conversely, a lower prediction accuracy value indicates a less accurate prediction. The preset condition includes at least a prediction accuracy value less than an accuracy threshold.

[0098] In this embodiment, real-time monitoring data from multiple sensors at various monitoring nodes along the oil pipeline, along with the corresponding actual operating condition types, can be acquired. The real-time monitoring data is used as input data to the target operating condition identification model, which outputs predicted feature data. Then, the predicted operating condition type corresponding to the real-time monitoring data is determined based on the predicted feature data. It can be determined whether the predicted operating condition type corresponds to the actual operating condition type. If they do, the target operating condition identification model is considered to have correctly predicted the operating condition type for that real-time monitoring data. The amount of data corresponding to the real-time monitoring data when they match can be calculated as the amount of correctly predicted data. The quotient between the amount of correctly predicted data and the total amount of real-time monitoring data is used as the prediction accuracy. Then, it is determined whether the prediction accuracy is less than an accuracy threshold. If it is less, a preset condition is considered met; if it is not less, the preset condition is not met. When the preset condition is not met, real-time monitoring data where the predicted operating condition type and the actual operating condition type are inconsistent can be used as monitoring data in the counterexample sample, and the theoretical feature data range corresponding to the monitoring data in the counterexample sample is determined. Accordingly, multiple counterexample samples are obtained. Furthermore, the training of the target working condition identification model is performed using counterexample samples to obtain the trained target working condition identification model, thereby improving the accuracy of the model in predicting the change characteristics of monitoring data under the working condition type, so that the model can accurately identify the working condition type of the monitoring data.

[0099] For example, if the prediction accuracy of the target working condition identification model is lower than an accuracy threshold (e.g., an accuracy threshold of 80%), the real-time monitoring data that the target working condition identification model misclassifies is identified, and the theoretical feature data range corresponding to these real-time monitoring data is analyzed to obtain counterexamples. The collected counterexamples can be integrated with the training samples previously used to train the target working condition identification model to ensure that the new sample set contains enough samples of different working condition types to improve the model's generalization ability. The samples in the integrated sample set can also be preprocessed again, including data cleaning and normalization, to retrain the target working condition identification model based on the samples in the new sample set. The structure of the target working condition identification model (e.g., adjusting the number of layers, number of neurons) or hyperparameters (e.g., learning rate, batch size) can be adjusted to obtain a well-trained target working condition identification model. The retrained target working condition identification model can also be applied to real-time monitoring data in the SCADA system for validation to ensure model performance. If the model performance still does not meet expectations, the process of updating the theoretical feature data range, collecting counterexamples, and retraining the model can continue, forming an iterative optimization loop until the model can accurately determine the working condition and achieve the expected accuracy and reliability. It should be noted that if the prediction accuracy is below the accuracy threshold, the theoretical feature data range for the working condition type can be corrected, and the target working condition identification model can be retrained to correct the model's erroneous judgments and improve the accuracy of the working condition judgment.

[0100] In this embodiment, based on real-time monitoring data where the predicted operating condition type and the actual operating condition type are inconsistent, counterexample samples are determined, including: determining the correct operating condition type corresponding to the real-time monitoring data where the predicted operating condition type and the actual operating condition type are inconsistent; and using the real-time monitoring data and the theoretical characteristic data range corresponding to the correct operating condition type as counterexample samples.

[0101] Specifically, real-time monitoring data where the predicted and actual operating conditions are inconsistent can be analyzed to determine the correct operating condition type. These real-time monitoring data and their corresponding theoretical characteristic data ranges for the correct operating condition types are then combined to form a negative example sample. The training of the target operating condition recognition model is then continued based on this negative example sample until the expected result is achieved, thereby improving the model's accuracy in recognizing operating conditions.

[0102] The technical solution provided in this embodiment analyzes the time-series monitoring data of multiple sensors at each monitoring node of the oil pipeline to obtain at least one associated monitoring data strongly correlated with each operating condition type. Then, each associated monitoring data associated with the operating condition type is processed to obtain the feature data to be used corresponding to each associated monitoring data. Based on at least one feature data to be used, the theoretical feature data interval corresponding to the operating condition type is updated so that the theoretical feature data interval can accurately represent the changing characteristics of the monitoring data under the corresponding operating condition type. Furthermore, the updated theoretical feature data intervals are combined with each associated monitoring data to form a training sample. An initial operating condition identification model is trained based on multiple training samples in the first sample set. Based on each historical monitoring data and the theoretical feature data intervals and the corresponding feature data to be used in the multiple training samples in the second sample set, the initial operating condition identification model is trained to obtain the target operating condition identification model. This enables the trained operating condition identification model to efficiently and accurately analyze the changing feature data of the current monitoring data of multiple sensors at the monitoring node, thereby improving the accuracy of operating condition type identification. When the changing feature data of any current monitoring data under the same initial operating condition type is not within the theoretical feature data interval under the initial operating condition type, maintenance of the oil pipeline is carried out. This improves the accuracy and real-time performance of oil pipeline leak detection and location, greatly reduces the safety hazards caused by untimely determination of operating conditions, and ensures the safety of oil and gas transportation.

[0103] Example 3

[0104] Figure 3 This is a schematic diagram of a working condition identification device according to Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a current monitoring data acquisition module 310, an initial operating condition type determination module 320, and a target operating condition type determination module 330.

[0105] The system includes a current monitoring data acquisition module 310, used to acquire current monitoring data from multiple sensors at each monitoring node of the oil pipeline; an initial operating condition type determination module 320, used to input each current monitoring data into a trained target operating condition identification model to obtain the change feature data corresponding to the current monitoring data, and determine the initial operating condition type corresponding to the current monitoring data based on the change feature data; wherein the target operating condition identification model is trained based on time-series monitoring data under different operating condition types and theoretical feature data intervals corresponding to different operating condition types; the time-series monitoring data is collected by multiple sensors; and a target operating condition type determination module 330, used to determine the initial operating condition type as the target operating condition type for all current monitoring data under the same initial operating condition type if the change feature data of all current monitoring data under the same initial operating condition type are within the theoretical feature data interval of the initial operating condition type.

[0106] The technical solution of this embodiment acquires current monitoring data from multiple sensors at various monitoring nodes of the oil pipeline; inputs the current monitoring data into a trained target operating condition identification model to obtain the change feature data corresponding to the current monitoring data; and determines the initial operating condition type corresponding to the current monitoring data based on the change feature data. The target operating condition identification model is trained based on time-series monitoring data under different operating condition types and the theoretical feature data ranges corresponding to different operating condition types. The time-series monitoring data is acquired from multiple sensors. If the change feature data of all current monitoring data under the same initial operating condition type are within the theoretical feature data range of the initial operating condition type... Within this system, the initial operating condition type is determined as the target operating condition type for all current monitoring data under the initial operating condition type. This solves the problems of low efficiency and poor accuracy in existing technologies that rely on manual analysis of oil pipeline operating condition types. It improves the convenience and timeliness of determining the operating condition type while also improving the accuracy of operating condition type identification. When the change characteristic data of any current monitoring data under the same initial operating condition type is not within the theoretical characteristic data range of the initial operating condition type, maintenance of the oil pipeline can be carried out. This improves the accuracy and real-time performance of oil pipeline leak detection and location, greatly reduces safety hazards caused by untimely determination of operating conditions, and ensures the safety of oil and gas transportation.

[0107] Optionally, based on the above-mentioned device, the device may further include a target working condition recognition model training module, which is used to train a target working condition recognition model.

[0108] The target working condition recognition model training module includes:

[0109] The filtering unit is used to acquire time-series monitoring data from multiple sensors at each monitoring node of the oil pipeline, and to filter the multiple time-series monitoring data to obtain at least one associated monitoring data that is strongly correlated with each type of operating condition.

[0110] The training sample determination unit is used to process each of the associated monitoring data associated with each of the working conditions for each working condition type, to obtain the feature data to be used corresponding to each of the associated monitoring data, and to update the theoretical feature data interval corresponding to the working condition type based on at least one of the feature data to be used, and to form a training sample by combining the updated theoretical feature data interval with each of the associated monitoring data.

[0111] A partitioning unit is used to partition all the training samples to obtain a first sample set including a portion of the training samples and a second sample set including another portion of the training samples.

[0112] The initial working condition identification model training unit is used to train an initial working condition identification model based on multiple training samples in the first sample set.

[0113] The historical monitoring data determination unit is used to acquire historical monitoring data from multiple sensors at each monitoring node on the oil pipeline; wherein the amount of historical monitoring data is greater than the amount of time-series monitoring data.

[0114] The target working condition identification model determination unit is used to train the initial working condition identification model based on each of the historical monitoring data and the theoretical feature data intervals and the feature data to be used corresponding to the associated monitoring data in the multiple training samples in the second sample set, so as to obtain the target working condition identification model.

[0115] Optionally, the training sample determination unit includes:

[0116] The monitoring data to be processed determination unit is used to perform noise reduction processing on each of the associated monitoring data associated with the working condition type to obtain the monitoring data to be processed.

[0117] The feature data determination unit is used to extract features from the monitoring data to be processed, and obtain the feature data to be processed corresponding to the monitoring data under different feature dimensions.

[0118] The feature dimensions include at least statistical feature dimensions, time-domain feature dimensions, frequency-domain feature dimensions, and trend feature dimensions.

[0119] Optionally, the unit for determining the monitoring data to be processed includes:

[0120] The sparse coefficient determination unit is used to process the associated monitoring data based on the sparse signal reconstruction algorithm and the working condition feature dictionary to obtain at least two sparse coefficients.

[0121] The first denoising unit is used to denoise at least two of the sparse coefficients to obtain the sparse coefficients after processing.

[0122] The first reconstruction unit is used to reconstruct the data based on the processed sparse coefficients and the working condition feature dictionary to obtain the monitoring data to be processed.

[0123] Optionally, the unit for determining the monitoring data to be processed includes:

[0124] The wavelet coefficient determination unit is used to perform wavelet decomposition processing on the associated monitoring data to obtain wavelet coefficients at different scales.

[0125] The second denoising unit is used to denoise the high-frequency wavelet coefficients among at least two of the wavelet coefficients to obtain the processed wavelet coefficients.

[0126] The second reconstruction unit is used to reconstruct the data based on the processed wavelet coefficients to obtain the monitoring data to be processed.

[0127] Optionally, the training sample determination unit includes:

[0128] The theoretical feature data interval update unit is used to update the theoretical feature data interval if at least one of the feature data to be used is not within the theoretical feature data interval corresponding to the working condition type.

[0129] Optionally, the target working condition identification model determination unit includes:

[0130] The feature data to be matched determination unit is used to preprocess the historical monitoring data for each historical monitoring data to obtain the monitoring data to be selected, and to extract features from the monitoring data to be selected to obtain the feature data to be matched.

[0131] The matching degree determination unit is used to determine the matching degree to be used between the feature data to be matched and the theoretical feature data interval in each training sample of the second sample set, and to determine the matching degree to be applied between the feature data to be matched and the feature data to be used corresponding to the associated monitoring data in each training sample.

[0132] The monitoring data to be used determination unit is used to determine at least one monitoring data to be used from a plurality of monitoring data to be selected based on the matching degree to be used and the matching degree to be applied, and to determine the working condition type associated with each monitoring data to be used;

[0133] The determining unit is used to, for each monitoring data to be used, take the monitoring data to be used and the theoretical feature data interval corresponding to its associated working condition type as a new training sample.

[0134] The model training unit is used to train the initial working condition recognition model based on the second sample set and all the newly added training samples to obtain the target working condition recognition model.

[0135] Optional, model training units include:

[0136] The predictive feature data determination unit is used to input the monitoring data in the training samples into the initial working condition recognition model for each training sample in the second sample set and all the newly added training samples to obtain the predictive feature data.

[0137] An error value determination unit is used to determine an error value based on the estimated feature data and the range of theoretical feature data in the training samples.

[0138] The parameter correction unit is used to correct the model parameters in the initial working condition identification model based on the error value, so as to obtain the target working condition identification model.

[0139] Optionally, the device includes:

[0140] The real-time monitoring data determination unit is used to acquire real-time monitoring data from multiple sensors at each monitoring node on the oil pipeline and the actual operating condition type corresponding to the real-time monitoring data.

[0141] The predictive feature data determination unit is used to input the real-time monitoring data into the target working condition identification model for each of the real-time monitoring data to obtain predictive feature data;

[0142] The predicted operating condition type determination unit is used to determine the predicted operating condition type corresponding to the real-time monitoring data based on the predicted feature data.

[0143] The prediction accuracy determination unit is used to determine the prediction accuracy based on the predicted operating condition type corresponding to the real-time monitoring data and the actual operating condition type.

[0144] The counterexample sample determination unit is used to determine counterexample samples based on real-time monitoring data showing that the predicted working condition type and the actual working condition type are inconsistent when the prediction accuracy does not meet the preset conditions. The unit then performs the operation of training the target working condition recognition model based on the counterexample samples and updates the target working condition recognition model.

[0145] The preset conditions include at least the prediction accuracy being less than an accuracy threshold.

[0146] Optionally, the counterexample sample determination unit includes:

[0147] The correct operating condition type determination unit is used to determine the correct operating condition type corresponding to real-time monitoring data where the predicted operating condition type and the actual operating condition type are inconsistent.

[0148] The counterexample sample determination subunit is used to take the real-time monitoring data and the theoretical characteristic data range corresponding to the correct working condition type as counterexample samples.

[0149] The working condition identification device provided in the embodiments of the present invention can execute the working condition identification method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.

[0150] Example 4

[0151] Figure 4 This is a schematic diagram of the structure of an electronic device implementing the working condition identification method of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0152] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory 12 or a random access memory 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the read-only memory 12 or loaded from storage unit 18 into the random access memory 13. The random access memory 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, read-only memory 12, and random access memory 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0153] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0154] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the condition recognition method.

[0155] In some embodiments, the operating condition identification method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via read-only memory 12 and / or communication unit 19. When the computer program is loaded into random access memory 13 and executed by processor 11, one or more steps of the operating condition identification method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the operating condition identification method by any other suitable means (e.g., by means of firmware).

[0156] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.

[0157] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0158] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0159] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0160] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0161] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0162] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication unit 19, or installed from storage unit 18, or installed from read-only memory 12. When the computer program is executed by processor 11, it performs the functions defined in the methods of the embodiments of the present invention.

[0163] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the working condition identification method as provided in any embodiment of this invention.

[0164] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0165] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0166] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for identifying operating conditions, characterized in that, include: Acquire current monitoring data from multiple sensors at various monitoring nodes along the oil pipeline; For each current monitoring data point, the current monitoring data is input into a trained target operating condition identification model to obtain the change feature data corresponding to the current monitoring data. Based on the change feature data, the initial operating condition type corresponding to the current monitoring data is determined. The target operating condition identification model is trained based on time-series monitoring data under different operating condition types and theoretical feature data intervals corresponding to different operating condition types. The time-series monitoring data is collected from multiple sensors. If the change characteristic data of all the current monitoring data under the same initial operating condition type are all within the theoretical characteristic data range of the initial operating condition type, then the initial operating condition type is determined as the target operating condition type of all the current monitoring data under the initial operating condition type.

2. The method according to claim 1, characterized in that, The method includes: The target working condition recognition model is obtained through training, where, The training yields a target working condition recognition model, including: Time-series monitoring data from multiple sensors at each monitoring node of the oil pipeline are acquired, and the multiple time-series monitoring data are filtered to obtain at least one associated monitoring data strongly correlated with each type of operating condition. For each of the operating conditions, each of the associated monitoring data associated with the operating condition is processed to obtain the feature data to be used corresponding to each of the associated monitoring data. Based on at least one of the feature data to be used, the theoretical feature data interval corresponding to the operating condition is updated. The updated theoretical feature data interval is combined with each of the associated monitoring data to form a training sample. All the training samples are divided to obtain a first sample set including a portion of the training samples and a second sample set including another portion of the training samples. An initial working condition identification model is obtained by training multiple training samples in the first sample set; Historical monitoring data from multiple sensors at each monitoring node along the oil pipeline are acquired; wherein the amount of historical monitoring data is greater than the amount of time-series monitoring data. Based on each of the historical monitoring data and the theoretical feature data intervals and the feature data to be used corresponding to the associated monitoring data in the multiple training samples in the second sample set, the initial working condition identification model is trained to obtain the target working condition identification model.

3. The method according to claim 2, characterized in that, The step of processing each of the associated monitoring data related to the operating condition type to obtain the feature data to be used corresponding to each of the associated monitoring data includes: For each of the associated monitoring data related to the operating condition type, the associated monitoring data is denoised to obtain the monitoring data to be processed. Feature extraction is performed on the monitoring data to be processed to obtain the feature data to be used corresponding to the monitoring data to be processed under different feature dimensions; The feature dimensions include at least statistical feature dimensions, time-domain feature dimensions, frequency-domain feature dimensions, and trend feature dimensions.

4. The method according to claim 3, characterized in that, The denoising process of the associated monitoring data to obtain the monitoring data to be processed includes: Based on the sparse signal reconstruction algorithm and the working condition feature dictionary, the associated monitoring data is processed to obtain at least two sparse coefficients; At least two of the sparse coefficients are denoised to obtain the sparse coefficients after denoising. Based on the processed sparse coefficients and the operating condition feature dictionary, the data is reconstructed to obtain the monitoring data to be processed.

5. The method according to claim 3, characterized in that, The denoising process of the associated monitoring data to obtain the monitoring data to be processed includes: The associated monitoring data is subjected to wavelet decomposition to obtain wavelet coefficients at different scales; Denoising is performed on the high-frequency wavelet coefficients of at least two of the wavelet coefficients to obtain the processed wavelet coefficients. Data reconstruction is performed based on the processed wavelet coefficients to obtain the monitoring data to be processed.

6. The method according to claim 2, characterized in that, The step of updating the theoretical feature data range corresponding to the operating condition type based on at least one of the feature data to be used includes: If at least one of the specified feature data to be used is not within the theoretical feature data range corresponding to the operating condition type, then the theoretical feature data range shall be updated.

7. The method according to claim 2, characterized in that, The initial working condition identification model is trained based on each of the historical monitoring data and the theoretical feature data intervals and the corresponding feature data to be used in the training samples of the second sample set, to obtain the target working condition identification model, including: For each historical monitoring data, the historical monitoring data is preprocessed to obtain the monitoring data to be selected, and the monitoring data to be selected is feature extracted to obtain the feature data to be matched. Determine the degree of matching to be used between the feature data to be matched and the theoretical feature data intervals in each training sample of the second sample set, and determine the degree of matching to be applied between the feature data to be matched and the feature data to be used corresponding to the associated monitoring data in each training sample. Based on the matching degree to be used and the matching degree to be applied, at least one monitoring data to be used is determined from a plurality of monitoring data to be selected, and the working condition type associated with each monitoring data to be used is determined; For each monitoring data to be used, the monitoring data to be used and the theoretical feature data range corresponding to the associated working condition type are taken as a new training sample; The initial working condition identification model is trained based on the second sample set and all the newly added training samples to obtain the target working condition identification model.

8. The method according to claim 7, characterized in that, The step of training the initial working condition identification model based on the second sample set and all the newly added training samples to obtain the target working condition identification model includes: For each training sample in the second sample set and all the newly added training samples, the monitoring data in the training sample is input into the initial working condition identification model to obtain the predicted feature data. Based on the estimated feature data and the range of theoretical feature data in the training samples, the error value is determined; The model parameters in the initial working condition identification model are corrected based on the error value to obtain the target working condition identification model.

9. The method according to claim 7, characterized in that, After training the initial working condition recognition model based on the second sample set and all the newly added training samples to obtain the target working condition recognition model, the method includes: Acquire real-time monitoring data from multiple sensors at each monitoring node on the oil pipeline, as well as the actual operating condition type corresponding to the real-time monitoring data; For each of the real-time monitoring data, the real-time monitoring data is input into the target working condition identification model to obtain predicted feature data; Based on the predicted feature data, the predicted operating condition type corresponding to the real-time monitoring data is determined; The prediction accuracy is determined based on the predicted operating condition type corresponding to the real-time monitoring data and the actual operating condition type. When the prediction accuracy does not meet the preset conditions, based on real-time monitoring data showing that the predicted working condition type and the actual working condition type are inconsistent, a counterexample sample is determined, and the operation of training the target working condition recognition model is performed based on the counterexample sample to update the target working condition recognition model. The preset conditions include at least the prediction accuracy being less than an accuracy threshold.

10. The method according to claim 9, characterized in that, The determination of counterexample samples based on real-time monitoring data showing inconsistencies between the predicted and actual operating conditions includes: Determine the correct operating condition type corresponding to real-time monitoring data where the predicted operating condition type and the actual operating condition type are inconsistent; The real-time monitoring data and the corresponding theoretical characteristic data range of the correct operating condition type are used as counterexample samples.