Data processing method, device and equipment based on oilfield water injection and storage medium

By obtaining the data differences from multiple sampling time groups within the oil pipe, the data correction factor and trend position information are determined, thus solving the problem of signal noise interference in oilfield water injection and improving the parsing accuracy and efficiency of water injection commands.

CN120968566APending Publication Date: 2025-11-18CHINA UNIV OF PETROLEUM (BEIJING)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511178402.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-21
Publication Date
2025-11-18

AI Technical Summary

Technical Problem

During water injection in oilfields, pressure or flow signals inside the tubing are easily affected by noise interference and energy loss, leading to incorrect interpretation of water injection commands downhole and affecting water injection efficiency.

Method used

By acquiring sampling data from multiple sampling time groups within the oil pipe, calculating the difference and determining the data correction factor, the trend of the sampling data is corrected, and the water nozzle opening is controlled using the trend information to reduce the impact of noise.

Benefits of technology

It improved the accuracy of oilfield water injection data processing, enhanced the accuracy of water injection command analysis, and optimized water injection volume control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120968566A_ABST
    Figure CN120968566A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method and device based on oilfield water injection, equipment and a storage medium. The method comprises the following steps: acquiring sampling data of an oil pipe at multiple sampling time groups according to a preset time period; wherein the sampling data represents the pressure or flow of fluid in the oil pipe, and the sampling moment group at least comprises a first moment, a second moment and a third moment; for each sampling moment group, determining a difference value of the sampling data between the first moment and the second moment as a first difference value, and determining a difference value of the sampling data between the second moment and the third moment as a second difference value; if it is determined that the first difference value and the second difference value meet a preset condition, determining a data correction factor of the sampling time group according to the first difference value and the second difference value; determining trend bit information of the sampling time group according to the data correction factor of the sampling time group; the trend position information is used for controlling the water nozzle opening. The method is used for improving the processing precision of oilfield water injection data.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, and in particular to a data processing method and device based on oilfield water injection, equipment and storage medium. BACKGROUND

[0002] In the process of oil exploitation, in order to improve the oil recovery, water is injected into the oil layer to supplement or maintain the formation pressure, so as to displace the crude oil to the production well.

[0003] In order to realize remote control of the opening degree of the water nozzle of the downhole water distributor, and realize the water injection management of each oil layer, the ground equipment sends the water injection instruction to the downhole by changing the pressure or water injection flow in the oil pipe at the wellhead. The downhole analyzes the water injection instruction by sampling the pressure or flow signal in the oil pipe, and adjusts the opening degree of the water nozzle according to the analyzed water injection instruction, so as to control the amount of water injected into the oil layer through the oil pipe.

[0004] However, due to noise interference or loss of injection water energy, the pressure or flow signal in the oil pipe is easy to change during the long distance transportation of the injection water from the wellhead through the oil pipe, which causes the downhole to incorrectly analyze the water injection instruction and affects the water injection efficiency. Therefore, how to improve the processing accuracy of the pressure or flow signal in the oil pipe and improve the analysis accuracy of the water injection instruction has become a technical problem to be solved. SUMMARY

[0005] The embodiments of the present application provide a data processing method, device, equipment and storage medium based on oilfield water injection, to improve the processing accuracy of the pressure or flow signal in the pipeline.

[0006] In a first aspect, the embodiments of the present application provide a data processing method based on oilfield water injection, comprising:

[0007] According to a preset time period, the sampling data of the oil pipe at a plurality of groups of sampling time points is obtained; wherein the sampling data represents the pressure or flow of the fluid in the oil pipe, and the plurality of groups of sampling time points at least include a first time point, a second time point and a third time point, the first time point is earlier than the second time point, and the second time point is earlier than the third time point;

[0008] For each group of sampling time points, the difference value of the sampling data between the first time point and the second time point is determined as a first difference value, and the difference value of the sampling data between the second time point and the third time point is determined as a second difference value;

[0009] If it is determined that the first difference value and the second difference value satisfy a preset condition, then according to the first difference value and the second difference value, a data correction factor of the sampling time point group is determined; wherein the data correction factor is used to correct the change trend of the sampling data;

[0010] determining trend bit information according to the data correction factor of the sampling time group; wherein the trend bit information represents a change trend of the sampling data in the sampling time group, and the trend bit information is used to control an opening degree of a water nozzle used to inject water to the oil layer through the oil pipe.

[0011] In a possible implementation, the determining that the first difference and the second difference satisfy the preset condition comprises:

[0012] If the first difference and the second difference are positive and negative numbers respectively, it is determined that the first difference and the second difference satisfy the preset condition.

[0013] In a possible implementation, the determining the data correction factor according to the first difference and the second difference comprises:

[0014] determining a difference between the first difference and the second difference as the data correction factor.

[0015] In a possible implementation, the determining the trend bit information according to the data correction factor of the sampling time group comprises:

[0016] If the data correction factor of the sampling time group is a negative number, the trend bit information is determined according to the data correction factor and a preset first factor threshold.

[0017] In a possible implementation, the determining the trend bit information according to the data correction factor and the preset first factor threshold comprises:

[0018] If the data correction factor is less than or equal to the preset first factor threshold, the trend bit information is determined as a second identifier.

[0019] If the data correction factor is greater than the preset first factor threshold, the trend bit information is determined as a first identifier.

[0020] In a possible implementation, the determining the trend bit information according to the data correction factor of the sampling time group further comprises:

[0021] If the data correction factor of the sampling time group is a positive number, the trend bit information is determined according to the data correction factor and a preset second factor threshold.

[0022] In a possible implementation, the determining the trend bit information according to the data correction factor and the preset second factor threshold comprises:

[0023] If the data correction factor is greater than or equal to the preset second factor threshold, the trend bit information is determined as the first identifier.

[0024] If the data correction factor is less than a preset second factor threshold, the trend bit information is determined as a second identifier.

[0025] In a possible implementation, the method further includes:

[0026] If the first difference value and the second difference value are both greater than or equal to zero, the trend bit information of the sampling time group is determined as a first identifier.

[0027] In a possible implementation, the method further includes:

[0028] If the first difference value and the second difference value are both negative numbers, the trend bit information of the sampling time group is determined as a second identifier.

[0029] In a possible implementation, the trend bit information is a first identifier or a second identifier; and the method further includes:

[0030] The trend bit information of each group of sampling time groups is spliced to obtain a trend bit string.

[0031] According to a number of the first identifiers in the trend bit string, symbol information corresponding to the preset time period is obtained; the symbol information represents a change trend of the sampling data in the preset time period.

[0032] According to the symbol information corresponding to the preset time period of the preset number, decoding information is obtained; the decoding information is used to control the opening degree of the water nozzle.

[0033] In a second aspect, an embodiment of the present application provides a data processing device based on oilfield water injection, including:

[0034] An acquisition module is configured to acquire, according to a preset time period, sampling data of an oil pipe at a plurality of groups of sampling time groups; the sampling data represents the pressure or flow of a fluid in the oil pipe; each group of sampling time groups includes at least a first time, a second time, and a third time; the first time is earlier than the second time, and the second time is earlier than the third time.

[0035] A first determination module is configured to determine, for each group of sampling time groups, a difference value of the sampling data between the first time and the second time as a first difference value, and a difference value of the sampling data between the second time and the third time as a second difference value.

[0036] The second determining module is used to determine a data correction factor for the sampling time group based on the first difference and the second difference if the first difference and the second difference satisfy a preset condition; wherein the data correction factor is used to correct the changing trend of the sampled data.

[0037] The third determining module is used to determine the trend position information of the sampling time group based on the data correction factor of the sampling time group; wherein, the trend position information represents the changing trend of the sampling data in the sampling time group, the trend position information is used to control the opening of the water nozzle, and the water nozzle is used to inject water toward the oil layer through the oil pipe.

[0038] Thirdly, embodiments of this application provide a data processing device based on oilfield water injection, including: a memory and a processor;

[0039] The memory stores computer-executed instructions;

[0040] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0041] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0042] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0043] The embodiment of the present application provides a data processing method, device and equipment based on oil field water injection and a storage medium, the method comprises the following steps: acquiring sampling data of an oil pipe at a plurality of groups of sampling time points according to a preset time period; wherein the sampling data represents the pressure or flow of fluid in the oil pipe, and the plurality of groups of sampling time points at least comprise a first time point, a second time point and a third time point, the first time point is earlier than the second time point, and the second time point is earlier than the third time point; a plurality of groups of sampling data can be acquired, each group of sampling data comprises sampling data of at least three time points, which facilitates subsequent grouping analysis of the sampling data, thereby reducing the noise influence caused by single-point sampling data analysis. For each group of sampling time points, a first difference value is determined by determining the difference between the sampling data of the first time point and the second time point, and a second difference value is determined by determining the difference between the sampling data of the second time point and the third time point; the intermediate data (the intermediate data comprises the first difference value and the second difference value) of each group of sampling time points can be extracted, and the intermediate data can be used for subsequent analysis of the change trend of a plurality of sampling data corresponding to each group of sampling time points. If it is determined that the first difference value and the second difference value satisfy a preset condition, a data correction factor of the group of sampling time points is determined according to the first difference value and the second difference value; wherein the data correction factor is used for correcting the change trend of the sampling data; when the change trend of the plurality of sampling data is not clear, the correction factor used for correcting the change trend can be further extracted, so that the change trend of the sampling data is corrected based on the correction factor subsequently, thereby obtaining the accurate change trend of the sampling data. After the correction factor is determined, the trend bit information of the group of sampling time points is determined according to the data correction factor of the group of sampling time points; wherein the trend bit information represents the change trend of the sampling data in the group of sampling time points, and the trend bit information is used for controlling the opening degree of a water nozzle, the water nozzle is used for injecting water through the oil pipe to the oil layer, and the opening degree of the water nozzle can be controlled by using the obtained trend bit information, thereby controlling the water injection amount to the oil layer. Since the correction factor corrects the change trend of the sampling data, the influence of noise on the sampling data is reduced, thereby improving the data processing accuracy of the oil field water injection, and further improving the accuracy of analyzing the water injection instruction. BRIEF DESCRIPTION OF DRAWINGS

