Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
SYSTEM AND METHOD FOR ASPHALTENE ANOMALY PREDICTION
Document Type and Number:
WIPO Patent Application WO/2023/215424
Kind Code:
A1
Abstract:
An unsupervised machine-learning model is trained using historical operation characteristics of a well. Operation characteristics of the well for a duration of time is reconstructed by the unsupervised machine-learning model. Whether an asphaltene anomaly will occur in the future at the well is predicted based on the difference between the operation characteristics of the well and the reconstructed operation characteristics of the well.

Inventors:
KARA MUSTAFA CAN (US)
Application Number:
PCT/US2023/020906
Publication Date:
November 09, 2023
Filing Date:
May 03, 2023
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
CHEVRON USA INC (US)
International Classes:
G06N20/20; E21B47/06; E21B49/00; G01N1/00
Domestic Patent References:
WO2021148141A12021-07-29
Foreign References:
US20220025758A12022-01-27
US20200173941A12020-06-04
US20190145255A12019-05-16
Other References:
ORELLANA MEJIA MILDRED ROSA: "Application of Data Mining to Predict and Assess the ROP Response", MASTER'S THESIS, MONTANUNIVERSITÄT LEOBEN, 1 May 2019 (2019-05-01), XP093109190, Retrieved from the Internet [retrieved on 20231205]
Attorney, Agent or Firm:
GUERRERO, Jason, M. et al. (US)
Download PDF:
Claims:
What is claimed is:

1. A system for predicting asphaltene anomalies, the system comprising: one or more physical processors configured by machine-readable instructions to: obtain well operation information, the well operation information characterizing operation characteristics of a well for a duration of time; determine reconstructed operation characteristics of the well for the duration of time using an unsupervised machine-learning model, wherein the unsupervised machine-learning model is trained using historical well operation information, the historical well operation information characterizing the operation characteristics of the well for a period of time preceding the duration of time; and predict a future occurrence of an asphaltene anomaly at the well based on the operation characteristics of the well for the duration of time and the reconstructed operation characteristics of the well for the duration of time.

2. The system of claim 1, wherein the unsupervised machine-learning model includes a linear unsupervised machine-learning model and/or a non-linear unsupervised machinelearning model.

3. The system of claim 1, wherein the linear unsupervised machine-learning model includes a principal component analysis algorithm.

4. The system of claim 1, wherein the non-linear unsupervised machine-learning model includes a long short-term memory autoencoder.

5. The system of claim 1, wherein prediction of the future occurrence of the asphaltene anomaly at the well based on the operation characteristics of the well for the duration of time and the reconstructed operation characteristics of the well for the duration of time includes: determination of an anomaly score based on a difference between the operation characteristics of the well for the duration of time and the reconstructed operation characteristics of the well for the duration of time; and prediction of the future occurrence of the asphaltene anomaly at the well based on a comparison between the anomaly score and an anomaly score threshold.

6. The system of claim 1, wherein the anomaly score threshold is determined based on the operation characteristics of the well for the period of time and reconstructed operation characteristics of the well for the period of time.

7. The system of claim 6, wherein the anomaly score threshold is determined based on the operation characteristics of the well for the period of time and reconstructed operation characteristics of the well for the period of time such that a threshold percentage of historical anomaly scores satisfies the anomaly score threshold.

8. The system of claim 1, wherein the one or more physical processors are further configured by the machine-readable instructions to present a visualization of the comparison between the anomaly score and the anomaly score threshold.

9. The system of claim 1, wherein the unsupervised machine-learning model is retrained using the well operation information.

10. The system of claim 1, wherein the operation characteristics of the well includes pressure and temperature at the well.

11. A method for predicting asphaltene anomalies, the method comprising: obtaining well operation information, the well operation information characterizing operation characteristics of a well for a duration of time; determining reconstructed operation characteristics of the well for the duration of time using an unsupervised machine-learning model, wherein the unsupervised machine-learning model is trained using historical well operation information, the historical well operation information characterizing the operation characteristics of the well for a period of time preceding the duration of time; and predicting a future occurrence of an asphaltene anomaly at the well based on the operation characteristics of the well for the duration of time and the reconstructed operation characteristics of the well for the duration of time.

12. The method of claim 11, wherein the unsupervised machine-learning model includes a linear unsupervised machine-learning model and/or a non-linear unsupervised machinelearning model.

13. The method of claim 11, wherein the linear unsupervised machine-learning model includes a principal component analysis algorithm.

14. The method of claim 11, wherein the non-linear unsupervised machine-learning model includes a long short-term memory autoencoder.

15. The method of claim 11, wherein predicting the future occurrence of the asphaltene anomaly at the well based on the operation characteristics of the well for the duration of time and the reconstructed operation characteristics of the well for the duration of time includes: determining an anomaly score based on a difference between the operation characteristics of the well for the duration of time and the reconstructed operation characteristics of the well for the duration of time; and predicting the future occurrence of the asphaltene anomaly at the well based on a comparison between the anomaly score and an anomaly score threshold.

Description:
SYSTEM AND METHOD FOR ASPHALTENE ANOMALY PREDICTION

FIELD

[0001] The present disclosure relates generally to the field of predicting anomalous events in oil and gas facilities. More specifically, the present disclosure relates to a scalable anomaly detection model that provides early detection of asphaltene production in oil and gas wells.

BACKGROUND

[0002] This section is intended to introduce the reader to various aspects of art that may be related to various aspects of the present disclosure, which are described and/or claimed below. This discussion is believed to be helpful in providing the reader with background information to facilitate a better understanding of the various aspects of the present disclosure. Accordingly, it should be understood that these statements are to be read in this light, and not as admissions of prior art.

[0003] In the oil and gas industry, asphaltene deposition is a common complex problem and can occur at various stages in oil and gas production. Asphaltene production in deepwater wells is an important operational issue which may result in planned and unplanned shut-ins. Asphaltene deposition can cause plugging of tubing, pipelines, and other production equipment. Further, continuous asphaltene accumulation through equipment can cause production curtailment, as asphaltene precipitation and subsequent deposition in the reservoir as well as in the pipelines can cause costly flow assurance events.

SUMMARY

