Submersible oil pump anomaly detection model construction method and submersible oil pump anomaly detection method

By using the combination of LSTM-ED model and temporal attention layer in the abnormal detection of electric submersible pumps, combined with the adaptive threshold determination model, the problem of abnormal detection of electric submersible pumps in the existing technology is solved, and the problem of abnormal detection of electric submersible pumps under harsh conditions is achieved. High accuracy and robust detection results.

CN117743997BActive Publication Date: 2024-10-01CHINA UNIV OF PETROLEUM (BEIJING)
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311684386.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-08
Publication Date
2024-10-01
Estimated Expiration
2043-12-08

AI Technical Summary

Technical Problem

Existing anomaly detection methods for electric submersible pumps are difficult to accurately detect anomalies, especially in non-identically distributed and extremely unbalanced data environments, and fail to effectively utilize timing correlation information.

Method used

A submersible electric pump monitoring signal reconstruction model based on the LSTM-ED model is used. By adding a temporal attention layer between the encoding layer and the decoding layer, the model eliminates the dependence on complex mathematical modeling and empirical sample labeling, and builds an adaptive Threshold determination model for anomaly detection of electric submersible pumps.

Benefits of technology

It improves the accuracy and robustness of abnormality detection of electric submersible pumps, enables complete and accurate abnormality detection under harsh conditions, and reduces the impact of disturbances on detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117743997B_ABST
    Figure CN117743997B_ABST
Patent Text Reader

Abstract

The present application discloses a submersible electric pump abnormality detection model construction method and a submersible electric pump abnormality detection method, and the submersible electric pump abnormality detection model construction method includes: constructing a data set according to a submersible electric pump monitoring data sample; dividing the data set into a training set and a verification set; using the training set and the verification set to train a first preset model to obtain a submersible electric pump monitoring signal reconstruction model; inputting the verification set into the submersible electric pump monitoring signal reconstruction model to obtain a first reconstruction signal corresponding to the verification set; using the verification set and the first reconstruction signal to train a second preset model to obtain a reconstruction error prediction model; determining the reconstruction error standard deviation under normal working conditions according to the verification set and the first reconstruction signal, and constructing a threshold determination model in combination with the reconstruction error prediction model; constructing a submersible electric pump abnormality detection model according to the submersible electric pump monitoring signal reconstruction model and the threshold determination model. Thus, the accuracy of submersible electric pump abnormality detection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of submersible electric pump abnormality detection, and specifically to a submersible electric pump abnormality detection model construction method and a submersible electric pump abnormality detection method. Background Art

[0002] Submersible electric pump units are a complex rodless lifting system that is mainly driven by a submersible motor and consists of a multi-stage centrifugal pump. They are widely used in offshore oil and gas production. They have the advantages of high head, large displacement, and ease of use. However, compared with conventional mechanical equipment, submersible electric pump units usually operate in deep-sea wells, where harsh operating conditions such as high temperature, high pressure, corrosive sand-containing mixtures, and continuous operation may cause production interruptions. Therefore, it is particularly important to detect abnormalities in submersible electric pump units.

[0003] At present, the label information used in the existing submersible pump anomaly detection methods is often very difficult to obtain in reality, because the log information recorded on site is recorded after the equipment has obvious anomalies, while in fact the abnormal symptoms of the equipment may have manifested themselves long before the anomaly occurs. In addition, the abnormal samples of submersible pumps have the characteristics of non-identical distribution and extreme imbalance, so it is difficult for the supervised anomaly monitoring method to have good robustness and generalization in the anomaly detection of submersible pumps. Moreover, the time series correlation information, which contains rich process information and is also an important natural attribute of the industrial process data sequence, has not been utilized in the existing submersible pump anomaly detection methods, and conventional unsupervised methods or distance-based methods are difficult to apply to the unlabeled multivariate nonlinear strong time series correlation submersible pump anomaly detection.

[0004] It can be seen that the existing submersible electric pumps have the technical problem that abnormalities are difficult to detect accurately. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method for constructing a submersible pump abnormality detection model and a method for detecting submersible pump abnormality, so as to solve the technical problem in the prior art that it is difficult to accurately detect abnormalities in submersible pumps.

[0006] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a method for constructing a submersible electric pump abnormality detection model, comprising:

[0007] Constructing a data set according to the acquired submersible pump monitoring data samples, wherein each submersible pump monitoring data sample includes a preset number of monitoring parameters;

[0008] The data set is divided into a training set and a validation set, wherein the training set and the validation set include normal working condition data;

[0009] The first preset model is trained using the training set and the validation set to obtain a submersible electric pump monitoring signal reconstruction model, wherein the first preset model is obtained by adding a time attention layer between the encoding layer and the decoding layer of the LSTM-ED model;

[0010] Inputting the verification set into the submersible pump monitoring signal reconstruction model to obtain a first reconstructed signal corresponding to the verification set;

[0011] Using the validation set and the first reconstructed signal, training a second preset model to obtain a reconstruction error prediction model;

[0012] Determine the reconstruction error standard deviation under normal working conditions based on the validation set and the first reconstructed signal, and build a threshold determination model in combination with the reconstruction error prediction model;

[0013] A submersible pump anomaly detection model is constructed based on the submersible pump monitoring signal reconstruction model and the threshold determination model.

[0014] In the embodiment of the present application, the second preset model is trained using the validation set and the first reconstructed signal to obtain a reconstruction error prediction model, including:

