Next Article in Journal
Continuous Orbit Equivalence on Self-Similar Graph Actions
Next Article in Special Issue
The Truncation Regularization Method for Identifying the Initial Value on Non-Homogeneous Time-Fractional Diffusion-Wave Equations
Previous Article in Journal
On the Generalization for Some Power-Exponential-Trigonometric Inequalities
Previous Article in Special Issue
Correction: Zhang, H.; Zhang, X. Generalized Tikhonov Method and Convergence Estimate for the Cauchy Problem of Modified Helmholtz Equation with Nonhomogeneous Dirichlet and Neumann Datum. Mathematics 2019, 7, 667
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A New Method for De-Noising of Well Test Pressure Data Base on Legendre Approximation

1
Zhanjiang Branch of CNOOC Ltd., Zhanjiang 524000, China
2
Faculty of Mathematics and Computer Science, Guangdong Ocean University, Zhanjiang 524088, China
3
School of Mathematics and Statistics, Shandong University of Technology, Zibo 255049, China
4
Southern Marine Science and Engineering Guangdong Laboratory (Zhanjiang), Zhanjiang 524088, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Mathematics 2019, 7(10), 989; https://doi.org/10.3390/math7100989
Submission received: 14 September 2019 / Revised: 13 October 2019 / Accepted: 15 October 2019 / Published: 18 October 2019
(This article belongs to the Special Issue Numerical Analysis: Inverse Problems – Theory and Applications)

Abstract

:
In this paper, noise removing of the well test data is considered. We use the Legendre expansion to approximate well test data and a truncated strategy has been employed to reduce noise. The parameter of the truncation will be chosen by a discrepancy principle and a corresponding convergence result has been obtained. The theoretical analysis shows that a well numerical approximation can be obtained by the new method. Moreover, we can directly obtain the stable numerical derivatives of the pressure data in this method. Finally, we give some numerical tests to show the effectiveness of the method.

1. Introduction

Well test analysis is an important branch of reservoir engineering. In well test analysis, we can obtain some reservoir characteristics (reservoir permeability, wellbore storage coefficient, skin factor, drainage radius, etc.) by downhole pressure data which collected by permanent downhole gauges (PDG). Due to various reasons such as problems in gauges that occur by physical changes in reservoir, the original data from PDG usually contains large amounts of noise. Distorted data may cause high degree of uncertainty in well test interpretations and hence, PDG data have to be pre-processed before further analysis.
Noise removing is important in the process of analyzing well test data. The Butterworth digital filter method has been used by Osman and Stewart [1] to subtract noise in the data but it has poor performance in some cases such as have been shown by Kikani and He in Reference [2]. Instead, a wavelet analysis has been employed to remove noise. In Reference [3], Athichanagorn et al. proposed a seven-step procedure combining wavelet transform for the PDG data processing. Since then, numerous de-noising methods based on wavelet analysis have been present [4,5]. The main disadvantage of these methods is that their effect depend heavily on the selected wavelet types. In Reference [6], Nomura investigated a smoothing algorithm which utilized the derivative constraints to deal with PDG data. The data has been processed in log interval owing to the high degree of smoothness of the data in the log interval. He compared the constraint smoother and unconstrained regression splines and concluded that the former have better performance. But with the order of derivative constraints increases, the processing becomes more complex and the computational complexity increases greatly.
It is well known that using only pressure data for well test analysis may be insufficient and even may lead to misleading results. So the pressure derivative is useful in well test analysis. Up to now, all the existing methods need to redesign the calculation method of derivative on the basis of de-noising data. In recent years, numerical tools for inverse problems have been well developed [7,8] and we can obtain more stable approximation of derivatives. In this paper, we develop a method based on Legendre approximation for de-noising of well test pressure data which has been used to deal with the numerical differentiation problem [9]. The merit of the method is that we can directly obtain the approximation of derivatives. Because of its higher smoothness than the original interval, the data will be de-noised in logarithmic interval. We first obtain the Legendre approximation of the data and then the noise is eliminated by truncation. The parameter of the truncation will be chosen by a discrepancy principle. The method is implemented with Matlab and some numerical tests are utilized to verify the validity of the method.