[0044] The accompanying drawings, which are incorporated herein and form part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles of the application.

[0045] Figure 1 Flowchart of the data processing method based on oil field water injection provided by the present application Figure One ;

[0046] Figure 2 Flowchart of the data processing method based on oil field water injection provided by the present application Figure Two ;

[0047] Figure 3A flowchart illustrating the data processing method based on oilfield water injection provided in this application. Figure Three ;

[0048] Figure 4 A flowchart illustrating the data processing method based on oilfield water injection provided in this application. Figure Four ;

[0049] Figure 5 A flowchart illustrating the data processing method based on oilfield water injection provided in this application. Figure Five ;

[0050] Figure 6 A flowchart illustrating the data processing method based on oilfield water injection provided in this application. Figure Six ;

[0051] Figure 7 A flowchart illustrating the data processing method based on oilfield water injection provided in this application. Figure Seven ;

[0052] Figure 8 A flowchart illustrating the data processing method based on oilfield water injection provided in this application. Figure Eight ;

[0053] Figure 9 A flowchart illustrating the data processing method based on oilfield water injection provided in this application. Figure Nine ;

[0054] Figure 10 A schematic diagram of the data processing device based on oilfield water injection provided in this application;

[0055] Figure 11 A schematic diagram of the data processing equipment based on oilfield water injection provided in this application.

[0056] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0057] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0058] In the process of oil exploitation, in order to improve the oil recovery rate, water is injected into the oil layer to supplement or maintain the formation pressure, so as to displace the crude oil to the production well. As the oilfield exploitation enters the middle and late development stage, due to the more obvious difference of permeability and porosity of different layers of the oil layer, unified water injection in the whole well section will cause a large amount of water absorption in the high permeability layer, and almost no water absorption in the low permeability layer, causing water to rush along the high permeability layer and bypass the remaining oil enrichment area. Therefore, it is necessary to adjust the water injection amount according to different layers.

[0059] The water injection instruction can be encoded by adjusting the wellhead pressure or flow change, such as adjusting the change trend of the wellhead pressure to high pressure-low pressure-high pressure, encoding the water injection instruction, and the water injection instruction corresponding to the string "101", wherein the symbol bit "1" represents high pressure, and the symbol bit "0" represents low pressure. Each oil layer downhole analyzes the water injection instruction, such as downhole sampling the pressure signal in the oil pipe, analyzing the pressure change trend in the oil pipe, and analyzing the water injection instruction "101" according to the analysis result. According to the meaning of the water injection instruction defined in advance, the water nozzle opening degree is adjusted by the water distributor, wireless communication between the ground and the downhole is realized, and the water injection amount of each oil layer is remotely controlled.

[0060] Ideally, the downhole can receive stable pressure signals or flow wave signals. However, since the pressure signal or flow signal is transmitted from the wellhead to the downhole through the fluid (such as water) in the oil pipe, the transmission distance can reach thousands of meters. As the distance increases, the signal energy gradually weakens, resulting in a decrease in the amplitude of the received signal, and even it is difficult to detect. At the same time, due to the complex downhole environment, there are noise interferences such as mechanical vibration, fluid turbulence and equipment operation. These noises are superimposed on the pressure signal or flow wave signal, causing waveform distortion and affecting the analysis accuracy of the downhole water injection instruction.

[0061] In the related art, a filter can be used to filter part of the noise, such as a low-pass filter which can filter part of the high-frequency noise. However, while filtering part of the noise, the effective signal can be weakened at the same time.

[0062] The oilfield water injection based data processing method, device and equipment and storage medium provided by the present application solve the above technical problems.

[0063] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail in the specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes can not be described in detail in some embodiments. The embodiments of the present application will be described below with reference to the drawings.

[0064] Figure 1 Flowchart of the oilfield water injection based data processing method provided by the present application Figure One For example, Figure 1As shown, the method comprises:

[0065] S101, according to a preset time period, acquiring sampling data of the oil pipe at a plurality of groups of sampling time points; wherein the sampling data represents the pressure or flow of the fluid in the oil pipe, and the plurality of groups of sampling time points at least include a first time point, a second time point, and a third time point, the first time point is earlier than the second time point, and the second time point is earlier than the third time point.

[0066] The execution subject of the present application can be an electronic device with data processing capability, which can be used to control the opening degree of the water nozzle of the downhole water distributor, wherein the water nozzle is integrated into the oil pipe through the water distributor, the injected water is transmitted from the wellhead to the downhole through the oil pipe, and finally injected into the oil layer through the water nozzle. The larger the opening degree of the water nozzle, the more water injected into the oil layer.

[0067] For example, the ground equipment changes the pressure or flow in the oil pipe at the wellhead, sends a water injection instruction to the downhole, and the water injection instruction indicates the opening degree of the water nozzle. Wherein the pressure in the oil pipe refers to the vertical force on the pipe wall when the injected water in the oil pipe flows inside the oil pipe, which can be the force per unit area. The flow in the oil pipe refers to the volume or mass of the injected water passing through the cross section of the oil pipe per unit time.

[0068] The downhole water distributor is built-in with a pressure sensor or a flow sensor, the pressure sensor is used to detect the change of the pressure in the oil pipe in real time, and the flow sensor is used to detect the change of the flow in the oil pipe in real time. The electronic device collects the pressure data collected by the pressure sensor or the flow data collected by the flow sensor in real time.

[0069] When the electronic device determines that the pressure in the oil pipe changes according to the collected pressure data, or determines that the flow in the oil pipe changes according to the collected flow data, the sampling data of the oil pipe at a plurality of groups of sampling time points is acquired according to a preset time period. Wherein the sampling data represents the pressure or flow of the fluid in the oil pipe, and the plurality of groups of sampling time points at least include a first time point, a second time point, and a third time point, the first time point is earlier than the second time point, and the second time point is earlier than the third time point. The sampling time points in two consecutive sampling time point groups can overlap. For example, the first sampling time point group includes the first time point, the second time point, and the third time point, the second sampling time point group includes the first time point, the second time point, and the third time point, the second time point of the first sampling time point group can be equal to the first time point of the second sampling time point group; the third time point of the first sampling time point group can be equal to the second time point of the second sampling time point group; the first time point of the first sampling time point group is not equal to any time point of the second sampling time point group, and the third time point of the second sampling time point group is not equal to any time point of the first sampling time point group.

[0070] The sampling data can be pressure of fluid in the pipeline (such as injection water) collected by a pressure sensor, or flow of fluid in the tank collected by a flow sensor. The preset time period can be a time period after the time point when the pressure in the pipeline changes, or a time period after the time point when the flow in the pipeline changes. There can be multiple preset time periods. For example, the preset time periods can include three preset time periods arranged in chronological order, wherein the first preset time period is 0-3 minutes after the time point when the change occurs, the second preset time period is 3-6 minutes after the time point when the change occurs, and the third preset time period is 6-9 minutes after the time point when the change occurs.

[0071] For any preset time period, the preset time period includes multiple groups of sampling time points. Any group of sampling time points includes at least a first time point, a second time point, and a third time point, the first time point is earlier than the second time point, and the second time point is earlier than the third time point. For example, for the first preset time period corresponding to 0-3 minutes after the time point when the change occurs, in the first preset time period, pressure data is sampled at 10 preset time points in chronological order, obtaining 10 sampling data. The 10 preset time points are divided into 8 groups of sampling time points in chronological order, each group of sampling time points includes a first time point, a second time point, and a third time point arranged in chronological order.

[0072] S102, for each group of sampling time points, determining the difference between the sampling data of the first time point and the second time point as a first difference, and determining the difference between the sampling data of the second time point and the third time point as a second difference.

[0073] For example, for each group of sampling time points, the difference between the sampling data of the first time point and the second time point can be determined as a first difference, and the difference between the sampling data of the second time point and the third time point can be determined as a second difference.

[0074] For example, for any group of sampling time points, the difference between the sampling data of the first time point and the second time point can be calculated according to the sampling data of the first time point and the sampling data of the second time point. For example, if the sampling data is pressure corresponding sampling data, the sampling value of the pressure corresponding to the second time point can be subtracted from the sampling value of the pressure corresponding to the first time point to obtain the difference, and the difference is determined as the first difference. The difference between the sampling data of the second time point and the third time point can be calculated according to the sampling data of the second time point and the sampling data of the third time point. For example, if the sampling data is pressure corresponding sampling data, the sampling value of the pressure corresponding to the third time point can be subtracted from the sampling value of the pressure corresponding to the second time point to obtain the difference, and the difference is determined as the second difference.

[0075] S103, if it is determined that the first difference value and the second difference value satisfy the preset condition, determining a data correction factor of the sampling time group according to the first difference value and the second difference value; wherein the data correction factor is used to correct the change trend of the sampling data.

[0076] For example, if the sampling data is pressure sampling data, the change trend of the sampling data is a change trend of pressure from high to low, or a change trend of pressure from low to high, or a change trend of pressure remaining unchanged; if the sampling data is flow sampling data, the change trend of the sampling data is a change trend of flow from large to small, or a change trend of flow from small to large, or a change trend of flow remaining unchanged.

