A method and device for automatic control in drilling operation
Through the combination of deep Q learning and random forest algorithms, automatic control of drilling operations is achieved, which solves the operational deviation and high cost problems caused by relying on manual experience in the existing technology, and improves drilling efficiency and safety.
Patent Information
- Application Number
- CN202410178485.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-09
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-02-09
AI Technical Summary
Existing drilling operation control mainly relies on the experience of operators, which is prone to deviations. Field construction management is difficult and labor-intensive. It lacks automated control, resulting in low efficiency and high costs.
Using the deep Q learning (DQN) model and random forest algorithm, through data collection and real-time adjustment of drilling parameters, drilling control, tripping control, tripping control and stuck elimination control are realized, and image processing and feature recognition are combined to optimize drilling. operation to predict the risk of drill stuck.
It improves the efficiency of drilling operations, reduces drill bit wear and overall costs, realizes automated control of drilling operations, and reduces operating difficulty and costs.
Smart Images

Figure CN117722170B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of automatic control of drilling operations, and in particular to a method and a device for automatic control in drilling operations. Background Art
[0002] Drilling tool control in drilling operations refers to the precise control and management of drilling tools (including drill pipe, drill bit, downhole tool assembly, etc.) during the drilling process. This control mainly involves adjusting and optimizing various parameters of drilling operations to improve drilling efficiency, ensure operational safety, and minimize drilling costs.
[0003] The quality of existing drilling operations is mainly determined by the experience of the operator, and it is easy to deviate. Field construction management is difficult and the labor intensity of drillers is high. The industry generally uses manual operation to perform drilling operations, and each process requires an operator to make judgments and operations. Summary of the invention
[0004] The purpose of the present invention is to automate the existing drilling control, combine artificial intelligence algorithms, and automatically process the parameter data involved in the drilling operation to solve problems such as control deviation and difficult management.
[0005] A method for using automated control in drilling operations includes the following steps:
[0006] S1. Data collection;
[0007] S2. Based on the collected data, the system terminal is used to control drilling, lowering, pulling out, hole enlargement / hole marking, and jamming removal;
[0008] The drilling control specifically includes the following sub-steps:
[0009] S201. Define a state space and an action space, wherein the state space represents the input of the DQN model, the state space includes at least drill bit position, drill bit speed, axial force, feed rate, mud flow, formation hardness and drill bit wear, and the action space includes at least speed control, axial force control and drill bit replacement;
[0010] S202. Evaluate the effect of each action by defining a reward function;
[0011] The difference between the predicted Q-value and the target Q-value is evaluated using the mean squared error. For each training step, the network is updated using the following loss function:
[0012] ;
[0013] Among them, the represents the loss function, represents the neural network parameters, Indicates the average or expectation of the training data. Indicates immediate return, and in state Take Action The immediate return is represents the discount factor, The value of is between 0 and 1. In the new state All possible actions The maximum value of the Q value, the represents the parameters of the target network, Represents the parameters of the current neural network, represents the current state space, Indicates the current status The following actions are taken: Indicates execution of an action The next state after Indicates new status The action below;
[0014] S203. Adjust drilling parameters in real time through the trained model and select the optimal action as output.
[0015] Furthermore, in step S2, the drilling control is specifically: sending the drilling tool to a predetermined depth through closed-loop control, and the implementation process is as follows:
[0016] ;
[0017] Among them, the Indicates the new depth position of the drilling tool. Indicates the current depth position of the drilling tool. Indicates the feed speed. Indicates a time interval.
[0018] Furthermore, in step S2, the drilling control is specifically: monitoring the state of the drill rod through image processing and feature recognition, and extracting the drill rod.
[0019] Furthermore, in step S2, the control for eliminating stuck drill specifically includes the following sub-steps:
[0020] S211 monitors the movement state of the drill bit and drilling parameters, the drilling parameters include feed rate, drill bit speed, axial force, torque, pump pressure, mud flow and formation drillability information;
[0021] S212. Extract features, analyze features using random forest algorithm and predict stuck pipe risk.
[0022] Furthermore, the step S212 specifically includes the following sub-steps:
[0023] S2121. Build the model using decision trees, training each tree with a randomly selected subset of features;
[0024] S2122. The decision tree is trained using information gain as a splitting criterion for each tree, wherein the information gain calculation process is as follows:
[0025] ;
[0026] Among them, the represents information gain, represents the impurity measure, Represents the parent node, Indicates The data set of child nodes, Indicates The number of samples of child nodes, Indicates the number of samples of the parent node;
[0027] S2123. Each tree gives a prediction result, and the final output of the random forest model is the average or majority vote of all decision tree outputs.
[0028] Furthermore, after the drilling control, the method further includes step S204: the control module of the external control terminal pops up a prompt to inform the operator to perform the coring operation.
[0029] A device for automatic control in drilling operation, comprising:
[0030] External control terminal, used for control of drilling start and stop, drilling down, pulling out, hole enlargement / hole marking, and drilling jam removal, and displays control data;
[0031] The internal control system is used to output the corresponding data results to the external control terminal according to the collected parameter data.
[0032] Wherein, the external control terminal includes:
[0033] Drilling control opening and closing module, used to open and close the drilling control;
[0034] The drilling control opening and closing module is used to open and close the drilling control;
[0035] A drilling control opening and closing module is used to open and close the drilling control;
[0036] Hole expansion / hole scoring control opening and closing module, used to open and close the hole expansion / hole scoring control;
[0037] A drill-stuck control opening and closing module is used to open and close the drill-stuck control system;
[0038] A display control module, used to display current drilling operation data;
[0039] The internal control system includes:
[0040] A drilling control unit, which is used to optimize drilling control in a drilling environment through a DQN model;
[0041] Drilling control unit, used to automatically detect and adjust the angle and position of the drill pipe;
[0042] A drilling control unit, which is used to monitor the status of the drill pipe through image processing and feature recognition;
[0043] A stuck pipe exclusion control unit is used to analyze features and predict stuck pipe risks using a random forest algorithm.
[0044] Furthermore, the drilling control unit comprises:
[0045] A state space and action space definition subunit, used to define a state space and an action space, wherein the state space represents the input of the DQN model, the state space at least includes drill bit position, drill bit speed, axial force, feed speed, formation hardness and drill bit wear, and the action space at least includes speed control, axial force control and drill bit replacement;
[0046] The reward function definition subunit is used to evaluate the effect of each action by defining a reward function;
[0047] The model training subunit is used to evaluate the difference between the predicted Q value and the target Q value using the mean squared error. For each training step, the network is updated using the following loss function:
[0048] ;
[0049] Among them, the represents the loss function, represents the neural network parameters, Indicates the average or expectation of the training data. Indicates immediate return, and in state Take Action The immediate return is represents the discount factor, The value of is between 0 and 1. In the new state All possible actions The maximum value of the Q value, the represents the parameters of the target network, Represents the parameters of the current neural network, represents the current state space, Indicates the current status The following actions are taken: Indicates execution of an action The next state after Indicates new status The action below;
[0050] S203. Adjust drilling parameters in real time through the trained model and select the optimal action as output.
[0051] Furthermore, the control unit for eliminating stuck drill comprises:
[0052] A parameter state acquisition subunit is used to monitor the motion state of the drill bit and drilling parameters, wherein the drilling parameters include feed speed, drill bit speed, axial force, torque, pump pressure, and formation drillability information;
[0053] The model building subunit is used to build the model through decision trees, and each tree is trained using a randomly selected feature subset;
[0054] The model training subunit is used to train the decision tree using information gain as the splitting criterion for each tree, wherein the calculation process of the information gain is as follows:
[0055] ;
[0056] Among them, the represents information gain, represents the impurity measure, Represents the parent node, Indicates The data set of child nodes, Indicates The number of samples of child nodes, Indicates the number of samples of the parent node;
[0057] The prediction output subunit is used to give a prediction result for each tree. The final output of the random forest model is the average or majority vote of all decision tree outputs.
[0058] The beneficial effects of the present invention are:
[0059] The present invention combines deep Q learning to design the state space, action space and reward function to ensure that the model can learn effective drilling strategies, optimize drilling operations, improve efficiency, reduce drill bit wear and overall costs; and in eliminating stuck drill control, the machine learning algorithm is used to perform stuck drill risk assessment, which can predict the risk of stuck drill control and improve the automation of drilling operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 A flowchart of the drilling control principle of a method of automatic control in a drilling operation proposed in an embodiment of the present invention;
[0061] Figure 2 A schematic diagram of the structure of an external control terminal using automated control in a drilling operation proposed in an embodiment of the present invention;
[0062] Figure 3 is a schematic diagram of the structure of a terminal device proposed in an embodiment of the present invention;
[0063] Figure 4 It is a structural schematic diagram of a product for realizing a method for automatic control in drilling operations proposed in an embodiment of the present invention. DETAILED DESCRIPTION
[0064] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings, but the protection scope of the present invention is not limited to the following.
[0065] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention, that is, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0066] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative work are within the scope of protection of the present invention. It should be noted that relational terms such as the terms "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0067] Moreover, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a list of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or apparatus. In the absence of more restrictions, an element defined by the phrase "comprises a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.
[0068] The features and performance of the present invention are further described in detail below in conjunction with the embodiments.
[0069] A method for using automated control in drilling operations comprises the following steps:
[0070] S1. Data collection;
[0071] S2. Based on the collected data, the system terminal is used to control drilling, lowering, pulling out, hole enlargement / hole marking, and jamming removal;
[0072] like Figure 1 As shown, the drilling control specifically includes the following sub-steps:
[0073] S201. Define a state space and an action space, wherein the state space represents the input of the DQN model, the state space includes at least drill bit position, drill bit speed, axial force, feed rate, mud flow, formation hardness and drill bit wear, and the action space includes at least speed control, axial force control and drill bit replacement;
[0074] S202. Evaluate the effect of each action by defining a reward function;
[0075] The difference between the predicted Q-value and the target Q-value is evaluated using the mean squared error. For each training step, the network is updated using the following loss function:
[0076] ;
[0077] Among them, the represents the loss function, represents the neural network parameters, Indicates the average or expectation of the training data. Indicates immediate return, and in state Take Action The immediate return is represents the discount factor, The value of is between 0 and 1. In the new state All possible actions The maximum value of the Q value, the represents the parameters of the target network, Represents the parameters of the current neural network, represents the current state space, Indicates the current status The following actions are taken: Indicates execution of an action The next state after Indicates new status The action below;
[0078] S203. Adjust drilling parameters in real time through the trained model and select the optimal action as output.
[0079] Furthermore, the axial force refers to the vertical force directly applied to the drill bit. During the drilling process, according to different characteristics of the formation (such as hardness, degree of fragmentation, etc.), the axial force needs to be adjusted to achieve optimal drilling efficiency.
[0080] Furthermore, the formation drillability information described in this embodiment refers to the formation's resistance to the drill bit or the difficulty of drilling during drilling activities.
[0081] Furthermore, for the DQN model described in this embodiment, its input layer corresponds to the dimension of the state space, including multiple deep hidden layers, each layer contains a large number of neurons, and uses nonlinear activation functions (such as ReLU) to increase the expressiveness of the model. The output layer is the predicted Q value of each possible action. The specific process is: storing the "state-action-reward-new state" sequence during the drilling process; using a fixed-size buffer to store these experiences, when the buffer is full, the new experience replaces the oldest experience; randomly extracting small batches of data from the buffer during training, which helps to break the time correlation between data and improve learning efficiency.
[0082] Furthermore, in step S2, the drilling control is specifically: sending the drilling tool to a predetermined depth through closed-loop control, and the implementation process is as follows:
[0083] ;
[0084] Among them, the Indicates the new depth position of the drilling tool. Indicates the current depth position of the drilling tool. Indicates the feed speed. Indicates a time interval.
[0085] Furthermore, in step S2, the drilling control is specifically: monitoring the state of the drill rod through image processing and feature recognition, and extracting the drill rod.
[0086] Furthermore, in step S2, the control for eliminating stuck drill specifically includes the following sub-steps:
[0087] S211 monitors the movement state of the drill bit and drilling parameters, the drilling parameters include feed rate, drill bit speed, axial force, torque, pump pressure, mud flow and formation drillability information;
[0088] S212. Extract features, analyze features using random forest algorithm and predict stuck pipe risk.
[0089] Furthermore, the step S212 specifically includes the following sub-steps:
[0090] S2121. Build the model using decision trees, training each tree with a randomly selected subset of features;
[0091] S2122. The decision tree is trained using information gain as a splitting criterion for each tree, wherein the information gain calculation process is as follows:
[0092]
[0093] Among them, the represents information gain, represents the impurity measure, Represents the parent node, Indicates The data set of child nodes, Indicates The number of samples of child nodes, Indicates the number of samples of the parent node;
[0094] S2123. Each tree gives a prediction result, and the final output of the random forest model is the average or majority vote of all decision tree outputs.
[0095] Furthermore, after the drilling control, step S204 is also included: the control module of the external control terminal pops up a prompt to inform the operator to perform the coring operation. Specifically, in the automatic drilling system, the pop-up window prompt or operation interface of "coring" is to inform the operator that the predetermined coring depth or condition has been reached and the coring operation needs to be performed. After the control terminal automatically controls the coring tool to reach the specified depth, it cuts and extracts the core sample from the formation.
[0096] A device for automatic control in drilling operation, comprising:
[0097] External control terminal, used for control of drilling start and stop, drilling down, pulling out, hole enlargement / hole marking, and drilling jam removal, and displays control data;
[0098] The internal control system is used to output the corresponding data results to the external control terminal according to the collected parameter data.
[0099] Wherein, the external control terminal includes:
[0100] Drilling control opening and closing module, used to open and close the drilling control;
[0101] The drilling control opening and closing module is used to open and close the drilling control;
[0102] A drilling control opening and closing module is used to open and close the drilling control;
[0103] Hole expansion / hole scoring control opening and closing module, used to open and close the hole expansion / hole scoring control;
[0104] A drill-stuck control opening and closing module is used to open and close the drill-stuck control system;
[0105] A display control module, used to display current drilling operation data;
[0106] The internal control system includes:
[0107] A drilling control unit, which is used to optimize drilling control in a drilling environment through a DQN model;
[0108] Drilling control unit, used to automatically detect and adjust the angle and position of the drill pipe;
[0109] A drilling control unit for monitoring the status of the drill pipe through image processing and feature recognition;
[0110] A stuck pipe exclusion control unit is used to analyze features and predict stuck pipe risks using a random forest algorithm.
[0111] Furthermore, the drilling control unit comprises:
[0112] A state space and action space definition subunit, used to define a state space and an action space, wherein the state space represents the input of the DQN model, the state space at least includes drill bit position, drill bit speed, axial force, feed speed, formation hardness and drill bit wear, and the action space at least includes speed control, axial force control and drill bit replacement;
[0113] The reward function definition subunit is used to evaluate the effect of each action by defining a reward function;
[0114] The model training subunit is used to evaluate the difference between the predicted Q value and the target Q value using the mean squared error. For each training step, the network is updated using the following loss function:
[0115] ;
[0116] Among them, the represents the loss function, represents the neural network parameters, Indicates the average or expectation of the training data. Indicates immediate return, and in state Take Action The immediate return is represents the discount factor, The value of is between 0 and 1. In the new state All possible actions The maximum value of the Q value, the represents the parameters of the target network, Represents the parameters of the current neural network, represents the current state space, Indicates the current status The following actions are taken: Indicates execution of an action The next state after Indicates new status The action below;
[0117] S203. Adjust drilling parameters in real time through the trained model and select the optimal action as output.
[0118] Furthermore, the control unit for eliminating stuck drill comprises:
[0119] A parameter state acquisition subunit is used to monitor the motion state of the drill bit and drilling parameters, wherein the drilling parameters include feed speed, drill bit speed, axial force, torque, pump pressure, and formation drillability information;
[0120] The model building subunit is used to build the model through decision trees, and each tree is trained using a randomly selected feature subset;
[0121] The model training subunit is used to train the decision tree using information gain as the splitting criterion for each tree, wherein the calculation process of the information gain is as follows:
[0122] ;
[0123] Among them, the represents information gain, represents the impurity measure, Represents the parent node, Indicates The data set of child nodes, Indicates The number of samples of child nodes, Indicates the number of samples of the parent node;
[0124] The prediction output subunit is used to give a prediction result for each tree. The final output of the random forest model is the average or majority vote of all decision tree outputs.
[0125] Furthermore, it should be noted that for the external control terminal disclosed in this embodiment, its control method includes but is not limited to a joystick, a control button, and a wireless remote control. As a preferred implementation mode of this embodiment, the external control terminal in this embodiment is connected to three independent engines. The traditional method is to manually start / stop them three times, while the terminal disclosed in this embodiment can start / stop the three engines with just one button, and can synchronously adjust the throttles of the three engines at the same time.
[0126] Furthermore, for the automatic drilling disclosed in this embodiment, the traditional method is for the driller to control the operating lever and adjust the parameters such as the rotation speed, drilling pressure, pump volume, etc. required during the drilling process in real time according to the on-site working conditions. The drilling control start and close module can perform the drilling function with just one button, and the driller does not need to adjust the parameters in the middle. The system can automatically identify the rock formation and automatically adjust a series of parameters during the drilling process.
[0127] Furthermore, for the one-button drilling up / down disclosed in the present embodiment, the traditional method is for the driller to manually operate the drilling up / down. During the drilling up process, it is easy to fail to remove the threads at both ends of the drill pipe at one time, and an assistant is required to perform a secondary removal operation. The drilling up / down control opening and closing module can realize the installation and removal of the drill pipe with only one button during the drilling down and drilling up process, and there is no need for an assistant to perform a secondary removal operation during the removal of the drill pipe.
[0128] Furthermore, for the display control module disclosed in this embodiment, the traditional drilling rig can only display various parameters through mechanical instruments, and the remote real-time monitoring platform of the display control module can collect and display various parameters of the equipment.
[0129] As a preferred method, the traditional method is to record manually, the data accuracy is not high, and the real-time nature is cross-cutting. The data storage function of this embodiment has local and remote transmission functions, and the data is accurate and timely.
[0130] Furthermore, as preferred in this embodiment, the external control terminal also includes a self-check module and a manual module; the self-check module system includes hardware diagnosis, software integrity check, communication link test, etc. The self-check is automatically executed when the system is started, and can be manually triggered regularly or on demand, and prevent / avoid in-hole accidents such as drill stuck, drill buried, drill burned, etc. by detecting parameter changes. The manual module allows the operator to manually control the drilling operation under specific circumstances, such as system failure, complex geological conditions or specific operation requirements. In manual mode, the operator can directly adjust the drill bit speed, axial force, pump speed and other parameters to bypass automatic control.
[0131] Further, as a preferred implementation of the above embodiment, Figure 2 , a specific embodiment of an external control terminal using automated control in drilling operations is proposed, wherein, as shown in the figure, it includes an emergency stop switch 1, a start / stop switch 2, a wiring port 3, a hydraulic system 4, a protective cover 5, a shell 6, a pressure gauge 7, a drilling control button 8, a drilling pressure return button 9, a cylinder push rod 10, a drilling pressure adjustment knob 11, a winch push rod 12, a mud pump control knob 13, a power head push rod 14, a throttle push rod 15, a clamp operating lever 16 and a display stand 17, wherein the shell 6 is a rectangular shell, and a display is installed on one side of the top of the shell 6 A display platform 17 is provided, on both sides of which are respectively embedded a pressure gauge 7, a drilling control button 8, a drilling pressure return button 9, an emergency stop switch 1, a start / stop switch 2 and a wiring port 3; a protective cover 5 is installed on the top of the display platform; a cylinder push rod 10, a drilling pressure adjustment knob 11, a winch push rod 12, a mud pump control knob 13, a power head push rod 14, a throttle push rod 15 and a clamp operating lever 16 are embedded on the other side of the top of the shell 6; a hydraulic system 4 is connected to the shell, and the hydraulic system 4 is connected to an external hydraulic system through a side of the shell.
[0132] Furthermore, as a preferred implementation scheme of this embodiment, a terminal device using automated control in drilling operations is proposed, such as Figure 3 The terminal device 200 includes at least one memory 210, at least one processor 220, and a bus 230 connecting different platform systems.
[0133] The memory 210 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 211 and / or a cache memory 212 , and may further include a read-only memory (ROM) 213 .
[0134] The memory 210 also stores a computer program, which can be executed by the processor 220, so that the processor 220 executes any one of the above-mentioned methods for automatic control in drilling operations in the embodiments of the present application, and its specific implementation is consistent with the implementation methods and technical effects recorded in the above-mentioned embodiments, and some contents are not repeated. The memory 210 may also include a program / utility 214 having a group (at least one) of program modules 215, such program modules include but are not limited to: an operating system, one or more application programs, other program modules and program data, each of these examples or some combination may include the implementation of a network environment.
[0135] Accordingly, the processor 220 may execute the above-mentioned computer programs, and may execute the program / utility 214 .
[0136] Bus 230 may be a bus representing one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
[0137] The terminal device 200 may also communicate with one or more external devices 240 such as keyboards, pointing devices, Bluetooth devices, etc., and may also communicate with one or more devices that can interact with the terminal device 200, and / or communicate with any device (such as a router, a modem, etc.) that enables the terminal device 200 to communicate with one or more other computing devices. Such communication may be performed through an input / output (I / O) interface 250. In addition, the terminal device 200 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through a network adapter 260. The network adapter 260 may communicate with other modules of the terminal device 200 through a bus 230. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the terminal device 200, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, etc.
[0138] Furthermore, as a preferred implementation scheme of this embodiment, a computer-readable storage medium for automatic control in drilling operations is proposed, wherein the computer-readable storage medium stores instructions, and when the instructions are executed by the processor, any of the above-mentioned automatic control methods in drilling operations is implemented. The specific implementation method is consistent with the implementation method and the technical effect achieved in the above-mentioned embodiments, and some contents are not repeated here.
[0139] Figure 4The program product 300 provided in this embodiment for implementing the above method is shown, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product 300 of the present invention is not limited to this. In this document, the readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. The program product 300 can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0140] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable storage medium may also be any readable medium other than the readable storage medium, which may send, propagate, or transmit a program used by or in combination with an instruction execution system, an apparatus, or a device. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above. The program code for performing the operation of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as "C" language or similar programming languages. The program code may be executed entirely on a user computing device, partially on a user device, as an independent software package, partially on a user computing device, partially on a remote computing device, or entirely on a remote computing device or server. Where a remote computing device is involved, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0141] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
[0142] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.
Claims
1. A method for using automated control in drilling operations, characterized in that: The following steps are involved: S1. Data collection; S2. According to the collected data, the system terminal is used to control drilling, lowering, pulling out, hole enlargement / hole marking, and removing stuck drill respectively; The drilling control specifically includes the following sub-steps: S201. Define a state space and an action space, wherein the state space represents the input of the DQN model, the state space includes at least drill bit position, drill bit speed, axial force, feed speed, mud flow, formation hardness and drill bit wear, and the action space includes at least speed control, axial force control and drill bit replacement; wherein, during the drilling process, the axial force is adjusted according to different formation characteristics, and the formation characteristics include hardness and degree of fragmentation; S202. Evaluate the effect of each action by defining a reward function; use the mean square error to evaluate the difference between the predicted Q value and the target Q value. For each training step, update the network using the following loss function: Wherein, L(θ) represents the loss function, θ represents the neural network parameter, represents the average or expectation of the training data, r represents the immediate reward, and the immediate reward when taking action A in state s, γ represents the discount factor, and the value of γ is between 0 and 1, and max a' Q(s',a';θ - ) represents the maximum Q value of all possible actions a' in the new state s', the θ - represents the parameters of the target network, θ represents the parameters of the current neural network, s represents the current state space, a represents the action taken in the current state s, s' represents the next state after executing action a, and a' represents the action in the new state s'; S203. Adjust drilling parameters in real time through the trained model and select the optimal action as output; In S2, the drilling control is specifically: sending the drilling tool to a predetermined depth through closed-loop control, and the implementation process is as follows: d new =d current +v·Δt; Among them, the d new Indicates the new depth position of the drilling tool, the d current represents the current depth position of the drilling tool, υ represents the downward feed speed, and Δt represents the time interval; In S2, the drilling control specifically includes: monitoring the state of the drill rod through image processing and feature recognition, and extracting the drill rod; In S2, the control of eliminating stuck drill specifically includes the following sub-steps: S211. Monitor the movement state and drilling parameters of the drill bit, wherein the drilling parameters include feed speed, drill bit speed, axial force, torque, pump pressure, mud flow, and formation drillability information; S212. Extract features, analyze the features using a random forest algorithm, and predict the risk of stuck drill; The S212 specifically includes the following sub-steps: S2121. Build a model using decision trees, and train each tree using a randomly selected subset of features; S2122. Train the decision tree using information gain as the splitting criterion for each tree, wherein the calculation process of the information gain is as follows: Wherein, the IG(D p ,f) represents information gain, I represents the impurity measure, and D p Represents the parent node, the D j represents the data set of the jth child node, the N j represents the number of samples of the jth child node, and N represents the number of samples of the parent node; S2123. Each tree gives a prediction result, and the final output of the random forest model is the average or majority vote of all decision tree outputs; After the drilling control, the process further includes step S204: the control module of the external control terminal pops up a prompt to inform the operator to perform the coring operation.
2. A device for automatic control in drilling operation, which is implemented based on the method for automatic control in drilling operation as claimed in claim 1, characterized in that: include: External control terminal, used for control of drilling start and stop, drilling down, pulling out, hole enlargement / hole marking, and drilling jam removal, and displays control data; The internal control system is used to output corresponding data results to an external control terminal according to the collected parameter data, wherein the external control terminal includes: Drilling control opening and closing module, used to open and close the drilling control; The drilling control opening and closing module is used to open and close the drilling control; A drilling control opening and closing module is used to open and close the drilling control; Hole expansion / hole scoring control opening and closing module, used to open and close the hole expansion / hole scoring control; A drill-stuck control opening and closing module is used to open and close the drill-stuck control system; A display control module, used to display current drilling operation data; The internal control system includes: A drilling control unit, which is used to optimize drilling control in a drilling environment through a DQN model; Drilling control unit, used to automatically detect and adjust the angle and position of the drill pipe; A drilling control unit, which is used to monitor the status of the drill pipe through image processing and feature recognition; A stuck pipe exclusion control unit is used to analyze features and predict stuck pipe risks using a random forest algorithm.
3. The device for automatic control in drilling operation according to claim 2, characterized in that: The drilling control unit comprises: A state space and action space definition subunit, used to define a state space and an action space, wherein the state space represents the input of the DQN model, the state space at least includes drill bit position, drill bit speed, axial force, feed speed, formation hardness and drill bit wear, and the action space at least includes speed control, axial force control and drill bit replacement; The reward function definition subunit is used to evaluate the effect of each action by defining a reward function; The model training subunit is used to evaluate the difference between the predicted Q value and the target Q value using the mean squared error. For each training step, the network is updated using the following loss function: Wherein, L(θ) represents the loss function, θ represents the neural network parameter, represents the average or expectation of the training data, r represents the immediate reward, and the immediate reward when taking action a in state s, γ represents the discount factor, and the value of γ is between 0 and 1, and max a' Q(s',a';θ - ) represents the maximum Q value of all possible actions a' in the new state s', the θ - represents the parameters of the target network, θ represents the parameters of the current neural network, s represents the current state space, a represents the action taken in the current state s, s' represents the next state after executing action a, and a' represents the action in the new state s'; The model output subunit is used to adjust the drilling parameters in real time through the trained model and select the optimal action as the output.
4. The device for automatic control in drilling operation according to claim 2, characterized in that: The control unit for eliminating stuck drill comprises: A parameter state acquisition subunit is used to monitor the motion state of the drill bit and drilling parameters, wherein the drilling parameters include feed speed, drill bit speed, axial force, torque, pump pressure, and formation drillability information; The model building subunit is used to build the model through decision trees, and each tree is trained using a randomly selected feature subset; The model training subunit is used to train the decision tree using information gain as the splitting criterion for each tree, wherein the calculation process of the information gain is as follows: Wherein, the IG(D p ,f) represents information gain, I represents the impurity measure, and D p Represents the parent node, the D j represents the data set of the jth child node, the N j represents the number of samples of the jth child node, and N represents the number of samples of the parent node; The prediction output subunit is used to give a prediction result for each tree. The final output of the random forest model is the average or majority vote of all decision tree outputs.
Citation Information
Patent Citations
Drill bit jamming accident detection and early-warning method based on logging big data
CN109594967A
Intelligent reaming automatic control method and system for soft pump pressure
CN111456666A
Control device and method for optimizing drilling tool falling speed, medium and equipment
CN112539052A
Well track intelligent control method based on reinforcement learning
CN115628009A
Intelligent agent guided drilling assessment
CN116761927A