[0015] Calculate a first reconstruction error average value according to the verification set and the first reconstruction signal;

[0016] The second preset model is trained using the average value of the validation set and the first reconstruction error average value to obtain a reconstruction error prediction model.

[0017] In the embodiment of the present application, the reconstruction error standard deviation under normal conditions is determined according to the validation set and the first reconstructed signal, and a threshold determination model is constructed in combination with the reconstruction error prediction model, including:

[0018] Determine a reconstruction error standard deviation under normal conditions according to the validation set and the first reconstructed signal;

[0019] According to the preset parameter η, a threshold determination model is constructed by a preset formula, wherein the preset formula includes:

[0020] λ(x)=f(x)+ηβ valid

[0021] In the formula, λ(x) represents the threshold determination model, x represents the submersible pump abnormality sample to be detected, f(x) represents the reconstruction error prediction model, η represents the preset parameter, β valid represents the standard deviation of the reconstruction error under normal conditions.

[0022] In the embodiment of the present application, a submersible pump abnormality detection model is constructed according to a submersible pump monitoring signal reconstruction model and a threshold determination model, including:

[0023] The output of the submersible pump monitoring signal reconstruction model is compared with the output of the threshold determination model and then outputted to obtain a submersible pump abnormality detection model.

[0024] A second aspect of the present application provides a method for detecting abnormality of a submersible electric pump, comprising:

[0025] Obtain abnormal samples of submersible electric pumps to be tested;

[0026] The submersible pump abnormality samples to be detected are input into a submersible pump abnormality detection model to obtain corresponding abnormality labels, wherein the submersible pump abnormality detection model is obtained by the submersible pump abnormality detection model construction method according to any one of the first aspects.

[0027] In the embodiment of the present application, the submersible pump abnormality to be detected sample is input into the submersible pump abnormality detection model to obtain the corresponding abnormality label, including:

[0028] Inputting the submersible pump abnormality sample to be detected into the submersible pump monitoring signal reconstruction model to obtain a second reconstructed signal;

[0029] Calculate a second reconstruction error average value according to the submersible pump abnormality to be detected sample and the second reconstruction signal;

[0030] Input the submersible pump abnormality samples to be detected into the threshold determination model to obtain the threshold;

[0031] When the second reconstruction error average is greater than a threshold, the abnormal label is determined to be abnormal;

[0032] When the second reconstruction error average value is less than or equal to the threshold, the abnormal label is determined to be normal.

[0033] In the embodiment of the present application, the submersible pump abnormality detection method further includes:

[0034] According to the abnormal samples to be detected of the submersible pump and the abnormal labels, the F value of each monitoring parameter in the abnormal samples to be detected of the submersible pump is calculated;

[0035] The correlation between each monitoring parameter and the abnormality of the submersible electric pump is determined according to the F value.

[0036] The third aspect of the present application provides a device for constructing a submersible electric pump abnormality detection model, comprising:

[0037] a memory configured to store instructions; and

[0038] The processor is configured to call instructions from a memory and implement the method for constructing a submersible electric pump abnormality detection model according to any one of the first aspects when executing the instructions.

[0039] A fourth aspect of the present application provides a submersible electric pump abnormality detection device, comprising:

[0040] a memory configured to store instructions; and

[0041] The processor is configured to call instructions from a memory and implement the submersible electric pump abnormality detection method according to any one of the second aspects when executing the instructions.

[0042] The fifth aspect of the present application provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the submersible electric pump abnormality detection model construction method according to any one of the first aspects, or the submersible electric pump abnormality detection method according to any one of the second aspects.

[0043] Through the above technical scheme, a submersible electric pump monitoring signal reconstruction model is constructed using the first preset model based on the LSTM-ED model, which eliminates the model's dependence on complex mathematical modeling, empirical sample annotation and feature engineering, and ensures the model's unsupervised learning ability; at the same time, a time attention layer is added on the basis of the LSTM-ED model to enhance the model's ability to model long time series, so that the submersible electric pump monitoring signal reconstruction model can quickly and directly reconstruct the monitoring data signal; by constructing a threshold determination model that can adaptively adjust the threshold according to actual operating data, the impact of disturbances on anomaly detection is effectively reduced; a submersible electric pump anomaly detection model is constructed based on the submersible electric pump monitoring signal reconstruction model and the threshold determination model, and the submersible electric pump anomaly detection model can be used to perform complete and accurate anomaly detection on the submersible electric pump, thereby improving the accuracy of submersible electric pump anomaly detection.

[0044] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:

[0046] Figure 1 A schematic diagram of a process of constructing a submersible electric pump abnormality detection model according to an embodiment of the present application is shown;

[0047] Figure 2 A schematic diagram of a flow chart of a submersible electric pump abnormality detection method according to an embodiment of the present application is schematically shown;

[0048] Figure 3 A schematic diagram of the structure of a device for constructing an abnormality detection model for a submersible electric pump according to an embodiment of the present application is shown;

[0049] Figure 4 The structural diagram of a submersible electric pump abnormality detection device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0051] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0052] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0053] Figure 1 The following is a schematic diagram showing a flow chart of a method for constructing a submersible pump abnormality detection model according to an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a method for constructing a submersible electric pump abnormality detection model, which may include the following steps.

