A method for optimizing the injection of bactericidal and corrosion inhibitors for shale gas production and transportation pipelines
By establishing a bacterial prediction model and optimizing the corrosion inhibitor filling strategy, the pipeline corrosion problem caused by bacteria and carbon dioxide in shale gas fields was solved, the efficient use of corrosion inhibitors and bacterial control were achieved, and the service life of the pipeline was extended.
Patent Information
- Application Number
- CN202410874882.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-02
AI Technical Summary
The existing technology causes pipe corrosion in shale gas fields due to corrosion by bacteria and carbon dioxide, resulting in production safety and environmental protection issues. Moreover, the existing corrosion inhibitor filling process has problems such as poor timeliness, high cost, and the development of drug resistance.
By establishing a pipeline bacteria prediction model, the amount of bacteria during the injection cycle is predicted, the corrosion inhibitor filling amount is set according to the error value between the actual and predicted bacterial amounts, and the filling day correction strategy and corrosion inhibitor replacement strategy are adopted to optimize the corrosion inhibitor. filling cycle and dosage.
It effectively avoids corrosion protection lag, reduces the dosage of corrosion inhibitors, extends the service life of pipelines, and promptly replaces corrosion inhibitors when bacterial resistance develops to prevent the corrosion rate from accelerating.
Smart Images

