Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
EVENT DETECTION FROM PUMP DATA
Document Type and Number:
WIPO Patent Application WO/2020/214170
Kind Code:
A1
Abstract:
A method for detecting an event includes measuring a pressure of a fluid with a pressure sensor. The method also includes generating a pressure spectrogram based at least in part on the pressure. The method also includes comparing the pressure spectrogram to a plurality of historical pressure spectrograms. The historical pressure spectrograms have previously been determined to be related to one or more events. The method also includes determining that the pressure spectrogram is related to an event based at least partially upon the comparison.

Inventors:
CHATAR CRISPIN (US)
Application Number:
PCT/US2019/028045
Publication Date:
October 22, 2020
Filing Date:
April 18, 2019
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SCHLUMBERGER TECHNOLOGY CORP (US)
SCHLUMBERGER CA LTD (CA)
SERVICES PETROLIERS SCHLUMBERGER (FR)
GEOQUEST SYSTEMS BV (NL)
International Classes:
E21B47/06; E21B41/00; E21B47/12
Domestic Patent References:
WO2019032925A12019-02-14
Foreign References:
US20180045043A12018-02-15
US20190055836A12019-02-21
US10113418B22018-10-30
US20170328199A12017-11-16
Attorney, Agent or Firm:
WIER, Colin L. (US)
Download PDF:
Claims:
CLAIMS

What is claimed is:

1. A method for detecting an event, comprising:

measuring a pressure of a fluid with a pressure sensor;

generating a pressure spectrogram based at least in part on the pressure;

comparing the pressure spectrogram to a plurality of historical pressure spectrograms, wherein the historical pressure spectrograms have previously been determined to be related to one or more events; and

determining that the pressure spectrogram is related to an event based at least partially upon the comparison.

2. The method of claim 1, wherein the fluid comprises a plurality of pressure pulses from a downhole tool in a wellbore.

3. The method of claim 1, wherein the event affects normal drilling operations, normal completion operations, normal production operations, or a combination thereof, and wherein the event comprises a pressure signature that is visible in the pressure spectrogram.

4. The method of claim 1, further comprising notifying a user that the event is occurring in substantially real-time.

5. The method of claim 1, further comprising building a model of a subterranean formation based at least partially upon the event.

6. A method for detecting an event, comprising:

measuring a first pressure of a first fluid;

generating a first pressure spectrogram based at least in part on the first pressure;

detecting a first event;

identifying data related to the first event in the first pressure spectrogram;

measuring a second pressure of a second fluid; generating a second pressure spectrogram based at least in part on the second pressure; comparing the second pressure spectrogram to the first pressure spectrogram; and identifying data related to a second event in the second pressure spectrogram based at least partially upon the comparison.

7. The method of claim 6, wherein the first event is detected without using the first pressure and without using the first pressure spectrogram.

8. The method of claim 6, wherein the data related to the first event is identified in the first pressure spectrogram after the first event is detected.

9. The method of claim 6, wherein comparing the second pressure spectrogram to the first pressure spectrogram comprises identifying data in the second pressure spectrogram that is similar to the identified data related to the first event in the first pressure spectrogram.

10. The method of claim 6, wherein measuring the first pressure of the first fluid comprises measuring a plurality of first pressure pulses, and wherein measuring the second pressure of the second fluid comprises measuring a plurality of second pressure pulses.

11. The method of claim 6, further comprising:

demodulating the first pressure to produce a first set of demodulated data; and

demodulating the second pressure to produce a second set of demodulated data.

12. The method of claim 11, further comprising:

identifying data related to the first event in the first set of demodulated data;

comparing the second set of demodulated data to the first set of demodulated data; and identifying data related to the second event in the second set of demodulated data based at least partially upon the comparison.

13. The method of claim 6, wherein the second event affects normal drilling operations, normal completion operations, normal production operations, or a combination thereof, and wherein the second event comprises a pressure signature that is visible in the second pressure spectrogram.

14. The method of claim 6, wherein the second event is selected from the group consisting of: a tubular string being stuck in a wellbore, a downhole tool being stuck in the wellbore, the tubular string twisting-off in the wellbore, the downhole tool twisting-off in the wellbore, a washout in the wellbore, a blowout, and failure of a pump.

15. The method of claim 6, further comprising steering a downhole tool based at least partially upon the second event.

16. A system for detecting an event, comprising:

a pump configured to cause fluid to flow into a wellbore, wherein a downhole tool in the wellbore introduces pulses into the fluid;

a pressure sensor configured to measure a pressure of the fluid; and

a computing system configured to:

generate a pressure spectrogram based at least in part on the pressure; compare the pressure spectrogram to a plurality of historical pressure spectrograms, wherein the historical pressure spectrograms have previously been determined to be related to one or more events; and

determine that the pressure spectrogram is related to an event based at least partially upon the comparison.

17. The system of claim 16, wherein the event affects normal drilling operations, normal completion operations, normal production operations, or a combination thereof, and wherein the event comprises a pressure signature that is visible in the pressure spectrogram.

18. The system of claim 16, wherein the computing system is further configured to notify a user that the event is occurring in substantially real-time.

19. The system of claim 16, wherein the computing system is further configured to build a model of a subterranean formation based at least partially upon the event.

20. The system of claim 16, wherein the event is selected from the group consisting of: the downhole tool being stuck in the wellbore, the downhole tool twisting-off in the wellbore, a washout in the wellbore, a blowout, and failure of the pump.

Description:
EVENT DETECTION FROM PUMP DATA

Background

[0001] A downhole tool in a wellbore may include a logging-while-drilling (LWD) tool and/or a measurement-while-drilling (MWD) tool that is/are configured to capture data downhole. The downhole tool may be configured to transmit the data to the surface by mud pulse telemetry, which includes generating pressure pulses in the fluid (e.g., mud) in the wellbore. The pulses may be sensed and/or recorded at the surface by a sensor (e.g., a pump pressure sensor) and subsequently demodulated to obtain the data.

[0002] In addition, the sensor may sense and/or record pressure data at a plurality of frequencies. The pressure data at these frequencies may be used to generate a pressure spectrogram (i.e., a visual representation of a spectrum of frequencies in the pulses over time). When an event occurs in the subterranean formation (e.g., in the wellbore and/or proximate to the downhole tool), evidence of the event may sometimes be present in the spectrogram. However, detecting the evidence of the event in the spectrogram is difficult. Moreover, even if the evidence is able to be detected, identifying the particular details of the event from the evidence is difficult.

Summary

[0003] A method for detecting an event is disclosed. The method includes measuring a pressure of a fluid with a pressure sensor. The method also includes generating a pressure spectrogram based at least in part on the pressure. The method also includes comparing the pressure spectrogram to a plurality of historical pressure spectrograms. The historical pressure spectrograms have previously been determined to be related to one or more events. The method also includes determining that the pressure spectrogram is related to an event based at least partially upon the comparison.

[0004] In another embodiment, the method includes measuring a first pressure of a first fluid. The method also includes generating a first pressure spectrogram based at least in part on the first pressure. The method also includes detecting a first event. The method also includes identifying data related to the first event in the first pressure spectrogram. The method also includes measuring a second pressure of a second fluid. The method also includes generating a second pressure spectrogram based at least in part on the second pressure. The method also includes comparing the second pressure spectrogram to the first pressure spectrogram. The method also includes identifying data related to a second event in the second pressure spectrogram based at least partially upon the comparison.

[0005] A system for detecting an event is also disclosed. The system includes a pump configured to cause fluid to flow into a wellbore. A downhole tool in the wellbore introduces pulses into the fluid. The system also includes a pressure sensor configured to measure a pressure of the fluid. The system also includes a computing system configured to generate a pressure spectrogram based at least in part on the pressure. The computing system is also configured to compare the pressure spectrogram to a plurality of historical pressure spectrograms. The historical pressure spectrograms have previously been determined to be related to one or more events. The computing system is also configured to determine that the pressure spectrogram is related to an event based at least partially upon the comparison.

[0006] It will be appreciated that this summary is intended merely to introduce some aspects of the present methods, systems, and media, which are more fully described and/or claimed below. Accordingly, this summary is not intended to be limiting.

Brief Description of the Drawings

[0007] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the present teachings and together with the description, serve to explain the principles of the present teachings. In the figures:

[0008] Figure 1 illustrates an example of a system that includes various management components to manage various aspects of a geologic environment, according to an embodiment.

[0009] Figure 2 illustrates a schematic view of a wellsite, according to an embodiment.

[0010] Figure 3 illustrates a pressure spectrogram generated using measurements from a pressure sensor at the wellsite, according to an embodiment.

[0011] Figure 4 illustrates a flowchart of a method for detecting an event based at least in part on data in the pressure spectrogram, according to an embodiment.

[0012] Figure 5 illustrates a schematic view of a computing system for performing at least a portion of the method, according to an embodiment. Detailed Description

[0013] Reference will now be made in detail to embodiments, examples of which are illustrated in the accompanying drawings and figures. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will be apparent to one of ordinary skill in the art that the invention may be practiced without these specific details. In other instances, well-known methods, procedures, components, circuits, and networks have not been described in detail so as not to unnecessarily obscure aspects of the embodiments.

[0014] It will also be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first object or step could be termed a second object or step, and, similarly, a second object or step could be termed a first object or step, without departing from the scope of the present disclosure. The first object or step, and the second object or step, are both, objects or steps, respectively, but they are not to be considered the same object or step.

[0015] The terminology used in the description herein is for the purpose of describing particular embodiments and is not intended to be limiting. As used in this description and the appended claims, the singular forms“a,”“an” and“the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term“and/or” as used herein refers to and encompasses any possible combinations of one or more of the associated listed items. It will be further understood that the terms“includes,”“including,”“comprises” and/or“comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Further, as used herein, the term“if’ may be construed to mean“when” or“upon” or“in response to determining” or“in response to detecting,” depending on the context.

[0016] Attention is now directed to processing procedures, methods, techniques, and workflows that are in accordance with some embodiments. Some operations in the processing procedures, methods, techniques, and workflows disclosed herein may be combined and/or the order of some operations may be changed. [0017] Figure 1 illustrates an example of a system 100 that includes various management components 1 10 to manage various aspects of a geologic environment 150 (e.g., an environment that includes a sedimentary basin, a reservoir 151, one or more faults 153-1, one or more geobodies 153-2, etc.). For example, the management components 110 may allow for direct or indirect management of sensing, drilling, injecting, extracting, etc., with respect to the geologic environment 150. In turn, further information about the geologic environment 150 may become available as feedback 160 (e.g., optionally as input to one or more of the management components 110).

[0018] In the example of Figure 1, the management components 1 10 include a seismic data component 112, an additional information component 114 (e.g., well/logging data), a processing component 116, a simulation component 120, an attribute component 130, an analysis/visualization component 142 and a workflow component 144. In operation, seismic data and other information provided per the components 112 and 114 may be input to the simulation component 120.

[0019] In an example embodiment, the simulation component 120 may rely on entities 122. Entities 122 may include earth entities or geological objects such as wells, surfaces, bodies, reservoirs, etc. In the system 100, the entities 122 can include virtual representations of actual physical entities that are reconstructed for purposes of simulation. The entities 122 may include entities based on data acquired via sensing, observation, etc. (e.g., the seismic data 112 and other information 114). An entity may be characterized by one or more properties (e.g., a geometrical pillar grid entity of an earth model may be characterized by a porosity property). Such properties may represent one or more measurements (e.g., acquired data), calculations, etc.

[0020] In an example embodiment, the simulation component 120 may operate in conjunction with a software framework such as an object-based framework. In such a framework, entities may include entities based on pre-defmed classes to facilitate modeling and simulation. A commercially available example of an object-based framework is the MICROSOFT ® .NET ® framework (Redmond, Washington), which provides a set of extensible object classes. In the .NET ® framework, an object class encapsulates a module of reusable code and associated data structures. Obj ect classes can be used to instantiate object instances for use in by a program, script, etc. For example, borehole classes may define objects for representing boreholes based on well data. [0021] In the example of Figure 1, the simulation component 120 may process information to conform to one or more attributes specified by the attribute component 130, which may include a library of attributes. Such processing may occur prior to input to the simulation component 120 (e.g., consider the processing component 116). As an example, the simulation component 120 may perform operations on input information based on one or more attributes specified by the attribute component 130. In an example embodiment, the simulation component 120 may construct one or more models of the geologic environment 150, which may be relied on to simulate behavior of the geologic environment 150 (e.g., responsive to one or more acts, whether natural or artificial). In the example of Figure 1, the analysis/visualization component 142 may allow for interaction with a model or model-based results (e.g., simulation results, etc.). As an example, output from the simulation component 120 may be input to one or more other workflows, as indicated by a workflow component 144.

[0022] As an example, the simulation component 120 may include one or more features of a simulator such as the ECLIPSE™ reservoir simulator (Schlumberger Limited, Houston Texas), the INTERSECT™ reservoir simulator (Schlumberger Limited, Houston Texas), etc. As an example, a simulation component, a simulator, etc. may include features to implement one or more meshless techniques (e.g., to solve one or more equations, etc.). As an example, a reservoir or reservoirs may be simulated with respect to one or more enhanced recovery techniques (e.g., consider a thermal process such as SAGD, etc.).

[0023] In an example embodiment, the management components 110 may include features of a commercially available framework such as the PETREL ® seismic to simulation software framework (Schlumberger Limited, Houston, Texas). The PETREL ® framework provides components that allow for optimization of exploration and development operations. The PETREL ® framework includes seismic to simulation software components that can output information for use in increasing reservoir performance, for example, by improving asset team productivity. Through use of such a framework, various professionals (e.g., geophysicists, geologists, and reservoir engineers) can develop collaborative workflows and integrate operations to streamline processes. Such a framework may be considered an application and may be considered a data-driven application (e.g., where data is input for purposes of modeling, simulating, etc.). [0024] In an example embodiment, various aspects of the management components 110 may include add-ons or plug-ins that operate according to specifications of a framework environment. For example, a commercially available framework environment marketed as the OCEAN ® framework environment (Schlumberger Limited, Houston, Texas) allows for integration of add ons (or plug-ins) into a PETREL ® framework workflow. The OCEAN ® framework environment leverages .NET ® tools (Microsoft Corporation, Redmond, Washington) and offers stable, user- friendly interfaces for efficient development. In an example embodiment, various components may be implemented as add-ons (or plug-ins) that conform to and operate according to specifications of a framework environment (e.g., according to application programming interface (API) specifications, etc.).

[0025] Figure 1 also shows an example of a framework 170 that includes a model simulation layer 180 along with a framework services layer 190, a framework core layer 195 and a modules layer 175. The framework 170 may include the commercially available OCEAN ® framework where the model simulation layer 180 is the commercially available PETREL ® model-centric software package that hosts OCEAN ® framework applications. In an example embodiment, the PETREL ® software may be considered a data-driven application. The PETREL ® software can include a framework for model building and visualization.

[0026] As an example, a framework may include features for implementing one or more mesh generation techniques. For example, a framework may include an input component for receipt of information from interpretation of seismic data, one or more attributes based at least in part on seismic data, log data, image data, etc. Such a framework may include a mesh generation component that processes input information, optionally in conjunction with other information, to generate a mesh.

[0027] In the example of Figure 1, the model simulation layer 180 may provide domain objects 182, act as a data source 184, provide for rendering 186 and provide for various user interfaces 188. Rendering 186 may provide a graphical environment in which applications can display their data while the user interfaces 188 may provide a common look and feel for application user interface components.

[0028] As an example, the domain objects 182 can include entity objects, property objects and optionally other objects. Entity objects may be used to geometrically represent wells, surfaces, bodies, reservoirs, etc., while property objects may be used to provide property values as well as data versions and display parameters. For example, an entity object may represent a well where a property object provides log information as well as version information and display information (e.g., to display the well as part of a model).

[0029] In the example of Figure 1 , data may be stored in one or more data sources (or data stores, generally physical data storage devices), which may be at the same or different physical sites and accessible via one or more networks. The model simulation layer 180 may be configured to model projects. As such, a particular project may be stored where stored project information may include inputs, models, results and cases. Thus, upon completion of a modeling session, a user may store a project. At a later time, the project can be accessed and restored using the model simulation layer 180, which can recreate instances of the relevant domain objects.

[0030] In the example of Figure 1, the geologic environment 150 may include layers (e.g., stratification) that include a reservoir 151 and one or more other features such as the fault 153-1, the geobody 153-2, etc. As an example, the geologic environment 150 may be outfitted with any of a variety of sensors, detectors, actuators, etc. For example, equipment 152 may include communication circuitry to receive and to transmit information with respect to one or more networks 155. Such information may include information associated with downhole equipment 154, which may be equipment to acquire information, to assist with resource recovery, etc. Other equipment 156 may be located remote from a well site and include sensing, detecting, emitting or other circuitry. Such equipment may include storage and communication circuitry to store and to communicate data, instructions, etc. As an example, one or more satellites may be provided for purposes of communications, data acquisition, etc. For example, Figure 1 shows a satellite in communication with the network 155 that may be configured for communications, noting that the satellite may additionally or instead include circuitry for imagery (e.g., spatial, spectral, temporal, radiometric, etc.).

[0031] Figure 1 also shows the geologic environment 150 as optionally including equipment 157 and 158 associated with a well that includes a substantially horizontal portion that may intersect with one or more fractures 159. For example, consider a well in a shale formation that may include natural fractures, artificial fractures (e.g., hydraulic fractures) or a combination of natural and artificial fractures. As an example, a well may be drilled for a reservoir that is laterally extensive. In such an example, lateral variations in properties, stresses, etc. may exist where an assessment of such variations may assist with planning, operations, etc. to develop a laterally extensive reservoir (e.g., via fracturing, injecting, extracting, etc.). As an example, the equipment 157 and/or 158 may include components, a system, systems, etc. for fracturing, seismic sensing, analysis of seismic data, assessment of one or more fractures, etc.

[0032] As mentioned, the system 100 may be used to perform one or more workflows. A workflow may be a process that includes a number of worksteps. A workstep may operate on data, for example, to create new data, to update existing data, etc. As an example, a may operate on one or more inputs and create one or more results, for example, based on one or more algorithms. As an example, a system may include a workflow editor for creation, editing, executing, etc. of a workflow. In such an example, the workflow editor may provide for selection of one or more pre defined worksteps, one or more customized worksteps, etc. As an example, a workflow may be a workflow implementable in the PETREL ® software, for example, that operates on seismic data, seismic attribute(s), etc. As an example, a workflow may be a process implementable in the OCEAN ® framework. As an example, a workflow may include one or more worksteps that access a module such as a plug-in (e.g., external executable code, etc.).

[0033] Figure 2 illustrates a schematic view of a wellsite 200, according to an embodiment. The wellsite 200 may include a rig 210 positioned above a wellbore 220 that is formed in a subterranean formation 222. A tubular string 230 may extend from the rig 210 into the wellbore 220. In one embodiment, the tubular string 230 may be or include a drill string made of a plurality of drill pipe segments. A downhole tool 240 may be coupled to (e.g., an end of) the tubular string 230 in the wellbore 220. The downhole tool 240 may be or include a MWD 242, a LWD 244, and a drill bit 246. The MWD 242 and/or the LWD 244 may be configured to capture measurements as the drill bit 246 drills the wellbore 220 farther into the subterranean formation 222.

[0034] A pump 250 may be positioned at the surface. The pump 250 may be configured to pump fluid (e.g., drilling mud) into the wellbore 220. More particularly, the fluid may flow (e.g., downward) from the pump 250, through the tubular string 230, and to the downhole tool 240. The fluid may then exit the downhole tool 240 and flow back (e.g., upward) through an annulus between the tubular string 230 and a surrounding tubular (e.g., a liner, a casing, or the wall of the wellbore 220) to the surface.

[0035] The downhole tool 240 may selectively restrict the fluid flow through the downhole tool 240 to encode the captured measurements as pressure pulses (in the fluid) that are transmitted to the surface. A pressure sensor 260 at the surface (e.g., coupled to or proximate to the rig 210) may measure the pressure of the fluid being pumped into and/or out of the wellbore 220. Thus, the pressure sensor 260 may sense/measure the pressure pulses from the downhole tool 240.

[0036] The pressure sensor 260 may be in communication with a computing system 500 at the surface (e.g., coupled to or proximate to the rig 210). The computing system 500 is described below with respect to Figure 5. The pressure sensor 260 and/or the computing system 500 may be configured to process/analyze the pressure from the pressure sensor 260, as described in greater detail below, to detect an event in the subterranean formation. As used herein, an“event” affects normal drilling, completion, and/or production operations. Such events cause a pressure effect (i.e., have a pressure signature) that is present in the pressure measured by the pressure sensor 260. For example, illustrative events may be or include the tubular string 230 and/or downhole tool 240 being stuck in the wellbore 220, the tubular string 230 and/or downhole tool 240 twisting-off, a washout, a blowout, failure of the pump 250, and the like.

[0037] Figure 3 illustrates a pressure spectrogram 300 generated using measurements from the pressure sensor 260, according to an embodiment. The spectrogram 300 has time on the X-axis and frequency on the Y-axis. The spectrogram 300 may include data related to the pressure pulses from the downhole tool 240, which may be referred to as the downhole tool signal 310. The spectrogram 300 may also include data 320 related to an event. The event data 320 may be from one or more of the events described above.

[0038] The spectrogram 300 may also include data 330 related to the pump 250. More particularly, the pump data 330 may be or include harmonics of the pump 250. The spectrogram 300 may also include data 340 related to electrical noise at the wellsite 200. The electrical noise may be generated by motors, generators, or other electrical wellsite equipment. The spectrogram 300 may also include data 350 related to downhole sounds. The downhole sounds may be generated by (e.g., axial or rotational) movement of the tubular string 230 and/or the downhole tool 240, drilling by the drill bit 246, etc. The spectrogram 300 may also include data 360 related to vibrations. The vibrations may be generated by the tubular string 230, the downhole tool 240, and/or equipment at the surface (e.g., the pump 250).

[0039] The spectrogram 300 may be used to determine if the downhole tool signal 310 is being interfered with by the pump 250, the electrical noise, the downhole sounds, the vibrations, or a combination thereof. If interference is present, the (e.g., frequency of the) downhole tool signal 310 may be modified (e.g., increased or decreased) to avoid the interference. In other embodiments, the pump 250, the components generating the electrical noise, the components generating the downhole sounds, the components generating the vibrations, or a combination thereof may be modified to avoid the interference with the downhole tool signal 310.

[0040] Figure 4 illustrates a flowchart of a method 400 for detecting an event based, according to an embodiment. The method 400 may include a training portion 410 and a detecting portion 430. As will be appreciated, in some embodiments, at least some of the training portion 410 may be performed using past (i.e., historical) data.

[0041] Training Portion 410

[0042] The training portion 410 of the method 400 may include measuring a pressure of a fluid with the pressure sensor 260, as at 412. The fluid may be pumped into the wellbore 220, disposed in the wellbore 220, and/or flowing out of the wellbore 220. The fluid may include a plurality of pressure pulses from the downhole tool 240.

[0043] The training portion 410 of the method 400 may also include demodulating the pressure to produce demodulated data transmitted from the downhole tool 240, as at 414. More particularly, the pressure sensor 260 and/or the computing system 500 may demodulate the data in the pressure pulses to extract the data measured by the MWD 242 and/or the LWD 244. The demodulated data may be or include physical properties (e.g., pressure, temperature, wellbore trajectory) measured by the MWD 242 and/or formation properties (e.g., porosity, permeability) measured by the LWD 244.

[0044] The training portion 410 of the method 400 may also include generating a pressure spectrogram 300 based at least in part on the pressure, as at 416. The pressure spectrogram 300 may be generated before, simultaneously with, or after the measured pressure is demodulated. Generating the pressure spectrogram 300 may include transforming the measured pressure from a time domain into a frequency domain.

[0045] The training portion 410 of the method 400 may also include detecting a first event, as at 418. The first event may be detected without using the data from the pressure sensor 260. More particularly, the first event may be detected without using the demodulated data and/or without using the spectrogram 300. For example, when the first event includes the tubular string 230 and/or downhole tool 240 being stuck in the wellbore 220, this may be detected by a user or sensor (e.g., not the pressure sensor 260) seeing/sensing that rotation has reduced or stopped. In another example, when the first event includes the tubular string 230 and/or downhole tool 240 twisting- off, this may be detected by a user or sensor (e.g., not the pressure sensor 260) seeing/sensing that the hook load has reduced. In yet another example, when the first event includes a washout, this may be detected by a user or sensors that are available at the wellsite. A washout is a specific trend of pressure and flow of the fluid in the wellbore as measured by surface sensors. In one embodiment, physics models are applied to detect the washout event. In another embodiment, the washout can be detected by engineers looking at the trends. In yet another example, when the first event includes a blowout, this may be detected by a user or sensor (e.g., not the pressure sensor 260) seeing/sensing an uncontrolled flow of fluids from the wellbore 220. In yet another example, when the first event includes a failure of the pump 250, this may be detected by a user or sensor (e.g., not the pressure sensor 260) seeing/sensing that pressure and/or flow from the pump 250 is not within a predetermined range, or the user hearing abnormal noises emerging from the pump 250.

[0046] In at least one embodiment, detecting the first event may include determining details about the first event. The details may also be determined at this stage without using the data from the spectrogram 300. For example, the details may be or include the time that the first event occurred, the location of the first event, the rotation rate (e.g., of the tubular string 230 and/or downhole tool 240), the hook load (e.g., weight of the tubular string 230 and/or downhole tool 240), the flow rate (e.g., of the fluids), the pressure (e.g., of the fluids), the temperature (e.g., of the fluids), the torque on the tubular string 230 and/or the downhole tool 240, a combination thereof, or the like.

[0047] In at least one embodiment, after the first event has occurred (or while the first event is occurring), the training portion 410 of the method 400 may also include identifying data related to the first event in the in the demodulated data (e.g., from 414) and/or in the spectrogram 300 (e.g., from 416), as at 420. For example, the data in the circle 320 in the spectrogram 300 may be determined to be related to the first event by determining that a time in the spectrogram 300 matches the time of the event. Any portion of the data in the spectrogram 300 that has a start time and/or a finish time that corresponds to the time of the event may be identified as corresponding to the event. The event may then be labelled in the spectrogram 300 with the type of event and/or the details of the event. As discussed below, once a plurality of the events are identified and labelled in a plurality of spectrograms, the system may be trained to autonomously identify similar events in spectrograms using machine learning algorithms. [0048] In at least one embodiment, identifying data 320 related to the first event may also include identifying data related to the particular details of the first event (e.g., in the spectrogram 300). For example, it may be determined that the data in the circle 320 in the spectrogram 300 includes details related to the first event by analyzing the peaks and valleys of the data in the circle 320 and comparing these peaks and valleys to the details of the event (e.g., flow rate).

[0049] The method 400 may also include storing the identified data in a library, as at 422. Storing the identified data may include storing the demodulated data (e.g., including the data related to the first event), the spectrogram 300 (e.g., including the data 320 related to the first event), the first event type, the details of the first event, or a combination thereof. The identified data may also include an identified link between the data related to the first event (e.g., in the demodulated data and/or the spectrogram 300) and the type/details of the first event, such that future demodulated data and/or spectrograms containing similar data may be used to identify corresponding events, as described in the detection portion 430 of the method 400 below.

[0050] One or more parts of the training portion 410 of the method 400 may be repeated (e.g., iteratively) to populate the library with a plurality of results. This may include a plurality of results for each type of event (e.g., multiple types of events). The results may be related to a single wellbore 220 or a plurality of different wellbores. The results may be related to a single downhole tool 240 or a plurality of different downhole tools. The library may be stored in (e.g., a storage media 506 in) the computing system 500 described below. The library may be part of, or in communication with, a machine-learning (ML) model on the computing system 500, which may be used to perform at least a portion of the method 400. Once the training portion 410 of the method 400 is complete, the method 400 may proceed to the detecting portion 430.

[0051] Detecting Portion 430

[0052] Although some of the same reference numbers are used in both the descriptions of the training portion 410 and the detecting portion 430, it will be appreciated that, for example, the wellbore in the training portion may be the same as or different from the wellbore in the detecting portion, the downhole tool in the training portion 410 may be the same as or different from the downhole tool in the detecting portion, the pressure sensor in the training portion 410 may be the same as or different from the pressure sensor in the detecting portion 430, etc. Accordingly, the measured pressure in the training portion 410 may be the same as or different from the measured pressure in the detecting portion 430, the demodulated data in the training portion 410 may be the same as or different from the demodulated data in the detecting portion 430, the pressure spectrogram in the training portion 410 may be the same as or different from the pressure spectrogram in the detecting portion 430, the event in the training portion 410 may be the same as or different from the event in the detecting portion 430, etc. In at least one embodiment, the training portion 410 may be referred to as past or historical, and the detecting portion 430 may be referred to as current or present because it occurs after the training portion 410.

[0053] The detecting portion 430 of the method 400 may include measuring a pressure of a fluid with the pressure sensor 260, as at 432. The fluid may be pumped into the wellbore 220, disposed in the wellbore 220, and/or flowing out of the wellbore 220. The fluid may include a plurality of pressure pulses from the downhole tool 240.

[0054] The detecting portion 430 of the method 400 may also include demodulating the pressure to produce demodulated data transmitted from the downhole tool 240, as at 434. More particularly, the pressure sensor 260 and/or the computing system 500 may demodulate the data in the pressure pulses to extract the data measured by the MWD 242 and/or the LWD 244. The demodulated data may be or include physical properties (e.g., pressure, temperature, wellbore trajectory) measured by the MWD 242 and/or formation properties (e.g., porosity, permeability) measured by the LWD 244.

[0055] The detecting portion 430 of the method 400 may also include generating a pressure spectrogram based at least in part on the pressure, as at 436. As mentioned above, the pressure spectrogram generated at 436 may appear similar to the spectrogram 300 in Figure 3 and generated above at 416; however, it will be appreciated that the spectrogram generated at 436 may correspond to a different time, a different wellsite, a different wellbore, a different downhole tool, a different event, etc., and thus may have some differences from the spectrogram 300 in Figure 3 and generated above at 416. The pressure spectrogram (e.g., at 436) may be generated before, simultaneously with, or after the pressure is demodulated. Generating the pressure spectrogram (e.g., at 436) may include transforming the measured pressure from a time domain into a frequency domain.

[0056] The detecting portion 430 of the method 400 may also include comparing the demodulated data (e.g., from 434) to the demodulated data (e.g., from 414), as at 438. As mentioned above, the demodulated data (e.g., from 414) may be related to the first event. Thus, as described below, if the demodulated data (e.g., from 434) is similar to the demodulated data (e.g., from 414), this may be an indication that the demodulated data (e.g., from 434) is related to a second event.

[0057] The detecting portion 430 of the method 400 may also include comparing the pressure spectrogram (e.g., from 436) to the pressure spectrogram (e.g., from 416), as at 440. As mentioned above, the pressure spectrogram (e.g., from 416) may be related to the first event. Thus, as described below, if the pressure spectrogram (e.g., from 436) is similar to the pressure spectrogram (e.g., from 416), this may be an indication that the pressure spectrogram (e.g., from 436) is related to a second event.

[0058] The detecting portion 430 of the method 400 may also include identifying data related to a second event in the in the demodulated data (e.g., from 434) and/or in the spectrogram (e.g., from 436) based at least partially upon the comparison (e.g., from 438 and/or 440), as at 442. For example, the second event may be detected by comparing the second set of demodulated data to the first set of demodulated data (e.g., in the library). More particularly, when the second set of demodulated data is determined to be similar to the first set of demodulated data in the library, it may be determined that the second set of demodulated data corresponds to the same type of event as the first set of demodulated data in the library.

[0059] In another example, the second event may be detected by comparing the second spectrogram to the first spectrogram (e.g., in the library). More particularly, when the second spectrogram includes data that is determined to be similar to the event data 320 in the first spectrogram 300 in the library, it may be determined that the data in the second spectrogram corresponds to the same type of event as the event data 320 in the spectrogram 300 in the library.

[0060] In at least one embodiment, detecting the event may also include determining details about the event. The details may also be detected by comparing the second set of demodulated data to the first set of demodulated data in the library. In another example, the details may be detected by comparing the second pressure spectrogram to the first pressure spectrogram in the library).

[0061] The method 400 may also include notifying a user in response to the second event, as at 444. Notifying the user may include sending the user an alert that the second event is occurring or has occurred. The user may be notified substantially in real time when the second event is detected. For example, the user may be notified within 60 seconds or less, 30 seconds or less, or 10 seconds or less from the time that the downhole tool 240 captures the information containing the event data.

[0062] The method 400 may also include building a model of the subterranean formation based at least partially upon the demodulated data (e.g., from 434), the spectrogram (e.g., from 436), the second event (e.g., from 442), or a combination thereof, as at 446. The model may indicate/show a cause of the second event, a likelihood and/or location of hydrocarbons in the subterranean formation, or the like. The model may be used to determine where to drill the wellbore or a subsequent wellbore, or where to steer the downhole tool 240 during drilling of the wellbore or the subsequent wellbore, based at least partially upon the event (e.g., to avoid the event or future similar events). In another embodiment, the model may be used to vary the weight on the downhole tool 240 (i.e., the WOB), vary the flow rate and/or properties of the fluid being pumped into the wellbore, or the like.

[0063] In some embodiments, the methods of the present disclosure may be executed by a computing system. Figure 5 illustrates an example of such a computing system 500, in accordance with some embodiments. The computing system 500 may include a computer or computer system 501A, which may be an individual computer system 501A or an arrangement of distributed computer systems. The computer system 501A includes one or more analysis modules 502 that are configured to perform various tasks according to some embodiments, such as one or more methods disclosed herein. To perform these various tasks, the analysis module 502 executes independently, or in coordination with, one or more processors 504, which is (or are) connected to one or more storage media 506. The processor(s) 504 is (or are) also connected to a network interface 507 to allow the computer system 501A to communicate over a data network 509 with one or more additional computer systems and/or computing systems, such as 501B, 501C, and/or 501D (note that computer systems 501B, 501C and/or 501D may or may not share the same architecture as computer system 501A, and may be located in different physical locations, e.g., computer systems 501 A and 501B may be located in a processing facility, while in communication with one or more computer systems such as 501C and/or 50 ID that are located in one or more data centers, and/or located in varying countries on different continents).

[0064] A processor may include a microprocessor, microcontroller, processor module or subsystem, programmable integrated circuit, programmable gate array, or another control or computing device. [0065] The storage media 506 may be implemented as one or more computer-readable or machine-readable storage media. Note that while in the example embodiment of Figure 5 storage media 506 is depicted as within computer system 501 A, in some embodiments, storage media 506 may be distributed within and/or across multiple internal and/or external enclosures of computing system 501A and/or additional computing systems. Storage media 506 may include one or more different forms of memory including semiconductor memory devices such as dynamic or static random access memories (DRAMs or SRAMs), erasable and programmable read-only memories (EPROMs), electrically erasable and programmable read-only memories (EEPROMs) and flash memories, magnetic disks such as fixed, floppy and removable disks, other magnetic media including tape, optical media such as compact disks (CDs) or digital video disks (DVDs), BLURAY ® disks, or other types of optical storage, or other types of storage devices. Note that the instructions discussed above may be provided on one computer-readable or machine-readable storage medium, or may be provided on multiple computer-readable or machine-readable storage media distributed in a large system having possibly plural nodes. Such computer-readable or machine-readable storage medium or media is (are) considered to be part of an article (or article of manufacture). An article or article of manufacture may refer to any manufactured single component or multiple components. The storage medium or media may be located either in the machine running the machine-readable instructions, or located at a remote site from which machine-readable instructions may be downloaded over a network for execution.

[0066] In some embodiments, computing system 500 contains one or more event detection module(s) 508 configured to perform at least a portion of the method 400. It should be appreciated that computing system 500 is merely one example of a computing system, and that computing system 500 may have more or fewer components than shown, may combine additional components not depicted in the example embodiment of Figure 5, and/or computing system 500 may have a different configuration or arrangement of the components depicted in Figure 5. The various components shown in Figure 5 may be implemented in hardware, software, or a combination of both hardware and software, including one or more signal processing and/or application specific integrated circuits.

[0067] Further, the steps in the processing methods described herein may be implemented by running one or more functional modules in information processing apparatus such as general purpose processors or application specific chips, such as ASICs, FPGAs, PLDs, or other appropriate devices. These modules, combinations of these modules, and/or their combination with general hardware are included within the scope of the present disclosure.

[0068] Computational interpretations, models, and/or other interpretation aids may be refined in an iterative fashion; this concept is applicable to the methods discussed herein. This may include use of feedback loops executed on an algorithmic basis, such as at a computing device (e.g., computing system 500, Figure 5), and/or through manual control by a user who may make determinations regarding whether a given step, action, template, model, or set of curves has become sufficiently accurate for the evaluation of the subsurface three-dimensional geologic formation under consideration.

[0069] The foregoing description, for purpose of explanation, has been described with reference to specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or limiting to the precise forms disclosed. Many modifications and variations are possible in view of the above teachings. Moreover, the order in which the elements of the methods described herein are illustrate and described may be re-arranged, and/or two or more elements may occur simultaneously. The embodiments were chosen and described in order to best explain the principals of the disclosure and its practical applications, to thereby enable others skilled in the art to best utilize the disclosed embodiments and various embodiments with various modifications as are suited to the particular use contemplated.