[0077] For example, if the first difference value is a difference value obtained by subtracting the sampling value of pressure corresponding to the first time from the sampling value of pressure corresponding to the second time, when the first difference value is positive, it can reflect that from the first time to the second time, the change trend of pressure is from small to large; when the first difference value is negative, it can reflect that from the first time to the second time, the change trend of pressure is from large to small. If the second difference value is a difference value obtained by subtracting the sampling value of pressure corresponding to the second time from the sampling value of pressure corresponding to the third time, when the second difference value is positive, it can reflect that from the second time to the third time, the change trend of pressure is from small to large; when the second difference value is negative, it can reflect that from the second time to the third time, the change trend of pressure is from large to small.

[0078] When the positive and negative properties of the first difference value and the second difference value reflect that the change trends of the data are opposite, such as the first difference value reflects that from the first time to the second time, the change trend of pressure is from large to small, and the second difference value reflects that from the second time to the third time, the change trend of pressure is from small to large, at this time, it is possible that due to the influence of noise, the change trends of the three adjacent continuous sampling data are inconsistent. Therefore, whether the change trends of the continuous sampling data reflected by the first difference value and the second difference value are consistent can be used to determine whether the first difference value and the second difference value satisfy the preset condition.

[0079] Other properties of the first difference value and the second difference value can also be utilized to determine whether the first difference value and the second difference value satisfy the preset condition. For example, based on the positive and negative properties of the first difference value and the second difference value, the magnitude of the first difference value and the magnitude of the second difference value can reflect the change trend of the continuous sampling data, and can further reflect the change size of the continuous sampling data. Therefore, the magnitude of the first difference value and the second difference value can also be utilized to determine whether the first difference value and the second difference value satisfy the preset condition.

[0080] Based on this, if the first difference value and the second difference value satisfy the preset condition, it can be determined that the change trend of the continuous sampling data is inconsistent. Then, the data correction factor of the sampling time group is determined according to the first difference value and the second difference value. The data correction factor is used to correct the change trend of the sampling data. That is, if it is determined that the change trend of the continuous sampling data is inconsistent, it is possible that the change trend of the adjacent three continuous sampling data is inconsistent due to the influence of noise. The data correction factor can filter the influence of noise on the sampling data, thereby correcting the change trend of the sampling data.

[0081] For example, for the first difference value, if the first difference value is the difference value obtained by subtracting the sampling value of the pressure corresponding to the first time from the sampling value of the pressure corresponding to the second time, according to the difference mathematical property of data (the first-order difference of data can be the difference value of the current value and the value at the previous time), the first difference value can be analogized as the first-order difference data of data. Since the first-order difference data of data is sensitive to noise, and the second-order difference data of data (the second-order difference of data can be the difference of the first-order difference, i.e., the first-order difference data is differentiated again) can suppress the influence of noise, the second-order difference data corresponding to the first difference value and the second difference value, such as the difference value of the first difference value and the second difference value, can be determined as the data correction factor of the sampling time group.

[0082] S104, determining the trend bit information of the sampling time group according to the data correction factor of the sampling time group; wherein the trend bit information represents the change trend of the sampling data in the sampling time group, and the trend bit information is used to control the opening degree of the water nozzle, and the water nozzle is used to inject water through the oil pipe towards the oil layer.

[0083] For example, after determining the data correction factor of the sampling time group, the trend bit information of the sampling time group can be determined according to the data correction factor of the sampling time group; wherein the trend bit information represents the change trend of the sampling data in the sampling time group, and the trend bit information is used to control the opening degree of the water nozzle, and the water nozzle is used to inject water through the oil pipe towards the oil layer.

[0084] For example, the surface equipment changes the pressure or flow rate in the tubing at the wellhead, sends a water injection instruction to the downhole, and the downhole analyzes the water injection instruction through the sampled data of the pressure or flow rate. The content of the water injection instruction is the change trend of the pressure or flow rate. Since a single-point sampling is easy to capture abnormal extreme values caused by noise, and multiple sampled data are more likely to identify the real data change trend. Therefore, the multiple sampled data can be mapped into one data, and then the change trend of the sampled data is analyzed according to the mapped data.

[0085] Specifically, the three sampled data corresponding to the first time, the second time and the third time included in the sampling time group can be mapped into one data. For example, the trend bit information of the sampling time group can be determined according to the data correction factor of the sampling time group. The determined trend bit information is one data mapped from the three sampled data corresponding to the sampling time group. The trend bit information of the sampling time group can be determined according to the correction result of the change trend of the sampled data corrected by the correction factor. The trend bit information indicates the change trend of the three sampled data corresponding to the sampling time group. If the three sampled data are three pressure sampled data, the change trend of the three sampled data can be the change trend of the pressure from small to large, the change trend of the pressure from large to small, or the change trend of the pressure remaining unchanged.

[0086] The downhole can adjust the opening degree of the water nozzle according to the determined trend bit information. The surface and the uphole can pre-agree the change trend of the three sampled data corresponding to the trend bit information. After the downhole obtains the trend bit information, the change trend of the three sampled data corresponding to the trend bit information can be determined according to the trend bit information based on the pre-agreed content.

[0087] For example, according to the pre-agreed content, if the change trend of the three sampled data corresponding to the trend bit information is the change trend of the pressure from small to large, the downhole can increase the opening degree of the water nozzle according to the trend bit information, so that the pressure of the water injected into the oil layer through the water nozzle is increased; if the change trend of the three sampled data corresponding to the trend bit information is the change trend of the pressure from large to small, the downhole can decrease the opening degree of the water nozzle according to the trend bit information, so that the pressure of the water injected into the oil layer through the water nozzle is decreased. If the change trend of the three sampled data corresponding to the trend bit information is the change trend of the pressure remaining unchanged, the downhole can not change the opening degree of the water nozzle according to the trend bit information, so that the pressure of the water injected into the oil layer through the water nozzle remains unchanged.

[0088] The data processing method based on oilfield water injection provided in this application acquires sampling data of the oil pipe at multiple sampling time groups according to a preset time period. The sampling data represents the pressure or flow rate of the fluid within the oil pipe. Each sampling time group includes at least a first time, a second time, and a third time, with the first time earlier than the second time, and the second time earlier than the third time. This allows for the acquisition of multiple sets of sampling data, each including data from at least three time points, facilitating subsequent group analysis of the sampling data and reducing the noise impact of single-point sampling data analysis. For each sampling time group, the difference between the sampling data at the first and second times is determined as the first difference, and the difference between the sampling data at the second and third times is determined as the second difference. Intermediate data (including the first and second differences) can be extracted from each sampling time group. This intermediate data can be used for subsequent analysis of the changing trends of multiple sampling data corresponding to each sampling time group. If the first and second differences satisfy preset conditions, a data correction factor for the sampling time group is determined based on these differences. This correction factor corrects the trend of the sampled data. When the trends of multiple sampled data are unclear, a correction factor can be further extracted to correct the trend, allowing for subsequent correction of the sampled data's trend and thus obtaining an accurate trend. After determining the correction factor, the trend position information for the sampling time group is determined based on this correction factor. This trend position information characterizes the trend of the sampled data in the sampling time group and is used to control the nozzle opening. The nozzle injects water into the oil layer through the tubing. The obtained trend position information can be used to control the nozzle opening, thereby controlling the amount of water injected into the oil layer. Because the correction factor corrects the trend of the sampled data, it reduces the impact of noise on the sampled data, thereby improving the accuracy of oilfield water injection data processing and, consequently, the accuracy of parsing water injection commands.

[0089] In a specific embodiment, determining that the first difference and the second difference satisfy a preset condition in S103 above includes the following sub-steps:

[0090] If the first difference and the second difference are positive and negative numbers respectively, then the first difference and the second difference are determined to satisfy the preset conditions.

[0091] Figure 2 A flowchart illustrating the data processing method based on oilfield water injection provided in this application. Figure Two ,like Figure 2 As shown, in this embodiment... Figure 1 Based on the embodiments, the above S103 will be described in detail. The method includes:

[0092] S201, obtaining sampling data of the tubing at a plurality of groups of sampling time points according to a preset time period; wherein the sampling data represents pressure or flow of fluid in the tubing, and the plurality of groups of sampling time points at least include a first time point, a second time point, and a third time point, the first time point is earlier than the second time point, and the second time point is earlier than the third time point.

[0093] The execution process of S201 is consistent with that of S101, and will not be repeated here.

[0094] S202, for each group of sampling time points, determining a difference value of the sampling data between the first time point and the second time point as a first difference value, and determining a difference value of the sampling data between the second time point and the third time point as a second difference value.

[0095] The execution process of S202 is consistent with that of S102, and will not be repeated here.

[0096] S203, if the first difference value and the second difference value are positive and negative to each other, it is determined that the first difference value and the second difference value satisfy a preset condition, and a data correction factor of the group of sampling time points is determined according to the first difference value and the second difference value; wherein the data correction factor is used to correct the change trend of the sampling data.

[0097] For example, after obtaining the first difference value and the second difference value, if the first difference value and the second difference value are positive and negative to each other, it is determined that the first difference value and the second difference value satisfy a preset condition, and a data correction factor of the group of sampling time points is determined according to the first difference value and the second difference value; wherein the data correction factor is used to correct the change trend of the sampling data.

[0098] The first difference value and the second difference value being positive and negative to each other includes that the first difference value is greater than zero and the second difference value is less than zero, or the first difference value is less than zero and the second difference value is greater than zero. For example, if the first difference value is a difference value obtained by subtracting the sampling value of the pressure corresponding to the first time point from the sampling value of the pressure corresponding to the second time point. The second difference value is a difference value obtained by subtracting the sampling value of the pressure corresponding to the second time point from the sampling value of the pressure corresponding to the third time point. When the first difference value is greater than zero and the second difference value is less than zero, at this time, the change trend of the sampling data of the pressure from the first time point to the second time point is from small to large, and the change trend of the sampling data of the pressure from the second time point to the third time point is from large to small, and the change trend of the three sampling data corresponding to the first time point, the second time point, and the third time point cannot be determined according to the first difference value and the second difference value. Therefore, it is determined that the first difference value and the second difference value satisfy a preset condition. When the preset condition is satisfied, the data correction factor of the group of sampling time points needs to be further determined according to the first difference value and the second difference value, so that the change trend of the sampling data of the group of sampling time points can be corrected according to the data correction factor of the group of sampling time points in the subsequent process, and thus the exact change trend of the sampling data of the group of sampling time points can be obtained.

[0099] Similarly, when the first difference value is less than zero and the second difference value is greater than zero, at this time, the change trend of the sampling data of the first time to the second time is a change trend from large to small, and the change trend of the sampling data of the second time to the third time is a change trend from small to large, and the change trends of the three sampling data corresponding to the first time, the second time and the third time cannot be determined according to the first difference value and the second difference value, therefore, it is determined that the first difference value and the second difference value satisfy the preset condition. When the preset condition is satisfied, the data correction factor of the sampling time group needs to be further determined according to the first difference value and the second difference value, so as to subsequently correct the change trend of the sampling data of the sampling time group according to the data correction factor of the sampling time group, so as to obtain the exact change trend of the sampling data of the sampling time group.

[0100] S204, determining trend bit information of the sampling time group according to the data correction factor of the sampling time group; wherein the trend bit information represents the change trend of the sampling data in the sampling time group, and the trend bit information is used to control the opening degree of a water nozzle, and the water nozzle is used to inject water to an oil layer through an oil pipe.

[0101] The execution process of S204 is consistent with that of S104, and will not be described here.

[0102] In the embodiment of the present application, when the first difference value and the second difference value are positive and negative numbers, it is determined that the first difference value and the second difference value satisfy the preset condition, the positive and negative number properties of the first difference value and the second difference value can be used to determine that the first difference value and the second difference value satisfy the preset condition, when the preset condition is satisfied, the data correction factor needs to be further determined, and then the change trend of the sampling data of the sampling time group is corrected according to the correction factor. That is, the sampling data of the sampling time group that may be contaminated by noise can be found out by using the property that the first difference value and the second difference value are positive and negative numbers, so as to subsequently correct the sampling data of the sampling time group contaminated by noise.

[0103] In one specific embodiment, the above method further comprises the following steps:

[0104] If the first difference value and the second difference value are both greater than or equal to zero, it is determined that the trend bit information of the sampling time group is a first identifier.

[0105] Figure 3 Flowchart of the data processing method based on oil field water injection provided by the present application Figure Three As shown in Figure 3 the above method comprises:

[0106] S301, obtaining sampling data of the tubing at a plurality of groups of sampling time points according to a preset time period; wherein the sampling data represents pressure or flow of fluid in the tubing, and the plurality of groups of sampling time points at least include a first time point, a second time point, and a third time point, the first time point being earlier than the second time point, and the second time point being earlier than the third time point.

[0107] The execution process of S301 is consistent with that of S101, and will not be repeated here.

[0108] S302, determining a difference value of the sampling data between the first time point and the second time point as a first difference value, and determining a difference value of the sampling data between the second time point and the third time point as a second difference value for each group of sampling time points.

[0109] The execution process of S302 is consistent with that of S102, and will not be repeated here.

[0110] S303, if it is determined that the first difference value and the second difference value satisfy a preset condition, determining a data correction factor of the group of sampling time points according to the first difference value and the second difference value; wherein the data correction factor is used to correct a change trend of the sampling data.

[0111] The execution process of S303 is consistent with that of S103, and will not be repeated here.

[0112] S304, determining trend bit information of the group of sampling time points according to the data correction factor of the group of sampling time points; wherein the trend bit information represents a change trend of the sampling data in the group of sampling time points, and the trend bit information is used to control an opening degree of a water nozzle, and the water nozzle is used to inject water to an oil layer through the tubing.

[0113] The execution process of S304 is consistent with that of S104, and will not be repeated here.

[0114] S305, if the first difference value and the second difference value are both greater than or equal to zero, determining that the trend bit information of the group of sampling time points is a first identifier.

[0115] For example, after obtaining the first difference value and the second difference value, if the first difference value and the second difference value are both greater than or equal to zero, it is determined that the trend bit information of the group of sampling time points is a first identifier. The first identifier represents a change trend of the sampling data of the group of sampling time points.

[0116] For example, the first difference value is the difference between the sampling value of the pressure corresponding to the second moment and the sampling value of the pressure corresponding to the first moment. The second difference value is the difference between the sampling value of the pressure corresponding to the third moment and the sampling value of the pressure corresponding to the second moment. When the first difference value is greater than zero and the second difference value is greater than zero, at this time, the change trend of the sampling data of the pressure from the first moment to the second moment is a change trend from small to large or an unchanged change trend, and the change trend of the sampling data of the pressure from the second moment to the third moment is a change trend from small to large or an unchanged change trend. Therefore, it can be determined that the change trend of the sampling data of the pressure from the first moment to the second moment to the third moment is a change trend from small to large or an unchanged change trend. That is, it can be determined that the change trend of the sampling data of the sampling moment group is a change trend from small to large or an unchanged change trend. When it is determined that the change trend of the sampling data of the sampling moment group is a change trend from small to large or an unchanged change trend, the trend bit information of the sampling moment group is determined as the first identifier.

[0117] For example, the first identifier can be recorded as "1", and when the trend bit information of the sampling moment group is "1", it represents that the change trend of the sampling data of the sampling moment group is a change trend from small to large or an unchanged change trend. For example, if the sampling data is the sampling data of the pressure, the trend bit information of the sampling moment group is "1", which represents that the pressure increases or remains unchanged.

[0118] In the embodiment of the present application, according to the fact that the first difference value and the second difference value are both greater than or equal to zero, the trend bit information of the sampling moment group is determined as the first identifier. The fact that the first difference value and the second difference value are both greater than or equal to zero can be used to determine that the change trend of the sampling data in the sampling moment group is a specific change trend, and the specific change trend is recorded as the first identifier, so as to facilitate subsequent analysis of the change trend of all sampling data, and further to analyze the accurate water injection instruction.

[0119] In a specific embodiment, the above method further comprises:

[0120] If the first difference value and the second difference value are both negative numbers, the trend bit information of the sampling moment group is determined as the second identifier.

[0121] Figure 4 Flowchart of the data processing method based on oil field water injection provided in the present application Figure Four As shown in Figure 4 the above method comprises:

[0122] S401. Obtain, according to a preset time period, sampling data of the tubing at a plurality of groups of sampling time points; wherein the sampling data represents pressure or flow of fluid in the tubing, and the plurality of groups of sampling time points at least include a first time point, a second time point, and a third time point, the first time point being earlier than the second time point, and the second time point being earlier than the third time point.

[0123] The execution process of S401 is consistent with that of S101, and will not be repeated here.

[0124] S402. For each group of sampling time points, determine a difference value of the sampling data between the first time point and the second time point as a first difference value, and determine a difference value of the sampling data between the second time point and the third time point as a second difference value.

[0125] The execution process of S402 is consistent with that of S102, and will not be repeated here.

[0126] S403. If it is determined that the first difference value and the second difference value satisfy a preset condition, determine, according to the first difference value and the second difference value, a data correction factor of the group of sampling time points; wherein the data correction factor is used for correcting a change trend of the sampling data.

[0127] The execution process of S403 is consistent with that of S103, and will not be repeated here.

[0128] S404. Determine, according to the data correction factor of the group of sampling time points, trend bit information of the group of sampling time points; wherein the trend bit information represents a change trend of the sampling data in the group of sampling time points, and the trend bit information is used for controlling an opening degree of a water nozzle, and the water nozzle is used for injecting water through the tubing towards an oil layer.

[0129] The execution process of S404 is consistent with that of S104, and will not be repeated here.

[0130] S405. If the first difference value and the second difference value are both greater than or equal to zero, determine that the trend bit information of the group of sampling time points is a first identifier.

[0131] The execution process of S405 is consistent with that of S305, and will not be repeated here.

[0132] S406. If the first difference value and the second difference value are both negative numbers, determine that the trend bit information of the group of sampling time points is a second identifier.

[0133] For example, after obtaining the first difference value and the second difference value, if the first difference value and the second difference value are both negative numbers, it is determined that the trend bit information of the group of sampling time points is a second identifier. The second identifier represents another change trend of the sampling data in the group of sampling time points.

[0134] For example, the first difference value is a difference value obtained by subtracting the sampling value of the pressure corresponding to the first time from the sampling value of the pressure corresponding to the second time. The second difference value is a difference value obtained by subtracting the sampling value of the pressure corresponding to the second time from the sampling value of the pressure corresponding to the third time. When the first difference value is less than zero and the second difference value is less than zero, at this time, the change trend of the sampling data of the pressure from the first time to the second time is a change trend from large to small, and the change trend of the sampling data of the pressure from the second time to the third time is a change trend from large to small. Therefore, it can be determined that the change trend of the sampling data of the pressure from the first time to the second time to the third time is a change trend from large to small. That is, it can be determined that the change trend of the sampling data of the sampling time group is a change trend from large to small. When it is determined that the change trend of the sampling data of the sampling time group is a change trend from large to small, it is determined that the trend bit information of the sampling time group is the second identifier.

[0135] For example, the second identifier can be recorded as "0", and when the trend bit information of the sampling time group is "0", it represents that the change trend of the sampling data of the sampling time group is a change trend from large to small. For example, if the sampling data is the sampling data of the pressure, the trend bit information of the sampling time group is "0", which represents that the pressure decreases.

