Introduction

Formation pressure is the basic data reflecting the fluid situation, rock type, engineering mechanical properties and geological structure in the formation. Accurate prediction of formation pressure is an important prerequisite to ensure the smooth and safe drilling from design to construction (Jiang 2006; Du et al. 1995; Hubbert and Rubey 1959). Therefore, formation pressure monitoring and prediction has always been an important task in oil and gas drilling. At present, the methods of obtaining abnormal formation pressure are mainly divided into the following categories (Chen and Guan 2006): pre-drilling pressure prediction, pressure monitoring while drilling, geophysical logging pressure detection, and pressure measurement. The prediction of pre-drilling pressure is mainly to calculate the formation pore pressure by using the seismic layer velocity data and the relationship model between the formation pore pressure and the formation pore pressure. The commonly employed approaches include (Fillippone 1979, 1982; Ifeanyl 2015; Sayers et al. 2000): equivalent depth method, single point prediction model and comprehensive prediction model, etc. Pressure monitoring with various drilling and logging parameters has been widely used in the actual drilling process of oil and gas fields, which plays a real-time role in guiding drilling engineering (Majidi et al. 2017; Jincai and Shangxian 2017; Emmanuel et al. 2016). Geophysical logging is generally recognized as an important means for accurate prediction of formation pressure. The commonly employed approaches include (Eaton 1975; Bowers 1995; Ben-Awuah et al. 2017; Dutta 2002): shale acoustic time difference method, shale resistivity method, shale density method, etc. However, this method is a post-prediction method, which cannot predict the pore pressure of the undrilled formation below the bottom of the well. Neither MWD nor PWD can predict the pressure of the formation to be drilled in front of the bit. At present, the prediction method of formation pressure before drilling is to predict formation pressure by seismic data, but the accuracy of prediction results is not high. In addition to the complexity of underground geological conditions, the more important reason is that there is too little information under the bottom of the well, or there is no useful information at all. How to infer the pressure information of the complex and unknown formation to be drilled from the very limited known formation pressure information is the key technical problem to be solved in this paper.

Pore pressure prediction mode in front of bit

Grey prediction theory

  1. (1)

    Grey prediction method

The theory of grey system was first put forward by Professor Deng Julong of Huazhong University of science and technology in 1982, and then, it has been paid attention to at home and abroad (Wen 2003). The theory of grey system is a subject that takes the uncertain system of “part information is known, part information is unknown” as the research object. Its characteristic is to extract valuable information through the generation and development of “part” known information, to realize the accurate description and effective monitoring of system operation behaviour. “Poor information, small sample system” is the main research content of grey system theory. Through the processing, mining and utilization of the existing “poor information” and through the correct grasp and description of the evolution law of the system operation behaviour, it can realize the recognition of the real world and the prediction of the future state.

  1. (2)

    Modelling principle of grey prediction model (Xie and Liu 2005; Yang et al. 2011)

Set \(X^{\left( 0 \right)}\) as raw data sequence: \(X^{\left( 0 \right)} { = }\left\{ {x^{\left( 0 \right)} \left( 1 \right),x^{\left( 0 \right)} \left( 2 \right), \ldots ,x^{\left( 0 \right)} \left( n \right)} \right\}\).

\(X^{\left( 1 \right)}\) is a new data sequence generated by first-order accumulation of \(X^{\left( 0 \right)}\).

\(X^{\left( 1 \right)} { = }\left\{ {x^{\left( 1 \right)} \left( 1 \right),x^{\left( 1 \right)} \left( 2 \right), \ldots ,x^{\left( 1 \right)} \left( n \right)} \right\}\). In formula, \(x^{\left( 1 \right)} \left( k \right) = \sum\nolimits_{i = 1}^{k} {x^{\left( 0 \right)} \left( i \right)} \left( {k = 1,2, \ldots ,n} \right)\).

\(Z^{\left( 1 \right)}\) is mean generation with consecutive neighbours of \(X^{\left( 1 \right)}\).

\(Z^{\left( 1 \right)} { = }\left\{ {z^{\left( 1 \right)} \left( 2 \right),z^{\left( 1 \right)} \left( 3 \right), \ldots ,z^{\left( 1 \right)} \left( n \right)} \right\}\).