2. The Theory of De-Nosing Based on Legendre Approximation

We first introduce some basic concepts and conclusions of Legendre approximation. Let Λ = [ 1 , 1 ] and denote by L 2 ( Λ ) and H r ( Λ ) the usual Lebesgue and Sobolev spaces and by v , v r their corresponding norms. The inner products of L 2 ( Λ ) and H m ( Λ ) are denoted by u , v and u , v m respectively. Let N be any positive integer and P N be the set of all algebraic polynomials of degree at most N in Λ . P N : L 2 ( Λ ) ( P ) N is the L 2 ( Λ ) orthogonal projection operator, that is,
v P N v , ϕ = 0 , ϕ P N .
Let L l ( x ) be the Legendre polynomial of degree l which can be defined by
L l ( x ) = ( 1 ) l 2 l l ! x l ( 1 x 2 ) l .
It well known that
Λ L l ( x ) L m ( x ) d x = l + 1 2 1 δ l , m .
So for any f L 2 ( Λ ) , we may write
f ( x ) = l = 0 f l L l ( x )
with
f l = l + 1 2 Λ f ( x ) L l ( x ) d x .
Lemma 1.
[10] Let r > 0 , then for any ϕ P N ,
ϕ r c N 2 r ϕ .
Lemma 2.
[10] For any v H r ( Λ ) , r > 0 and μ r
v P N v μ c N σ ( μ , r ) v r ,
where
σ ( μ , r ) = 2 μ r 1 2 , μ 1 , 3 2 μ r , 0 μ 1 , μ r , μ < 0 .
Let x 0 = 1 , x N = 1 and x j j = 1 N 1 are the zeros of L N ( x ) and
ω j = 2 N ( N + 1 ) [ L N ( x j ) ] 2 , 0 j N .
Ω N is the set of all x j . The discrete inner product in C ( Ω ¯ ) and its associated norm can be defined by
u , v N , ω = j = 0 N u ( x j ) v ( x j ) ω j , u N , ω = u , u N , ω 1 / 2 .
The Legendre interpolation I N v ( x ) P N of a function v C ( Ω ¯ ) is defined by
I N v ( x j ) = v ( x j ) , x j Ω N .
Lemma 3.
[10] For any v H r ( Λ ) , 0 μ 1 , μ < 2 r 1 ,
v I N v μ c N μ r v r .
Now we present a noise removal algorithm base on Legendre expansion. Consider a signal g ( h i ) , i = 1 , 2 , , n which is polluted by noise e ( h i ) . That is to say, we only obtain its perturbed data:
g δ ( h i ) = g ( h i ) + e ( h i ) .
The process of de-noising involves obtaining approximate signal g ( h i ) from noisy data g δ ( h i ) . Our de-noising process is divided into the following steps:
  • Transform the interval [ h 1 , h n ] to the interval [ 1 , 1 ]
    h ^ i = 2 h i ( h 1 + h n ) h n h 1
    and an intermediate data g ^ δ is obtained by
    g ^ δ ( h ^ i ) = g δ ( h i ) , i = 1 , 2 , , n .
  • Calculate the knots Ω N and obtain the data g δ ( x j ) by piecewise linear interpolation:
    g δ ( x 0 ) = g ^ δ ( 1 ) , g δ ( x N ) = g ^ δ ( 1 ) , g δ ( x j ) = g ^ δ ( h ^ j 0 ) x j h ^ j 1 h ^ j 0 h ^ j 1 + g ^ δ ( h ^ j 1 ) x j h ^ j 0 h ^ j 1 h ^ j 0 ,
    where h ^ j 0 and h ^ j 1 are the two nearest points of x j in h ^ i , i = 1 , 2 , , n .
  • Obtain the Legendre interpolation function g ^ δ by
    g ^ δ = I N g δ .
  • Given the control parameter δ (which can usually be estimated by the error distribution), the approximate signal g δ obtain by
    g δ = ( P m I N g δ ) ,
    where the parameter m = m ( δ , I N g δ ) is determined by the following discrepancy principle
    ( I P m ) I N g δ ) N τ δ ( I P m 1 ) I N g δ ) N
    with τ > 1 .
