The invention is applicable to the technical field of
petroleum drilling engineering, and provides a drilling overflow early recognition method based on deep
reinforcement learning, which comprises the following steps of: firstly, collecting and preprocessing data, and then constructing and optimizing a drilling overflow early recognition model based on a near-end strategy optimization (PPO)
algorithm, and finally, collecting data in real time in drilling operation, preprocessing the data, inputting the data into the model, analyzing the change of the characteristic quantity according to a PPO
algorithm, judging whether an overflow sign exists according to an overflow drilling process flow, and if so, early warning according to a Reward function strategy. According to the method, a traditional threshold value method and
machine learning are combined, a deep
reinforcement learning algorithm is used for optimizing drilling parameter threshold values, characteristic quantity is monitored in real time to capture changes before overflow, historical data are self-learned to recognize an overflow mode, and dependence on field operators is reduced; meanwhile, model decision logic is displayed, understanding and trust of engineers are enhanced, more reliable overflow monitoring guarantee is provided for drilling operation, accident risks are reduced, and
wellbore safety is guaranteed.