Oil extraction machine liquid supply degree change monitoring and adjusting method
By adopting the rolling calculation method of automatically updating the model in low-permeability oil fields, real-time monitoring of the fluid supply level of the oil extraction unit and dynamic adjustment of the stroke frequency solves the problem of poor matching of the fluid supply level between the oil extraction unit and the oil well, and achieves energy saving and increased production of the oil extraction unit.
Patent Information
- Application Number
- CN202211405436.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-23
AI Technical Summary
In low-permeability oil fields, it is difficult to match the oil extraction capacity of the oil production unit with the liquid supply level of the oil well in real time, resulting in low pump efficiency and high power consumption. The existing data-driven working condition analysis method is prone to false alarms or omissions and lacks real-time performance. and accuracy.
Using a rolling calculation method that automatically updates the model every day, the historical data of the oil production unit is smoothed, filtered and standardized through principal component analysis (PCA), the control limits and statistics are calculated, and the changes in the liquid supply level are monitored in real time and based on the liquid supply capacity. The indicator dynamically adjusts the stroke times of the oil production unit.
It effectively reduces false alarms and false alarms, realizes real-time monitoring and dynamic adjustment of the oil supply level of the oil production machine, reduces the power consumption of the oil production machine, increases oil production, and improves economic benefits.
Smart Images

