Downhole fluid analysis (DFA) often involves oil-based mud (OBM) filtrate contamination monitoring (OCM). During OCM, high miscible and immiscible contamination results in unusable samples, preventing estimation of various properties of native, uncontaminated oil, such as optical density at various wavelengths, mass density, gas-oil ratio (GOR), composition, viscosity, conductivity/resistivity, and/or others.
This summary is provided to introduce a selection of concepts that are further described below in the detailed description. This summary is not intended to identify indispensable features of the claimed subject matter, nor is it intended for use as an aid in limiting the scope of the claimed subject matter.
The present disclosure introduces a method that includes obtaining in-situ, real-time data associated with a sample stream obtained by a downhole sampling apparatus disposed in a borehole that extends into a subterranean formation. The obtained data includes multiple fluid properties of the sample stream. The sample stream includes native formation fluid from the subterranean formation and filtrate contamination resulting from formation of the borehole in the subterranean formation. The method also includes filtering the obtained data to remove outliers from the obtained data, fitting the filtered data to models that each characterize a corresponding one of the fluid properties as a function of a pumpout volume or time, and identifying, based on the fitted data, a start of a developed flow regime of the native formation fluid within the subterranean formation surrounding the borehole.
The present disclosure also introduces a method that includes obtaining in-situ, real-time data associated with a sample stream obtained by a downhole sampling apparatus disposed in a borehole that extends into a subterranean formation. The downhole sampling apparatus is operable to obtain apparent optical density (OD), apparent mass density (ρ), and apparent gas-oil ratio (GOR) of the sample stream such that the obtained data includes OD data, ρ data, and GOR data. The sample stream includes native formation fluid from the subterranean formation and filtrate contamination resulting from formation of the borehole in the subterranean formation. The method also includes filtering the obtained data to remove outliers from the OD data, the ρ data, and the GOR data, and fitting the filtered OD, ρ, and GOR data to corresponding models that each characterize a corresponding one of OD, ρ, and GOR as a function of a pumpout volume (V) or time (t). Fitting the filtered OD, ρ, and GOR data to the corresponding models includes determining an adjustable parameter y relating the filtered OD, ρ, and GOR data to V or t. The method also includes identifying a start of a developed flow regime of the native formation fluid within the subterranean formation surrounding the borehole by: (i) generating a flow regime identification (FRID) plot by collectively plotting, relative to V or t, the fitted OD data, the fitted ρ data, the fitted GOR data, and one of V−y or t−y; and (ii) identifying from the FRID plot the minimum V or t at which the plotted OD, ρ, and GOR data each substantially coincide with the one of V−y or t−y. The start of the developed flow regime is the identified minimum V or t.
The present disclosure also introduces an apparatus that includes a downhole sampling apparatus and surface equipment. The downhole sampling apparatus is operable within a borehole extending from a wellsite surface into a subterranean formation. The surface equipment is disposed at the wellsite surface and is in communication with the downhole sampling apparatus. The downhole sampling apparatus and the surface equipment are collectively operable to obtain in-situ, real-time data associated with a sample stream obtained by the downhole sampling apparatus disposed within the borehole. The obtained data includes multiple fluid properties of the sample stream. The sample stream includes native formation fluid from the subterranean formation and filtrate contamination resulting from formation of the borehole in the subterranean formation. The downhole sampling apparatus and the surface equipment are further collectively operable to filter the obtained data to remove outliers from the obtained data, fit the filtered data to models each characterizing a corresponding one of the fluid properties as a function of a pumpout volume or time, and identify, based on the fitted data, a start of a developed flow regime of the native formation fluid within the subterranean formation surrounding the borehole.
These and additional aspects of the present disclosure are set forth in the description that follows, and/or may be learned by a person having ordinary skill in the art by reading the material herein and/or practicing the principles described herein. At least some aspects of the present disclosure may be achieved via means recited in the attached claims.
The present disclosure is understood from the following detailed description when read with the accompanying figures. It is emphasized that, in accordance with the standard practice in the industry, various features are not drawn to scale. In fact, the dimensions of the various features may be arbitrarily increased or reduced for clarity of discussion.
It is to be understood that the following disclosure provides many different embodiments, or examples, for implementing different features of various embodiments. Specific examples of components and arrangements are described below to simplify the present disclosure. These are, of course, merely examples and are not intended to be limiting. In addition, the present disclosure may repeat reference numerals and/or letters in the various examples. This repetition is for simplicity and clarity, and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. Moreover, the formation of a first feature over or on a second feature in the description that follows may include embodiments in which the first and second features are formed in direct contact, and may also include embodiments in which additional features may be formed interposing the first and second features, such that the first and second features may not be in direct contact.
The present disclosure introduces methods pertaining to in-situ, real-time data associated with a formation fluid flowing through a downhole formation fluid sampling apparatus. The obtained data is preprocessed, and contamination monitoring is performed utilizing the preprocessed data. The preprocessing may comprise performing outlier filtering to remove outliers from the obtained data. The preprocessing may also or instead comprise performing inlier-detection-based regression. The preprocessing may also or instead comprise truncating the obtained data, based on a physical and/or time range of the data, and filtering the truncated data utilizing a median filter, a Winsorized mean filter, or a Hampel filter. The obtained or preprocessed data may be processed via regression to determine an endpoint of a property associated with the obtained fluid. The obtained or preprocessed data may also or instead be processed to identify a developed flow regime.
The cleanup process during OCM may follow linear mixing rules for many measured properties. Thus, if the information of one endpoint property is known, other properties may be extracted through linear regression. A power function behavior may be assumed for late-time cleanup, such that a linear regression (for a known exponent) or non-linear regression (for an unknown exponent) may be utilized to fit the power function model.
Such regression, however, may be hampered by an unknown percentage of outliers. That is, statistical outliers, or data not following assumed behavior, may be introduced by borehole storage, different flow regimes, flow rate changes, fluid instability, anisotropy, and/or inaccurate measurements, among other factors. Current regression methods may involve ordinary least-squares regression, which can be sensitive to outliers due to error introduced by the application of theoretical methodologies to an entire data set even with a low percentage of outliers.
The present disclosure introduces robust statistical methods to perform outlier filtering and other preprocessing of raw data. The present disclosure also introduces robust statistical methods to perform inlier-detection-based regression that may be immune to noise. The methods may be utilized separately or together. Aspects of the methods may yield cleaner data sets for subsequent processing, may aid in accurately determining endpoint properties without the influence of outliers, and/or may aid in indicating flow regimes substantially automatically.
The developing flow regime 112 correlates to a time of pumping out a high concentration of filtrate from the formation immediately surrounding the section of the borehole containing the downhole sampling apparatus. The developing flow regime 112 may physically correspond to circumferential cleanup where filtrate is drawn from around the borehole circumference at the depth of the downhole sampling apparatus before flow to the downhole sampling apparatus has been established from the region of the formation above and below the downhole sampling apparatus. The start of the developing flow regime 112 may be identified as the breakthrough of native formation fluid in the sample stream being pumped from the formation by the downhole sampling tool, such as when contamination of the sample stream exhibits a noticeable decrease, or when the rate of decreasing contamination noticeably changes, as indicated in
As pumpout (“cleanup”) continues, the sample stream becomes cleaner as contamination decreases and the volume percentage of native formation fluid increases, thus establishing developed flow of the native formation fluid. The developed flow regime 114 corresponds to a developed flow of native formation fluid through the formation surrounding the downhole sampling apparatus. Thus, the developed flow regime 114 physically corresponds to a situation where the filtrate around the circumference of the borehole at the level of the downhole sampling apparatus has been substantially removed, although some filtrate may still flow vertically from above and below the downhole sampling apparatus. The start of the developed flow regime 114 was conventionally estimated to be that point at which the contamination level fell below a predetermined threshold, such as about 15% (by volume). However, the start of the developed flow regime 114 may also be identified as when a power law is adequately descriptive of two or more of the fluid properties, such as may be determined by a flow regime identification (FRID) plot. After determining the start of the developed flow regime 114, the properties of the native formation fluid may be obtained by setting the sample stream pumpout volume (V) to infinity in the associated power law fitting, and the properties of the contamination (filtrate) may be obtained by setting GOR to zero in the associated linear (or semi-linear) relationship of GOR with respect to OD and mass density (ρ).
With regard to the linear relationships during cleanup, an assumption that there is no gas or shrinkage for the OBM results in:
When V or t approaches infinity, the OBM filtrate contamination level in volume fraction (vobm) equals zero, indicating pure native formation fluid is being sampled. These and other variables are related as set forth below in Equations (1)-(5).
where:
Equations (1)-(5) demonstrate that, during cleanup, a linear relationship exists for many pairs of properties, such as b being linearly related with OD, ρ, V−γ, and vobm, and B0 being linearly related with GOR and ρSTO. From these relationships, the central role of regression in OCM becomes: (1) by utilizing the linear relationship between V−γ and one of the measured or “apparent” fluid properties of the sample stream (e.g., GOR, OD, ρ, or V), extrapolating V to infinity to obtain that measured or apparent property of the native formation fluid; and (2) by utilizing the linear relationship between two fluid properties, where one of the fluid properties has a known endpoint, extrapolating to obtain both fluid properties of the OBM filtrate. However, such analyses can be problematic when utilizing raw measurement data.
The method (200) may include truncating (210) the raw data based on a range of one or more of the measured, apparent, and/or other fluid properties of the raw data. For example, the raw data may be truncated (210) to those data points in which the measured optical density (OD) is between about −1.0 and about 5.0, the measured density (ρ) is less than about 1.5 grams per cubic centimeter (g/cm3), and the apparent gas-oil-ratio (GOR) is less than about 1,000,000 standard cubic feet per barrel (scf/bbl). In another example implementation, the raw data may be truncated (210) to those data points in which OD is between about zero and about 3.0, p is between about 0.1 g/cm3 and about 1.2 g/cm3, and GOR is less than about 50,000 scf/bbl. In another example implementation, the raw data may be truncated (210) to those data points in which OD is between zero and about 1.5, p is between about 0.6 g/cm3 and about 0.9 g/cm3, and GOR is less than about 1,000 scf/bbl. However, other ranges may also be utilized to truncate (210) the raw data within the scope of the present disclosure, including implementations in which the truncation (210) is based on just one or two of OD, ρ, and GOR instead of each of these properties, and/or implementations in which the truncation (210) is based on additional or different fluid properties.
The raw data may also be truncated (220) based on a range of the pumpout volume (V) or pumpout time (t) of the data. For example, the data may be truncated (220) to those data points in which the pumped volume and/or time ranges between the “breakthrough” volume or time (when native formation fluid is first detected in the pumped sample stream) and the “sampling” volume or time (when the pumped sample stream is first directed into a sample chamber of the downhole tool). However, other pumpout volume and/or time ranges may also be utilized to truncate (220) the raw data within the scope of the present disclosure.
The truncation (210) based on ranges of one or more measured or apparent fluid properties and the truncation (220) based on a range of pumpout volume and/or time excludes meaningless data, and may provide a visually cleaner result. However, the truncation boundaries described above for the fluid property truncation (210) and the volume/time truncation (220) are merely examples, and such boundaries can be changed based on different situations and implementations within the scope of the present disclosure. In implementations of the method (200) that include both the truncation (210) based on one or more fluid properties and the truncation (220) based on pumpout volume and/or time, the truncations (210, 220) may be performed in either order, whether in the order depicted in
The method (200) may also comprise performing downsampling (230), such as by utilizing a median or Winsorized mean. For example, during OCM, the raw data frequency may be high and/or oversampled, such as in implementations in which density is measured in one Hertz (Hz) intervals, which can result in higher computational cost. The downsampling (230) may reduce the raw data by some multiple or percentage of the measurement frequency utilized to obtain the raw data. For example, raw data obtained with a measurement frequency of 1.0 Hz may be downsampled to a frequency of about 0.33 Hz, thus truncating the raw data to the first data point of each three consecutive data points, or perhaps replacing each set of three consecutive data points with the median or Winsorized mean of the three consecutive data points, among other examples within the scope of the present disclosure. However, the downsampling (230) may utilize various other known or future-developed algorithms. Although
The method (200) may also comprise resampling (240) if, for example, the fluid property truncation (210), the volume/time truncation (220), and/or the downsampling (230) is excessively exclusive of meaningful data. Such resampling (240) is a relatively fast procedure, and may be performed in real-time during various stages of the method (200).
The method (200) also includes filtering (250) the results of the fluid property truncation (210), the volume/time truncation (220), and/or the downsampling (230). Such filtering (250) may utilize a median filter, a Winsorized mean filter, or a Hampel filter, among other example filtering techniques that may also or instead be utilized. A median filter and a Winsorized mean filter for raw data may be relatively simple to implement, but may be less robust, whereas a Hampel filter may be more robust but may also be time consuming. Thus, for example, in implementations in which the optional downsampling (230) is performed, the subsequent filtering (250) may utilize a Hampel filter, while in implementations in which the optional downsampling (230) is not performed, the filtering (250) may instead utilize a median filter or a Winsorized mean filter.
After performance of one of the various implementations of the method (200) described above and/or otherwise within the scope of the present disclosure, the resulting “preprocessed” data may then be utilized to determine the various fluid properties of the native formation fluid and/or the filtrate contamination, such as by utilizing one or more of Equations (1)-(5) set forth above and one or more regression techniques. Various regression techniques may be utilized within the scope of the present disclosure, including L2-least squares (LS), L1-LS, total-LS, least median of squares (LMS), RANSAC, and genetic algorithms, among other examples. An L2-LS regression may be direct and fast, but may sometimes be corrupted by outliers. An L1-LS regression may be less affected by outliers, but may sometimes have slower performance. A total-LS regression may be the most rigorous of the mentioned techniques, and may be a good option for line fitting, but may result in an eigenvalue problem.
An LMS regression may also be robust technique, particularly for OCM purposes. Such regression entails a nonlinear optimization, and is based on minimizing the median of the squared residuals determined for the entire data set. The LMS regression generally entails finding a set of parallel lines of minimum length that enclose [(n/2)+1] of the points in a data set having a number n of points. The LMS regression may have a breakdown point of at least about 50% of the points as outliers. However, determining the regression line can be a computationally intensive process, and may suffer from low precision.
RANSAC is an outlier immune algorithm in which, instead of filtering the outliers, identification of inliers is first attempted. It may be among the most robust of the mentioned techniques, but the threshold setting may be problem specific.
Experimental results demonstrate that RANSAC and LMS may be particularly suited for OCM regression due to a breakdown point of over about 50%. Since the results for RANSAC and LMS were similar, the following description refers to an example RANSAC technique, but LMS and other regression techniques may also be utilized.
The RANSAC technique entails just two external parameters, namely, fit start/end and threshold fraction. The threshold fraction is adjusted within a predetermined range (such as between 0.1 and 1.0, among other examples) by rescaling with a multiplier of median absolute deviation (median of the absolute of all data deviation from the median).
The method (300) includes selecting (310) a sample of the n data points, where the sample includes a number m of the n data points selected at random. The n data points may be the results from performing one or more implementations of the method (200) described above. The number m of data points may be larger than the minimum number of points necessary to determine the regression model (e.g., two points for a linear model, or three points for a power function model), and significantly smaller than the number n of total data points, such as to reduce computation time. For example, the number m may be between two and give, and the number of iterations may be about 1000. In another example implementation, the number m may be about 0.01*n, and the number of iterations may be about 100. However, these are merely examples, and other values and ranges are also within the scope of the present disclosure.
Model parameters are then fit (320) to the selected (310) sample of m data points, such as by utilizing Equations (1)-(5) set forth above. An error function is then calculated (330) for each of the m data points. The error function may be calculated (330) by one or more conventional techniques. The data that support the current hypothesis of the model are then selected (340) utilizing the calculated (330) error function. The method (300) may also include performing a resampling (350) and performing additional iterations of the sample selection (310), model fitting (320), error calculation (330), and supportive data selection (340), including adjusting the threshold fraction and/or the fit start/end with each iteration to determine (360) the optimum value for a fitting parameter (such as the exponent “−γ” described above) that results in the highest percentage of inliers. The optimized set of inliers may then be linearly fitted (370), such as by utilizing a total-LS and/or other regression technique.
The method (300) may be performed to determine sample line linearity between V−γ and OD, ρ, and/or b, which will give the virgin oil property by extrapolating to the Y-axis. Examples of extrapolating to determine OD0 and b0 are given in
The methods described above can also be used to determine dual flowline linearity between different OD channels, or between OD and density or G-function, or other pairs of properties described above with respect to Equations (1)-(5). That is, because one endpoint is known, the properties of the native formation fluid and the filtrate contamination can be determined.
The measurement property linear relationship determined as described above can also be utilized to determine the beginning of developing flow regime, and the linear relationship between V−γ and various properties determined as described above can also be utilized to determine the developed flow regime. One can also identify local ranges that do not follow the mixing behavior, such as may be caused by various measurement issues. These local data act as outliers that can also be removed.
An example of identifying developed flow regime is depicted in
Because the end points for OD, ρ, and GOR can be determined as described above, Equation (1) set forth above can be rewritten as set forth below in Equation (6).
where:
In an FRID plot of OD, ρ, and GOR versus V−γ, such as in the example depicted in
As shown in
The drillstring 612 may be raised and lowered by turning the lifting gear with the winch, which may sometimes include temporarily unhooking the drillstring 612 from the lifting gear. In such scenarios, the drillstring 612 may be supported by blocking it with wedges (known as “slips”) in a conical recess of the rotary table 616, which is mounted on a platform 621 through which the drillstring 612 passes.
The drillstring 612 may be rotated by the rotary table 616, which engages the kelly 617 at the upper end of the drillstring 612. The drillstring 612 is suspended from the hook 618 and extends through the kelly 617 and the rotary swivel 619 in a manner permitting rotation of the drillstring 612 relative to the hook 618. Other example wellsite systems within the scope of the present disclosure may utilize a top drive system to suspend and rotate the drillstring 612, whether in addition to or instead of the illustrated rotary table system.
The surface system may further include drilling fluid or mud 626 stored in a pit or other container 627 formed at the wellsite. As described above, the drilling fluid 626 may be OBM. A pump 629 delivers the drilling fluid 626 to the interior of the drillstring 612 via a hose or other conduit 620 coupled to a port in the swivel 619, causing the drilling fluid to flow downward through the drillstring 612, as indicated in
The BHA 650 may comprise one or more specially made drill collars near the drill bit 655. Each such drill collar may comprise one or more logging devices, thereby permitting measurement of downhole drilling conditions and/or various characteristic properties of the formation 602 intersected by the borehole 611. For example, the BHA 650 may comprise a logging-while-drilling (LWD) module 670, a measurement-while-drilling (MWD) module 680, a rotary-steerable system and motor 660, and perhaps the drill bit 655. Of course, other BHA components, modules, and/or tools are also within the scope of the present disclosure, e.g., as represented in
The LWD module 670 may comprise capabilities for measuring, processing, and storing information pertaining to the formation 602, including for obtaining a sample stream of fluid from the formation 602 and performing fluid analysis on the sample stream as described above. The MWD module 680 may comprise one or more devices for measuring characteristics of the drillstring 612 and/or drill bit 655, such as for measuring weight-on-bit, torque, vibration, shock, stick slip, direction, and/or inclination, among other examples within the scope of the present disclosure. The MWD module 680 may further comprise an apparatus (not shown) for generating electrical power to be utilized by the downhole system. This may include a mud turbine generator powered by the flow of the drilling fluid 626. However, other power and/or battery systems may also or instead be employed.
The wellsite system 600 also comprises a logging and control unit and/or other surface equipment 690 communicably coupled to the LWD and MWD modules 670, 675, and 680. One or more of the LWD and MWD modules 670, 675, and 680 comprise a downhole sampling apparatus operable to obtain downhole a sample of fluid from the subterranean formation and perform DFA to measure or determine various fluid properties of the obtained fluid sample. Such DFA may be utilized for OCM according to one or more aspects described above. The resulting data may then be reported to the surface equipment 690.
The operational elements of the BHA 650 may be controlled by one or more electrical control systems within the BHA 650 and/or the surface equipment 690. For example, such control system(s) may include processor capability for characterization of formation fluids in one or more components of the BHA 650 according to one or more aspects of the present disclosure. Methods within the scope of the present disclosure may be embodied in one or more computer programs that run in one or more processors located, for example, in one or more components of the BHA 650 and/or the surface equipment 690. Such programs may utilize data received from one or more components of the BHA 650, for example, via mud-pulse telemetry and/or other telemetry means, and may be operable to transmit control signals to operative elements of the BHA 650. The programs may be stored on a suitable computer-usable storage medium associated with one or more processors of the BHA 650 and/or surface equipment 690, or may be stored on an external computer-usable storage medium that is electronically coupled to such processor(s). The storage medium may be one or more known or future-developed storage media, such as a magnetic disk, an optically readable disk, flash memory, or a readable device of another kind, including a remote storage device coupled over a telemetry link, among other examples.
The downhole tool 720 comprises an elongated body 726 encasing a variety of electronic components and modules schematically represented in
One or more fluid sampling and analysis modules 732 are provided in the tool body 726. Fluids obtained from the formation 702 and/or borehole 712 flow through a flowline 733 of the fluid analysis module or modules 732, and then may be discharged through a port 739 of a pumpout module 738. Alternatively, formation fluids in the flowline 733 may be directed to one or more sample chambers 734 for receiving and retaining the fluids obtained from the formation 702 for transportation to the surface.
The fluid sampling means 729, 731, the fluid analysis modules 732, the flow path (including through the flowline 733, the port 739, and the sample chambers 734), and/or other operational elements of the downhole tool 720 may be controlled by one or more electrical control systems within the downhole tool 720 and/or the surface equipment 724. For example, such control system(s) may include processor capability for characterization of formation fluids in the downhole tool 720 according to one or more aspects of the present disclosure. Methods within the scope of the present disclosure may be embodied in one or more computer programs that run in a processor located, for example, in the downhole tool 720 and/or the surface equipment 724. Such programs may utilize data received from, for example, the fluid sampling and analysis module 732, via the wireline cable 722, and to transmit control signals to operative elements of the downhole tool 720. The programs may be stored on a suitable computer-usable storage medium associated with the one or more processors of the downhole tool 720 and/or surface equipment 724, or may be stored on an external computer-usable storage medium that is electronically coupled to such processor(s). The storage medium may be one or more known or future-developed storage media, such as a magnetic disk, an optically readable disk, flash memory, or a readable device of another kind, including a remote storage device coupled over a switched telecommunication link, among others.
An example downhole sampling apparatus 800 that may be utilized in the example systems 600 and 700 of
An example downhole fluid analyzer 850 that may be used to implement DFA in the example downhole sampling apparatus 800 shown in
The processing system 900 may comprise a processor 912 such as, for example, a general-purpose programmable processor. The processor 912 may comprise a local memory 914, and may execute coded instructions 932 present in the local memory 914 and/or another memory device. The processor 912 may execute, among other things, machine-readable instructions or programs to implement the methods and/or processes described herein. The programs stored in the local memory 914 may include program instructions or computer program code that, when executed by an associated processor, permit surface equipment and/or downhole controller and/or control system to perform tasks as described herein. The processor 912 may be, comprise, or be implemented by one or more processors of various types suitable to the local application environment, and may include one or more of general-purpose computers, special-purpose computers, microprocessors, digital signal processors (“DSPs”), field-programmable gate arrays (“FPGAs”), application-specific integrated circuits (“ASICs”), and processors based on a multi-core processor architecture, as non-limiting examples. Of course, other processors from other families are also appropriate.
The processor 912 may be in communication with a main memory 917, such as may include a volatile memory 918 and a non-volatile memory 920, perhaps via a bus 922 and/or other communication means. The volatile memory 918 may be, comprise, or be implemented by random access memory (RAM), static random access memory (SRAM), synchronous dynamic random access memory (SDRAM), dynamic random access memory (DRAM), RAMBUS dynamic random access memory (RDRAM) and/or other types of random access memory devices. The non-volatile memory 920 may be, comprise, or be implemented by read-only memory, flash memory and/or other types of memory devices. One or more memory controllers (not shown) may control access to the volatile memory 918 and/or the non-volatile memory 920.
The processing system 900 may also comprise an interface circuit 924. The interface circuit 924 may be, comprise, or be implemented by various types of standard interfaces, such as an Ethernet interface, a universal serial bus (USB), a third generation input/output (3GIO) interface, a wireless interface, and/or a cellular interface, among others. The interface circuit 924 may also comprise a graphics driver card. The interface circuit 924 may also comprise a communication device such as a modem or network interface card to facilitate exchange of data with external computing devices via a network (e.g., Ethernet connection, digital subscriber line (“DSL”), telephone line, coaxial cable, cellular telephone system, satellite, etc.).
One or more input devices 926 may be connected to the interface circuit 924. The input device(s) 926 may permit a user to enter data and commands into the processor 912. The input device(s) 926 may be, comprise, or be implemented by, for example, a keyboard, a mouse, a touchscreen, a track-pad, a trackball, an isopoint, and/or a voice recognition system, among others.
One or more output devices 928 may also be connected to the interface circuit 924. The output devices 928 may be, comprise, or be implemented by, for example, display devices (e.g., a liquid crystal display or cathode ray tube display (CRT), among others), printers, and/or speakers, among others.
The processing system 900 may also comprise one or more mass storage devices 930 for storing machine-readable instructions and data. Examples of such mass storage devices 930 include floppy disk drives, hard drive disks, compact disk (CD) drives, and digital versatile disk (DVD) drives, among others. The coded instructions 932 may be stored in the mass storage device 930, the volatile memory 918, the non-volatile memory 920, the local memory 914, and/or on a removable storage medium 934, such as a CD or DVD. Thus, the modules and/or other components of the processing system 900 may be implemented in accordance with hardware (embodied in one or more chips including an integrated circuit such as an application specific integrated circuit), or may be implemented as software or firmware for execution by a processor. In particular, in the case of firmware or software, the embodiment can be provided as a computer program product including a computer readable medium or storage structure embodying computer program code (i.e., software or firmware) thereon for execution by the processor.
In view of the entirety of the present disclosure, including the figures and the claims, a person having ordinary skill in the art should readily recognize that the present disclosure introduces a method comprising obtaining in-situ, real-time data associated with a sample stream obtained by a downhole sampling apparatus disposed in a borehole that extends into a subterranean formation, wherein the obtained data includes a plurality of fluid properties of the sample stream, and wherein the sample stream comprises native formation fluid from the subterranean formation and filtrate contamination resulting from formation of the borehole in the subterranean formation. The method also includes filtering the obtained data to remove outliers from the obtained data, fitting the filtered data to each of a plurality of models that each characterize a corresponding one of the fluid properties as a function of a pumpout volume (V) or time (t) of the sample stream, and identifying a start of a developed flow regime of the native formation fluid within the subterranean formation surrounding the borehole, wherein identifying the start of the developed flow regime is based on the fitted data.
The filtered data may include a number n of data points corresponding to each model, and fitting the filtered data to each model may comprise: (i) with respect to each model, performing a plurality of iterations that each comprise: (a) adjusting a threshold fraction and/or a fit start/end of the model; (b) randomly selecting a sample of m data points from the n data points corresponding to the model; (c) fitting the model to the m data points utilizing the adjusted threshold fraction and/or fit start/end; (d) determining an error function for each of the m data points based on the fitting; and (e) selecting ones of the m data points that are inliers supporting the model for the current iteration based on the error function determined for each of the m data points; (ii) determining an optimal threshold fraction and/or fit start/end based on which of the iterations has the highest percentage of inliers among the m data points of that iteration; and (iii) linearly fitting the inliers selected during the iteration corresponding to the optimal threshold fraction and/or fit start/end.
Identifying the start of the developed flow regime based on the fitted data may comprise: (i) generating a flow regime identification (FRID) plot comprising: the fitted data corresponding to each of the fluid properties, relative to V or t; and an exponential factor of V or t, relative to V or t; and (ii) identifying from the FRID plot the minimum V or t at which the fitted data for each of the fluid properties substantially coincide with the exponential factor of V or t, wherein the start of the developed flow regime is the identified minimum V or t. The exponential factor of V or t may be V−y or t−y, where y is an adjustable parameter that may be obtained based on the fitted data.
The fluid properties may comprise apparent optical density (OD) of the sample stream, apparent mass density (ρ) of the sample stream, and apparent gas-oil ratio (GOR) of the sample stream, each determined by the downhole sampling apparatus. Thus, obtaining the in-situ, real-time data may comprise obtaining OD data, ρ data, and GOR data, filtering the obtained data may comprise removing outliers from the OD data, ρ data, and GOR data, and fitting the filtered data may comprise fitting the OD data, the ρ data, and the GOR data to corresponding models that each characterize a corresponding one of OD, ρ, and GOR as a function of V or t. Similarly, generating the FRID plot may comprise plotting each of the fitted OD data, the fitted ρ data, and the fitted GOR data relative to V or t, and identifying the start of the developed flow regime may comprise identifying, from the FRID plot, the minimum V or t at which the plotted OD, ρ, and GOR data each substantially coincide with the exponential factor of V or t, wherein the start of the developed flow regime is the identified minimum V or t.
Filtering the obtained data to remove outliers may comprise truncating the obtained data based on a range of one of the fluid properties. For example, one of the fluid properties may apparent optical density (OD) of the sample stream, and truncating the obtained data may comprise truncating the obtained data to data points in which the OD ranges between about −1.0 and about 5.0. One of the fluid properties may be apparent mass density (ρ) of the sample stream, and truncating the obtained data may comprise truncating the obtained data to data points in which the p is less than about 1.5 g/cm3. One of the fluid properties may be apparent gas-oil-ratio (GOR) of the sample stream, and truncating the obtained data may comprise truncating the obtained data to data points in which the GOR is less than about 1,000,000 scf/bbl. Filtering the obtained data may further comprise truncating the obtained data based on a range of V or t. For example, truncating the obtained data based on the range of V or t may comprise truncating the obtained data to those data points in which the V or t is greater than the V or t at which native formation fluid is first detected in the sample stream. Filtering the obtained data may further comprise downsampling the obtained data. Filtering the obtained data may further comprise filtering the obtained data utilizing a median filter, a Winsorized mean filter, or a Hampel filter.
The fluid properties may comprise apparent optical density (OD) of the sample stream, apparent mass density (ρ) of the sample stream, and apparent gas-oil-ratio (GOR) of the sample stream, and filtering the obtained data may comprise: (i) truncating the obtained data to data points in which the OD is between about zero and about 3.0, the p is between about 0.1 g/cm3 and about 1.2 g/cm3, the GOR is less than about 50,000 scf/bbl, and the V or t is greater than the V or t at which native formation fluid is first detected in the sample stream; (ii) downsampling the truncated data; and (iii) filtering the downsampled data utilizing a Hampel filter.
In a similar implementation, the fluid properties may comprise apparent optical density (OD) of the sample stream, apparent mass density (ρ) of the sample stream, and apparent gas-oil-ratio (GOR) of the sample stream, and filtering the obtained data may comprise: (i) truncating the obtained data to data points in which the OD is between about zero and about 1.5, the ρ is between about 0.6 g/cm3 and about 0.9 g/cm3, the GOR is less than about 1,000 scf/bbl, and the V or t is greater than the V or t at which native formation fluid is first detected in the sample stream; and (ii) filtering the truncated data utilizing a median filter or a Winsorized mean filter.
The present disclosure also introduces a method comprising obtaining in-situ, real-time data associated with a sample stream obtained by a downhole sampling apparatus disposed in a borehole that extends into a subterranean formation, wherein the downhole sampling apparatus is operable to obtain apparent optical density (OD), apparent mass density (ρ), and apparent gas-oil ratio (GOR) of the sample stream such that the obtained data comprises OD data, ρ data, and GOR data, and wherein the sample stream comprises native formation fluid from the subterranean formation and filtrate contamination resulting from formation of the borehole in the subterranean formation. The method also comprises filtering the obtained data to remove outliers from the OD data, the ρ data, and the GOR data, and fitting the filtered OD, ρ, and GOR data to a corresponding one of a plurality of models that each characterize a corresponding one of OD, ρ, and GOR as a function of a pumpout volume (V) or time (t) of the sample stream, wherein fitting the filtered OD, ρ, and GOR data to the corresponding models includes determining an adjustable parameter y relating the filtered OD, ρ, and GOR data to V or t. The method also comprises identifying a start of a developed flow regime of the native formation fluid within the subterranean formation surrounding the borehole by: (i) generating a flow regime identification (FRID) plot by collectively plotting, relative to V or t: the fitted OD data, the fitted ρ data, the fitted GOR data, and one of V−y or t−y; and (ii) identifying from the FRID plot the minimum V or t at which the plotted OD, ρ, and GOR data each substantially coincide with the one of V−y or t−y, wherein the start of the developed flow regime is the identified minimum V or t.
Filtering the obtained data may comprise: (i) truncating the obtained data to data points in which the OD is less than a first predetermined threshold, the p is within a predetermined range, the GOR is greater than a second predetermined threshold, and the V or t is greater than the V or t at which native formation fluid is first detected in the sample stream; (ii) downsampling the truncated data; and (iii) filtering the downsampled data utilizing a Hampel filter. Filtering the obtained data may instead comprise: (i) truncating the obtained data to data points in which the OD is less than a first predetermined threshold, the p is within a predetermined range, the GOR is greater than a second predetermined threshold, and the V or t is greater than the V or t at which native formation fluid is first detected in the sample stream; and (ii) filtering the truncated data utilizing a median filter or a Winsorized mean filter.
The present disclosure also introduces an apparatus comprising: a downhole sampling apparatus operable within a borehole extending from a wellsite surface into a subterranean formation; and surface equipment disposed at the wellsite surface and in communication with the downhole sampling apparatus, wherein the downhole sampling apparatus and the surface equipment are collectively operable to: (i) obtain in-situ, real-time data associated with a sample stream obtained by the downhole sampling apparatus disposed within the borehole, wherein the obtained data includes a plurality of fluid properties of the sample stream, and wherein the sample stream comprises native formation fluid from the subterranean formation and filtrate contamination resulting from formation of the borehole in the subterranean formation; (ii) filter the obtained data to remove outliers from the obtained data; (iii) fit the filtered data to each of a plurality of models each characterizing a corresponding one of the fluid properties as a function of a pumpout volume (V) or time (t) of the sample stream; and (iv) identify, based on the fitted data, a start of a developed flow regime of the native formation fluid within the subterranean formation surrounding the borehole.
The fluid properties may comprise apparent optical density (OD) of the sample stream, apparent mass density (ρ) of the sample stream, and apparent gas-oil-ratio (GOR) of the sample stream. In such implementations, among others within the scope of the present disclosure, the downhole sampling apparatus and the surface equipment may be collectively operable to filter the obtained data by: (i) truncating the obtained data to data points in which the OD is less than a first predetermined threshold, the p is within a predetermined range, the GOR is greater than a second predetermined threshold, and the V or t is greater than the V or t at which native formation fluid is first detected in the sample stream; (ii) downsampling the truncated data; and (iii) filtering the downsampled data.
The foregoing outlines features of several embodiments so that a person having ordinary skill in the art may better understand the aspects of the present disclosure. A person having ordinary skill in the art should appreciate that they may readily use the present disclosure as a basis for designing or modifying other processes and structures for carrying out the same functions and/or achieving the same benefits of the embodiments introduced herein. A person having ordinary skill in the art should also realize that such equivalent constructions do not depart from the spirit and scope of the present disclosure, and that they may make various changes, substitutions and alterations herein without departing from the spirit and scope of the present disclosure.
The Abstract at the end of this disclosure is provided to permit the reader to quickly ascertain the nature of the technical disclosure. It is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims.
This application claims priority to and the benefit of U.S. Provisional Application No. 62/098,100, titled “Data Extraction for OBM Contamination Monitoring,” filed Dec. 30, 2014, the entire disclosure of which is hereby incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
62098100 | Dec 2014 | US |