| CPC G06N 20/00 (2019.01) | 14 Claims |

|
8. A method for predicting downhole conditions, wherein the method comprises:
receiving, using at least a processor, a condition datum, wherein the condition datum comprises one or more surface conditions near a well;
producing, using the at least a processor, a measured downhole condition using at least a sensor, wherein the downhole condition comprises one or more downhole conditions within the well;
converting, using the at least a processor, the condition datum and the measured downhole conditions into a cleansed data format using a data conversion module, wherein the cleansed data format comprises a cleansed condition datum and a cleansed measured downhole condition;
identifying, using the at least a processor, a flagged data as a function of the cleansed condition datum and the cleansed measured downhole condition, wherein identifying flagged data comprises:
identifying similar situated wells, wherein identifying similarly situated wells comprises correlating the measured downhole condition to a plurality of wells as a function of a database;
generating downhole training data, wherein downhole training data comprises a plurality of data entries including historical flagged data and downhole conditions correlated to flagged data, wherein generating the downhole training data comprises recording the historical flagged data by measuring previous downhole conditions of the similarly situated wells over a predetermined period of time, and selecting the downhole training data using a training data classifier;
training a downhole machine learning model as a function of the downhole training data, wherein training the downhole machine leaning model comprises:
inputting training data to an input layer of nodes, wherein the training data comprises at least the cleansed condition datum and cleansed measured downhole condition inputs, and wherein the downhole machine learning model further comprises one or more intermediate layers of nodes and an output layer of nodes comprising a plurality of flagged data outputs;
adjusting one or more connections and one or more weights between nodes in adjacent layers of the downhole machine learning model;
generating an accuracy score as a function of a predicted downhole condition;
comparing the accuracy score to a threshold;
updating the downhole training data as a function of the comparison; and
iteratively retraining the downhole machine learning model using updated downhole training data;
generating the flagged data as a function of the downhole machine learning model, wherein the downhole machine learning model is configured to receive the condition datum and the measured downhole condition as inputs and outputs the flagged data;
generating, using the at least a processor, the predicted downhole condition of the well as a function of the flagged data;
controlling equipment of the apparatus as a function of the predicted downhole condition; and
generating, using the at least a processor, a predicted reservoir condition as a function of the flagged data by:
generating reservoir training data correlating historical and present flagged data and a predicted downhole condition to predicted reservoir conditions using an array indexing operation configured to optimize a runtime computation of the at least a processor;
training a reservoir machine learning model using the reservoir training data; and
outputting, using the reservoir machine learning model, the predicted reservoir condition.
|