[0136] In the embodiment of the present application, according to the fact that the first difference value and the second difference value are both negative numbers, it is determined that the trend bit information of the sampling time group is the second identifier. The fact that the first difference value and the second difference value are both negative numbers can be used to determine that the change trend of the sampling data in the sampling time group is another specific change trend, and the other specific change trend is recorded as the second identifier, so as to analyze the change trend of all the sampling data in the subsequent analysis, and then accurately parse the water injection instruction.

[0137] In some specific embodiments, the data correction factor of the sampling time group is determined according to the first difference value and the second difference value in S103, including:

[0138] The difference value between the first difference value and the second difference value is determined as the data correction factor.

[0139] For example, the difference value between the first difference value and the second difference value is calculated, and the calculated difference value is determined as the data correction factor.

[0140] For example, the second difference value can be taken as the minuend, and the first difference value can be taken as the subtrahend, the difference value between the first difference value and the second difference value is calculated, and the difference value between the first difference value and the second difference value is determined as the data correction factor.

[0141] In these implementations, the difference between the first difference and the second difference is determined as a data correction factor. Since the first difference and the second difference can be analogous to the first-order difference data of the sampled data, the difference between the first difference and the second difference can be analogous to the second-order difference data of the sampled data. The second-order difference data of the sampled data can filter out noise in the sampled data. Therefore, the determined data correction factor can be used to correct the changing trend of the sampled data, thereby obtaining more accurate processed data with noise removal.

[0142] In a specific embodiment, determining the trend position information of the sampling time group based on the data correction factor of the sampling time group in S104 includes:

[0143] If the data correction factor of the sampling time group is negative, then the trend position information is determined based on the data correction factor and the preset first factor threshold.

[0144] Figure 5 A flowchart illustrating the data processing method based on oilfield water injection provided in this application. Figure Five ,like Figure 5 As shown, in this embodiment... Figure 1 Based on the embodiments, the above S104 will be described in detail. The method includes:

[0145] S501. According to the preset time period, obtain sampling data of the oil pipe in multiple sampling time groups; wherein, the sampling data represents the pressure or flow rate of the fluid in the oil pipe, and the sampling time group includes at least the first time, the second time, and the third time, with the first time earlier than the second time and the second time earlier than the third time.

[0146] The execution process of S501 is the same as that of S101, and will not be described again here.

[0147] S502. For each sampling time group, determine the difference between the sampling data at the first time and the second time, which is the first difference, and determine the difference between the sampling data at the second time and the third time, which is the second difference.

[0148] The execution process of S502 is the same as that of S102, and will not be described again here.

[0149] S503. If it is determined that the first difference and the second difference meet the preset conditions, then the data correction factor of the sampling time group is determined according to the first difference and the second difference; wherein, the data correction factor is used to correct the changing trend of the sampled data.

[0150] The execution process of S503 is the same as that of S103, and will not be described again here.

[0151] S504, if the data correction factor of the sampling time group is negative, determining trend bit information according to the data correction factor and a preset first factor threshold. The trend bit information represents the change trend of the sampling data in the sampling time group, and the trend bit information is used to control the opening degree of a water nozzle used for water injection through an oil pipe towards an oil layer.

[0152] For example, after determining the data correction factor of the sampling time group, if the data correction factor of the sampling time group is negative, the trend bit information is determined according to the data correction factor and a preset first factor threshold. The trend bit information represents the change trend of the sampling data in the sampling time group, and the trend bit information is used to control the opening degree of a water nozzle used for water injection through an oil pipe towards an oil layer.

[0153] The first factor threshold can be a threshold determined according to historical statistical data. For example, if the data correction factor of the sampling time group is the difference between the first difference value and the second difference value, the historical difference value of the historical first difference value and the historical second difference value can be counted when the historical first difference value and the historical second difference value satisfy the preset condition at historical time. If the change trends of the historical sampling data corresponding to more than 75% of the historical difference values are the same, the maximum historical difference value of the historical time corresponding to more than 75% of the historical difference values can be taken as the first factor threshold.

[0154] In the embodiments of the present application, when the data correction factor of the sampling time group is negative, the trend bit information is determined according to the data correction factor and a preset first factor threshold. For the case that the data correction factor is negative, the change trend of the sampling data in the sampling time group can be corrected by using the first factor threshold determined according to the historical statistical data and the change trend of the data correction factor, so as to obtain the change trend of the sampling data in the sampling time group after correction.

[0155] In a specific embodiment, the determination of the trend bit information according to the data correction factor and the preset first factor threshold in S504 includes:

[0156] First, if the data correction factor is less than or equal to the preset first factor threshold, the trend bit information is determined as a first identifier.

[0157] Second, if the data correction factor is greater than the preset first factor threshold, the trend bit information is determined as a second identifier.

[0158] Figure 6 Flowchart of the data processing method based on oil field water injection provided by the present application Figure Six As shown in FIG. 5, the method of the present embodiment includes the following steps: Figure 6 The method of the present embodiment includes the following steps: Figure 5 The method of the present embodiment includes the following steps:

[0159] S601, obtain sampling data of the tubing at a plurality of groups of sampling time points according to a preset time period; wherein the sampling data represents pressure or flow of fluid in the tubing, and the plurality of groups of sampling time points at least include a first time point, a second time point, and a third time point, the first time point is earlier than the second time point, and the second time point is earlier than the third time point.

[0160] The execution process of S601 is consistent with that of S501, and will not be repeated here.

[0161] S602, for each group of sampling time points, determine a difference value of the sampling data between the first time point and the second time point as a first difference value, and determine a difference value of the sampling data between the second time point and the third time point as a second difference value.

[0162] The execution process of S602 is consistent with that of S502, and will not be repeated here.

[0163] S603, if it is determined that the first difference value and the second difference value satisfy a preset condition, determine a data correction factor of the group of sampling time points according to the first difference value and the second difference value; wherein the data correction factor is used to correct a change trend of the sampling data.

[0164] The execution process of S603 is consistent with that of S503, and will not be repeated here.

[0165] S604, if the data correction factor of the group of sampling time points is a negative number and the data correction factor is less than or equal to a preset first factor threshold, determine the trend bit information as a second identifier.

[0166] For example, if the data correction factor of the group of sampling time points is a negative number and the data correction factor is less than or equal to a preset first factor threshold, the trend bit information is determined as a second identifier. The first factor threshold can be a threshold determined according to historical statistical data. The second identifier is described as in S604, and will not be repeated here.

[0167] Specifically, if the data correction factor is a difference value of the second difference value minus the first difference value, the first difference value is a difference value obtained by subtracting a sampling value of pressure corresponding to the first time point from a sampling value of pressure corresponding to the second time point, and the second difference value is a difference value obtained by subtracting a sampling value of pressure corresponding to the second time point from a sampling value of pressure corresponding to the third time point, when the data correction factor is a negative number, the second difference value is less than the first difference value, and it can be preliminarily determined that the change trend of the sampling data of the group of sampling time points is likely to be a trend of pressure from large to small. Further, if the data correction factor is less than or equal to a preset first factor threshold, the data can be compared with historical data to further determine that the change trend of the sampling data of the group of sampling time points is a trend of pressure from large to small.

[0168] S605, if the data correction factor of the sampling time group is negative and the data correction factor is greater than a preset first factor threshold, determining that the trend bit information is a first identifier. The trend bit information represents a change trend of the sampling data in the sampling time group, and the trend bit information is used to control the opening degree of a water nozzle used to inject water into an oil layer through an oil pipe.

[0169] For example, if the data correction factor of the sampling time group is negative and the data correction factor is greater than a preset first factor threshold, it is determined that the trend bit information is a first identifier. The trend bit information represents a change trend of the sampling data in the sampling time group, and the trend bit information is used to control the opening degree of a water nozzle used to inject water into an oil layer through an oil pipe.

[0170] Specifically, if the data correction factor is a difference between a second difference value and a first difference value, the first difference value is a difference between a sampling value of the pressure corresponding to the second time and a sampling value of the pressure corresponding to the first time, and the second difference value is a difference between a sampling value of the pressure corresponding to the third time and a sampling value of the pressure corresponding to the second time, when the data correction factor is negative, the second difference value is less than the first difference value, and it can be preliminarily determined that the change trend of the sampling data of the sampling time group is likely to be a trend that the pressure decreases from large to small. Further, if the data correction factor is greater than a preset first factor threshold, the data can be compared with historical data, and it is determined according to the historical data that the change trend of the sampling data of the sampling time group is not a trend that the pressure decreases from large to small, but a trend that the pressure increases from small to large.

[0171] In the embodiment of the application, when the data correction factor of the sampling time group is negative, if the data correction factor is less than or equal to a preset first factor threshold, the trend bit information is determined to be a first identifier; if the data correction factor is greater than the preset first factor threshold, the trend bit information is determined to be a second identifier. The first factor threshold can be obtained by using historical data, the data correction factor is compared with the historical data according to the comparison result of the data correction factor and the first factor threshold, and thus the real change trend of the sampling data of the sampling time group is determined.

[0172] In one specific embodiment, the determination of the trend bit information of the sampling time group according to the data correction factor of the sampling time group in S104 includes:

[0173] If the data correction factor of the sampling time group is positive, the trend bit information is determined according to the data correction factor and a preset second factor threshold.

[0174] Figure 7 Flowchart of the data processing method based on oil field water injection provided in the application Figure Seven As shown in the flowchart of the data processing method based on oil field water injection provided in the application, Figure 7 the embodiment of the application determines the trend bit information of the sampling time group according to the data correction factor of the sampling time group.Figure 1 The above S104 is described in detail based on the embodiments, and the method comprises:

[0175] S701, according to a preset time period, obtaining sampling data of the oil pipe at a plurality of groups of sampling time points; wherein the sampling data represents the pressure or flow of the fluid in the oil pipe, and the plurality of groups of sampling time points at least include a first time point, a second time point, and a third time point, the first time point is earlier than the second time point, and the second time point is earlier than the third time point.

[0176] The execution process of S701 is consistent with that of S101, and will not be repeated here.

[0177] S702, for each group of sampling time points, determining a difference value of the sampling data between the first time point and the second time point as a first difference value, and determining a difference value of the sampling data between the second time point and the third time point as a second difference value.

[0178] The execution process of S702 is consistent with that of S102, and will not be repeated here.

[0179] S703, if it is determined that the first difference value and the second difference value satisfy a preset condition, determining a data correction factor of the group of sampling time points according to the first difference value and the second difference value; wherein the data correction factor is used to correct the trend of the sampling data.

[0180] The execution process of S703 is consistent with that of S103, and will not be repeated here.

[0181] S704, if the data correction factor of the group of sampling time points is a positive number, determining trend bit information according to the data correction factor and a preset second factor threshold. Wherein the trend bit information represents the change trend of the sampling data in the group of sampling time points, and the trend bit information is used to control the opening degree of the water nozzle, and the water nozzle is used to inject water to the oil layer through the oil pipe.

[0182] For example, after determining the data correction factor of the group of sampling time points, if the data correction factor of the group of sampling time points is a positive number, the trend bit information is determined according to the data correction factor and a preset second factor threshold. Wherein the trend bit information represents the change trend of the sampling data in the group of sampling time points, and the trend bit information is used to control the opening degree of the water nozzle, and the water nozzle is used to inject water to the oil layer through the oil pipe.

[0183] The second factor threshold can be a threshold determined based on historical statistical data. For example, if the data correction factor for a sampling time group is the difference between the first difference and the second difference, then when statistically analyzing multiple historical time points, the historical difference between the first and second differences is positive when the historical difference meets a preset condition. If more than 75% of the historical difference corresponds to the same trend in the historical sampling data of the historical sampling time group, then the maximum historical difference of more than 75% of the historical time points can be used as the second factor threshold.

[0184] In this embodiment, when the data correction factor of the sampling time group is positive, trend information is determined based on the data correction factor and a preset second factor threshold. For cases where the data correction factor is positive, the trend of the sampled data in the sampling time group can be corrected using the second factor threshold determined from historical statistical data and the changing trend of the data correction factor, thereby obtaining the corrected trend of the sampled data in the sampling time group.

[0185] In a specific embodiment, determining the trend position information based on the data correction factor and a preset second factor threshold in S604 includes:

[0186] First, if the data correction factor is greater than or equal to the preset second factor threshold, then the trend position information is determined as the first identifier.

[0187] Second, if the data correction factor is less than the preset second factor threshold, then the trend position information is determined as the second identifier.

[0188] Figure 8 A flowchart illustrating the data processing method based on oilfield water injection provided in this application. Figure Eight ,like Figure 8 As shown, in this embodiment... Figure 7 Based on the embodiments, the above-described S704 will be described in detail. The method includes:

[0189] S801. According to the preset time period, obtain sampling data of the oil pipe in multiple sampling time groups; wherein, the sampling data represents the pressure or flow rate of the fluid in the oil pipe, and the sampling time group includes at least the first time, the second time, and the third time, with the first time earlier than the second time and the second time earlier than the third time.

[0190] The execution process of S801 is the same as that of S701, and will not be described again here.

[0191] S802. For each sampling time group, determine the difference between the sampling data at the first time and the second time, which is the first difference, and determine the difference between the sampling data at the second time and the third time, which is the second difference.

[0192] The execution process of S802 is consistent with that of S702, and thus details are not repeated here.

[0193] S803, if it is determined that the first difference value and the second difference value satisfy the preset condition, determining a data correction factor of the sampling time group according to the first difference value and the second difference value; wherein the data correction factor is used for correcting the change trend of the sampling data.

[0194] The execution process of S803 is consistent with that of S803, and thus details are not repeated here.

[0195] S804, if the data correction factor of the sampling time group is a positive number and the data correction factor is greater than or equal to a preset second factor threshold, determining that the trend bit information is a first identifier.

[0196] For example, if the data correction factor of the sampling time group is a positive number and the data correction factor is greater than or equal to a preset second factor threshold, it is determined that the trend bit information is a first identifier. The second factor threshold can be a threshold determined according to historical statistical data. The first identifier is described as in S305, and thus details are not repeated here.

[0197] Specifically, if the data correction factor is the difference between the second difference value and the first difference value, the first difference value is the difference between the sampling value of the pressure corresponding to the second time and the sampling value of the pressure corresponding to the first time, and the second difference value is the difference between the sampling value of the pressure corresponding to the third time and the sampling value of the pressure corresponding to the second time, when the data correction factor is a positive number, the second difference value is greater than the first difference value, and it can be preliminarily determined that the change trend of the sampling data of the sampling time group is likely to be a trend of pressure from small to large. Further, if the data correction factor is greater than or equal to a preset second factor threshold, the data can be compared with historical data to further determine that the change trend of the sampling data of the sampling time group is a trend of pressure from small to large.

[0198] S805, if the data correction factor of the sampling time group is a positive number and the data correction factor is less than a preset second factor threshold, determining that the trend bit information is a second identifier. The trend bit information represents the change trend of the sampling data in the sampling time group, and the trend bit information is used to control the opening degree of the water nozzle, which is used to inject water through the oil pipe towards the oil layer.

[0199] For example, if the data correction factor of the sampling time group is a positive number and the data correction factor is less than a preset second factor threshold, it is determined that the trend bit information is a second identifier. The trend bit information represents the change trend of the sampling data in the sampling time group, and the trend bit information is used to control the opening degree of the water nozzle, which is used to inject water through the oil pipe towards the oil layer. The second identifier is described as in S406, and thus details are not repeated here.

[0200] Specifically, if the data correction factor is a difference between a second difference value and a first difference value, the first difference value is a difference between a sampling value of the pressure corresponding to the second time and a sampling value of the pressure corresponding to the first time, and the second difference value is a difference between a sampling value of the pressure corresponding to the third time and a sampling value of the pressure corresponding to the second time, when the data correction factor is a positive number, the second difference value is greater than the first difference value, and it can be preliminarily determined that the change trend of the sampling data of the sampling time group is likely to be a trend from small to large. Further, if the data correction factor is less than a preset second factor threshold, the data can be compared with the historical data, and according to the historical data, it is determined that the change trend of the sampling data of the sampling time group is not a trend from small to large, but a trend from large to small.

[0201] In the embodiment of the application, when the data correction factor of the sampling time group is a positive number, if the data correction factor is greater than or equal to the preset second factor threshold, the trend bit information is determined as the first identifier; if the data correction factor is less than the preset second factor threshold, the trend bit information is determined as the second identifier. The second factor threshold obtained by using the historical data can be used to compare the data correction factor with the historical data according to the comparison result of the data correction factor and the second factor threshold, so as to determine the real change trend of the sampling data of the sampling time group.

[0202] In a specific embodiment, the trend bit information is the first identifier or the second identifier, and the method further includes:

[0203] First, the trend bit information of each group of sampling time groups is spliced to obtain a trend bit string.

[0204] Second, according to the number of the first identifiers in the trend bit string, the symbol information corresponding to the preset time period is obtained; wherein the decoding information represents the change trend of the sampling data in the preset time period.

[0205] Third, according to the symbol information corresponding to the preset time period of the preset number, the decoding information is obtained; wherein the decoding information is used to control the opening degree of the water nozzle.

[0206] Figure 9 Flowchart of the data processing method based on oil field water injection provided by the application Figure Nine As shown in the flowchart of the data processing method based on oil field water injection provided by the application Figure 9 The method includes:

[0207] S901, according to a preset time period, obtaining sampling data of the oil pipe at a plurality of groups of sampling time groups; wherein the sampling data represents the pressure or flow of the fluid in the oil pipe, and the sampling time group at least includes a first time, a second time, and a third time, the first time is earlier than the second time, and the second time is earlier than the third time.

[0208] The execution process of S901 is consistent with that of S101, which will not be repeated here.

[0209] S902, for each group of sampling time groups, determining the difference value of the sampling data between the first time and the second time as a first difference value, and determining the difference value of the sampling data between the second time and the third time as a second difference value.

[0210] The execution process of S902 is consistent with that of S102, which will not be repeated here.

[0211] S903, if it is determined that the first difference value and the second difference value satisfy the preset condition, determining a data correction factor of the sampling time group according to the first difference value and the second difference value; wherein the data correction factor is used to correct the change trend of the sampling data.

[0212] The execution process of S903 is consistent with that of S103, which will not be repeated here.

[0213] S904, determining the trend bit information of the sampling time group according to the data correction factor of the sampling time group.

[0214] The execution process of S904 is consistent with that of S104, which will not be repeated here.

[0215] S905, if the first difference value and the second difference value are both greater than or equal to zero, determining that the trend bit information of the sampling time group is a first identifier.

[0216] The execution process of S905 is consistent with that of S305, which will not be repeated here.

[0217] S906, if the first difference value and the second difference value are both negative numbers, determining that the trend bit information of the sampling time group is a second identifier.

[0218] The execution process of S906 is consistent with that of S406, which will not be repeated here.

[0219] S907, splicing the trend bit information of each group of sampling time groups to obtain a trend bit string.

[0220] For example, after determining the trend bit information of each group of sampling time groups, the trend bit information of each group of sampling time groups is spliced to obtain a trend bit string.

[0221] For example, the trend bit information of each group of sampling time groups can be spliced in the order of time to obtain a trend bit string.

[0222] S908, according to the number of first identifiers in the trend bit string, obtaining symbol information corresponding to a preset time period; wherein the symbol information represents the change trend of the sampling data in the preset time period.