[0054] Step 110: constructing a data set according to the acquired submersible pump monitoring data samples, wherein each submersible pump monitoring data sample includes a preset number of monitoring parameters.

[0055] It should be noted that the abnormal symptoms of the submersible pump are very likely to have appeared before the abnormality occurs, resulting in the monitoring data provided by the field engineer often being abnormally delayed. Therefore, the data within the first three days of the abnormality detected in the abnormal log may be abnormal, which makes it difficult to obtain monitoring data with accurate abnormal labels in actual engineering. Therefore, the embodiment of the present application adopts an unsupervised learning method to construct the model. The data set used to train the model does not contain labels, that is, the submersible pump monitoring data sample does not contain abnormal labels, but only contains a plurality of preset monitoring parameters. The plurality of monitoring parameters are obtained by different types of sensors, including but not limited to pump inlet pressure, nozzle opening, wellhead temperature, motor power, etc. The preset number can be set according to actual needs, and the embodiment of the present application does not limit this. Different types of sensors record multiple monitoring parameter data from the submersible pump, and transmit these monitoring parameter data to the abnormal log, and then obtain the submersible pump monitoring data sample from the abnormal log, wherein each submersible pump monitoring data sample includes a preset number of monitoring parameters, and a data set is constructed according to the submersible pump monitoring data sample to provide a data basis for the subsequent construction of the submersible pump abnormality detection model.

[0056] Step 120: Divide the data set into a training set and a validation set, wherein the training set and the validation set include normal operating condition data.

[0057] It should be noted that the submersible pump monitoring data samples obtained by the present application have hysteresis and do not contain abnormal labels, so the embodiments of the present application use normal operating data to train the submersible pump abnormality detection model. Since the data within 3 days before the abnormality is detected in the abnormality log may be abnormal, in order to ensure that the data set is all normal operating data, the data 12 to 3 days before the abnormality is detected in the abnormality log is taken as the submersible pump monitoring data samples. When the model detects the submersible pump abnormality samples to be detected in actual engineering operations, if the reconstruction error between the input and output of the model is large, indicating that the input sample data is not the normal operating data familiar to the model, the abnormal label of the input sample data can be determined as abnormal, thereby ensuring the learning ability of the model under unlabeled data and improving the accuracy of submersible pump abnormality detection.

[0058] Specifically, the data set constructed in the above steps is divided into a training set and a validation set in chronological order. Usually, the training set is used to train the parameters of the model, and the validation set is used to adjust the parameters and evaluate the performance of the model. The division ratio of the training set and the validation set will affect the training and verification process of the model. The appropriate division ratio helps to avoid overfitting and evaluate the generalization ability of the model. In an embodiment of the present application, a training set and a validation set division ratio of 7:3 is selected, that is, the first 70% of the data is divided into a training set in chronological order, and the last 30% of the data is divided into a validation set.

[0059] By dividing the model into training sets and validation sets, we can evaluate the performance of the model on unseen data, that is, the generalization ability of the model. The performance evaluation on the validation set can more realistically reflect the performance of the model in practical applications, avoid overfitting, and thus select the model that best fits the data distribution.

[0060] Step 130: Use the training set and the validation set to train the first preset model to obtain a submersible electric pump monitoring signal reconstruction model, wherein the first preset model is obtained by adding a time attention layer between the encoding layer and the decoding layer of the LSTM-ED model.

[0061] It should be noted that since the submersible pump monitoring data sample contains multiple types of monitoring parameters, and the dimensions of each monitoring parameter are different, if the model is trained directly using the data set, it will be difficult for the model to achieve the expected effect. Therefore, in order to eliminate the impact of the dimension, the embodiment of the present application needs to normalize the data set before using the training set and the verification set to train the first preset model, so that different monitoring parameters can be unified to the same scale, thereby eliminating the magnitude differences between the monitoring parameters, which is conducive to accelerating the convergence speed of the model.

[0062] Normalization processing usually uses the Z-score method. Taking the training set as an example, the Z-score method is expressed by the following formula:

[0063]

[0064] Where, T train represents the total number of samples in the training set, n represents the total number of monitoring parameters in each dataset sample, represents the i-th monitoring parameter at the t-th time in the training set, that is, the i-th monitoring parameter of the t-th training set sample, It means to find the mean of all training set samples under the i-th monitoring parameter. It means to find the standard deviation of all training set samples under the i-th monitoring parameter. After normalizing the training set, and Normalize the validation set.

[0065] It should be noted that since the submersible pump monitoring data samples are multivariate time series, and anomalies almost always exist in continuous time segments, in order to extract abnormal data hidden in the time series, the embodiment of the present application also needs to use a sliding time window to perform overlapping sampling on the data set before using the training set and the validation set to train the first preset model.

[0066] Sliding time window is a method of segmenting time series data. It divides time series data into fixed-size windows or segments. These windows move along the time series at a certain time step, so each window overlaps with the adjacent windows. For example, if there is a continuous time series data, the moving window size is m, the first window contains the first m data points of the time series, and then slides backward at a certain step size. The overlapping data becomes the first part of the next window, and so on, until the entire time series is covered. Overlapping sampling of a data set using a sliding time window means that when extracting samples from a time series, there are overlapping parts between sampling windows, and each sampling window contains part of the data of the previous window and / or the next window. The purpose of this is to avoid information loss and better capture the continuity and correlation between data.