In formula, \(z^{\left( 1 \right)} \left( k \right) = 0.5\left( {x^{\left( 1 \right)} \left( k \right) + x^{\left( 1 \right)} \left( {k - 1} \right)} \right),\quad k = 2,3, \ldots ,n\).

Assume the parameters are listed as:

$$\varPhi = \left[ {a,b} \right]^{\text{T}} ,{\text{and}}\,\,B = \left[ \begin{array}{c} - z^{\left( 1 \right)} \left( 2 \right){ 1} \hfill \\ - z^{\left( 1 \right)} \left( 3 \right){ 1} \hfill \\ \vdots \hfill \\ - z^{\left( 1 \right)} \left( n \right){ 1} \hfill \\ \end{array} \right],\quad Y = \left( {x^{\left( 0 \right)} \left( 2 \right),x^{\left( 0 \right)} \left( 3 \right), \ldots ,x^{\left( 0 \right)} \left( n \right)} \right)^{\text{T}} .$$

The least squares estimation sequence of \(x^{\left( 0 \right)} \left( k \right) + az^{\left( 1 \right)} \left( k \right) = b\) is: \(\overline{\varPhi } = \left[ {B^{\text{T}} B} \right]^{ - 1} B^{\text{T}} Y\).

The solution process is as follows:

① The solution of whitening equation \(\frac{{{\text{d}}x^{\left( 1 \right)} }}{{{\text{d}}t}} + ax^{\left( 1 \right)} = b\) (also called time response function) is:

$$x^{\left( 1 \right)} \left( t \right) = \left( {x^{\left( 1 \right)} \left( 1 \right) - \frac{b}{a}} \right)e^{ - at} + \frac{b}{a}$$
(1)

② The solution (also called time response series) of \(x^{\left( 0 \right)} \left( k \right) + az^{\left( 1 \right)} \left( k \right) = b\) is:

$$\widehat{x}^{\left( 1 \right)} \left( {k + 1} \right) = \left( {x^{\left( 0 \right)} \left( 1 \right) - \frac{b}{a}} \right)e^{ - ak} + \frac{b}{a},\quad (k = 1,2,3, \ldots ,n)$$
(2)

③ Reduction value:

$$x^{\left( 1 \right)} \left( {k + 1} \right) = \left( {x^{\left( 0 \right)} \left( 1 \right) - \frac{b}{a}} \right)e^{ - ak} + \frac{b}{a},\quad (k = 1,2,3, \ldots ,n)$$
(3)

Pore pressure prediction mode

Based on the grey theory, this paper establishes the prediction model of formation pressure while drilling and predicts the formation pressure to be drilled in front of the bit according to the monitoring results of the pressure while drilling in front of the bit. The pressure monitoring results while drilling of the drilled formation within a certain depth of the upper part of the bit position are selected as the initial raw data. In order to reduce the randomness and uncertainty of the original series, the moving average method is used. Then, the differential dynamic equation of the system is constructed by fitting, and the model built according to the new sequence is reduced and generated, and finally the pressure prediction model is established. The steps are as follows:

① Construct primitive sequence

Take the depth of the bit as the origin and take the formation pressure monitoring values of n points equidistant upward as the original data:

$$p^{\left( 0 \right)} = \left\{ {p^{\left( 0 \right)} \left( k \right)} \right\} = \left\{ {p^{\left( 0 \right)} \left( 1 \right),p^{\left( 0 \right)} \left( 2 \right), \ldots ,p^{\left( 0 \right)} \left( n \right)} \right\},\quad k = 1,2, \ldots ,n.$$
(4)

② Preprocessing the original sequence

The moving average method is applied to preprocess the original sequence:

$$p^{'\left( 0 \right)} = \left\{ {p^{'\left( 0 \right)} \left( k \right)} \right\} = \left\{ {p^{'\left( 0 \right)} \left( 1 \right),p^{'\left( 0 \right)} \left( 2 \right), \ldots ,p^{'\left( 0 \right)} \left( n \right)} \right\},\quad k = 1,2, \ldots ,n.$$
(5)
$$\left\{ \begin{aligned} & p^{'\left( 0 \right)} \left( 1 \right) = \frac{{3p^{\left( 0 \right)} \left( 1 \right) + p^{'\left( 0 \right)} \left( 2 \right)}}{4} \\ & p^{'\left( 0 \right)} \left( n \right) = \frac{{p^{\left( 0 \right)} \left( {n - 1} \right) + 3p^{\left( 0 \right)} \left( n \right)}}{4} \\ & p^{'\left( 0 \right)} \left( k \right) = \frac{{p^{\left( 0 \right)} \left( {k - 1} \right) + 2p^{\left( 0 \right)} \left( k \right) + p^{'\left( 0 \right)} \left( {k + 1} \right)}}{4},\quad k = 2, \ldots ,n - 1. \\ \end{aligned} \right.$$
(6)

③ Building grey model GM (1, 1)

Make 1-AGO (first order accumulation) of \(p^{'\left( 0 \right)}\) to get the generating sequence:

\(p^{\left( 1 \right)} = \left\{ {p^{\left( 1 \right)} \left( k \right)} \right\},\quad k = 1,2, \ldots ,n.\) In formula, \(p^{\left( 1 \right)} \left( k \right) = \sum\nolimits_{j = 1}^{k} {p^{'\left( 0 \right)} \left( j \right)}\).

The mean value of \(p^{\left( 1 \right)}\) is processed, and its generating sequence is:

$$z^{\left( 1 \right)} = \left\{ {z^{\left( 1 \right)} \left( k \right)} \right\} = \left\{ {z^{\left( 1 \right)} \left( 1 \right),z^{\left( 1 \right)} \left( 2 \right), \ldots ,z^{\left( 1 \right)} \left( n \right)} \right\},\quad k = 1,2, \ldots ,n.$$

In formula, \(z^{\left( 1 \right)} \left( k \right) = 0.5\left[ {p^{\left( 1 \right)} \left( k \right) + p^{\left( 1 \right)} \left( {k - 1} \right)} \right].\quad k = 2, \ldots ,n.\)

Establish the grey differential equation:

$$\frac{{dp^{\left( 1 \right)} }}{dk} + ap^{\left( 1 \right)} = b$$
(7)

Using the grey differential equation, the coefficient \(a,b\) are calculated:

$$p^{\left( 1 \right)} \left( k \right) = az^{\left( 1 \right)} \left( k \right) = b$$
(8)

Substituting coefficient into grey differential equation,

The coefficient is substituted into the grey differential equation, and the equation is solved according to the least square method. The solution is as follows:

$$\overline{p}^{\left( 1 \right)} \left( {k + 1} \right) = \left( {p^{'\left( 0 \right)} \left( 1 \right) - \frac{b}{a}} \right)e^{ - ak} + \frac{b}{a}$$
(9)

④ Solve restore model

Making 1-IAGO for \(\overline{p}^{\left( 1 \right)}\) to get the reduction model

$$\begin{aligned} \overline{p}^{\left( 0 \right)} \left( {k + 1} \right) = - a\left( {p^{'\left( 0 \right)} \left( 1 \right) - \frac{b}{a}} \right)e^{ - ak} \hfill \\ \overline{p}^{\left( 0 \right)} \left( {k + 1} \right) = \overline{p}^{\left( 1 \right)} \left( {k + 1} \right) - \overline{p}^{\left( 1 \right)} \left( k \right) \hfill \\ \end{aligned}$$
(10)

When \(k = 1,2, \ldots ,n - 1\), the simulated value \(\overline{p}^{\left( 0 \right)}\) of the original sequence \(p^{'\left( 0 \right)}\) can be obtained.

⑤ Carry out residual inspection

Set \(\Delta \left( k \right)\) as the residual value, \(\varepsilon \left( k \right)\) the relative residual value, and q the average precision:

$$\Delta \left( k \right)^{\left( 0 \right)} = p^{'\left( 0 \right)} \left( k \right) - \overline{p}^{\left( 0 \right)} \left( k \right),\varepsilon \left( k \right)^{\left( 0 \right)} = \Delta \left( k \right)^{\left( 0 \right)} /p^{'\left( 0 \right)} \left( k \right)$$
(11)
$$q = \left( {1 - \frac{1}{n - 1}\sum\limits_{k = 2}^{n} {\left| {\varepsilon \left( k \right)} \right|} } \right) \times 100\%$$
(12)

If the average precision q is greater than 90%, it means that the sequence meets the requirements of modelling and can be predicted. Otherwise, repeat steps ① to ⑤ until the conditions are met.

⑥ Prediction of pore pressure in front of bit

After the accuracy meets the requirements, predict the pore pressure in front of bit:

$$\overline{p}^{\left( 0 \right)} = \left\{ {\overline{p}^{\left( 0 \right)} \left( 1 \right),\overline{p}^{\left( 0 \right)} \left( 2 \right), \ldots \overline{p}^{\left( 0 \right)} \left( n \right),\overline{p}^{\left( 0 \right)} \left( {n + 1} \right)} \right\}$$
(13)

Remove the monitoring data of formation pressure while drilling at the top first point, add the predicted pressure value \(\overline{p}^{\left( 0 \right)} \left( {n + 1} \right)\) into the original sequence, and update the original data of formation pressure as follows:

$$p^{*\left( 0 \right)} = \left\{ {p^{'\left( 0 \right)} \left( 2 \right),p^{'\left( 0 \right)} \left( 3 \right), \ldots ,\overline{p}^{\left( 0 \right)} \left( {n + 1} \right)} \right\}$$
(14)

Using the new original formation pressure series \(p^{*\left( 0 \right)}\), the next adjacent point’s formation pressure prediction can be started again. The prediction diagram of pore pressure in front of bit based on grey theory is shown in Fig. 1.

Fig. 1
figure 1

Sketch map of formation pressure prediction in front of bit based on grey theory

Case calculation and result analysis

In this paper, XX well is selected as an example for calculation and result analysis. The lithology is mainly fine-grained sediment. The porosity is generally 0.84–2.24%, with an average of 1.41%. The permeability is mainly 0.02–0.14md. The buried depth of the reservoir is about 3500 m, the temperature gradient is 2.86–3.12 °C/100 M, and the pressure coefficient is 1.8–2.1. The prediction results of pre-drilling pressure in XX well show that: the pressure coefficient fluctuates between 1.0 and 1.2 before 1500 m, which belongs to the normal hydrostatic pressure system; but from 1500 m to below, the pressure starts to rise gradually. The existence of abnormal high pressure seriously affects drilling safety. Therefore, pressure monitoring while drilling is carried out in the well section with a depth of 1500 m, and the results are shown in Fig. 2. At this time, the bit position is 1750 m. The drilling fluid is oil-based, with the density of 1.65 g/cm3 and the displacement of about 40 L/s. Firstly, according to the real-time monitoring data of drilling, the monitoring results of formation pore pressure in the upper 1700–1749 m well section of the bit are calculated as the original sequence, and the pressure of 1750–1759 m in front of the bit is predicted by the grey prediction method established in this paper. The specific steps are shown in Fig. 3.

Fig. 2
figure 2

Variation of interval transit time, resistivity and pore pressure with depth of XX well

Fig. 3
figure 3

Flow chart of pressure prediction 10 m in front of bit at 1750 m

First of all, 1700–1749 m formation pressure monitoring data while drilling is selected as the original sequence, as shown in Table 1.

Table 1 Monitoring data of formation pore pressure during drilling from 1700 to 1749 m

Set the original data sequence of formation pressure as:

$$P^{\left( 0 \right)} = \left\{ {p^{\left( 0 \right)} \left( k \right)} \right\} = \left\{ {p^{\left( 0 \right)} \left( 1 \right),p^{\left( 0 \right)} \left( 2 \right), \ldots ,p^{\left( 0 \right)} \left( {50} \right)} \right\},\quad k = 1,2, \ldots ,50.$$

\(Z^{\left( 1 \right)}\) is mean generation with consecutive neighbours of P:

$$z^{\left( 1 \right)} = \left\{ {z^{\left( 1 \right)} \left( k \right)} \right\} = \left\{ {z^{\left( 1 \right)} \left( 1 \right),z^{\left( 1 \right)} \left( 2 \right), \ldots ,z^{\left( 1 \right)} \left( {50} \right)} \right\},\quad k = 1,2, \ldots ,50.$$

In formula, \(z^{\left( 1 \right)} \left( k \right) = 0.5\left[ {p^{\left( 1 \right)} \left( k \right) + p^{\left( 1 \right)} \left( {k - 1} \right)} \right],\quad k = 2, \ldots ,50.\)

The prediction model of formation pressure while drilling is established by using 50 groups of monitoring data series of formation pressure while drilling with the help of grey system theory modelling software (Gtms3.0) and MATLAB software. Using the grey system theory modelling software to do the first-order immediate generating sequence, the results are shown in Table 2. The first-order immediate generating sequence is substituted into the smooth sequence judgment condition, which satisfies the smooth sequence condition. The first-order accumulation generation (1-AGO) is made for the original data sequence, and the results are shown in Table 3.

Table 2 First order immediate generating sequence of pore pressure
Table 3 First-order cumulative generating sequence of pore pressure (1-AGO)

It can be seen from Table 3 that the first-order accumulation generation sequence of formation pressure is a non-negative increasing sequence with good smoothness. According to the above two steps, it can be judged that the original data sequence of formation pressure has a good smoothness ratio, so it can be substituted into the grey system theory modelling software and combined with MATLAB software for modelling and prediction. The specific steps are as follows:

Step 1: Initialization of original formation pressure data and enumeration of original formation pressure data series.

Step 2: The 1-AGO sequence of the original data sequence is generated, as shown in Table 3.

Step 3: First order immediate generating sequence of 1-AGO, as shown in Table 4.

Table 4 First-order immediate generating sequence of pore pressure (1-AGO)

Step 4: Calculation of prediction model coefficient, a = 0.0003, b = 1.4672.

Step 5: Calculation of pore pressure simulation value, the results are shown in Table 5.

Table 5 Simulation value of pore pressure

Step 6: The residual is 0.0028. The relative average error of formation pressure prediction model is: \(q = \left( {1 - \frac{1}{n - 1}\sum\nolimits_{k = 2}^{n} {\left| {\varepsilon \left( k \right)} \right|} } \right) \times 100\% = 99.6084\% > 90{\text{\% }}\).

Step 7: According to the established model, the formation pressure in the next ten steps (the front part of the bit is not drilled 1750–1759 m) is predicted and compared with the formation pressure monitoring results while drilling. The results are shown in Table 6.

Table 6 The error between formation pressure prediction value and monitoring value

Comparing the prediction results of formation pore pressure in 1750–1759 m well section based on grey theory with the monitoring results of formation pore pressure while drilling, it is found that: the maximum relative error is 3.408%, and the average relative error is 3.038%. It shows that the model has high accuracy and can accurately predict the formation pore pressure 10 m below the bit, which can meet the requirements of field drilling construction.

Conclusions and suggestions

  1. A.

    The methods of obtaining formation pressure are mainly divided into pre-drilling pressure prediction, pressure monitoring while drilling, geophysical logging pressure detection, and pressure measurement. Neither MWD nor PWD can predict the pressure of the formation to be drilled in front of the bit. The prediction method of formation pressure before drilling is to predict formation pressure by seismic data, but the accuracy of prediction result is not high.

  2. B.

    In this paper, the grey prediction theory is applied to predict the pore pressure of the formation to be drilled in front of the bit in the process of drilling, and a pressure prediction model is constructed, and an example is applied. The results show that: the maximum relative error is 3.408%, and the average relative error is 3.038%. It shows that the model has high precision and can meet the requirements of drilling construction.

  3. C.

    Through the research of this paper, it can provide more accurate pore pressure information of the formation to be drilled under the bit. Based on the pressure prediction results of the formation to be drilled, dynamic engineering risk assessment can be carried out, so as to assist the drilling operators to make quick and accurate decisions and prevent drilling risk caused by inaccurate understanding of pressure information.