Figure CN118411159B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of shale gas corrosion control, and in particular to a method for optimizing the injection of a bactericidal corrosion inhibitor for a shale gas production and transportation pipeline. Background Art
[0002] During the development of shale gas fields, ground injection of water, drilling fluid, fracturing fluid, etc. will bring bacteria into the production system, including iron bacteria, saprophytes and sulfate-reducing bacteria. In addition, shale gas contains a small amount of corrosive media such as carbon dioxide. Under the mixed effect of bacteria and carbon dioxide, the downhole pipes and ground gathering and transportation systems of shale gas fields face serious corrosion. The perforation caused by pipeline corrosion has a great impact on production safety and environmental protection. It is particularly important to extend the service life of pipelines. In view of the mixed effect of bacteria and carbon dioxide, the injection of bactericidal corrosion inhibitors is currently widely used as a prevention and control measure.
[0003] At present, the commonly used corrosion inhibitor injection processes in China include periodic corrosion inhibitor injection, continuous corrosion inhibitor injection and one-time corrosion inhibitor injection; the periodic corrosion inhibitor injection process is often used in gas wells with small gas production because of its poor timeliness and prone to corrosion protection lag. Continuous corrosion inhibitor injection maintains the integrity and durability of the protective film through continuous injection of agents, and the protection is more uniform; however, the high frequency of agent injection makes the cost high, and the injection of agents needs to be continuously adjusted according to the daily production situation, resulting in large calculations and high maintenance costs. In addition, continuous injection of agents is more likely to cause bacteria in the pipeline to develop drug resistance, making it difficult to predict the corrosion rate of the pipeline, and the injection is difficult. One-time corrosion inhibitor injection is to squeeze the corrosion inhibitor into the gas-producing layer at one time, so that the corrosion inhibitor is forced to adsorb in the porous rocks of the gas layer. During the gas production process, the corrosion inhibitor is continuously desorbed and taken out of the well by the produced gas to ensure a stable corrosion inhibitor concentration in the long term during production; it is suitable for gas wells with severe corrosion, and its process is more complicated, the construction is difficult, and the cost is high. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method for optimizing the injection of sterilization and corrosion inhibitors for shale gas production and transportation pipelines, which uses periodic injection of corrosion inhibitors and has better timeliness and effectively prevents corrosion protection lag.
[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:
[0006] A method for optimizing the injection of bactericidal and corrosion inhibitors for shale gas production and transportation pipelines is provided, which comprises the following steps:
[0007] S1: Collect pipeline production and operation data and bacterial data;
[0008] S2: Establish a pipeline bacteria prediction model and use pipeline production operation data and bacteria data to train the pipeline bacteria prediction model;
[0009] S3: The second day after adding corrosion inhibitor is taken as the prediction day , forecast day The next day, the injection cycle H begins. The injection cycle is determined according to the performance of the corrosion inhibitor. Actual pipeline production and operation data and bacteria data for the day Input the trained prediction model to obtain the predicted amount of bacteria per day within the injection cycle H , i It is the date number within the injection cycle, and the injection day is determined according to the predicted bacterial quantity;
[0010] S4: Collect the actual bacterial count from the first day of the injection cycle to the filling day, and set the corrosion inhibitor filling amount according to the error value between the actual bacterial count and the predicted bacterial count;
[0011] S5: After the corrosion inhibitor is added, the day after the addition is used as the prediction day again, and the process returns to step S3.
[0012] Furthermore, the determination of the injection day specifically includes: calculating the predicted bacterial increment ratio every day during the injection cycle ;
[0013] When i Bacterial growth rate per day When it is greater than the set threshold, i -1 day as a recharge day, when i =1, that is, the bacterial increment ratio on the first day If it is greater than the set threshold, the forecast day will be used as the refilling day, and the corrosion inhibitor will be refilled at the end of production on the forecast day;
[0014] When any day in the injection cycle H is not determined as the injection day, the injection day is the last day of the injection cycle.
[0015] Furthermore, it also includes the strategy of revising the betting day: when i When the bacterial increment ratio for three consecutive days starting from the day is greater than the bacterial increment ratio of the previous day, that is, when , will i -1 day is used as the re-addition day; otherwise no correction is made.
[0016] Furthermore, it also includes a corrosion inhibitor replacement strategy: when the time interval between the filling date and the last filling date is less than or equal to half of the filling cycle, the corrosion inhibitor type is replaced.
[0017] Furthermore, the amount of corrosion inhibitor added is T The calculation formula is:
[0018]
[0019] in, i -1 is the time between the injection date and the prediction date; For the Actual bacteria data for the day, ; is the predicted bacterial data for the kth day; α is the error value threshold; β is the error correction factor; This is the minimum amount of corrosion inhibitor to be added.
[0020] Furthermore, the pipeline production operation data includes the i The medium temperature in the pipeline , Pipeline pressure , medium flow rate and carbon dioxide content ; The pipeline bacteria prediction model is:
[0021] ;
[0022] in, is a random parameter; is the error term; As regression factors, the collected pipeline production and operation data and bacteria data are input into the model to evaluate the random parameters , error term and regression factor training and fitting.
[0023] The beneficial effects of the present invention are:
[0024] The present invention establishes a prediction model for the amount of bacteria in the shale gas pipeline. By predicting the amount of bacteria during the injection cycle, the next injection date is determined after each injection. In conjunction with the set injection date correction strategy, the pipeline can be injected in time, effectively avoiding corrosion protection lag.
[0025] The present invention calculates the injection amount of the corrosion inhibitor by means of the actually measured bacterial amount and the predicted bacterial amount, so that the amount of the corrosion inhibitor is determined according to the production cycle, thereby reducing the impact of the shale gas production rate.
[0026] The corrosion inhibitor replacement strategy can be used to replace the corrosion inhibitor in time when the bacteria just begin to develop or are about to develop drug resistance, thereby effectively killing the bacteria and avoiding excessive bacteria that accelerate the rate of pipeline corrosion. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0028] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0029] like Figure 1 As shown, a method for optimizing the injection of bactericidal and corrosion inhibitors for shale gas production and transportation pipelines comprises the following steps:
[0030] S1: Collect pipeline production and operation data and bacterial data;
[0031] S2: Establish a pipeline bacteria prediction model and use pipeline production operation data and bacteria data to train the pipeline bacteria prediction model;
[0032] S3: The second day after adding corrosion inhibitor is taken as the prediction day , forecast day The next day, the injection cycle H begins. The injection cycle is determined according to the performance of the corrosion inhibitor. Actual pipeline production and operation data and bacteria data for the day Input the trained prediction model to obtain the predicted amount of bacteria per day within the injection cycle H , i It is the date number within the injection cycle, and the injection day is determined according to the predicted bacterial quantity;
[0033] S4: Collect the actual bacterial count from the first day of the injection cycle to the filling day, and set the corrosion inhibitor filling amount according to the error value between the actual bacterial count and the predicted bacterial count;
[0034] S5: After the corrosion inhibitor is added, the day after the addition is used as the prediction day again, and the process returns to step S3.
[0035] The method for determining the refilling date specifically includes:
[0036] Calculate the predicted bacterial increase ratio per day during the injection cycle ;
[0037] When i Bacterial growth rate per day When it is greater than the set threshold, i -1 day as a recharge day, when i =1, that is, the bacterial increment ratio on the first day If it is greater than the set threshold, the forecast day will be used as the refilling day, and the corrosion inhibitor will be refilled at the end of production on the forecast day;
[0038] When any day in the injection cycle H is not determined as the injection day, the injection day is the last day of the injection cycle.
[0039] It also includes the strategy for the correction of the raise day: i The bacterial increase ratio for three consecutive days starting from the day When the bacterial increment ratio is greater than the previous day, i -1 day is used as the re-addition day; otherwise no correction is made.
[0040] When implemented specifically, the steps include: using the i Actual pipeline production operation data and bacteria data Input the trained prediction model to obtain secondary bacteria prediction data ; and calculate the quadratic prediction error value , when the quadratic prediction error and exceeds the threshold g When , the first day exceeding the threshold is taken as the recharging day. Taking H = 15 as an example, the sum of the secondary prediction errors obtained from the 1st to 4th days does not exceed the threshold g , when the quadratic error of the 6th to 15th day predicted on the 5th day exceeds the threshold g ,and ,and , and the 12th day will be the refilling day.
[0041] It also includes a corrosion inhibitor replacement strategy: when the time interval between the filling date and the last filling date is less than or equal to half of the filling cycle, replace the corrosion inhibitor type.
[0042] The amount of corrosion inhibitor added T The calculation formula is:
[0043]
[0044] in, i -1 is the time between the injection date and the prediction date; For the Actual bacteria data for the day, ; is the predicted bacterial data for the kth day; α is the error value threshold; β is the error correction factor; This is the minimum amount of corrosion inhibitor to be added.
[0045] The pipeline production and operation data includes i The medium temperature in the pipeline , Pipeline pressure , medium flow rate and carbon dioxide content ; The pipeline bacteria prediction model is:
[0046] ;
[0047] in, is a random parameter; is the error term; As regression factors, the collected pipeline production and operation data and bacteria data are input into the model to evaluate the random parameters , error term and regression factor training and fitting.
Claims
1. A method for optimizing the injection of bactericidal and corrosion inhibitors for shale gas production and transportation pipelines, characterized in that: The steps include: S1: Collect pipeline production and operation data and bacterial data; S2: Establish a pipeline bacteria prediction model and use pipeline production operation data and bacteria data to train the pipeline bacteria prediction model; S3: The second day after adding corrosion inhibitor is taken as the prediction day , forecast day The next day, the injection cycle H begins. The injection cycle is determined according to the performance of the corrosion inhibitor. Actual pipeline production and operation data and bacteria data for the day Input the trained prediction model to obtain the predicted amount of bacteria per day within the injection cycle H , i It is the date number within the injection cycle, and the injection day is determined according to the predicted bacterial quantity; S4: Collect the actual bacterial count from the first day of the injection cycle to the filling day, and set the corrosion inhibitor filling amount according to the error value between the actual bacterial count and the predicted bacterial count; S5: After the corrosion inhibitor is added, the day after the addition is used as the prediction day again, and the process returns to step S3; The method for determining the refilling date specifically includes: Calculate the predicted bacterial increase ratio per day during the injection cycle ; When i Bacterial growth rate per day When it is greater than the set threshold, i -1 day as a recharge day, when i =1, that is, the bacterial increment ratio on the first day If it is greater than the set threshold, the forecast day will be used as the refilling day, and the corrosion inhibitor will be refilled at the end of production on the forecast day; When any day in the injection cycle H is not determined as the injection day, the injection day is the last day of the injection cycle.
2. The method for optimizing the injection of bactericidal and corrosion inhibitors for shale gas production and transportation pipelines according to claim 1, characterized in that: It also includes the strategy for the correction of the raise day: i When the bacterial increment ratio for three consecutive days starting from the day is greater than the bacterial increment ratio of the previous day, that is, when , will i - 1 day as a recharge day; Otherwise no correction is made.
3. The method for optimizing the injection of bactericidal and corrosion inhibitors for shale gas production and transportation pipelines according to claim 2, characterized in that: It also includes a corrosion inhibitor replacement strategy: when the time interval between the filling date and the last filling date is less than or equal to half of the filling cycle, replace the corrosion inhibitor type.
4. The method for optimizing the injection of bactericidal and corrosion inhibitors for shale gas production and transportation pipelines according to claim 1, characterized in that: The amount of corrosion inhibitor added T The calculation formula is: in, i -1 is the time between the injection date and the prediction date; For the Actual bacteria data for the day, ; is the predicted bacterial data for the kth day; α is the error value threshold; β is the error correction factor; This is the minimum amount of corrosion inhibitor to be added.
5. The method for optimizing the injection of bactericidal and corrosion inhibitors for shale gas production and transportation pipelines according to claim 1, characterized in that: The pipeline production and operation data includes i The medium temperature in the pipeline , Pipeline pressure , medium flow rate and carbon dioxide content ; The pipeline bacteria prediction model is: ; in, is a random parameter; is the error term; As regression factors, the collected pipeline production and operation data and bacteria data are input into the model to evaluate the random parameters , error term and regression factor training and fitting.
Citation Information
Patent Citations
Environment-friendly integrated bactericidal corrosion inhibitor special for shale gas pipeline and preparation method thereof
CN112544624A
Petrochemical industry production safety monitoring method and system based on Internet
CN116048032A