[0067] Specifically, taking the training set as an example, the moving window size is selected as L and the moving step is selected as S. The training set is overlapped and sampled by the sliding time window. The training set after overlapping sampling can be expressed by the following formula:

[0068]

[0069] Where, X train represents the training set after normalization and overlapping sampling, Represents X train The sample at the dth moment, that is, X train The dth sample in N train Represents X train The total number of samples in T train represents the total number of samples in the original training set, L represents the moving window size, and S represents the moving stride.

[0070] Similarly, the same size moving window and moving stride are used for overlapping sampling of the validation set. The validation set after overlapping sampling can be expressed by the following formula:

[0071]

[0072] Where, X valid represents the validation set after normalization and overlapping sampling, Represents X valid The sample at the kth moment, N valid Represents X valid The total number of samples, T valid represents the total number of samples in the original validation set, L represents the moving window size, and S represents the moving stride.

[0073] After normalizing and overlapping sampling the training set and the validation set, the first preset model is trained using the normalized and overlapping sampled training set and the validation set to obtain a submersible pump monitoring signal reconstruction model, which lays the foundation for the subsequent use of the submersible pump monitoring signal reconstruction model to build a submersible pump anomaly detection model. Among them, the first preset model is obtained by adding a time attention layer between the encoding layer and the decoding layer of the LSTM-ED (Long Short-Term Memory-Encoder Decoder, with a long short-term memory with an encoding and decoding structure) network model.

[0074] LSTM-ED is a deep learning model that combines the LSTM network and the encoder-decoder structure. It mainly includes an encoder-decoder structure consisting of an encoding layer and a decoding layer with LSTM as the basic unit, and has strong correlation analysis capabilities for long-term time series. The encoder-decoder structure is a popular unsupervised deep learning method, in which the main task of the encoding layer is to receive the input sequence and learn a hidden state vector with compression and distribution representation from the input sequence. This vector contains the information summary of the input sequence. At this stage, the information in the input sequence is encoded into a vector representation of a fixed length; then the decoding layer receives the hidden state vector generated by the encoding layer, and uses these hidden state vectors to restore and reconstruct the original data to generate a new sequence. By constructing a submersible pump monitoring signal reconstruction model based on the first preset model of LSTM-ED, the model's dependence on complex mathematical modeling, empirical sample annotation, and feature engineering can be eliminated, ensuring the unsupervised learning ability of the submersible pump monitoring signal reconstruction model.

[0075] It should be noted that if the decoding layer directly reconstructs the original input data based on the hidden state vector generated by the encoding layer, then when the time window of the input data is too large, it will become very difficult for the decoding layer to directly mine and recover the original data from the hidden state vector, resulting in a large deviation between the original data and the reconstructed signal. Therefore, the embodiment of the present application uses the temporal attention mechanism to adaptively weight the hidden state vector of the encoding layer that is most relevant to the reconstruction of the current time step, that is, to add a temporal attention layer between the encoding layer and the decoding layer of the LSTM-ED model to obtain a TA-LSTM-ED (Temporal Attention-Long Short-Term Memory-Encoder Decoder, combining temporal attention with the long short-term memory of the encoding and decoding structure) network model, thereby enhancing the modeling ability of the submersible pump monitoring signal reconstruction model for long time series.

[0076] In the process of training the first preset model using the training set and the validation set, a suitable loss function and optimizer can be matched. In the embodiment of the present application, MSE (Mean Squared Error) is used as the loss function, and the BP (Backpropagation) algorithm is matched with the Adam (Adaptive Moment Estimation) optimizer for gradient update, so that the first preset model is continuously optimized during the training process to improve the model's ability to reconstruct the submersible electric pump monitoring signal.

[0077] Step 140: input the verification set into the submersible pump monitoring signal reconstruction model to obtain a first reconstructed signal corresponding to the verification set.

[0078] Specifically, the verification set is input into the submersible pump monitoring signal reconstruction model trained in the above embodiment, and the first reconstructed signal corresponding to the verification set can be obtained. Combining the first reconstructed signal is conducive to building a reconstruction error prediction model and a threshold determination model.

[0079] Step 150: Use the validation set and the first reconstructed signal to train a second preset model to obtain a reconstruction error prediction model.

[0080] It is understandable that the training set and the validation set used to train the submersible pump monitoring signal reconstruction model in the embodiment of the present application are both normal operating data, so the submersible pump monitoring signal reconstruction model can extract better relationships from submersible pump monitoring data with multivariate nonlinear long-term time series correlation, and for submersible pump monitoring data under normal operating conditions, the reconstruction error between the original monitoring signal and the reconstructed signal calculated and obtained by the model will tend to be stable. When an abnormality occurs, since the model does not have the ability to analyze abnormal operating data, a large reconstruction error will occur between the original monitoring signal and the reconstructed signal. When the reconstruction error is greater than a preset threshold, it can be determined that the submersible pump monitoring data is abnormal.

[0081] However, even for the same submersible electric pump unit, its working environment and load conditions also fluctuate in real time. If a fixed threshold is used to detect abnormalities in the submersible electric pump, many false alarms will inevitably be generated. Therefore, in order to improve the accuracy of abnormality detection of the submersible electric pump as much as possible, the embodiment of the present application needs to construct a threshold determination model based on the validation set, the first reconstructed signal and the standard deviation of the reconstruction error under normal working conditions. The threshold determination model can be continuously updated and output a suitable threshold value along with the fluctuation of the input data. The threshold value is used to determine the abnormal label of the abnormal monitoring data of the submersible electric pump, which can improve the robustness and accuracy of abnormality detection of the submersible electric pump.