Now, we derive convergence result for above Legendre approximation.
Theorem 4.
Suppose that g H r ( Λ ) and the data g δ satisfy
g δ g N δ , g δ N > τ δ
and g is defined by (18) and (19), then we have
D k ( g δ g ) = O ( δ r 2 k r + N 2 k r ) .
Proof. 
In terms of (19), (20) and the triangle inequality
I N g P m 1 I N g = ( I P m 1 ) I N g δ ( I P m 1 ) ( I N g δ I N g ) ( I P m 1 ) I N g δ ( I P m 1 ) ( I N g δ I N g ) ( τ 1 ) δ .
On the other hand, from Lemma 2, 3 and note that m N
I N g P m 1 I N g = I N g g + g P m 1 g + P m 1 g P m 1 I N g = ( I P m 1 ) ( I N g g ) + ( I P m 1 ) g ( I I N ) g + ( I P m 1 ) g c N r g r + c ( m 1 ) r g r 2 c ( m 1 ) r g r .
Combining (22) with (23), we have
m 2 c g r τ 1 1 r δ 1 r + 1 .
Moreover, by using the triangle inequality, Lemma 1, 2 and 3
g δ g r 2 = P m I N g δ P m I N g + P m I N g I N g + I N g g r 2 P m ( I N g δ I N g ) r 2 + ( I P m ) I N g r 2 + I N g g r 2 m r δ + m 1 2 I N g r + c N r 2 g r
And from Lemma 3,
I N g r g I N g r + g r ( c + 1 ) g r .
By (24), (25) and (26), there exist a constant M such that
g δ g r 2 M .
Moreover,
g δ g P m I N g δ I N g δ + I N g δ I N g + I N g g ( τ + 1 ) δ + c N r g r .
By interpolation inequality in [10]
D k ( g δ g ) g δ g k g δ g r 2 2 k r g δ g r 2 k r .
From (27), (28) and (29), the approximation order (21) is proved. □

3. Numerical Tests

3.1. Preliminary Check for Approximation Capability of Legendre Expansion with Various Numbers of Knots

In general, more knots tends to give more approximation quality but this is unfavorable due to the increased model complexities and also for the computational burden. So we first check the effect of knots N number to approximate accurate data for three reservoir models [11]; the homogeneous-infinite model, the closed-circular model and the composite reservoir model. Their dimensionless well bore pressures in the Laplace space are respectively
  • Homogeneous-infinite model:
    p ¯ D = K 0 ( z ) + S z K 1 ( z ) z z K 1 ( z ) + C D z K 0 ( z ) + S z K 1 ( z ) ,
    where p ¯ D is the dimensionless well-bore pressure in the Laplace space, z is the Laplace-transform parameter, K α is the modified Bessel function of second-kind, of order α , S is the skin factor, C D is the dimensionless wellbore storage coefficient.
  • Closed-circular model:
    p ¯ D = A I 0 ( r D z ) + B K 0 ( r D z ) s z ( A I 1 ( z ) B K 1 ( z ) )
    with
    A = K 1 ( r D e z ) z C D z K 1 ( r D e z ) I 0 ( r D z ) + K 0 ( r D z ) I 1 ( r D e z ) + s z ( K 1 ( r D e z ) I 1 ( z ) + K 1 ( z ) I 1 ( r D e z ) ) + z ( K 1 ( r D e z ) I 1 ( z ) + K 1 ( z ) I 1 ( r D e z ) )
    B = I 1 ( r D e z ) z C D z K 1 ( r D e z ) I 0 ( r D z ) + K 0 ( r D z ) I 1 ( r D e z ) + s z ( K 1 ( r D e z ) I 1 ( z ) + K 1 ( z ) I 1 ( r D e z ) ) + z ( K 1 ( r D e z ) I 1 ( z ) + K 1 ( z ) I 1 ( r D e z ) )
    where r D e is the dimensionless outer radius and I α is the modified Bessel function of the first-kind, of order α .
  • Composite reservoir model:
    p ¯ D = A 1 I 0 ( z ) + B 1 K 0 ( z ) S A 1 z I 1 ( z ) B 1 z K 1 ( z )
    with
    A 1 = d h e g z [ a ( d h e g ) b ( c h e f ) ] ,
    B 1 = e f c h z [ a ( d h e g ) b ( c h e f ) ] ,
    and
    a = C D z I 0 ( z ) ( 1 + S C D z ) z I 1 ( z ) , b = C D z K 0 ( z ) ( 1 + S C D z ) z K 1 ( z ) , c = I 0 ( r α z ) , d = K 0 ( r α z ) , e = K 0 ( r α σ z ) , f = I 1 ( r α z ) , g = K 1 ( r α z ) , h = λ σ K 1 ( r α σ z ) .
    where r α is the dimensionless radius inner zone, λ is the Flow ratio and σ is the storage capacity ratio.
