A method for improving the accuracy of oil production machine fault diagnosis

By designing a non-square convolution kernel to construct a deep learning network model of the residual block, the problem of insufficient generalization ability of dynamometer feature extraction in the traditional method is solved, a more efficient fault diagnosis of the oil production machine is achieved, and the monitoring of equipment conditions is enhanced. and diagnostic control capabilities.

CN114596445BActive Publication Date: 2024-09-10NANJING FUDAO OIL & GAS INTELLIGENT CONTROL TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210080811.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-24
Publication Date
2024-09-10
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

The traditional convolutional neural network-based extraction machine dynamometer feature extraction method has insufficient generalization capabilities and cannot effectively represent the dynamometer data, resulting in a high diagnostic false alarm rate. In addition, larger convolution kernels will cause the network parameters to surge, increasing Training time and storage resource consumption.

Method used

Design non-square convolution kernels to construct residual blocks, and use residual blocks of different convolution kernels to be alternately stacked to build a deep learning network model to extract more effective dynamometer features and improve diagnostic accuracy through feature extraction and fault diagnosis.

Benefits of technology

Without increasing the cost of a large amount of training time and storage resource consumption, it improves the accuracy of fault diagnosis of oil production machines and enhances the management and control capabilities of equipment working condition monitoring and diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114596445B
    Figure CN114596445B
Patent Text Reader

Abstract

The present invention discloses a method for improving the accuracy of oil production machine fault diagnosis. The method designs a non-square convolution kernel to construct a residual block, and uses residual blocks of different convolution kernels to build a deep learning network model by alternately stacking them. The built model is trained, and the trained model is used to extract features from the dynamometer diagram generated during the oil production process. A working condition feature vector retrieval library is established based on the extracted feature vector, and the similarity is calculated with the feature vector of real-time collected data. Then, based on the calculation result, the most similar fault type is returned or the fault library is updated. The convolution structure designed by the method can extract more effective dynamometer diagram features, so as to improve the diagnostic accuracy without increasing a large amount of training time cost and storage resource consumption, and enhance the management and control capabilities of oil production machine equipment working condition monitoring and diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of oil production machine fault diagnosis, and specifically, to a method for improving the accuracy of fault diagnosis by establishing a customized deep learning model, extracting dynamometer diagram features, and performing fault diagnosis based on the extracted effective features. Background Art

[0002] With the development of artificial intelligence technology, methods for extracting oil drilling machine indicator diagram features using deep convolutional neural networks and automatically diagnosing faults based on the extracted features have emerged and gradually become the focus of research on oil drilling machine fault diagnosis. However, the traditional convolutional neural network-based method does not take into account the characteristics of the indicator diagram itself, and the extracted indicator diagram features have insufficient generalization ability, cannot well represent the indicator diagram data, and have a high diagnostic false alarm rate.

[0003] In most methods based on convolutional neural networks, the size of the convolution kernel in the convolution layer is conventionally 3×3 or 5×5. This square convolution kernel is more advantageous for natural images with rich features and translation invariance, and can extract various complex features. However, for the closed curve surrounded by the loading line, unloading line, upstroke line and downstroke line of the oil drilling machine indicator diagram, which does not have complex semantic features, it cannot efficiently extract effective features. Smaller convolution kernels cannot effectively extract the loading line and unloading line features of the indicator diagram, and although larger convolution kernels can alleviate this problem, they will also cause a surge in the number of network model parameters, which will increase the training time cost and waste storage resources.

[0004] Therefore, there is an urgent need for a customized and efficient convolutional neural network structure based on the characteristics of the dynamometer diagram itself to extract more effective image features and improve the accuracy of oil production machine fault diagnosis, so as to achieve the purpose of improving diagnostic accuracy without increasing a lot of training time costs and storage resource consumption. Summary of the invention

[0005] In view of the above defects, the present invention discloses a method for improving the accuracy of oil production machine fault diagnosis. The method designs a non-square convolution kernel to construct a residual block, and builds a deep learning network model by alternately stacking residual blocks with different convolution kernels. The indicator diagram generated during the oil production process is subjected to feature extraction, and the extracted features are used for fault diagnosis to improve the accuracy of diagnosis.

[0006] The method specifically comprises the following steps:

[0007] 1) Collect the historical working condition indicator diagram of the oil production machine to form the indicator diagram dataset D, and use the holdout method to divide the indicator diagram dataset D into the training set D train , validation set D val and the test set D test, where the ratio of the holdout method is 8:1:1;

[0008] 2) In view of the particularity of feature extraction of dynamometer image, non-square convolution kernels A and B are designed as feature extraction units of the deep learning network model, where convolution kernel A is a 7×3 rectangular structure and convolution kernel B is a 3×7 rectangular structure;