[0082] Since the threshold value obtained by the threshold determination model is used to judge the reconstruction error calculated based on the input and output of the submersible pump monitoring signal reconstruction model, it is necessary to first predict the reconstruction error based on the input data, and then add a fixed value to the predicted reconstruction error to obtain the threshold determination model.

[0083] Specifically, before predicting the reconstruction error according to the input data, it is first necessary to train the second preset model using the validation set and the first reconstructed signal to obtain a reconstruction error prediction model. The second preset model is a regression model based on XGB (Extreme Gradient Boosting). XGB is an emerging and efficient integrated model. Its base learner is CART (Classification and Regression Tree). It achieves efficient performance through optimized data structure and algorithm, can process large-scale data sets, and is widely used in tasks such as classification, regression and sorting. The reconstruction error prediction model is constructed using the second preset model based on the XGB regression model, which can predict the reconstruction error between the input and output data of the submersible pump monitoring signal reconstruction model, thereby facilitating the construction of a threshold determination model.

[0084] In the embodiment of the present application, step 150 includes:

[0085] Step 151: Calculate a first reconstruction error average value according to the verification set and the first reconstructed signal;

[0086] Step 152: Use the average value of the validation set and the first reconstruction error average value to train the second preset model to obtain a reconstruction error prediction model.

[0087] Specifically, according to the verification set and the first reconstructed signal, the first reconstruction error is calculated by the following formula:

[0088]

[0089] In the formula, Represents X valid The first reconstruction error calculated for the kth sample data, X valid represents the validation set after normalization and overlapping sampling, L represents the moving window size, and n represents the total number of monitoring parameters in each data set sample. Represents X valid The i-th monitoring parameter value of the k-th sample under the j-th moving window in, Indicates that X valid The i-th monitoring parameter value output after the k-th sample under the j-th moving window is input into the submersible pump monitoring signal reconstruction model is the first reconstructed signal, N validRepresents X valid The total number of samples.

[0090] The first reconstruction error average is calculated by the following formula:

[0091]

[0092] In the formula, represents the first reconstruction error mean, Represents X valid The first reconstruction error of the first sample in X valid represents the validation set after normalization and overlapping sampling, Represents X valid The first reconstruction error of the second sample in valid Represents X valid The total number of samples, Represents X valid N valid The first reconstruction error of samples.

[0093] The average value of the validation set is calculated according to the validation set, and the reconstruction error prediction model is trained using the average value of the validation set and the first reconstruction error average value. This can ensure that the reconstruction error prediction model can have a more accurate prediction of the reconstruction error of normal operating data, thereby avoiding large deviations when predicting the reconstruction error of abnormal operating data, so as to accurately detect the abnormal operating data of the submersible electric pump.

[0094] Step 160: Determine the reconstruction error standard deviation under normal conditions based on the validation set and the first reconstructed signal, and build a threshold determination model in combination with the reconstruction error prediction model.

[0095] It should be noted that since the reconstruction error prediction model is used to predict the reconstruction error of normal operating data, and the actual operating data may have disturbances, in order to form an allowable fluctuation space for the reconstruction error of normal operating data and reduce the impact of disturbances on anomaly detection, after predicting the reconstruction error of normal operating data, a suitable constant is added to the predicted reconstruction error to expand the allowable range of reconstruction error of normal operating data.

[0096] In the embodiment of the present application, step 160 includes:

[0097] Step 161: determining a reconstruction error standard deviation under normal working conditions according to the verification set and the first reconstructed signal;

[0098] Step 162: According to the preset parameter η, a threshold determination model is constructed by a preset formula, wherein the preset formula includes:

[0099] λ(x)=f(x)+ηβ valid

[0100] In the formula, λ(x) represents the threshold determination model, x represents the submersible pump abnormality sample to be detected, f(x) represents the reconstruction error prediction model, η represents the preset parameter, β valid represents the standard deviation of the reconstruction error under normal conditions.

[0101] Specifically, according to the validation set and the first reconstructed signal, a first reconstruction error average is calculated, and according to the first reconstruction error average, the reconstruction error standard deviation of the validation set is determined by the following formula, that is, the reconstruction error standard deviation under normal conditions:

[0102]

[0103] In the formula, β valid represents the standard deviation of reconstruction error under normal conditions, N valid Represents X valid The total number of samples, X valid represents the validation set after normalization and overlapping sampling, Represents X valid The first reconstruction error of the kth sample in is, represents the first reconstruction error mean.

[0104] The preset parameter η is introduced, and a threshold determination model is constructed by a preset formula, wherein the preset formula includes:

[0105] λ(x)=f(x)+ηβ valid

[0106] Where λ(x) represents the threshold determination model, x represents the submersible pump abnormality sample to be detected, f(x) represents the reconstruction error prediction model, and η represents the preset parameter.

[0107] By constructing a threshold determination model based on the reconstruction error prediction model, preset parameters and the reconstruction error standard deviation under normal operating conditions, it is possible to form an allowable fluctuation space for the reconstruction error of normal operating condition data, reduce the impact of disturbances on anomaly detection, and thus improve the accuracy of submersible electric pump anomaly detection.