Figure CN118532149A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of petroleum development and production, and specifically is a method for monitoring and regulating the change of fluid supply degree of an oil production machine well through ground indicator diagram data of the oil production machine. Background Art
[0002] The operation of oil drilling rigs directly affects the output and production status of oil fields. However, most of my country's oil fields are low-permeability oil fields with low abundance, low permeability and low single-well production capacity. As a result, the current oil drilling rig's pumping capacity cannot be matched with the bottom layer of the oil well in real time, resulting in low pump efficiency and high power consumption of the oil drilling rig, which increases the cost of pumping.
[0003] In the oil production process, the working condition analysis and parameter adjustment are only based on the dynamometer diagrams obtained by manual observation, which needs to be improved in terms of efficiency and real-time performance. Therefore, enterprises need a suitable method to analyze the fluid supply level of oil wells in real time, find oil well problems and formulate flushing adjustment strategies in time, so as to achieve real-time matching between the oil pumping capacity of the oil wells and the fluid supply level of the oil wells, so as to achieve the goal of energy saving and increased production.
[0004] Compared with other monitoring methods for operating condition changes such as those based on mechanism models, data-driven monitoring methods have developed rapidly in recent years. Principal component analysis (PCA), as a data analysis method, is widely used in operating condition analysis. However, existing data-driven operating condition analysis methods generally collect data from the production process, build a one-time model, and make continuous forecasts. This fixed data-driven model is prone to false positives or false negatives. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a method for monitoring and adjusting the change of the fluid supply level of an oil production machine, which can automatically update the model and perform rolling calculation every day, and can effectively reduce false alarms and missed alarms.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for monitoring and adjusting the changes in the fluid supply level of an oil production machine, selecting data from several days ago as a training set; then preprocessing the training set including smoothing filtering and standardization and performing principal component analysis to calculate the control limit; finally, calculating the statistics of the measured data at each moment, combining the two indicators to issue an early warning of the changes in the fluid supply level, and calculating the fluid supply level index of the oil production machine based on the monitoring results for dynamic pulse frequency adjustment.
[0007] The specific steps include:
[0008] 1) Obtain the displacement and load data sampled within a single stroke of the historical operating condition record of the oil production machine;
[0009] 2) For the test data obtained every day, select the data of the previous t days as the training set;
[0010] 3) Preprocess the training set, including smoothing filtering and standardization;
[0011] 4) Perform principal component analysis on the preprocessed samples and calculate the control limit of the squared prediction error SPE and Hotelling's T 2 Control limits of statistics;
[0012] 5) Preprocess the data to be tested and calculate the SPE and T at each moment 2 Statistics, combining two indicators for early warning;
[0013] 6) Determine whether there is a change in the level of liquid supply based on the warning results;
[0014] 7) According to the working conditions of the fluid supply degree change, the fluid supply capacity index β of the oil well is calculated based on the original data of the indicator diagram;
[0015] 8) Dynamically adjust the pumping machine stroke frequency according to the numerical range of β.
[0016] The value range of t is 5 to 10 days, and confirmed fault data is excluded.
[0017] The smoothing filter algorithm uses the Savitzky-Golay (SG) convolution smoothing algorithm.
[0018] The test data is standardized using the mean and variance of the training data.
[0019] When the SPE statistics of the data to be tested and T 2 When all statistics exceed the upper limit, a fault warning is issued.
[0020] The fluid supply capacity index β is the ratio of the effective stroke to the total stroke on the dynamometer diagram.
[0021] The basis for adjusting the number of flushes is the liquid supply capacity index β and the set upper and lower limits β min and β max The size relationship between them is as follows:
[0022] 1) When β<β min At this time, it is judged that the oil well fluid supply is seriously insufficient and the flushing frequency should be reduced;
[0023] 2) When β>β max At this time, it is judged that the oil well is relatively full of fluid supply, and the number of flushing should be increased;
[0024] 3) When β min ≤β≤β max At this time, it is judged that the fluid supply level of the oil well is moderate and no flushing adjustment is made.
[0025] Preferably, β min Take 50%, β max Take 80%.
[0026] The beneficial effects of the present invention are as follows: the method of the present invention adopts a data-driven modeling method for the oil production machine, takes into account the temporal nature of industrial process data in the modeling process, and can automatically update the model every day, and perform rolling calculations, which can effectively reduce false positives and false negatives. Most importantly, the method can adjust the oil production machine's stroke parameters in real time according to the dynamic changes in the oil well's fluid supply level, which is of great value in reducing the oil production machine's power consumption and increasing oil production. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is an implementation flow chart of the method for monitoring and regulating the change of the fluid supply level of the oil production machine of the present invention.
[0028] Figure 2 This is the working condition analysis result diagram of a certain oil well from February 15 to February 19, 2021 in the embodiment
[0029] Figure 3 It is a ground performance indicator diagram of a certain oil well in the embodiment when the system is in early warning. DETAILED DESCRIPTION
[0030] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention; it is obvious that the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments, and all other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making creative work are within the scope of protection of the present invention.
[0031] like Figure 1 As shown, the method for monitoring and adjusting the change of the fluid supply level of the oil production machine of the present invention comprises the following steps:
[0032] 1) Obtain the displacement and load data sampled within a single stroke of the historical operating condition record of the oil production machine;
[0033] 2) For the test data obtained every day, select the data of the previous t days as the training set;
[0034] 3) Preprocess the training set, including smoothing filtering and standardization;
[0035] 4) Perform principal component analysis on the preprocessed samples and calculate the control limit of the squared prediction error SPE and Hotelling's T 2 Control limits of statistics;
[0036] 5) Preprocess the data to be tested and calculate the SPE and T at each moment 2 Statistics, combining two indicators for early warning;
[0037] 6) Determine whether there is a change in the level of liquid supply based on the warning results;
[0038] 7) According to the working conditions of the fluid supply degree change, the fluid supply capacity index β of the oil well is calculated based on the original data of the indicator diagram;
[0039] 8) Dynamically adjust the pumping machine stroke frequency according to the numerical range of β.
[0040] In this method, the value range of t is 5 to 10 days, and confirmed fault data are eliminated.
[0041] Preferably, the smoothing filter algorithm uses a Savitzky-Golay (SG) convolution smoothing algorithm.
[0042] In this method, the training data is standardized, and the test data is standardized using the mean and variance of the training set.
[0043] In this method, the sample matrix X(d) is reorganized according to formula (1) as follows:
[0044]
[0045] Among them, x t =[x t1 ……x tm ] T is a set of data at time t, where m is the number of variables and d is the time lag factor.
[0046] Furthermore, the method for determining the hysteresis factor d is as follows:
[0047] 1) Let d = 0, the static relationship number r(0) is equal to the difference between the number of variables and the number of principal components;
[0048] 2) Let d = 1, the static relationship number r(1) is equal to the number of variables minus the number of principal components and r(0);
[0049] 3) Keep calculating until the new relation function r new (d)<0:
[0050]
[0051] In this method, PCA analysis is performed on the reorganized sample matrix X(d), and the load matrix P and eigenvalue matrix λ are obtained after extracting the principal components.
[0052] Furthermore, the SPE control limits and T are calculated according to the eigenvalue matrix λ according to equations (3) and (4). 2 Control Limits:
[0053]
[0054]
[0055] Among them, SPE α is the upper limit of the SPE statistic, It is T 2 The upper limit of statistics, λ j is the jth eigenvalue of the covariance matrix of the sample matrix X, k is the number of principal elements, m is the number of variables, c α is the upper 1-α quantile of the Gaussian distribution, α is the test level, n is the number of samples, and F(k,nk,α) is the critical value of the F distribution with k and nk degrees of freedom and a test level of α.
[0056] In this method, the test data is composed of the test data matrix X according to the lag factor d. test , and after standardization, the SPE and T at each moment are calculated according to formula (5) and formula (6). 2 If both exceed the control limits at the same time, a fault is considered to have occurred:
[0057] SPE=||(I-PP T )x|| 2 (5)
[0058] T 2 =x T PΛ -1 P T x (6)
[0059] In this method, the liquid supply capacity index β is calculated according to formula (7):
[0060]
[0061] Among them, S pe Indicates the effective stroke of the oil drilling machine, S max Indicates the maximum stroke of the oil drilling machine.
[0062] Furthermore, the frequency of flushing is adjusted based on the liquid supply capacity index β and the set upper and lower limits β min and β max The specific adjustment strategy is as follows:
[0063] 1) When β<β min At this time, it is judged that the oil well fluid supply is seriously insufficient and the flushing frequency should be reduced;
[0064] 2) When β>β max At this time, it is judged that the oil well is relatively full of fluid supply, and the number of flushing should be increased;
[0065] 3) When β min≤β≤β max At this time, it is judged that the fluid supply level of the oil well is moderate and no flushing adjustment is made.
[0066] Taking an oil production company as an example to illustrate the effectiveness and implementation process of this method, firstly, the operating condition changes of a certain oil well of the company at around 17:00 on February 18, 2021 are analyzed and explained.
[0067] The implementation process of the present invention is as follows Figure 1 As shown, the specific implementation steps are as follows:
[0068] (1) Obtain the displacement and load data sampled within a single stroke of the oil well production machine's historical operating condition records.
[0069] (2) For the obtained test data, the data of the previous t1 days are selected as the training set for modeling. Here, t1 is 5, and the corresponding training data for each day are shown in Table 1.
[0070] Table 1 Test data and its corresponding training set range
[0071] Data range to be tested Training set data range … … February 15 February 10th ~ February 14th February 16 February 11th ~ February 15th February 17 February 12th ~ February 16th February 18 February 13th ~ February 17th February 19 February 14th ~ February 18th … …
[0072] (3) Both the training set and the test data are subjected to SG smoothing filtering, where the window is 11 and the order is 3.
[0073] (4) Calculate the hysteresis factor, reorganize the sample matrix, and calculate the SPE control limits and T 2 Control limits.
[0074] Taking the model of February 15, 2021 as an example, the data from February 10 to February 14 are taken to form the sample matrix X. Starting from d = 0, the sample matrix X(d) is reorganized according to formula (2). After standardization, PCA analysis is performed on it to calculate the number of principal components, static relationship number r(d), and new relationship number r new (d), the calculation process is shown in Table 2. When d = 2, the new relationship coefficient r new (2)≤0, so the lag factor is 2, and the standardized sample matrix X(2) is obtained.
[0075] Table 2 Hysteresis factor calculation process
[0076] The value of d Number of variables Number of principal components Static relationship number New relationship number 0 6 3 3 3 1 12 3 9 3 2 18 3 15 0
[0077] Performing PCA analysis on the sample matrix X(2), we obtain the load matrix P and eigenvalue matrix λ as follows:
[0078]
[0079]
[0080] Let the detection level α = 0.99, the calculated SPE control limit is 330.04, T 2 The control limit is 123.5.
[0081] (5) The data of February 15th is composed of the test data matrix X according to d = 2. test , and after standardization, calculate the SPE and T at each moment 2 Statistics.
[0082] A rolling modeling forecast was conducted from February 15 to February 19, 2021. The results are as follows: Figure 2 SPE and T 2 The moment when the statistics exceed the limit at the same time is marked by the vertical line. It can be seen that starting from the 33rd sampling period on February 18, the SPE statistics and T 2 When the statistic exceeds the limit, the system issues an early warning.
[0083] (6) Draw a ground power diagram based on the test data at that time. Figure 3 As shown, the process experts determined based on the dynamometer diagram that this warning was caused by a change in operating conditions due to severe lack of fluid supply.
[0084] (7) Therefore, it is necessary to further calculate the liquid supply index β:
[0085]
[0086] (8) In this embodiment, the liquid supply capacity index β is selected and the upper and lower limits of the threshold are set as β min =50% and β max =80%, because at this time the liquid supply index β<β min Therefore, it is necessary to reduce the stroke frequency of the oil production machine to achieve the purpose of energy saving. The stroke frequency adjustment step adopted in this embodiment is 0.1, and the adjustment cycle is 1 day, until SPE and T 2 The statistics return to below the upper threshold. The adjustment results for the insufficient liquid supply condition on February 18 are shown in Table 3.
[0087] Table 3 Oil well production data after stroke adjustment
[0088]
[0089] As can be seen from Table 3, with the reduction of the number of flushing times, the daily power consumption of the oil well has dropped significantly, while the oil production has remained stable, the extraction cost per ton of oil has dropped significantly, and the economic benefits have been improved.
[0090] From the above analysis, it can be seen that the method for monitoring and adjusting the fluid supply level of the oil extraction machine of the present invention can monitor the changes in the fluid supply level of the oil extraction machine in real time, thereby dynamically adjusting the frequency of the oil extraction machine strokes according to the fluid supply level index. It can be seen that the present invention can realize real-time and accurate monitoring of the fluid supply level of the oil extraction machine and adaptive frequency adjustment to achieve the purpose of energy saving and increased production, avoiding the shortcomings of poor real-time performance and low precision of manual detection and adjustment.
[0091] In summary, the content of the present invention is not limited to the above-mentioned embodiments, and people with insight in the same field can easily propose other embodiments within the technical guiding ideology of the present invention, but such embodiments are all included in the scope of the present invention.
Claims
1. A method for monitoring and regulating the change of fluid supply level of an oil production machine, characterized in that: The data from several days ago are selected as the training set; the training set is then preprocessed including smoothing filtering and standardization, and principal component analysis is performed to calculate the control limit; finally, the statistics of the measured data at each moment are calculated, and the two indicators are combined to provide an early warning of changes in the fluid supply level, and the fluid supply level indicator of the oil production machine is calculated based on the monitoring results for dynamic stroke adjustment.
2. The method for monitoring and adjusting the change of the fluid supply level of the oil production machine according to claim 1 is characterized in that: The following steps are involved: 1) Obtain the displacement and load data sampled within a single stroke of the historical operating condition record of the oil production machine; 2) For the test data obtained every day, select the data of the previous t days as the training set; 3) Preprocess the training set, including smoothing filtering and standardization; 4) Perform principal component analysis on the preprocessed samples and calculate the control limit of the squared prediction error SPE and Hotelling's T 2 Control limits of statistics; 5) Preprocess the data to be tested and calculate the SPE and T at each moment 2 Statistics, combining two indicators for early warning; 6) Determine whether there is a change in the level of liquid supply based on the warning results; 7) According to the working conditions of the fluid supply degree change, the fluid supply capacity index β of the oil well is calculated based on the original data of the indicator diagram; 8) Dynamically adjust the pumping machine stroke frequency according to the numerical range of β.
3. The method for monitoring and adjusting the change of the fluid supply level of the oil production machine according to claim 2 is characterized in that: The value range of t is 5 to 10 days, and confirmed fault data is excluded.
4. The method for monitoring and adjusting the change of the fluid supply level of the oil production machine according to claim 2 is characterized in that: The smoothing filter algorithm uses the Savitzky-Golay (SG) convolution smoothing algorithm.
5. The method for monitoring and adjusting the change of the fluid supply level of the oil production machine according to claim 2 is characterized in that: The test data is standardized using the mean and variance of the training data.
6. The method for monitoring and adjusting the change of the fluid supply level of the oil production machine according to claim 2 is characterized in that: When the SPE statistics of the data to be tested and T 2 When all statistics exceed the upper limit, a fault warning is issued.
7. The method for monitoring and adjusting the change of the fluid supply level of the oil production machine according to claim 2 is characterized in that: The fluid supply capacity index β is the ratio of the effective stroke to the total stroke on the dynamometer diagram.
8. The method for monitoring and adjusting the change of the fluid supply level of the oil production machine according to claim 2 is characterized in that: The basis for adjusting the number of flushes is the liquid supply capacity index β and the set upper and lower limits β min and β max The size relationship between them is as follows: 1) When β<β min When the oil well is in a serious shortage of fluid supply, the flushing frequency is reduced; 2) When β>β max At this time, it is judged that the oil well is relatively full of fluid supply, and the number of flushing is increased; 3) When β min ≤β≤β max At this time, it is judged that the fluid supply level of the oil well is moderate and no flushing adjustment is made.
9. The method for monitoring and adjusting the change of the fluid supply level of the oil production machine according to claim 8, characterized in that: β min Take 50%, β max Take 80%.