[0009] 3) Use convolution kernels A and B to replace the traditional convolution kernels in the residual block to form a new residual block A block and B block , residual block A block Stacked in residual block B block On top of that, they are stacked alternately in this order to build an N-layer deep learning network model, where N=26. The specific structure of the customized deep convolutional network model includes:

[0010] 3-1) The first ordinary convolution layer has a convolution kernel size of 7×7, and a batch normalization layer is added after the convolution layer. The activation function is Relu;

[0011] 3-2) The 2nd to 25th layers are residual blocks A stacked alternately up and down block and residual block B block ;

[0012] 3-3) The number of output channels of the residual block increases from top to bottom to [64 128 256 512];

[0013] 3-4) The convolution stride of the first and second residual blocks is 1. Among the remaining residual blocks, residual block A block The convolution stride is 1, and the residual block B block The convolution stride is 2;

[0014] 3-5) After the residual block is stacked and output, an average pooling layer and a flattening layer are connected;

[0015] 3-6) The last layer is a fully connected layer to output the feature vector of the image;

[0016] 4) Use the built deep learning network model to extract the training set D train and validation set D val The d-dimensional feature vector x of the sample in , using triple loss Loss(X A ,X + ,X - ) to perform back propagation training on network parameters, triplet loss Loss(X A ,X + ,X - )The formula is as follows:

[0017]

[0018] Among them, X A represents the anchor point sample vector, X + represents the positive sample feature vector, X - represents the negative sample feature vector, d + Represents vector X + With X A The distance, d - Represents vector X - With X A distance, M represents a fixed spacing value, [·] + Indicates that when the expression value is greater than zero, the value of the expression is taken, otherwise it is taken as zero, where d≥2 i , i∈[7,12], 1≤M≤5;

[0019] 5) According to the test set D test Verify the accuracy and generalization ability of the model, and obtain the final network model after training;

[0020] 6) Using the trained network model, a stable and fault condition indicator diagram feature vector retrieval library Y is established for the historical condition indicator diagram dataset D of the oil production machine;

[0021] 7) Use the network model to extract feature vectors from the real-time collected dynamometer data The similarity is calculated with the working condition feature vector in the working condition feature retrieval library using the similarity function H(X,Y) to obtain the similarity vector S, where the similarity function H(X,Y) is the cosine similarity function:

[0022]

[0023] Where X is the characteristic vector of the real-time dynamometer diagram The matrix composed of, Y is the working condition indicator diagram feature vector retrieval library matrix;

[0024] 8) Get the maximum value S in the similarity vector S max And its working condition category k c , determine the maximum value S max Whether it exceeds the similarity threshold Th, if it exceeds the threshold, the newly collected dynamometer diagram is diagnosed as k c working condition, otherwise the indicator diagram category is marked as unknown, and added to the working condition feature retrieval library after being calibrated by experts, where the similarity threshold Th = 0.95;

[0025] 9) Determine k c Is the operating condition a fault condition? If so, a fault alarm is issued; otherwise, it is a stable condition, no alarm is issued, and go to step 7).

[0026] Beneficial effects:

[0027] The method disclosed in the present invention designs a non-square and efficient convolution kernel to construct a residual block according to the characteristics of the dynamometer diagram itself, and builds a deep learning network model by alternately stacking residual blocks with different convolution kernels, so as to extract more effective dynamometer diagram features, so as to improve the diagnosis accuracy without increasing a lot of training time costs and storage resource consumption, and enhance the control ability of oil production machine equipment operating condition monitoring and diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 This is a structural diagram of the non-square convolution kernel designed in the present invention;

[0029] Figure 2 The residual block structure designed in the present invention;

[0030] Figure 3 The specific structure of the deep convolutional network designed in the present invention;

[0031] Figure 4 The training set and validation set loss value curves of the model in the specific example of the present invention;

[0032] Figure 5 This is an example of a dynamometer diagram collected in real time in a specific example of the present invention. DETAILED DESCRIPTION

[0033] The following is a detailed calculation process and specific operation flow in conjunction with the accompanying drawings and specific examples to further illustrate the present invention. This implementation case is implemented based on the technical solution of the present invention, but the protection scope of the present invention is not limited to the following implementation case.

[0034] This case takes an oil production company as an example to illustrate the effectiveness and implementation process of this method. The training set, validation set and test set are constructed with data from July 2021 to August 2021 to analyze the effectiveness of the method in this paper in improving the accuracy of oil production machine fault diagnosis.

[0035] The specific implementation steps are as follows:

[0036] 1) A total of 45,429 historical operating condition indicator diagrams of oil production machines were collected to form the indicator diagram dataset D. The indicator diagram dataset was divided into a training set of 36,343, a validation set of 4,543, and a test set of 4,543 using the holdout method in the ratio of 8:1:1.

[0037] 2) In view of the particularity of feature extraction of the dynamometer image, a rectangular structure A with a convolution kernel size of 7×3 and a rectangular structure B with a convolution kernel size of 3×7 are designed, as shown in Figure 1 As shown, it serves as a feature extraction unit of the deep learning network model.

[0038] 3) Use convolution kernels A and B to replace the traditional convolution kernels in the residual block to form a new residual block Ablock and B block ,like Figure 2 As shown, the residual block A block Stacked in residual block B block On top of them, they are stacked alternately in this order, and an N-layer deep learning network model is built, where N = 26. The customized deep convolutional network model is as follows Figure 3 As shown in the figure, k represents the convolution kernel size, s represents the convolution stride, p represents the image edge padding size, O_c represents the number of convolution layer output channels, and the specific structure includes:

[0039] 3-1) The first ordinary convolution layer has a convolution kernel size of 7×7, and a batch normalization layer is added after the convolution layer. The activation function is Relu;

[0040] 3-2) The 2nd to 25th layers are residual blocks A stacked alternately up and down block and residual block B block ;

[0041] 3-3) The number of output channels of the residual block increases from top to bottom to [64 128 256 512];

[0042] 3-4) The convolution stride of the first and second residual blocks is 1. Among the remaining residual blocks, residual block A block The convolution stride is 1, and the residual block B block The convolution stride is 2;

[0043] 3-5) After the residual block is stacked and output, an average pooling layer and a flattening layer are connected;

[0044] 3-6) The last layer is a fully connected layer to output the feature vector of the image.

[0045] 4) Use the built deep learning network model to extract the training set D train and validation set D val The 128-dimensional feature vector x of the sample in is shown in Table 1. The triplet loss Loss(X A ,X + ,X - ) to perform back propagation training on the network parameters, where the triplet loss formula is as follows:

[0046]

[0047] In this embodiment, d=128, M=1, and the loss function values ​​of the training set and the validation set are as follows: Figure 4 As shown,

[0048] Table 1 Training set D train and validation set D val The 128-dimensional feature vector X of the sample

[0049]

[0050] 5) According to the test set D test Verify the accuracy and generalization ability of the model. The test set results are shown in Table 2. The final network model is obtained by training.

[0051] Table 2 Model test set accuracy

[0052]

[0053]

[0054] 6) Using the trained network model, a stable and fault condition indicator diagram feature vector retrieval library Y is established for the historical condition indicator diagram dataset D of the oil production machine. This embodiment takes 20 condition categories as an example, and the established results are shown in Table 3.

[0055] Table 3. Retrieval library Y of characteristic vectors of indicator diagrams under stable and fault conditions

[0056]

[0057] 7) For the real-time collected dynamometer diagram, Figure 5 Taking the dynamometer diagram as an example, the network model is used to extract the feature vector The real-time dynamometer feature vector The matrix X consisting of 20 columns stacked vertically repeatedly and the matrix Y consisting of the characteristic vectors of the working condition retrieval library are as follows:

[0058]

[0059] The cosine similarity function H(X,Y) is used to calculate the similarity and the similarity vector S is obtained as follows:

[0060]

[0061] 8) Get the maximum value S in the similarity vector S max =0.98 and its operating condition category k c The maximum value S is insufficient for liquid supply. max If the similarity threshold Th=0.95 is exceeded, the current working condition is diagnosed as k c Class conditions.

[0062] 9) k c If the working condition is insufficient liquid supply, a fault alarm is issued and go to step 7).

[0063] Observing the real-time collected dynamometer data, the actual working condition is insufficient fluid supply. It can be seen that the diagnosis result of this method is consistent with the actual working condition. And tested on the test set, the model accuracy of this method is higher and the generalization ability is better.

[0064] From the above analysis, it can be seen that the method for improving the accuracy of oil production machine fault diagnosis of the present invention can extract more effective indicator diagram features to improve the diagnosis accuracy without increasing a large amount of training time cost and storage resource consumption, thereby enhancing the control capabilities of oil production machine equipment operating condition monitoring and diagnosis.

Claims