The inversion form p ¯ D to p D (the exact function g) is done using the Gaver-Stehfest algorithm [12]. We give the accurate data g ( h i ) at h i = 10 2 + 4 i n , i = 0 , 1 , 2 , , n , n = 800 . Further, an interpolation function is given, similar to the one given in Formulas (15)–(18) ( δ = 0 ). Figure 1, Figure 2 and Figure 3 show the fitting results of three models for N = 16 , 32 , and 64. In the figures, the circles show the estimates at the knot locations. As shown here, more knots can give a better approximation quality and all the models are already fitted well to the true solution when N = 32 . So for the rest of examples, we always take N = 32 .

3.2. Tests for Validity of Method

We added noise to the data as follows:
g δ ( h i ) = g ( h i ) + ϵ i , i = 0 , 1 , , n ,
where { ϵ i } j = 0 N are obtained by Matlab function randn ( n + 1 , 1 ) × δ 1 .
Figure 4, Figure 5 and Figure 6 show the fitting results of three models respectively. In each Figure, the first sub-figure gives a comparison between the noisy function and the de-noised one. The solid blue curves represents the noisy functions and the red dotted curves indicate the de-noised ones and we only took a partial of the curves to make the contrast more obvious. The second sub-figure shows that the comparisons of de-noised solution and its derivative with their corresponding accurate data. As can be seen, the performance of the method is satisfactory.

4. Conclusions

A new method to remove the noise of well test data based on the Legendre approximation is present in this paper. Benefit from the high accuracy of Legendre approximation, we can give a well approximation of well test data. The convergence result has been obtained and numerical tests have also verified the effectiveness of the method.

Author Contributions

For methodology, Z.Z.; software, Y.Z. and Z.L.; resources, F.Z.; writing—original draft preparation, F.Z. and Y.Z.; writing—review and editing, Z.Z.; project administration, F.Z.; funding acquisition, Z.Z.

Funding