[0004] This disclosure relates to predicting asphaltene anomalies. Well operation information and/or other information may be obtained. The well operation information may characterize operation characteristics of a well for a duration of time. Reconstructed operation characteristics of the well for the duration of time may be determined using an unsupervised machine-learning model. The unsupervised machine-learning model may be trained using historical well operation information and/or other information. The historical well operation information may characterize the operation characteristics of the well for a period of time preceding the duration of time. A future occurrence of an asphaltene anomaly at the well may be predicted based on the operation characteristics of the well for the duration of time, the reconstructed operation characteristics of the well for the duration of time, and/or other information.

[0005] A system for predicting asphaltene anomalies may include one or more electronic storage, one or more processors and/or other components. The electronic storage may store well operation information, information relating to a well, information relating to operation characteristics of the well, information relating to an unsupervised machine learning model, information relating to reconstructed operation characteristics of the well, historical well operation information, information relating to historical operation characteristics of the well, information relating to asphaltene anomalies, information relating to prediction of asphaltene anomalies, and/or other information.

[0006] The processor(s) may be configured by machine-readable instructions. Executing the machine-readable instructions may cause the processor(s) to facilitate predicting asphaltene anomalies. The machine-readable instructions may include one or more computer program components. The computer program components may include one or more of a well operation component, a reconstruction component, a prediction component, and/or other computer program components.

[0007] The well operation component may be configured to obtain well operation information and/or other information. The well operation information may characterize operation characteristics of a well for a duration of time. In some implementations, the operation characteristics of the well may include pressure at the well, temperature at the well, and/or other operation characteristics of the well.

[0008] The reconstruction component may be configured to determine reconstructed operation characteristics of the well for the duration of time. The reconstructed operation characteristics of the well for the duration of time may be determined using one or more unsupervised machine-learning models. The unsupervised machine-learning model(s) may be trained using historical well operation information and/or other information. The historical well operation information may characterize the operation characteristics of the well for one or more periods of time preceding the duration of time.

[0009] In some implementations, the unsupervised machine-learning model may be retrained using the well operation information and/or other information. [0010] In some implementations, the unsupervised machine-learning model(s) may include a linear unsupervised machine-learning model and/or a non-linear unsupervised machinelearning model. In some implementations, the linear unsupervised machine-learning model(s) may include a principal component analysis. In some implementations, the nonlinear unsupervised machine-learning model(s) may include a long short-term memory autoencoder.

[0011] The prediction component may be configured to predict a future occurrence of a asphaltene anomaly at the well. The future occurrence of the asphaltene anomaly at the well may be predicted based on the operation characteristics of the well for the duration of time, the reconstructed operation characteristics of the well for the duration of time, and/or other information.

[0012] In some implementations, prediction of the future occurrence of the asphaltene anomaly at the well based on the operation characteristics of the well for the duration of time and the reconstructed operation characteristics of the well for the duration of time may include: determination of an anomaly score based on a difference between the operation characteristics of the well for the duration of time and the reconstructed operation characteristics of the well for the duration of time; and prediction of the future occurrence of the asphaltene anomaly at the well based on a comparison between the anomaly score and an anomaly score threshold.

[0013] In some implementations, the anomaly score threshold may be determined based on the operation characteristics of the well for the period of time, reconstructed operation characteristics of the well for the period of time, and/or other information. In some implementations, the anomaly score threshold may be determined based on the operation characteristics of the well for the period of time and reconstructed operation characteristics of the well for the period of time such that a threshold percentage of historical anomaly scores satisfies the anomaly score threshold.

[0014] In some implementations, one or more visualizations of the comparison between the anomaly score and the anomaly score threshold may be presented on one or more displays.

[0015] These and other objects, features, and characteristics of the system and/or method disclosed herein, as well as the methods of operation and functions of the related elements of structure and the combination of parts and economies of manufacture, will become more apparent upon consideration of the following description and the appended claims with reference to the accompanying drawings, all of which form a part of this specification, wherein like reference numerals designate corresponding parts in the various figures. It is to be expressly understood, however, that the drawings are for the purpose of illustration and description only and are not intended as a definition of the limits of the invention. As used in the specification and in the claims, the singular form of “a,” “an,” and “the” include plural referents unless the context clearly dictates otherwise.

BRIEF DESCRIPTION OF THE DRA WINGS

[0016] FIG. 1 illustrates an example system for predicting asphaltene anomalies, in accordance with an embodiment of this disclosure.

[0017] FIG. 2 illustrates an example workflow for predicting asphaltene anomalies, in accordance with an embodiment of this disclosure.

[0018] FIG. 3 illustrates an example process for predicting asphaltene anomalies, in accordance with an embodiment of this disclosure.

[0019] FIG. 4 illustrates an example tubing delta pressure and visualization of a comparison between anomaly score and anomaly score threshold for asphaltene anomaly prediction, in accordance with an embodiment of this disclosure.

[0020] FIG. 5 illustrates an example visualization of the effect of chemical interventions on anomaly scores over time, in accordance with an embodiment of this disclosure.

DETAILED DESCRIPTION

[0021] As noted above, asphaltene production in deepwater wells is an important operational issue which may result in planned and unplanned shut-ins. In practice, operators perform solvent-soak operations to remove asphaltene deposits in tubing (e.g., production tubing). Conventional asphaltene inhibitor (Al) treatments involve either periodic interventions with solvent soaks or continuous injection of chemicals into the tubing. These interventions require chemical applications and can cause production deferrals due to operations downtime for a period of time (e.g., days). Even though these interventions are performed to avoid asphaltene deposition, asphaltene deposition continues to occur in tubing during normal production operations and must be closely monitored. [0022] Although these approaches are useful, asphaltene production continues to present significant challenges and costs. Thus, a need exists to, among other things, accurately identify or predict the onset and effects of asphaltene production and associated effects that may occur within production equipment, particularly subsea equipment. Thus, it is now recognized that it would be beneficial to accurately identify or predict the onset and effects of asphaltene anomalies that may occur within production equipment, particularly subsea equipment associated with oil and gas operations. Embodiments of this disclosure relate to a scalable anomaly detection model built to provide early detection of potential failures or unplanned shut-ins or other asphaltene remediation operations due to asphaltene-related anomalies such as asphaltene production, deposition, and/or precipitation. Such models may be used to, for example, alert an operator before actual shut-in situations occur.