1. A method for improving the accuracy of oil production machine fault diagnosis, characterized in that The method designs a non-square convolution kernel to construct a residual block, and uses residual blocks with different convolution kernels to alternately stack to build a deep learning network model. The method extracts features from the dynamometer diagram generated during oil production, and uses the extracted features for fault diagnosis, including the following steps: 1) Collect the historical working condition indicator diagram of the oil production machine to form the indicator diagram dataset D, and use the holdout method to divide the indicator diagram dataset D into the training set D train , validation set D val and the test set D test ; 2) In view of the particularity of feature extraction of dynamometer image, non-square convolution kernels A and B are designed as feature extraction units of the deep learning network model, where convolution kernel A is a 7×3 rectangular structure and convolution kernel B is a 3×7 rectangular structure; 3) Use convolution kernels A and B to replace the traditional convolution kernels in the residual block to form a new residual block A block and B block , residual block A block Stacked in residual block B block On top of that, they are stacked alternately in this order to build an N-layer deep learning network model; Step 3) The specific structure of the deep learning network model includes: 3-1) The first ordinary convolution layer has a convolution kernel size of 7×7, and a batch normalization layer is added after the convolution layer. The activation function is Relu; 3-2) The 2nd to 25th layers are residual blocks A stacked alternately up and down block and residual block B block ; 3-3) The number of output channels of the residual block increases from top to bottom to [64128256512]; 3-4) The convolution stride of the first and second residual blocks is 1. Among the remaining residual blocks, residual block A block The convolution stride is 1, and the residual block B block The convolution stride is 2; 3-5) Connect an average pooling layer and a flattening layer after the residual block stacking output; 3-6) The last layer is a fully connected layer to output the feature vector of the image; 4) Use the built deep learning network model to extract the training set D train and validation set D val The d-dimensional feature vector x of the sample in , using triple loss Loss(X A ,X + ,X - ) to perform back propagation training on network parameters, where x A is the anchor sample vector, x + is a positive sample vector, x - is the negative sample vector; 5) According to the test set D test Verify the accuracy and generalization ability of the model, and obtain the final network model after training; 6) Using the trained network model, a stable and fault condition indicator diagram feature vector retrieval library Y is established for the historical condition indicator diagram dataset D of the oil production machine; 7) Use the network model to extract feature vectors from the real-time collected dynamometer data The similarity is calculated with the working condition feature vector in the working condition feature retrieval library using the similarity function H(X,Y) to obtain the similarity vector S; 8) Get the maximum value S in the similarity vector S max And its working condition category k c , determine the maximum value S max Whether it exceeds the similarity threshold Th, if it exceeds the threshold, the newly collected dynamometer diagram is diagnosed as k c working condition, otherwise the indicator diagram category is marked as unknown and added to the working condition feature retrieval library after being calibrated by experts; 9) Determine k c Is the working condition a fault condition? If so, a fault alarm is issued; otherwise, it is a stable condition and no alarm is issued. and go to step 7).

2. A method for improving the accuracy of oil production machine fault diagnosis according to claim 1, characterized in that The ratio of the retention method in step 1) is 8:1:

1.

3. A method for improving the accuracy of oil production machine fault diagnosis according to claim 1, characterized in that The number of network layers N in step 3) is 26.

4. A method for improving the accuracy of oil production machine fault diagnosis according to claim 1, characterized in that Step 4) The triplet loss Loss(X A ,X + ,X - )The formula is as follows: Among them, X A represents the anchor point sample vector, X + represents the positive sample feature vector, X - represents the negative sample feature vector, d + Represents vector X + With X A The distance, d - Represents vector X - With X A distance, M represents a fixed spacing value, [·] + Indicates that the value of the expression is taken when the value of the expression is greater than zero, otherwise it is taken as zero.

5. A method for improving the accuracy of oil production machine fault diagnosis according to claim 4, characterized in that Step 4) d≥2 i ,i∈[7,12],1≤M≤5.

6. A method for improving the accuracy of oil production machine fault diagnosis according to claim 1, characterized in that Step 7) The similarity function H(X,Y) is a cosine similarity function: Where X is the characteristic vector of the real-time dynamometer diagram The matrix composed of, Y is the working condition indicator diagram feature vector retrieval library matrix.

7. A method for improving the accuracy of oil production machine fault diagnosis according to claim 1, characterized in that Step 8) The similarity threshold Th=0.95.

Citation Information

Patent Citations

  • Oil pumping unit fault diagnosis method based on multiscale convolutional neural network

    CN110132626A

  • Fault early warning system and method

    CN112486136A

  • Oil extraction machine fault detection and retrieval method

    CN112508105A

  • Deep parallel fault diagnosis method and system for dissolved gas in transformer oil

    US20210278478A1

  • Image-based models for real-time biometrics and marker-less motion tracking in imaging applications

    WO2020077198A1