This research was funded by project of enhancing school with innovation of Guangdong Ocean University grant number Q18306 and the Fund of Southern Marine Science and Engineering Guangdong Laboratory (Zhanjiang) grant number ZJW-2019-04.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Osman, M.S.; Stewart, G. Pressure data filtering and horizontalwell test analysis case study. In Proceedings of the Middle East Oil Show and Conference, Paper SPE 37802, Manama, Bahrain, 15–18 March 1997. [Google Scholar]
  2. Kikani, J.; He, M. Multi-resolution analysis of long-term pressure transient data using wavelet methods. In Proceedings of the SPE Annual Technical Conference and Exhibition, New Orleans, LA, USA, 27–30 September 1998. [Google Scholar]
  3. Athichanagorn, S.; Horne, R.N.; Kikani, J. Processing and interpretation of long-term data acquired from permanent pressure gauges. SPE Reserv. Eval. Eng. 2002, 5, 384–391. [Google Scholar] [CrossRef]
  4. Daubechies, I. The wavelet transform, time-frequency localization and signal analysis. IEEE Trans. Inf. Theory 1990, 36, 961–1005. [Google Scholar] [CrossRef]
  5. Olsen, S.; Nordtvedt, J. Automatic filtering and monitoring of real-time reservoir and production data. In Proceedings of the SPE Annual Technical Conference and Exhibition, Dallas, TX, USA, 9–12 October 2005. [Google Scholar]
  6. Nomura, M. Processing and Interpretation of Pressure Transient Data from Permanent Downhole Gauges. Ph.D. Thesis, Stanford University, Stanford, CA, USA, 2006. [Google Scholar]
  7. Hansen, C.P. Numerical tools for analysis and solution of Fredholm integral equations of the first kind. Inverse Probl. 1992, 8, 849–872. [Google Scholar] [CrossRef]
  8. Turco, E. Tools for the numerical solution of inverse problems in structural mechanics: Review and research perspectives. Eur. J. Environ. Civ. Eng. 2016, 21, 509–554. [Google Scholar] [CrossRef]
  9. Zhao, Z. A truncated legendre spectral method for solving numerical differentiation. Int. J. Comput. Math. 2010, 87, 3209–3217. [Google Scholar] [CrossRef]
  10. Guo, B.Y. Spectral Methods and their Applications; World Scientific: Singapore, 2010. [Google Scholar]
  11. Liu, Q. Modern Practical Method for Well Test Interpretation, 5th ed.; Petroleum Industry Press: Beijing, China, 2008. [Google Scholar]
  12. Gaver, G.P. Observing stochastic processes and approximate transform inversions. Oper. Res. 2003, 14, 444–459. [Google Scholar] [CrossRef]
Figure 1. Results of N = 16 .
Figure 1. Results of N = 16 .
Mathematics 07 00989 g001
Figure 2. Results of N = 32 .
Figure 2. Results of N = 32 .
Mathematics 07 00989 g002
Figure 3. Results of N = 64 .
Figure 3. Results of N = 64 .
Mathematics 07 00989 g003
Figure 4. Results of homogeneous-infinite model. (a) Comparison of the noisy function and de-noised function. (b) The exact solution and its approximation.
Figure 4. Results of homogeneous-infinite model. (a) Comparison of the noisy function and de-noised function. (b) The exact solution and its approximation.
Mathematics 07 00989 g004
Figure 5. Results of closed-circular model. (a) Comparison of the noisy function and de-noised function. (b) The exact solution and its approximation.
Figure 5. Results of closed-circular model. (a) Comparison of the noisy function and de-noised function. (b) The exact solution and its approximation.
Mathematics 07 00989 g005
Figure 6. Results of composite reservoir model. (a) Comparison of the noisy function and de-noised function. (b) The exact solution and its approximation.
Figure 6. Results of composite reservoir model. (a) Comparison of the noisy function and de-noised function. (b) The exact solution and its approximation.
Mathematics 07 00989 g006

Share and Cite

MDPI and ACS Style

Zhang, F.; Zheng, Y.; Zhao, Z.; Li, Z. A New Method for De-Noising of Well Test Pressure Data Base on Legendre Approximation. Mathematics 2019, 7, 989. https://doi.org/10.3390/math7100989

AMA Style

Zhang F, Zheng Y, Zhao Z, Li Z. A New Method for De-Noising of Well Test Pressure Data Base on Legendre Approximation. Mathematics. 2019; 7(10):989. https://doi.org/10.3390/math7100989

Chicago/Turabian Style

Zhang, Fengbo, Yuandan Zheng, Zhenyu Zhao, and Zhi Li. 2019. "A New Method for De-Noising of Well Test Pressure Data Base on Legendre Approximation" Mathematics 7, no. 10: 989. https://doi.org/10.3390/math7100989

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop