Introduction

Bubble point pressure is a crucial characteristic of reservoir fluids which is involved in most petroleum calculations such as material balance, reserve estimation, well testing, reservoir simulation, and production planning (Asoodeh and Bagheripour 2012). Laboratory experiments can accurately determine bubble point pressure (Danesh 1998). However, these measurements are highly time, cost, and labor intensive. Thus, researchers have tried to find a precise method for prediction of bubble point pressure which reduces costs and time consumption. Several empirical correlations have been published as outcome of their works (Standing 1947; Lasater 1958; Glaso 1980; Al-Marhoun 1988; McCain 1991). In last decade, some researchers utilized neural networks in solving their problems. In case of bubble point pressure estimation from PVT data, including solution gas-oil-ratio (Rs), gas specific gravity (Yg), temperature (T), and stock-tank oil gravity (γo); several studies showed superiority of neural network to empirical correlations (Al-Marhoun and Osman 2002; Kh.A. El-M Shokir and Sayyouh 2003; Obanijesu and Araromi 2008; Dutta and Gupta 2010). In recent years, a growing tendency is observed among researchers to utilize support vector in their regression problems. Traditional learning algorithms such as neural networks use empirical risk minimization (ERM) principle, while support vector regression exploits both structural risk minimization (SRM) and ERM principles. This feature serves more generalization capability for SVR algorithm. In this study, a support vector based regression between bubble point pressure and PVT data, including solution gas-oil-ratio (Rs), gas specific gravity (Yg), temperature (T), and stock-tank oil gravity (γo) was established and performance of SVR model was compared with neural network and empirical correlations. SVR modeling was performed on worldwide oil samples and was checked by Iranian Oils. Results indicated superiority of SVR model compared with other methods.

Support vector regression

Support vector regression based on statistical learning theory was developed by Vapnik (1995). This method as an alternative and a powerful technique achieves worldwide growing applications to solve various nonlinear regression estimation problems in the upstream and downstream oil industry (Al-Anazi and Gates 2010; Fei and Sun 2008; A.A. Shujath Ali and Muhammadain 2012). This method has found widespread popularity among intelligence system due to its attractive feature and good generalization performance (Üstϋn et al. 2005). Here a brief review of SVR method is given in the subsequent paragraph. The main aim of SVR method is to find a linear function f(x) which estimates the functional dependence of the dependent (output) variable y ∈ R on an n-dimensional input variable x: (Kecman 2005).

f ( x , w ) = w T x + b ,
(1)

where w denotes the weighting vector of the linear function and b denotes the bias term. The empirical risk is given by (Kecman 2005)

R emp ε ( w , b ) = 1 l i = 1 l | y i - w T x i - b | ε
(2)

with Vapnik’s linear loss function with ε-insensitivity zone defined as

y - f ( x , w ) ε = 0 if y - f ( x , w ) ε y - f ( x , w ) - ε Otherwise .
(3)

In fact Vapnik’s ε-insensitivity loss function defines a tube with radius ε around the hypothetical regression function. For value of data point located within this tube the loss function equals 0 while for other value the loss function is equal to difference between data point and tube radius (Kecman 2005).

This problem can be reformulated in a dual space by

Maximize L p ( α i , α i ) = - i , j = 1 l α i - α i α j - α j x i T x j - ε i = 1 l ( α i + α i ) + i = 1 l ( α i - α i ) y i
(4)
Subject to i = 1 l ( α i - α i ) = 0 0 α i C , i = 1 , , l 0 α i C , i = 1 , , l
(5)

where α i , α i 0 are positive Lagrange multipliers. C is penalty parameter defined by user. The selection of accurate value for C is carried out by cross validation technique (Kecman 2005).

Having determined the optimal Lagrange multipliers, the linear hypersurface regression is calculated as

f x , w = w o T x + b = i = 1 l α i - α i x i T x + b
(6)

With

w o = i = 1 l α i - α i x i
(7)

Training point with Lagrange multiples between 0 and C can be used for computing bias term value in which this point is called unbounded or free support vector data point. It is much better to compute the bias term b by averaging over all the free support vector data points (Kecman 2005). Generalization to nonlinear regression estimation can be achieved through nonlinear mapping function (i.e. kernel function). The nonlinear hyperplane regression model is given by Kecman (2005).

f x , w = G α - α + b
(8)

Again, the bias term b is determined by averaging over all the free support vectors (Kecman 2005).

Results and discussion