[0023] In accordance with some embodiments of this disclosure, anomalies (e.g., asphaltene anomalies) are approached as a data science problem addressed as an anomaly detection technique where a workflow uses a machine learning (ML) model trained in accordance with present embodiments reconstructs original data inputs related to operation characteristics of a particular facility (e.g., equipment associated with a production well). The original data input may be data obtained from sensors associated with a particular facility. In some embodiments, the data from sensors are selected to have a certain relevance to asphaltene- related anomalies. A comparison of the original data input and the reconstructed data may be used to generate an anomaly score, where the anomaly score relates to asphaltene-related anomalies (e.g., the likelihood of an asphaltene-related event such as a shut-in). In some embodiments, an alarm may be triggered once the calculated anomaly score passes a precalculated training threshold. The model may be, for example, a machine learning (ML) model with outputs that are written back to a data server where an operator can investigate the real-time data. Further analytics may be conducted to assess the impact of intervention campaigns (e.g., chemical soaks) using the anomalies between subsequent campaigns.

[0024] In certain embodiments, an unsupervised machine-learning model is trained using historical operation characteristics of a well. Operation characteristics of the well for a duration of time is reconstructed by the unsupervised machine-learning model. Whether asphaltene anomalies will occur in the future is predicted based on the difference between the operation characteristics of the well and the reconstructed operation characteristics of the well. [0025] The methods and systems of the present disclosure may be implemented by a system and/or in a system, such as a system 10 shown in FIG. 1. The system 10 may include one or more of a processor 11, an interface 12 (e.g., bus, wireless interface), an electronic storage 13, a display 14, and/or other components. Well operation information and/or other information may be obtained by the processor 11. The well operation information may characterize operation characteristics of a well for a duration of time. Reconstructed operation characteristics of the well for the duration of time may be determined by the processor using an unsupervised machine-learning model. The unsupervised machinelearning model may be trained using historical well operation information and/or other information. The historical well operation information may characterize the operation characteristics of the well for a period of time preceding the duration of time. A future occurrence of an asphaltene anomaly at the well may be predicted by the processor 11 based on the operation characteristics of the well for the duration of time, the reconstructed operation characteristics of the well for the duration of time, and/or other information.

[0026] The electronic storage 13 may be configured to include electronic storage medium that electronically stores information. The electronic storage 13 may store software algorithms, information determined by the processor 11, information received remotely, and/or other information that enables the system 10 to function properly. For example, the electronic storage 13 may store well operation information, information relating to a well, information relating to operation characteristics of the well, information relating to an unsupervised machine learning model (e.g., including the model and weighting associated with the model from training), information relating to reconstructed operation characteristics of the well, historical well operation information, information relating to historical operation characteristics of the well, information relating to asphaltene anomalies, information relating to prediction of asphaltene anomalies, information relating to intervention campaigns (e.g., including chemical soaks), and/or other information.

[0027] The display 14 may refer to an electronic device that provides visual presentation of information. The display 14 may include a color display and/or a non-color display. The display 14 may be configured to visually present information. The display 14 may present information using/within one or more graphical user interfaces. For example, the display 14 may present well operation information, information relating to a well, information relating to operation characteristics of the well, information relating to an unsupervised machine learning model, information relating to reconstructed operation characteristics of the well, historical well operation information, information relating to historical operation characteristics of the well, information relating to asphaltene anomalies, information relating to prediction of asphaltene anomalies, information relating to intervention campaigns (e.g., including chemical soaks), and/or other information.

[0028] An asphaltene anomaly (also referred to as an “asphaltene event”) may refer to the production of asphaltene and the effects of this production, such as buildup, in a well. Asphaltene production in the well may result in potential well/equipment plugging and/or damage. Excessive asphaltene production may cause blockage in tubulars and cavities in downhole equipment (e.g., choke valves, pipe elbows, tees, bends, etc.), and maintenance costs for subsea equipment may add up to millions of dollars yearly to operators.

[0029] The present disclosure provides a scalable unsupervised machine-learning model that utilizes historical and real-time feed of sensor data (e.g., telemetry) from a well to predict occurrence of asphaltene anomalies in the future. The present disclosure allows asphaltene anomaly prediction to be provided before the well/equipment is plugged or damaged. The present disclosure utilizes linear and/or non-linear analysis of the sensor data to reconstruct the sensor data at the well. Comparison between the sensor data and the reconstructed sensor data may be used to determine an anomaly score for the well. Comparison between the historical sensor data and the reconstructed historical sensor data may be used to determine an anomaly score threshold for the well. The anomaly score and the anomaly score threshold may be stored in electronic storage (e.g., database, data server), which may be accessed by an operator to investigate the real-time data and/or by a visualization tool/software to provide visualization of the anomaly score and the anomaly score threshold.

[0030] An example prediction of a future asphaltene anomaly at the well may be made based on the anomaly score passing the anomaly score threshold. For example, based on the anomaly score passing the anomaly score threshold, an asphaltene anomaly may be predicted to occur at the well within a certain duration of time (e.g., within minutes, within 1-2.5 hours). Based on a future asphaltene anomaly being predicted at the well, one or more alarms (e.g., visible alarm, audible alarm) may be triggered, which may enable operators to take preventative/mitigative actions before damage to or plugging of the well/equipment occurs. For example, based on the anomaly score being greater than the anomaly score threshold, a visible alarm (e.g., red coloring) may be presented on a display and/or a sound may be played. As another example, based on the anomaly score being greater than the anomaly score threshold, a notification (e.g., text notification, email notification) may be sent to an operator. Based on a future asphaltene anomaly being predicted at the well, one or more preventative/mitigative measures (e.g., a chemical intervention) may be employed (e.g., automatically) to reduce the likelihood of flow assurance events or well damage.

[0031] FIG. 3 illustrates an example process 300 for predicting asphaltene anomalies. In the process 300, historical well data 302 (e.g., historical well operation information) and well data 312 (e.g., well operation information) may be obtained. The historical well data 302 may include historical sensor data measured at the well, such as including, but not limited to, wellhead data, flowline data, downhole pressures, temperatures, oil rates, and pressure differentials measured within a particular time period (e.g., the past six months to a year) at the well. The well data 312 may include real-time sensor data measured at the well, such as including, but not limited to, wellhead data, flowline data, downhole pressures, temperatures, oil rates, and pressure differentials measured within the past day at the well. The historical well data 302 and the well data 312 may include, by way of non-limiting example, timeseries data of pressure and temperature measured at the well.

[0032] The historical well data 302 may be used to train an unsupervised machine-learning model 304. The unsupervised machine-learning model may include one or more linear unsupervised machine-learning models (e.g., principal component analysis) and/or one or more non-linear unsupervised machine-learning models (e.g., long short-term memory autoencoder).

[0033] Once trained, the unsupervised machine-learning model 304 may be used to reconstruct the sensor data (e.g., well operation information) measured at the well. The unsupervised machine-learning model 304 may receive as input the historical well data 302 and output reconstructed historical well data 306. The unsupervised machine-learning model 304 may receive as input the well data 312 and output reconstructed well data 316. The unsupervised machine-learning model 304 may output time-series data. Reconstructed data points in the time-series data output by the unsupervised machine-learning model 304 may correspond to the data points in the time-series data input to the unsupervised machinelearning model 304.

[0034] A comparison between the historical well data 302 and the reconstructed historical well data 306 may be performed to determine a value of an anomaly threshold 308 for the well. A comparison between the well data 312 and the reconstructed well data 316 may be performed to determine a value of an anomaly score 318 of the well. Based on the anomaly threshold 308 and the anomaly score 318, an asphaltene anomaly prediction 320 may be made. For example, based on the value of the anomaly score 318 being larger than the value of the anomaly threshold 308, an asphaltene anomaly may be predicted to occur in the future at the well. Stated otherwise, the asphaltene anomaly may be considered to be detected earlier than would otherwise be possible.

[0035] Referring back to FIG. 1, the processor 11 may be configured to provide information processing capabilities in the system 10. As such, the processor 11 may comprise one or more of a digital processor, an analog processor, a digital circuit designed to process information, a central processing unit, a graphics processing unit, a microcontroller, an analog circuit designed to process information, a state machine, and/or other mechanisms for electronically processing information. The processor 11 may be configured to execute one or more machine-readable instructions 100 to facilitate predicting asphaltene anomalies. The machine-readable instructions 100 may include one or more computer program components. The machine-readable instructions 100 may include a well operation component 102, a reconstruction component 104, a prediction component 106, and/or other computer program components. The components described herein may perform a variety of functions independently or in any appropriate combinations and appropriate orders.

[0036] The well operation component 102 may be configured to obtain well operation information and/or other information. Obtaining well operation information may include one or more of accessing, acquiring, analyzing, determining, examining, generating, identifying, loading, locating, measuring, opening, receiving, retrieving, reviewing, selecting, storing, and/or otherwise obtaining the well operation information. The well operation component 102 may obtain well operation information from one or more locations. For example, the well operation component 102 may obtain well operation information from a storage location, such as the electronic storage 13, electronic storage of a device accessible via a network, and/or other locations (e.g., storage of a data historian system). The well operation component 102 may obtain well operation information from one or more hardware components (e.g., a computing device, a sensor, a pressure sensor, a temperature sensor) and/or one or more software components (e.g., software running on a computing device). For example, the well operation component 102 may obtain well operation information by using one or more pressure sensors, one or more temperature sensors, and/or other sensors to determine/measure operation characteristics of a well. [0037] The well operation information may characterize operation characteristics of a well for a duration of time. A well may refer to a hole that is drilled in the ground. A well may be drilled in the ground for exploration and/or recovery of resources in the ground, such as water or hydrocarbons. For example, a well may be drilled for production of hydrocarbons (e.g., as a production well). Operation characteristics of a well may refer to characteristics in the well during an operation that utilizes the well (e.g., for production). Operation characteristics of the well may refer to attribute, quality, configuration, parameter, and/or characteristics of matter inside, within, and/or around the well during an operation that utilizes the well.

[0038] For example, the operation characteristics of the well characterized by the well operation information may include pressure at the well, temperature at the well, and/or other operation characteristics of the well. Pressure at the well may include pressure measured by pressure sensors at multiple locations along the well. Temperature at the well may include temperature measured by temperature sensors at multiple locations along the well. For example, the operation characteristics of the well may include pressure and temperature measured downhole/at lower tubing (e.g., downhole pressure, downhole temperature), at annulus (e.g., annulus pressure, annulus temperature), at choke valve (e.g., choke delta pressure, flowline pressure, flowline temperature), at upper tubing (e.g., tubing pressure, tubing temperature, tubing delta pressure, wellhead pressure, wellhead temperature), and/or other locations along the well. For instance, the operation characteristics of the well may include downhole pressure, flowline pressure, upstream and downstream subsea choke pressure, along with corresponding temperatures. Measurement of operation characteristics of the well at other locations is contemplated.

[0039] The well operation information obtained by the well operation component 102 may include real-time well operation information. Real-time well operation information may refer to well operation information that characterizes current operation characteristics of the well. For example, the real-time well operation information may characterize the operation characteristics of the well currently being measured by pressure sensors and temperature sensors. The real-time well operation information may characterize the operation characteristics of the well currently that has been measured within a threshold amount of time (e.g., operation characteristics measured within the past day/part of the past day). The duration of time for which the well operation information characterizes the operation characteristics of the well may include a set duration of time. The duration of time may be set by the system 10 (e.g., default duration of time) or set by a user (e.g., user-controlled duration of time). In some implementations, the duration of time may include a day or a part of a day. For example, pressure and temperature measured over the past day by the sensors may be obtained. Use of other durations of time is contemplated.

[0040] In some implementations, the well operation information may include a time-series data. For example, the well operation information may include a collection of pressure and temperature measurements at different time points within the duration of time.