[0223] For example, for any preset time period, after obtaining the trend bit string corresponding to the preset time period, the symbol information corresponding to the preset time period can be obtained according to the number of first identifiers in the trend bit string; wherein the symbol information represents the change trend of the sampling data in the preset time period.

[0224] For example, the total amount of first identifiers in the trend bit string and the total amount of characters in the trend bit string can be calculated. According to the ratio, the symbol information corresponding to the preset time period is determined. For example, according to the ratio being greater than or equal to a preset ratio threshold, it is determined that the symbol corresponding to the preset time period is a first symbol identifier; according to the ratio being less than the preset ratio threshold, it is determined that the symbol corresponding to the preset time period is a second symbol identifier. The ratio threshold can be determined according to historical experience, and the first symbol identifier and the second symbol identifier are two values of the symbol respectively. When the values of the symbol are different, the change trends of the sampling data in the preset time period are different.

[0225] S909, obtaining decoding information according to the symbol information corresponding to the preset number of preset time periods; wherein the decoding information is used to control the opening degree of the water nozzle.

[0226] For example, after obtaining the symbol information corresponding to each preset time period respectively, the decoding information can be obtained according to the symbol information corresponding to the preset number of preset time periods. The decoding information is used to control the opening degree of the water nozzle. The preset number can be determined according to the definition of the injection instruction on the well and the downhole. For example, if the unified injection instruction of the well and the downhole includes the symbol information of three preset time periods, the preset number is 3.

[0227] For example, the symbol information corresponding to each preset time period can be spliced according to the time sequence of each preset time period to obtain the decoding information. The decoding information corresponds to the decoding information of the injection instruction sent by the well.

[0228] It should be noted that the trend bit information corresponding to any sampling time group represents the change trend of the sampling data at the specific sampling time. The trend bit string obtained by splicing the trend bit information of each group of sampling time groups represents the change trend of multiple sampling data in any preset time period. The decoding information obtained by splicing the symbol information of each preset time period represents the total change trend of multiple sampling data in all preset time periods.

[0229] In the embodiment of the present application, the trend bit string is obtained by splicing the trend bit information of each group of sampling time groups, and the change trend of the sampling data corresponding to a single time can be obtained. The symbol information corresponding to the preset time period is obtained according to the number of the first identifier in the trend bit string, and the change trend of the sampling data in the preset time period, i.e., the change trend of the sampling data corresponding to the local time period, can be obtained. The decoding information is obtained according to the symbol information corresponding to the preset number of preset time periods, and the change trend of the sampling data in the multiple preset time periods, i.e., the change trend of the sampling data corresponding to the complete sampling period, can be obtained, so as to parse the water injection instruction sent from the wellhead, adjust the water nozzle opening degree according to the water injection instruction, and realize real-time communication between the wellhead and the downhole.

[0230] A specific embodiment is provided below to further illustrate the technical solution of the present application.

[0231] It is assumed that the surface equipment sends a water injection instruction to the downhole by adjusting the wellhead pressure, and the water injection instruction is an instruction "010" agreed in advance by the wellhead and the downhole. The water injection instruction includes three symbol information, which are "0", "1", and "0", respectively. The downhole parses the water injection instruction "010" by sampling the pressure data, and adjusts the water nozzle opening degree according to the actual meaning agreed in advance after parsing the water injection instruction "010".

[0232] After the downhole detects that the pressure in the tubing changes, 10 pressure sampling data are sampled every 3 minutes, and a total of 30 sampling data in 9 minutes are collected. One symbol information is parsed from the sampling data in each 3 minutes. The following takes the data parsing of the 10 sampling data in the first 3 minutes as an example for illustration.

[0233] It is assumed that 10 sampling data are sampled in the first 3 minutes, and the sampling values of the sampling data are 10, 10.2, 10.5, 10.4, 10.5, 9.8, 9.6, 9.9, 10.2, and 10.1, respectively, in units of megapascal.

[0234] The 10 sampling data are grouped to obtain 8 sampling time groups, wherein every 3 sampling data is a sampling time group. The sampling data of the first sampling time group includes 10, 10.2, and 10.5, the sampling data of the second sampling time group includes 10.2, 10.5, and 10.4, and so on, and the sampling data of the eighth sampling time group includes 9.9, 10.2, and 10.1.

[0235] For the first sampling time group, the first difference value is 10.2 minus 10, equal to 0.2; the second difference value is 10.5 minus 10.2, equal to 0.3. Since the first difference value is greater than 0 and the second difference value is greater than zero, it can be determined that the trend bit information of the first sampling time group is "1", indicating that the sampling data of the first sampling time group is in a change trend from small to large.

[0236] For the second sampling time group, the first difference value is 10.5 minus 10.2, equal to 0.3; the second difference value is 10.4 minus 10.5, equal to -0.1. Since the first difference value is greater than 0 and the second difference value is less than zero, a data correction factor corresponding to the second sampling time group is calculated, which is -0.1 minus 0.4, equal to -0.5, and the data correction factor is less than zero, being negative. Assuming that the first factor threshold is -0.5, since the data correction factor is greater than the first factor threshold, it can be determined that the trend bit information of the second sampling time group is "1", indicating that the sampling data of the second sampling time group is in a change trend from large to small.

[0237] For the third sampling time group, the first difference value is 10.4 minus 10.5, equal to -0.1; the second difference value is 10.5 minus 10.4, equal to 0.1. Since the first difference value is less than 0 and the second difference value is greater than zero, a data correction factor corresponding to the third sampling time group is calculated, which is 0.1 minus -0.1, equal to 0.2, and the data correction factor is greater than zero, being positive. Assuming that the second factor threshold is 0.5, since the data correction factor is less than the second factor threshold, it can be determined that the trend bit information of the third sampling time group is "0".

[0238] For the fourth sampling time group, the first difference value is 10.5 minus 10.4, equal to 0.1; the second difference value is 9.8 minus 10.5, equal to -0.7. Since the first difference value is greater than 0 and the second difference value is less than zero, a data correction factor corresponding to the fourth sampling time group is calculated, which is -0.7 minus 0.1, equal to -0.8, and the data correction factor is less than zero, being negative. Since the data correction factor is less than the first factor threshold, it can be determined that the trend bit information of the fourth sampling time group is "0".

[0239] For the fifth sampling time group, the first difference value is 9.8 minus 10.5, equal to -0.7; the second difference value is 9.6 minus 9.8, equal to -0.2. Since the first difference value is less than 0 and the second difference value is less than zero, it can be determined that the trend bit information of the fifth sampling time group is "0".

[0240] For the sixth sampling time group, the first difference value is the difference between 9.6 and 9.8, equaling -0.2; the second difference value is the difference between 9.9 and 9.6, equaling 0.3. Since the first difference value is less than 0 and the second difference value is greater than 0, the data correction factor corresponding to the sixth sampling time group is calculated, which is 0.3 minus -0.2, equaling 0.5, and the data correction factor is greater than 0, being a positive number. Since the data correction factor is equal to the second factor threshold value, it can be determined that the trend bit information of the sixth sampling time group is "1".

[0241] For the seventh sampling time group, the first difference value is the difference between 9.9 and 9.6, equaling 0.3; the second difference value is the difference between 10.2 and 9.9, equaling 0.3. Since the first difference value is greater than 0 and the second difference value is greater than 0, it can be determined that the trend bit information of the seventh sampling time group is "1".

[0242] For the eighth sampling time group, the first difference value is the difference between 10.2 and 9.9, equaling 0.3; the second difference value is the difference between 10.1 and 10.2, equaling -0.1. Since the first difference value is greater than 0 and the second difference value is less than 0, the data correction factor corresponding to the eighth sampling time group is calculated, which is -0.1 minus 0.3, equaling -0.4, and the data correction factor is less than 0, being a negative number. Since the data correction factor is greater than the first factor threshold value, it can be determined that the trend bit information of the eighth sampling time group is "1".

[0243] Splicing the trend bit information corresponding to all eight sampling time groups respectively, the trend bit string "11000111" is obtained. Among them, the number of trend bit information "1" is equal to 5, accounting for 5 / 8 of all trend bit information, which is less than the preset ratio threshold value 2 / 3, therefore, the symbol information corresponding to the first 3 minutes is "0", indicating that the change trend of all sampling data in the first 3 minutes is a change trend from large to small.

[0244] Based on the same method, by analyzing all the sampling data in the second 3 minutes, it can be obtained that the symbol information corresponding to the second 3 minutes is "1", and the symbol information corresponding to the third 3 minutes is "0". Splicing these three symbol information, the decoding information is "010", which is the water injection instruction sent by the ground equipment to the downhole. After the downhole analyzes the water injection instruction "010", according to the meaning determined by the prior agreement, if the water injection instruction "010" indicates that the water injection amount to the oil layer is reduced by thirty percent, then by adjusting the opening degree of the water nozzle, the water injection amount through the water nozzle to the oil layer is reduced by thirty percent, so as to realize the remote control of the ground to the downhole.

[0245] Figure 10 The structure schematic diagram of the data processing device based on oil field water injection provided in the present application is as follows: Figure 10As shown, the data processing device based on oilfield water injection provided in the embodiment comprises:

[0246] The acquisition module 1001 is configured to acquire sampling data of the oil pipe at a plurality of groups of sampling time points according to a preset time period, wherein the sampling data represents pressure or flow of fluid in the oil pipe, and the plurality of groups of sampling time points at least include a first time point, a second time point, and a third time point, the first time point is earlier than the second time point, and the second time point is earlier than the third time point.

[0247] The first determination module 1002 is configured to determine, for each group of sampling time points, a difference value of the sampling data between the first time point and the second time point as a first difference value, and a difference value of the sampling data between the second time point and the third time point as a second difference value.