[0108] Step 170: construct a submersible pump abnormality detection model based on the submersible pump monitoring signal reconstruction model and the threshold determination model.

[0109] It can be understood that the submersible electric pump monitoring signal reconstruction model provided in the above embodiment can reconstruct the signal of the submersible electric pump abnormality samples to be detected, so as to calculate the reconstruction error based on the reconstructed signal and the samples to be detected. The threshold determination model is used to determine a suitable threshold. The abnormality detection of the submersible electric pump can be completed based on the threshold and the reconstruction error. That is, a submersible electric pump abnormality detection model can be constructed based on the submersible electric pump monitoring signal reconstruction model and the threshold determination model. The submersible electric pump abnormality detection model can be used to perform complete and accurate abnormality detection on the submersible electric pump, thereby improving the accuracy of submersible electric pump abnormality detection.

[0110] The submersible electric pump anomaly detection model provided in the embodiment of the present application constructs a submersible electric pump monitoring signal reconstruction model by utilizing a first preset model based on the LSTM-ED model, thereby eliminating the model's dependence on complex mathematical modeling, empirical sample labeling, and feature engineering, and ensuring the model's unsupervised learning capability; at the same time, a time attention layer is added on the basis of the LSTM-ED model, thereby enhancing the model's ability to model long time series, so that the submersible electric pump monitoring signal reconstruction model can quickly and directly reconstruct the monitoring data signal; by constructing a threshold determination model that can adaptively adjust the threshold according to actual operating data, the impact of disturbances on anomaly detection is effectively reduced; a submersible electric pump anomaly detection model is constructed based on the submersible electric pump monitoring signal reconstruction model and the threshold determination model, and the submersible electric pump anomaly detection model can be used to perform complete and accurate anomaly detection on the submersible electric pump, thereby improving the accuracy of submersible electric pump anomaly detection.

[0111] Figure 2 The following is a schematic diagram showing a flow chart of a method for detecting abnormality of a submersible electric pump according to an embodiment of the present application. Figure 2 As shown, an embodiment of the present application provides a method for detecting abnormality of a submersible electric pump, which may include the following steps.

[0112] Step 210: Obtaining a submersible electric pump abnormality sample to be detected;

[0113] Step 220: Input the submersible pump abnormality samples to be detected into the submersible pump abnormality detection model to obtain the corresponding abnormality label, wherein the submersible pump abnormality detection model is obtained by the submersible pump abnormality detection model construction method according to any one of the first aspects.

[0114] It is understandable that the abnormal symptoms of the submersible electric pump are very likely to have appeared before the abnormality occurs, which means that the data within 3 days before the abnormality is detected in the abnormality log may be abnormal. Therefore, the embodiment of the present application selects the data within 3 days before the abnormality is detected in the abnormality log as the submersible electric pump abnormality to be detected sample. Specifically, different types of sensors record multiple monitoring parameter data from the submersible electric pump, and transmit these monitoring parameter data to the abnormality log, and then obtain the submersible electric pump to be detected data sample from the abnormality log. The submersible electric pump abnormality to be detected sample is input into the submersible electric pump abnormality detection model provided in the above embodiment, and the corresponding abnormal label with high accuracy can be obtained.

[0115] In the embodiment of the present application, the submersible pump abnormality to be detected sample is input into the submersible pump abnormality detection model to obtain the corresponding abnormality label, including:

[0116] Inputting the submersible pump abnormality sample to be detected into the submersible pump monitoring signal reconstruction model to obtain a second reconstructed signal;

[0117] Calculate a second reconstruction error average value according to the submersible pump abnormality to be detected sample and the second reconstruction signal;

[0118] Input the submersible pump abnormality samples to be detected into the threshold determination model to obtain the threshold;

[0119] When the second reconstruction error average is greater than a threshold, the abnormal label is determined to be abnormal;

[0120] When the second reconstruction error average value is less than or equal to the threshold, the abnormal label is determined to be normal.

[0121] It can be understood that the submersible electric pump monitoring signal reconstruction model is trained using normal operating data. Therefore, when the submersible electric pump monitoring signal reconstruction model is used to reconstruct the abnormal operating data, because the model does not have the ability to learn the abnormal operating data, there will be a large reconstruction error between the reconstructed signal and the original operating data; and the threshold determination model is also trained using normal operating data. Therefore, the threshold obtained by the threshold determination model is essentially an upper limit value of the reconstruction error calculated for the normal operating data. When the reconstruction error is less than or equal to the threshold, it indicates that the operating data being tested is normal. When the reconstruction error is greater than the threshold, it indicates that the operating data being tested is abnormal.

[0122] Specifically, the submersible electric pump abnormality samples to be detected are input into the submersible electric pump monitoring signal reconstruction model to obtain a second reconstructed signal, the second reconstruction error average value is calculated according to the submersible electric pump abnormality samples to be detected and the second reconstructed signal, the submersible electric pump abnormality samples to be detected are input into the threshold determination model to obtain the threshold, the obtained threshold is compared with the second reconstruction error average value, and when the second reconstruction error average value is greater than the threshold value, the abnormal label is determined to be abnormal; when the second reconstruction error average value is less than or equal to the threshold value, the abnormal label is determined to be normal, thereby completing the complete and accurate abnormality detection of the submersible electric pump and improving the accuracy of abnormality detection of the submersible electric pump.

[0123] In the embodiment of the present application, the submersible pump abnormality detection method further includes:

[0124] According to the abnormal samples to be detected of the submersible pump and the abnormal labels, the F value of each monitoring parameter in the abnormal samples to be detected of the submersible pump is calculated;

[0125] The correlation between each monitoring parameter and the abnormality of the submersible electric pump is determined according to the F value.

[0126] It is understandable that the submersible pump to be detected sample contains multiple different types of monitoring parameter data recorded by different types of sensors, and different monitoring parameters have different correlations and influences on the submersible pump abnormality. The greater the correlation with the submersible pump abnormality, the greater the influence of the monitoring parameter on the submersible pump abnormality. Therefore, the embodiment of the present application calculates the F value of each monitoring parameter in the submersible pump abnormality to be detected sample, and determines the correlation between each monitoring parameter and the submersible pump abnormality according to the F value, so as to provide effective guidance for subsequent expert decision-making.

[0127] Specifically, 1 represents an abnormal label as abnormal, and 0 represents an abnormal label as normal. The F value of each monitoring parameter in the submersible pump abnormality to be detected sample is calculated by the following formula:

[0128]

[0129] In the formula, F i represents the F value of the i-th monitoring parameter, p represents the value of the abnormal label, which can be 0 or 1, and m p represents the number of samples with abnormal label p, represents the sample mean with abnormal label p, represents the mean of all samples, Y pq represents the data value of the qth sample with abnormal label p, and M represents the number of all samples. It should be noted that each variable in the above formula represents each variable corresponding to the i-th monitoring parameter in the submersible pump abnormality to be detected sample.

[0130] Calculate the F value of each monitoring parameter in each submersible pump abnormality sample to be detected, and sort each F value by size. The higher the ranking, the higher the correlation between the monitoring parameter and the submersible pump abnormality. Analyze the characteristics of the top-ranked monitoring parameters, and give possible impacts or risk assessments on abnormal changes in these key parameters, thereby providing experts with clear abnormal situation reports and decision-making guidance, helping them to better understand the causes and impacts of submersible pump abnormalities, and formulate corresponding solutions and action plans to ensure the safe and efficient implementation of submersible pump projects.

[0131] The submersible electric pump anomaly detection method provided in the embodiment of the present application obtains submersible electric pump anomaly samples to be detected and inputs the submersible electric pump anomaly samples to be detected into a submersible electric pump anomaly detection model, thereby obtaining an abnormal label with high accuracy.

[0132] Figure 3 The following is a schematic diagram showing a structure of a device for constructing an abnormality detection model for a submersible electric pump according to an embodiment of the present application. Figure 3 As shown, an embodiment of the present application provides a device for constructing a submersible electric pump abnormality detection model, the device comprising:

[0133] Memory 310, configured to store instructions; and

[0134] The processor 320 is configured to call instructions from the memory 310 and implement the submersible electric pump abnormality detection model construction method according to any one of the first aspects when executing the instructions.

[0135] Specifically, in the embodiment of the present application, the processor 320 may be configured to:

[0136] Constructing a data set according to the acquired submersible pump monitoring data samples, wherein each submersible pump monitoring data sample includes a preset number of monitoring parameters;

[0137] The data set is divided into a training set and a validation set, wherein the training set and the validation set include normal working condition data;

[0138] The first preset model is trained using the training set and the validation set to obtain a submersible electric pump monitoring signal reconstruction model, wherein the first preset model is obtained by adding a time attention layer between the encoding layer and the decoding layer of the LSTM-ED model;

[0139] Inputting the verification set into the submersible pump monitoring signal reconstruction model to obtain a first reconstructed signal corresponding to the verification set;

[0140] Using the validation set and the first reconstructed signal, training a second preset model to obtain a reconstruction error prediction model;

[0141] Determine the reconstruction error standard deviation under normal working conditions based on the validation set and the first reconstructed signal, and build a threshold determination model in combination with the reconstruction error prediction model;

[0142] A submersible pump anomaly detection model is constructed based on the submersible pump monitoring signal reconstruction model and the threshold determination model.

[0143] It can be understood that the device for constructing a submersible electric pump abnormality detection model provided in the embodiment of the present application can implement each process of the method for constructing a submersible electric pump abnormality detection model in the above embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0144] Figure 4 The structure diagram of a submersible electric pump abnormality detection device according to an embodiment of the present application is schematically shown. Figure 4 As shown, an embodiment of the present application provides a submersible electric pump abnormality detection device, the device comprising:

[0145] Memory 410, configured to store instructions; and

[0146] The processor 420 is configured to call instructions from the memory 410 and implement the submersible electric pump abnormality detection method according to any one of the second aspects when executing the instructions.

[0147] Specifically, in the embodiment of the present application, the processor 420 may be configured to:

[0148] Obtain abnormal samples of submersible electric pumps to be tested;

[0149] The submersible pump abnormality samples to be detected are input into a submersible pump abnormality detection model to obtain corresponding abnormality labels, wherein the submersible pump abnormality detection model is obtained by the submersible pump abnormality detection model construction method according to any one of the first aspects.

[0150] It can be understood that the submersible electric pump abnormality detection device provided in the embodiment of the present application can implement each process of the submersible electric pump abnormality detection method in the above embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0151] An embodiment of the present application also provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the submersible electric pump abnormality detection model construction method according to any one of the first aspects, or the submersible electric pump abnormality detection method according to any one of the second aspects, and can achieve the same technical effect. To avoid repetition, they are not repeated here.