[0041] The well operation information may characterize operation characteristics of a well by including information that defines, describes, delineates, identifies, is associated with, quantifies, reflects, sets forth, and/or otherwise characterizes one or more of value, property, quality, quantity, attribute, feature, and/or other aspects of the operation characteristics of the well. The well operation information may directly and/or indirectly characterize operation characteristics of a well. For example, the well operation information may characterize operating characteristics of a well by including information that specifies the type and/ value of operation characteristics of the well and/or information that may be used to determine the type and/or value of operation characteristics of the well. Other types of well operation information are contemplated.

[0042] The reconstruction component 104 may be configured to determine reconstructed operation characteristics of the well for the duration of time. Determining reconstructed operation characteristics of the well may include ascertaining, approximating, calculating, establishing, estimating, finding, identifying, obtaining, quantifying, and/or otherwise determining the reconstructed operation characteristics of the well. The reconstruction component 104 may reconstruct the operation characteristics of the well for the duration of time. For example, the reconstruction component 104 may reconstruct pressure and temperature measured over the duration of time (e.g., past day, part of the day). The reconstruction component 104 may perform one-for-one reconstruction such that every pressure and temperature measurement over the duration of time is reconstructed.

[0043] The reconstructed operation characteristics of the well for the duration of time may be determined using one or more unsupervised machine-learning models. The unsupervised machine-learning model(s) may perform multivariate analysis to reconstruct the operation characteristics of the well. An unsupervised machine-learning model may refer to a machinelearning model that is not supervised using a training data. An unsupervised machinelearning model may refer to a machine-learning model that discovers hidden patterns and insights from the training data. An unsupervised machine-learning model may receive as input the operation characteristics of the well for the duration of time and may provide as output the reconstructed operation characteristics of the well for the duration of time.

[0044] In some implementations, the unsupervised machine-learning model(s) may include one or more linear unsupervised machine-learning models and/or one or more non-linear unsupervised machine-learning models. A linear unsupervised machine-learning model may provide/facilitate linear analysis of the training data and linear reconstruction of the input data. In some implementations, a linear unsupervised machine-learning model may include a principal component analysis (PCA) algorithm, which is an orthogonal linear transformation which transforms the data to a new high-dimensional coordinate system. In certain embodiments, the PCA algorithm computes its projection on the specified number of eigenvectors together with a reconstruction error. In some embodiments, an anomaly score is set to this error.

[0045] A non-linear unsupervised machine-learning model may provide/facilities non-linear analysis of the training data and non-linear reconstruction of the input data. In some implementations, a non-linear unsupervised machine-learning model may include a long short-term memory (LSTM) autoencoder (a type of artificial neural network). Specifically, in one embodiment, the LSTM autoencoder is an implementation of an autoencoder for sequence data that uses an encoder-decoder LSTM architecture. The encoder part of the model compresses sequence data while the decoder reconstructs the input sequence. In one embodiment, at the end of model training, an anomaly threshold is calculated based on the error distributions of train and test reconstructions. Use of other types of unsupervised machine-learning model is contemplated.

[0046] In some implementations, multiple unsupervised machine-learning models may be used to reconstruct the operation characteristics of the well. For example, a linear unsupervised machine-learning model and a non-linear unsupervised machine-learning model may be used to reconstruct the operation characteristics of the well. The reconstruction of the operation characteristics may be performed by the multiple unsupervised machine-learning models in parallel.

[0047] The unsupervised machine-learning model(s), such as the PCA algorithm, may be trained using historical well operation information and/or other information. The historical well operation information may characterize the operation characteristics of the well for one or more periods of time preceding the duration of time. Historical well operation information may refer to well operation information that characterizes past operation characteristics of the well. For example, the historical well operation information may characterize the past operation characteristics of the well over a period of time that extends beyond a threshold amount of time (e.g., operation characteristics measured over six months to a year). The period for which the historical well operation information characterizes the past operation characteristics of the well may include a set period of time. The period of time may be set by the system 10 (e.g., default period of time) or set by a user (e.g., user-controlled period of time). In some implementations, the period of time may range between a half a year to a year. For example, pressure and temperature measured over a half a year to a year may be obtained. Use of other periods of time is contemplated.

[0048] In some implementations, one or more pre-processing steps may be applied to the historical well operation information before the historical well operation information is used to train the unsupervised machine-learning model(s). The pre-processing step(s) may prepare the historical well operation information for use in training the unsupervised machinelearning model(s). The pre-processing step(s) may remove undesired parts of the historical well operation information so that the undesired parts are not used to train the unsupervised machine-learning model(s).

[0049] For example, the pre-processing step(s) may include data smoothing, outlier removal, non-standard operation removal, continuous operation identification, and/or other processing step(s). Data smoothing may include removal of noise from the historical well operation information. For example, the historical well operation information may include high frequency data (e.g., temperature and pressure sampled every five seconds), and noise may exist within the historical well operation information due to operations of the well and/or sensor noise. The high-frequency data may be smoothed by downsampling the data (e.g., to one-minute interval) and applying a smoothing function (e.g., locally weighted scatterplot smoothing function) to the downsampled data.

[0050] Outlier removal may include removal of data points that fall outside the expected values of the data points. For example, temperature and/or pressure measurement that exceed the expected temperature and/or pressure may be removed from the historical well operation information. [0051] Non-standard operation removal may refer to removal of data points that were measured when non-standard operation(s) were being conducted at the well. A non-standard operation may refer to an operation that deviates from a standard production operation. For example, data points in the historical well operation information during well closure, choking, ramping, and/or asphaltene anomaly events may be removed from the historical well operation information.

[0052] Continuous operation identification may refer to identification of data points that were measured when the well was in continuous standard operation for a threshold duration of time. Parts of the historical well operation information that include temperature and/or pressure measurement during continuous operation of the well may be identified for use in training the unsupervised machine-learning model(s). Use of other pre-processing steps is contemplated.