[0248] The second determination module 1003 is configured to determine, if the first difference value and the second difference value satisfy a preset condition, a data correction factor of the group of sampling time points according to the first difference value and the second difference value, wherein the data correction factor is used for correcting a change trend of the sampling data.

[0249] The third determination module 1004 is configured to determine trend bit information of the group of sampling time points according to the data correction factor of the group of sampling time points, wherein the trend bit information represents a change trend of the sampling data in the group of sampling time points, and the trend bit information is used for controlling an opening degree of a water nozzle, and the water nozzle is used for injecting water to an oil layer through the oil pipe.

[0250] In a possible implementation, the second determination module 1003 is further configured to:

[0251] If the first difference value and the second difference value are positive and negative numbers respectively, it is determined that the first difference value and the second difference value satisfy the preset condition.

[0252] In a possible implementation, the second determination module 1003 is further configured to:

[0253] The difference value between the first difference value and the second difference value is determined as the data correction factor.

[0254] In a possible implementation, the third determination module 1004 is further configured to:

[0255] If the data correction factor of the group of sampling time points is a negative number, the trend bit information is determined according to the data correction factor and a preset first factor threshold.

[0256] In a possible implementation, the third determination module 1004 is further configured to:

[0257] If the data correction factor is less than or equal to the preset first factor threshold, the trend bit information is determined as a first identifier.

[0258] If the data correction factor is greater than the first factor threshold, the trend bit information is determined as the second identifier.

[0259] In a possible implementation, the third determining module 1004 is further configured to:

[0260] If the data correction factor of the sampling time group is a positive number, the trend bit information is determined according to the data correction factor and the second factor threshold.

[0261] In a possible implementation, the third determining module 1004 is further configured to:

[0262] If the data correction factor is greater than or equal to the second factor threshold, the trend bit information is determined as the first identifier.

[0263] If the data correction factor is less than the second factor threshold, the trend bit information is determined as the second identifier.

[0264] In a possible implementation, the data processing apparatus based on oilfield water injection 100 further includes a fourth determining module configured to:

[0265] If the first difference and the second difference are both greater than or equal to zero, the trend bit information of the sampling time group is determined as the first identifier.

[0266] In a possible implementation, the data processing apparatus based on oilfield water injection 100 further includes a fifth determining module configured to:

[0267] If the first difference and the second difference are both negative numbers, the trend bit information of the sampling time group is determined as the second identifier.

[0268] In a possible implementation, the data processing apparatus based on oilfield water injection 100 further includes a decoding module configured to:

[0269] The trend bit information of each group of sampling time groups is spliced to obtain a trend bit string.

[0270] According to the number of the first identifiers in the trend bit string, the symbol information corresponding to the preset time period is obtained; wherein the decoding information represents the change trend of the sampling data in the preset time period.

[0271] According to the symbol information corresponding to the preset number of preset time periods, the decoding information is obtained; wherein the decoding information is used to control the water nozzle opening degree.

[0272] The data processing apparatus based on oilfield water injection provided in this embodiment can execute the method provided in the method embodiment, and has similar implementation principles and technical effects, which will not be described here.

[0273] Figure 11A structural schematic diagram of an oilfield water injection based data processing device is provided in the present application. As shown in Figure 11 The oilfield water injection based data processing device 110 provided in the present embodiment comprises at least one processor 1101 and a memory 1102. Optionally, the oilfield water injection based data processing device 110 further comprises a communication component 1103. The processor 1101, the memory 1102 and the communication component 1103 are connected through a bus.

[0274] In the implementation process, the at least one processor 1101 executes the computer execution instructions stored in the memory 1102, so that the at least one processor 1101 executes the above-mentioned method.

[0275] The specific implementation process of the processor 1101 can refer to the above-mentioned method embodiments, which have similar implementation principles and technical effects, and will not be described here in detail.

[0276] In the above-mentioned embodiments, it should be understood that the processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC) and the like. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor and the like. The steps of the method disclosed in the present application can be directly embodied as the execution of the hardware processor, or executed by the combination of the hardware and software modules in the processor.

[0277] The memory can contain a random access memory (RAM), and can also include a non-volatile memory (NVM), for example, at least one disk memory.

[0278] The bus can be an industry standard architecture (ISA) bus, a peripheral component (PCI) bus or an extended industry standard architecture (EISA) bus and the like. The bus can be divided into an address bus, a data bus, a control bus and the like. For the convenience of representation, the bus in the drawings of the present application does not limit to only one bus or one type of bus.

[0279] The application further provides a computer program product comprising a computer program which, when executed by a processor, implements the method described above.

[0280] The application further provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and when a processor executes the computer execution instructions, the method described above is implemented.

[0281] The readable storage medium described above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0282] An exemplary readable storage medium is coupled to the processor, so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in the device.

[0283] The division of units is only a logical function division, and in actual implementation, there can be another division mode, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0284] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on a plurality of network units. According to actual needs, some or all of the units can be selected to achieve the purpose of the embodiment.

[0285] In addition, the functional units in each embodiment of the application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.

[0286] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the parts of the technical solutions that essentially contribute to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the embodiments of the method of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0287] It can be understood by those skilled in the art that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, and various media that can store program codes.

[0288] Finally, it should be noted that: those skilled in the art will easily think of other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application that follow the general principles of the present application and include common knowledge or conventional technical means in the art that are not disclosed in the present application, and is not limited to the precise structure described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the present application is only limited by the appended claims.

Claims

1. A data processing method based on oilfield water injection, characterized in that, include: According to a preset time period, sampling data of the oil pipe is acquired at multiple sampling time groups; wherein, the sampling data represents the pressure or flow rate of the fluid in the oil pipe, and the sampling time group includes at least a first time, a second time, and a third time, wherein the first time is earlier than the second time, and the second time is earlier than the third time; For each sampling time group, the difference between the sampling data between the first time and the second time is determined as the first difference, and the difference between the sampling data between the second time and the third time is determined as the second difference; If it is determined that the first difference and the second difference satisfy a preset condition, then a data correction factor for the sampling time group is determined based on the first difference and the second difference; wherein, the data correction factor is used to correct the changing trend of the sampled data; Based on the data correction factor of the sampling time group, the trend bit information of the sampling time group is determined; wherein, the trend bit information characterizes the changing trend of the sampling data in the sampling time group, the trend bit information is used to control the water nozzle opening, and the water nozzle is used to inject water toward the oil layer through the oil pipe.

2. The method according to claim 1, characterized in that, The step of determining that the first difference and the second difference satisfy a preset condition includes: If the first difference and the second difference are positive and negative numbers respectively, then it is determined that the first difference and the second difference satisfy a preset condition.

3. The method according to claim 1, characterized in that, The step of determining the data correction factor for the sampling time group based on the first difference and the second difference includes: The difference between the first difference and the second difference is determined as the data correction factor.

4. The method according to claim 1, characterized in that, Determining the trend bit information of the sampling time group based on the data correction factor of the sampling time group includes: If the data correction factor of the sampling time group is negative, the trend bit information is determined based on the data correction factor and the preset first factor threshold.

5. The method according to claim 4, characterized in that, The step of determining the trend position information based on the data correction factor and a preset first factor threshold includes: If the data correction factor is less than or equal to a preset first factor threshold, then the trend position information is determined to be the second identifier; If the data correction factor is greater than the preset first factor threshold, then the trend position information is determined to be the first identifier.

6. The method according to claim 1, characterized in that, The step of determining the trend position information based on the data correction factor of the sampling time group further includes: If the data correction factor of the sampling time group is positive, the trend position information is determined based on the data correction factor and the preset second factor threshold.

7. The method according to claim 6, characterized in that, The step of determining the trend position information based on the data correction factor and a preset second factor threshold includes: If the data correction factor is greater than or equal to a preset second factor threshold, then the trend position information is determined to be the first identifier; If the data correction factor is less than the preset second factor threshold, then the trend position information is determined to be the second identifier.

8. The method according to claim 1, characterized in that, The method further includes: If both the first difference and the second difference are greater than or equal to zero, then the trend bit information of the sampling time group is determined as the first identifier.

9. The method according to claim 1, characterized in that, The method further includes: If both the first difference and the second difference are negative, then the trend bit information of the sampling time group is determined as the second identifier.

10. The method according to claim 1, characterized in that, The trend position information is either a first identifier or a second identifier; it also includes: The trend bit information of each sampling time group is concatenated to obtain the trend bit string; Based on the number of the first identifier in the trend bit string, the code element information corresponding to the preset time period is obtained; wherein, the code element information represents the changing trend of the sampled data within the preset time period; Decoding information is obtained based on the code information corresponding to a preset number of preset time periods; wherein, the decoding information is used to control the water tap opening degree.

11. A data processing device based on oilfield water injection, characterized in that, include: The acquisition module is used to acquire sampling data of the oil pipe at multiple sampling time groups according to a preset time period; wherein, the sampling data represents the pressure or flow rate of the fluid in the oil pipe, and the sampling time group includes at least a first time, a second time, and a third time, wherein the first time is earlier than the second time, and the second time is earlier than the third time; The first determining module is used to determine, for each group of sampling time points, the difference between the sampled data at the first time point and the second time point as a first difference, and the difference between the sampled data at the second time point and the third time point as a second difference; The second determining module is used to determine a data correction factor for the sampling time group based on the first difference and the second difference if the first difference and the second difference satisfy a preset condition; wherein the data correction factor is used to correct the changing trend of the sampled data. The third determining module is used to determine the trend position information of the sampling time group based on the data correction factor of the sampling time group; wherein, the trend position information represents the changing trend of the sampling data in the sampling time group, the trend position information is used to control the opening of the water nozzle, and the water nozzle is used to inject water toward the oil layer through the oil pipe.

12. A data processing device based on oilfield water injection, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-10.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-10.

14. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-10.