In this study, ε-SVR method was used for developing a model meant to predict bubble point pressure (Pb) from PVT data, including solution gas-oil-ratio (Rs), gas specific gravity (Yg), temperature (T), and stock-tank oil gravity (γo). This should be borne in mind in all SVR modeling, input and output data must be normalized in range of [–1−1] due to better execution of kernel functions in this range. A group of 361 worldwide oil samples from open-sources literature was gathered for model construction. This model was checked by 223 samples from Iranian Oils. Owing to fewer parameters meant to be tuned and low computational cost (Vapnik and Lerner 1963; Keerthi and Lin 2003), radial basis function (RBF) was used as kernel function in SVR modeling. Involved parameters in SVR and in embedded kernel functions (i.e., C, Gamma, and Epsilpn) determine performance of modeling. Therefore, a thorough survey was done through combination of grid search and pattern search techniques to find optimal values of “C”, “Gamma”, and “Epsilon”. The specified search ranges for “C”, “Gamma”, and “Epsilon” were [0.1500000], [0.00000120], and [0.0001100], respectively, while the extracted optimal points from these ranges are 178,366.43619, 0.228349, and 0.020427, correspondingly. The number of support vectors used by this model is 70. After model construction, a group of 223 data points originated from Iranian Oils was used to assess performance of SVR model. Figure 1 indicates the cross correlation between measured and predicted bubble point pressure using the concept of correlation coefficient. High value of correlation coefficient (R = 0.992) confirms success of SVR modeling. For a deeper analysis of SVR performance, Fig. 2 provides the opportunity for visually and statistically observing the precision of prediction and effect of overestimation/underestimation. Error distribution of bubble point prediction has mean and standard deviation of −2.8498 and 142.1855, respectively. These small values once again verify robustness of SVR modeling. Figure 3 indicates relative error of prediction for different values of bubble point pressure. This figure indicates for small values, SVR method performed weaker, while in large values the accuracy of prediction is satisfying. To explain this weakness, cumulative probability of bubble point pressure is helpful (Fig. 4). Performance of SVR decreases for bubble point pressures less than 1,000 Psi (Fig. 3). A careful insight into Fig. 4 reveals only small portion of data points belongs to region in which bubble point pressure is less than 1,000 Psi. Insufficient number of data points in this region causes the mentioned weakness. It should be borne in mind number of training data, which represents the underlying dependency between input/output data space is a key parameter in constructing intelligent models. At the last stage of this study, SVR model was compared with neural network and three well-known empirical correlations, including Al-Shammasi (1999), McCain (1991), and Velarde et al. (1999). Comparison results using concepts of correlation coefficient (R), average relative error (ARE), absolute average relative error (AARE), and root mean square error (RMSE) are shown in Table 1. Results indicate SVR model outperformed other methods making a judgment based on R, ARE, AARE, and RMSE criteria. Finally, a comparison between measured values of bubble point pressure and SVR predicted values is illustrated in Fig. 5 which shows there is a good agreement between SVR predicted values and reality.

Fig. 1
figure 1

Cross plot showing correlation coefficient between measured and SVR predicted bubble point pressure. High value of correlation coefficient, i.e. 0.992 (R−square = 0.984) indicates success of SVR approach in estimation of bubble point pressure

Fig. 2
figure 2

Error distribution statistics for SVR model meant to predict bubble point pressure. Small values of mean and standard deviation (STD) reveal high performance of SVR modeling. Error distribution indicates 68 % of predicted values have errors in range of −2.8498 ± 142.1855

Fig. 3
figure 3

Graph showing relative error of SVR predictions versus bubble point pressure values. Relative error for small values of bubble point pressure (i.e. <1,000 Psi) is higher

Fig. 4
figure 4

Graph showing cumulative probability of bubble point pressure data used in training set. This figure illustrates just small portion of data points are correspondence to bubble point pressure values less than 1,000 Psi. Therefore, SVR modeling was not successful in this region and relative error increases in small bubble point pressure values

Table 1 Comprising SVR model with neural network and three well-known empirical correlations based on correlation coefficient (R), average relative error (ARE), absolute average relative error (AARE), and root mean square error (RMSE)
Fig. 5
figure 5

A comparison between measured values of bubble point pressure and SVR predicted values. This figure confirms there is a good agreement between SVR predicted values and reality

Conclusions

Owing to significance of bubble point pressure (Pb), different empirical correlations and neural network models have been presented up to now. However, the competition is run for finding more accurate methods. This study proposed an improved method for estimating Pb from PVT data using support vector regression algorithm and following conclusions were deduced from its results:

  1. (a)

    Support vector regression provides a fast, cheap, and accurate way of determining bubble point pressure from PVT data.

  2. (b)

    SVR model was compared with neural network and empirical correlations. Results of comparison revealed superiority of SVR model to others.

  3. (c)

    Comparison between neural network and empirical correlations indicates neural network outperformed empirical correlations. Therefore, intelligent systems produce more reliable results.

  4. (d)

    Structural risk minimization in conjugation with empirical risk minimization fortifies SVR model as robust tool for extracting the quantitative formulation between a set of input/output data which have an underlying dependency.

  5. (e)

    Implementation of proposed strategy eliminates the need for tedious laboratory experiments and saves time and money.