[0053] Training of an unsupervised machine-learning model using the historical information (e.g., temperature and/or pressure data points that remain after pre-processing) may result in the unsupervised machine-learning model discovering correlations between the historical information. Based on processing of the historical information, the unsupervised machinelearning model may determine model weights to be used for reconstruction of operation characteristics. When operation characteristics of a well are input to the unsupervised machine-learning model, the model weights may be used to reconstruct the operation characteristics of the well. The unsupervised machine-learning model may utilize the model weights to perform projection on the operation characteristics that are input to the unsupervised machine-learning model (e.g., perform projection on the real-time temperature and/or pressure data). In some implementations, one or more pre-processing steps, such as the pre-processing step(s) applied to the historical well operation information, may be applied to the well operation information before the well operation information is input to the unsupervised machine-learning model for reconstruction.

[0054] In some implementations, the unsupervised machine-learning model(s) may be retrained using the well operation information and/or other information. When the well operation information (e.g., real-time temperature and/or pressure data) is obtained, the well operation information may be added to the training data (after pre-processing) to retrain the unsupervised machine-learning model(s). The unsupervised machine-learning model(s) may adjust the model weights during the retraining. [0055] The prediction component 106 may be configured to predict a future occurrence of an asphaltene anomaly at the well. Predicting a future occurrence of an asphaltene anomaly at the well may include determining that the asphaltene anomaly will occur at the well in the future. Predicting a future occurrence of an asphaltene anomaly at the well may include determining that the asphaltene anomaly is likely to occur at the well in the future (e.g., determining that there is more than a threshold percentage of likelihood of the asphaltene anomaly occurring at the well in the future). The asphaltene anomaly may be predicted to occur within a certain duration of time (e.g., within a day, within hours, within an hour, within minutes, within a minute).

[0056] The future occurrence of the asphaltene anomaly at the well may be predicted based on the operation characteristics of the well for the duration of time, the reconstructed operation characteristics of the well for the duration of time, and/or other information. The operation characteristics of the well and the reconstructed operation characteristics of the well for the same duration of time may be used to predict the future occurrence of the asphaltene anomaly at the well. For example, the real-time temperature and pressure at the well and the reconstructed real-time temperature and pressure at the well over the same duration of time may be used to determine whether the asphaltene anomaly will happen at the well in the future.

[0057] Comparison between the operation characteristics of the well and the reconstructed operation characteristics of the well may be used to determine whether the asphaltene anomaly will happen at the well in the future. A trend of comparison between the operation characteristics of the well and the reconstructed operation characteristics of the well may be used to determine whether the asphaltene anomaly will happen at the well in the future. For example, no asphaltene anomaly may be predicted to occur in the future based on a trend of the reconstructed operation characteristics following the operation characteristics of the well. An asphaltene anomaly may be predicted to occur in the future based on a trend of the reconstructed operation characteristics deviating from the operation characteristics of the well.

[0058] In some implementations, prediction of the future occurrence of the asphaltene anomaly at the well based on the operation characteristics of the well for the duration of time and the reconstructed operation characteristics of the well for the duration of time may include a comparison between an anomaly score and an anomaly score threshold. An anomaly score for the well may indicate an extent to which the reconstructed operation characteristics deviate from the operation characteristics of the well. The anomaly score for the well may be determined based on a difference between the operation characteristics of the well for the duration of time and the reconstructed operation characteristics of the well for the duration of time, and/or other information. The difference between the operation characteristics of the well and the reconstructed operation characteristics of the well may be calculated using one or more statistical methods. For example, the difference between the operation characteristics of the well and the reconstructed operation characteristics of the well may be calculated as the mean absolute error, mean squared error of the operation characteristics and the reconstructed operation characteristics, and/or Mahalanobis distance between the operation characteristics and the reconstructed operation characteristics. For instance, the difference between the operation characteristics of the well and the reconstructed operation characteristics of the well may be calculated as the mean absolute error (MAE) using the following equation, where (xi) = operation characteristic (e.g., measured temperature, measured pressure), (yi) = reconstructed operation characteristics (e.g., reconstructed temperature, reconstructed pressure), and (n) = number of data points:

[0059] Use of other computation of the difference between the operation characteristics and the reconstructed operation characteristics is contemplated.

[0060] A future occurrence of an asphaltene anomaly at the well may be predicted based on a comparison of the anomaly score and an anomaly score threshold, and/or other information. The anomaly score may be compared to the anomaly score threshold to determine whether the anomaly score exceeds the anomaly score threshold. A future occurrence of an asphaltene anomaly at the well may be predicted based on the anomaly score exceeding the anomaly score threshold. The anomaly score exceeding the anomaly score threshold may indicate that the reconstructed operation characteristics have deviated sufficiently from the operation characteristics to predict a future occurrence of an asphaltene anomaly.

[0061] In some implementations, a future occurrence of an asphaltene anomaly at the well may be predicted based on the anomaly score exceeding the anomaly score threshold for a threshold duration of time. The anomaly score may need to exceed the anomaly score threshold for a certain duration of time before a future occurrence of an asphaltene anomaly is predicted at the well. The threshold duration of time may be static or dynamic. For example, same threshold duration of time may be required regardless of the value by which the anomaly score exceeds the anomaly score threshold. As another example, a shorter threshold duration of time may be required to predict an asphaltene anomaly when the anomaly score exceeds the anomaly score by a large value while a longer threshold duration of time may be required to predict an asphaltene anomaly when the anomaly score exceeds the anomaly score by a small value.

[0062] In some implementations, the difference between the anomaly score and the anomaly score threshold may reflect the magnitude of the asphaltene anomaly predicted in the future. A larger difference between the anomaly score and the anomaly score threshold may indicate that a larger asphaltene anomaly will occur in the future (e.g., greater volume of asphaltene entering the well) while a smaller difference between the anomaly score and the anomaly score threshold may indicate that a smaller asphaltene anomaly will occur in the future (e.g., smaller volume of asphaltene entering the well).

[0063] In some implementations, the anomaly score threshold may be determined based on the operation characteristics of the well for a period of time, reconstructed operation characteristics of the well for the period of time, and/or other information. The period of time may be the same as the period of time for which historical operation characteristics of the well is obtained for training. After the historical operation characteristics of the well is used to train an unsupervised machine-learning model, the historical operation characteristics of the well may be reconstructed by the unsupervised machine-learning model. The historical operation characteristics of the well and the reconstructed historical operation characteristics of the well may then be used to determine the anomaly score threshold. Comparison between the historical operation characteristics of the well and the reconstructed historical operation characteristics of the well may be used to determine the value of the anomaly score threshold.