[0152] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0153] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0154] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0156] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0157] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0158] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0159] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0160] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for constructing a submersible pump abnormality detection model, characterized in that: include: Constructing a data set according to the acquired submersible pump monitoring data samples, wherein each of the submersible pump monitoring data samples includes a preset number of monitoring parameters; Dividing the data set into a training set and a validation set, wherein the training set and the validation set include normal operating condition data; Using the training set and the validation set to train a first preset model, a submersible electric pump monitoring signal reconstruction model is obtained, wherein the first preset model is obtained by adding a time attention layer between the encoding layer and the decoding layer of the LSTM-ED model; Inputting the verification set into the submersible pump monitoring signal reconstruction model to obtain a first reconstructed signal corresponding to the verification set; Using the verification set and the first reconstructed signal, training a second preset model to obtain a reconstruction error prediction model; Determine a reconstruction error standard deviation under normal operating conditions according to the validation set and the first reconstructed signal, and construct a threshold determination model in combination with the reconstruction error prediction model; Constructing the submersible pump abnormality detection model according to the submersible pump monitoring signal reconstruction model and the threshold determination model; The using the verification set and the first reconstructed signal to train a second preset model to obtain a reconstruction error prediction model includes: Calculating a first reconstruction error average value according to the verification set and the first reconstructed signal; The second preset model is trained using the average value of the validation set and the first reconstruction error average value to obtain the reconstruction error prediction model, wherein the second preset model is a regression model based on extreme gradient boosting.

2. The method for constructing a submersible pump abnormality detection model according to claim 1, characterized in that: The step of determining the reconstruction error standard deviation under normal operating conditions according to the verification set and the first reconstructed signal, and constructing a threshold determination model in combination with the reconstruction error prediction model, includes: Determining a reconstruction error standard deviation under the normal operating condition according to the verification set and the first reconstructed signal; According to the preset parameter η, the threshold determination model is constructed by a preset formula, wherein the preset formula includes: λ(x)=f(x)+ηβ valid Wherein, λ(x) represents the threshold determination model, x represents the submersible pump abnormality to be detected sample, f(x) represents the reconstruction error prediction model, η represents the preset parameter, β valid represents the standard deviation of the reconstruction error under the normal working condition.

3. The method for constructing a submersible pump abnormality detection model according to claim 1, characterized in that: The submersible pump abnormality detection model is constructed according to the submersible pump monitoring signal reconstruction model and the threshold determination model, including: The output of the submersible pump monitoring signal reconstruction model is compared with the output of the threshold determination model and then outputted to obtain the submersible pump abnormality detection model.

4. A method for detecting abnormality of a submersible electric pump, characterized in that: include: Obtain abnormal samples of submersible electric pumps to be tested; The submersible electric pump abnormality sample to be detected is input into the submersible electric pump abnormality detection model to obtain a corresponding abnormal label, wherein the submersible electric pump abnormality detection model is obtained by the submersible electric pump abnormality detection model construction method according to any one of claims 1 to 3.

5. The method for detecting abnormality of a submersible electric pump according to claim 4, characterized in that: The step of inputting the submersible pump abnormality sample to be detected into the submersible pump abnormality detection model to obtain a corresponding abnormality label includes: Inputting the submersible pump abnormality sample to be detected into the submersible pump monitoring signal reconstruction model to obtain a second reconstructed signal; Calculating a second reconstruction error average value according to the submersible pump abnormality to be detected sample and the second reconstruction signal; Inputting the submersible pump abnormality to-be-detected sample into the threshold determination model to obtain a threshold; When the second reconstruction error average value is greater than the threshold, determining that the abnormal label is abnormal; When the second reconstruction error average value is less than or equal to the threshold, the abnormal label is determined to be normal.

6. The method for detecting abnormality of a submersible electric pump according to claim 4, characterized in that: The submersible electric pump abnormality detection method further comprises: Calculate the F value of each monitoring parameter in the submersible pump abnormality to be detected sample according to the submersible pump abnormality to be detected sample and the abnormality label; The correlation between each monitoring parameter and the abnormality of the submersible electric pump is determined according to the F value.

7. A device for constructing a submersible pump abnormality detection model, characterized in that: include: a memory configured to store instructions; as well as A processor is configured to call the instruction from the memory and implement the method for building a submersible electric pump abnormality detection model according to any one of claims 1 to 3 when executing the instruction.

8. A submersible electric pump abnormality detection device, characterized in that: include: a memory configured to store instructions; as well as The processor is configured to call the instruction from the memory and implement the submersible electric pump abnormality detection method according to any one of claims 4 to 6 when executing the instruction.

9. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions for causing the machine to execute the submersible electric pump abnormality detection model construction method according to any one of claims 1 to 3, or the submersible electric pump abnormality detection method according to any one of claims 4 to 6.

Citation Information

Patent Citations

  • Abnormal driving behavior online identification method based on Encoder-Decoder attention network and LSTM

    CN114548216A

  • GCN-LSTM and attention mechanism-based anomaly detection method and system

    CN115168443A

  • Data center abnormal state detection method based on LSTM auto-encoder

    CN115391306A

  • TransformerLSTM-based ship anomaly detection method

    CN116955945A

  • Long short-term memory anomaly detection for multi-sensor equipment monitoring

    US20200104639A1