[0064] The difference between the historical operation characteristics of the well and the reconstructed historical operation characteristics of the well may be used to determine the anomaly score threshold. The difference between the historical operation characteristics of the well and the reconstructed historical operation characteristics of the well may be calculated using one or more statistical methods (e.g., mean absolute error, mean squared error, Mahalanobis distance). The distribution of the difference (e.g., error distribution) between the historical operation characteristics and the reconstructed historical operation characteristics may be used to determine the anomaly score threshold. The distribution of the difference may be utilized to select the value of the anomaly score threshold so that a certain percentage of the distribution is below or above the anomaly score threshold. The value of the anomaly score threshold may be determined so that a threshold percentage of historical anomaly scores (difference between the historical operation characteristics and the reconstructed historical operation characteristics) satisfies (e.g., is below) the anomaly score threshold. For example, the value of the anomaly score threshold may be determined so that 90% of the historical anomaly score is below the anomaly score threshold. Use of another threshold percentage to determine the anomaly score threshold is contemplated.

[0065] In some implementations, the anomaly score threshold may be redetermined using the well operation information and/or other information. When the well operation information (real-time temperature and/or pressure data) is obtained, the operation characteristics of the well and the reconstructed operation characteristics of the well may be used to redetermine the anomaly score threshold. The value of the anomaly score threshold may be adjusted based on the difference between the operation characteristics of the well and the reconstructed operation characteristics of the well. The anomaly score threshold may be determined based on the distribution of the difference between the historical operation characteristics of the well and the reconstructed historical operation characteristics of the well, as well the distribution of the difference between the operation characteristics of the well and the reconstructed operation characteristics of the well.

[0066] In some implementations, one or more visualizations of the comparison between the anomaly score and the anomaly score threshold may be presented on one or more displays. A visualization of the comparison between the anomaly score and the anomaly score threshold may include visual/graphical representation of the anomaly score and the anomaly score threshold. In some implementations, the anomaly score and the anomaly score threshold may be stored in electronic storage (e.g., database, data server), and the stored values may be accessed by a visualization tool/software to generate and/or present the visualization.

[0067] FIG. 4 illustrates example tubing delta pressure data 400 and a visualization 410 of comparison between an anomaly score and an anomaly score threshold for asphaltene anomaly prediction. The tubing delta pressure data 400 may have identified an asphaltene anomaly starting at around tl. The visualization 410 includes a plot of the anomaly score calculated as a mean absolute error (MAE), along with a plot of anomaly score threshold. As shown in FIG. 4, an asphaltene anomaly may have occurred some time (e.g., about an hour) after the anomaly score rose above the anomaly score threshold. That is, the anomaly score rose above the anomaly score threshold at tl - Ihr. Thus, techniques of the present disclosure would have predicted this asphaltene anomaly an hour in advance and would have enabled preventative/mitigative measures to be taken at the well.

[0068] In some implementations, prediction of future asphaltene anomalies at the well may be used to facilitate monitoring of the well/equipment at the well. The prediction of future asphaltene anomalies using the operation characteristics of the well and the reconstructed operation characteristics of the well may be used to replace or complement asphaltene anomaly detection performed by other means. For example, telemetry data alone may not accurately detect small quantities of asphaltene production and/or buildup, while the prediction of future asphaltene anomalies using the operation characteristics of the well and the reconstructed operation characteristics of the well may be able to accurately predict small asphaltene anomalies.

[0069] Asphaltene anomalies may have deleterious effects on the well/equipment at the well. For example, asphaltene may build up inside a choke and/or tubing of the well. The prediction of future asphaltene anomalies at the well may be used to track cumulative effects on the well/equipment at the well and/or predict when certain interventions (e.g., chemical soaks) may be best performed at the well. For instance, based on the number, magnitude, and/or regularity of asphaltene anomalies that are predicted at the well, asphaltene buildup in the well/equipment at the well may be estimated. By way of non-limiting example, based on the number, magnitude, and/or regularity of asphaltene anomalies that are predicted at the well, remaining time between asphaltene intervention campaigns (e.g., chemical soaks) may be estimated. Other use of the prediction of future asphaltene anomalies at the well is contemplated.

[0070] Implementations of the disclosure may be made in hardware, firmware, software, or any suitable combination thereof. Aspects of the disclosure may be implemented as instructions stored on a machine-readable medium, which may be read and executed by one or more processors. A machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine e.g., a computing device). For example, a tangible computer-readable storage medium may include read-only memory, random access memory, magnetic disk storage media, optical storage media, flash memory devices, and others, and a machine-readable transmission media may include forms of propagated signals, such as carrier waves, infrared signals, digital signals, and others. Firmware, software, routines, or instructions may be described herein in terms of specific exemplary aspects and implementations of the disclosure, and performing certain actions.

[0071] In some implementations, some or all of the functionalities attributed herein to the system 10 may be provided by external resources not included in the system 10. External resources may include hosts/sources of information, computing, and/or processing and/or other providers of information, computing, and/or processing outside of the system 10.

[0072] Although the processor 11, the electronic storage 13, and the display 14 are shown to be connected to the interface 12 in FIG. 1, any communication medium may be used to facilitate interaction between any components of the system 10. One or more components of the system 10 may communicate with each other through hard-wired communication, wireless communication, or both. For example, one or more components of the system 10 may communicate with each other through a network. For example, the processor 11 may wirelessly communicate with the electronic storage 13. By way of non-limiting example, wireless communication may include one or more of radio communication, Bluetooth communication, Wi-Fi communication, cellular communication, infrared communication, or other wireless communication. Other types of communications are contemplated by the present disclosure.

[0073] Although the processor 11, the electronic storage 13, and the display 14 are shown in FIG. 1 as single entities, this is for illustrative purposes only. One or more of the components of the system 10 may be contained within a single device or across multiple devices. For instance, the processor 11 may comprise a plurality of processing units. These processing units may be physically located within the same device, or the processor 11 may represent processing functionality of a plurality of devices operating in coordination. The processor 11 may be separate from and/or be part of one or more components of the system 10. The processor 11 may be configured to execute one or more components by software; hardware; firmware; some combination of software, hardware, and/or firmware; and/or other mechanisms for configuring processing capabilities on the processor 11.

[0074] It should be appreciated that although computer program components are illustrated in FIG. 1 as being co-located within a single processing unit, one or more of computer program components may be located remotely from the other computer program components. While computer program components are described as performing or being configured to perform operations, computer program components may comprise instructions which may program processor 11 and/or system 10 to perform the operation.

[0075] While computer program components are described herein as being implemented via processor 11 through machine-readable instructions 100, this is merely for ease of reference and is not meant to be limiting. In some implementations, one or more functions of computer program components described herein may be implemented via hardware (e.g, dedicated chip, field-programmable gate array) rather than software. One or more functions of computer program components described herein may be software-implemented, hardware- implemented, or software and hardware-implemented.

[0076] The description of the functionality provided by the different computer program components described herein is for illustrative purposes, and is not intended to be limiting, as any of computer program components may provide more or less functionality than is described. For example, one or more of computer program components may be eliminated, and some or all of its functionality may be provided by other computer program components. As another example, processor 11 may be configured to execute one or more additional computer program components that may perform some or all of the functionality attributed to one or more of computer program components described herein.

[0077] The electronic storage media of the electronic storage 13 may be provided integrally (i.e., substantially non-removable) with one or more components of the system 10 and/or as removable storage that is connectable to one or more components of the system 10 via, for example, a port (e.g, a USB port, a Firewire port, etc.) or a drive (e.g., a disk drive, etc.). The electronic storage 13 may include one or more of optically readable storage media (e.g., optical disks, etc.), magnetically readable storage media (e.g., magnetic tape, magnetic hard drive, floppy drive, etc.), electrical charge-based storage media (e.g., EPROM, EEPROM, RAM, etc.), solid-state storage media (e.g., flash drive, etc.), and/or other electronically readable storage media. The electronic storage 13 may be a separate component within the system 10, or the electronic storage 13 may be provided integrally with one or more other components of the system 10 (e.g., the processor 11). Although the electronic storage 13 is shown in FIG. 1 as a single entity, this is for illustrative purposes only. In some implementations, the electronic storage 13 may comprise a plurality of storage units. These storage units may be physically located within the same device, or the electronic storage 13 may represent storage functionality of a plurality of devices operating in coordination. By way of specific but non-limiting example, electronic storage 13 may represent or include a data historian system that stores the data referenced herein.

[0078] FIG. 2 illustrates method 200 for predicting asphaltene anomalies. The operations of method 200 presented below are intended to be illustrative. In some implementations, method 200 may be accomplished with one or more additional operations not described, and/or without one or more of the operations discussed. In some implementations, two or more of the operations may occur substantially simultaneously.

[0079] In some implementations, method 200 may be implemented in one or more processing devices (e.g., a digital processor, an analog processor, a digital circuit designed to process information, a central processing unit, a graphics processing unit, a microcontroller, an analog circuit designed to process information, a state machine, and/or other mechanisms for electronically processing information). The one or more processing devices may include one or more devices executing some or all of the operations of method 200 in response to instructions stored electronically on one or more electronic storage media. The one or more processing devices may include one or more devices configured through hardware, firmware, and/or software to be specifically designed for execution of one or more of the operations of method 200.

[0080] Referring to FIG. 2 and method 200, at operation 202, well operation information and/or other information may be obtained. The well operation information may characterize operation characteristics of a well for a duration of time. In some implementation, operation 202 may be performed by a computer program component the same as or similar to the well operation component 102 (shown in FIG. 1 and described herein).

[0081] At operation 204, reconstructed operation characteristics of the well for the duration of time may be determined using an unsupervised machine-learning model. The unsupervised machine-learning model may be trained using historical well operation information and/or other information. The historical well operation information may characterize the operation characteristics of the well for a period of time preceding the duration of time. In some implementations, operation 204 may be performed by a computer program component the same as or similar to the reconstruction component 104 (shown in FIG. 1 and described herein).

[0082] At operation 206, a future occurrence of an asphaltene anomaly at the well may be predicted based on the operation characteristics of the well for the duration of time, the reconstructed operation characteristics of the well for the duration of time, and/or other information. In some implementation, operation 206 may be performed by a computer program component the same as or similar to the prediction component 106 (shown in FIG. 1 and described herein).

[0083] As noted above, in certain situations, chemical interventions are performed to mitigate the effect of asphaltene deposition on production performance of a well. The use of asphaltene anomaly prediction in accordance with this disclosure may allow analysis of the effect of certain chemical interventions, with may also allow enhanced production. For example, regular xylene soaks are used as one of the few remediation options available when asphaltene deposition occurs in a wellbore. The xylene soaks are used to dissolve the asphaltenes causing restrictions.

[0084] The data shown in FIG. 5 depicts example real-time anomaly score and threshold as well as histograms of weekly and cumulative anomalies as a function of time that may be visualized using the system 10. An operator may visualize such plots to identify the effect of chemical interventions on asphaltene anomalies. Analysis of these plots may be used to appreciate the effect of chemical interventions on asphaltene anomalies, for example. Such analyses may be used for production rate control, scheduling future interventions, and generally controlling operations to prevent uncommanded shut-ins.

[0085] While this disclosure describes embodiments of systems, methods, workflows, and so forth, relating to the prediction and detection of asphaltene-related anomalies, it should be appreciated that the systems and methods may be applied to other types of well-related anomalies in accordance with the approaches described herein. Other well-related anomalies may include, but are not limited to, the effect on the well of producing certain materials for a certain period of time.

[0086] Although the system(s) and/or method(s) of this disclosure have been described in detail for the purpose of illustration based on what is currently considered to be the most practical and preferred implementations, it is to be understood that such detail is solely for that purpose and that the disclosure is not limited to the disclosed implementations, but, on the contrary, is intended to cover modifications and equivalent arrangements that are within the spirit and scope of the appended claims. For example, it is to be understood that the present disclosure contemplates that, to the extent possible, one or more features of any implementation can be combined with one or more features of any other implementation.