Undermine inspection method and system based on reinforcement learning and machine vision
By using reinforcement learning and machine vision methods in mine inspection robots, we build neural network models and perform iterative training, which solves the problem of insufficient autonomy of traditional robots in complex environments and achieves higher autonomous decision-making and adaptability. , improving inspection safety.
Patent Information
- Application Number
- CN202410728461.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-08
AI Technical Summary
Traditional mine inspection robots lack autonomy and adaptability in complex and changeable environments and require manual intervention.
Methods based on reinforcement learning and machine vision are used to collect underground inspection images through the visual system, build an underground inspection model based on neural networks, carry out iterative training and delayed update target strategy optimization, achieve real-time path correction, and use binocular cameras Conduct free inspections with wheeled robots.
It improves the robot's autonomous decision-making and adaptability in the underground mine environment, enables it to better cope with complex and changeable environments, reduces the risks for operators, and improves the safety of inspection work.
Smart Images

Figure CN118747702A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and more specifically to an underground mine inspection method and system based on reinforcement learning and machine vision. Background Art
[0002] At present, the main operating mode of underground mine troubleshooting or inspection robots is to determine the movement trajectory through a fixed track underground, and to control the onboard sensors to a certain extent through algorithms. It can perform image recognition of equipment sign information, indicator light status, instrument readings, switch status, personnel status, etc. underground, as well as real-time environmental monitoring including the temperature of the visible part of the equipment, temperature and humidity of the inspection environment, smoke concentration, gas concentration and other information.
[0003] However, the autonomy and adaptability of traditional robots in underground mining environments are limited. They usually run along a fixed track through the mine to determine the motion trajectory. Inspections in the complex and changeable underground mining environment often require human intervention, and their autonomy and adaptability are insufficient.
[0004] Therefore, how to propose an underground mine inspection method and system based on reinforcement learning and machine vision, build an inspection system and reinforcement learning algorithm, achieve a higher degree of autonomous decision-making and adaptability, and better cope with the complex and changeable underground mine environment is an urgent problem that technical personnel in this field need to solve. Summary of the invention
[0005] In view of this, the present invention provides a mine inspection method and system based on reinforcement learning and machine vision, builds an inspection system and a reinforcement learning algorithm, achieves a higher degree of autonomous decision-making and adaptability, and better copes with the complex and changeable mine environment. In order to achieve the above purpose, the present invention adopts the following technical solutions:
[0006] A mine inspection method based on reinforcement learning and machine vision, comprising:
[0007] Collect underground inspection images through the visual system and perform in-depth processing on the images;
[0008] Construct an underground mine inspection model based on neural network;
[0009] Iteratively train the underground mine inspection model based on the deeply processed images;
[0010] Perform delayed update target strategy optimization and hyperparameter adjustment on the trained underground mine inspection model;
[0011] The real-time inspection images are collected and input into the adjusted underground mine inspection model, and the real-time path correction is performed to complete the underground mine inspection.
[0012] Optionally, the collecting of underground mine inspection images through a visual system includes: collecting real-time images through a D455 binocular camera, receiving and processing images through a wheeled robot, and conducting underground mine inspections.
[0013] Optionally, the depth processing of the image includes: taking two images respectively through two cameras of the binocular camera, calculating the relative position of the same feature point to the camera through the conversion matrix generated after camera calibration, obtaining images of the target object at two different positions, calculating the parallax between the two images, and obtaining the distance and depth information of the object.
[0014] Optionally, the construction of the underground mine inspection model based on a neural network includes: constructing a neural network model based on the TD3 reinforcement learning algorithm, initializing the neural network: initializing an actor neural network and two critic neural networks; setting the target network: for each critic network, creating a corresponding target network; defining an experience replay buffer: creating an experience replay buffer for storing experience data obtained by the interaction between the agent and the environment; defining a loss function: defining the loss function of the actor and critic networks to obtain the underground mine inspection model.
[0015] Optionally, the iterative training of the underground mine inspection model based on the deeply processed images includes: dividing the deeply processed images into a training set and a test set, training the underground mine inspection model with the training set, and testing the model performance of the trained underground mine inspection model with the test set.
[0016] Optionally, the iterative training process is:
[0017] S1: Randomly sample a batch of data from the experience replay buffer;
[0018] S2: Use this batch of data to calculate the gradient of the actor network and update the parameters of the actor network to maximize the Q value of the critic network for the actor-generated action;
[0019] S3: Use this batch of data to calculate the gradient of the critic network and update the parameters of the critic network to minimize the TD error;
[0020] S4: Regularly update the parameters of the target network and adjust the parameters of the target network to be close to the corresponding critic network through soft update;
[0021] S5: Repeat S1-S5 until the preset number of training times is reached or the stopping condition is met.
[0022] Optionally, the delayed update target strategy optimization and hyperparameter adjustment of the trained underground mine inspection model includes:
[0023] The underground inspection model reduces overestimation by using two Q networks and a delayed update target strategy;
[0024] The Q1 network and the Q2 network together constitute the Critic network, which are used to estimate the Q value. The smaller Q value of the two networks is selected as the final Q value. Two sets of Critic networks are used, and the smaller value of the two is taken when calculating the target value.
[0025] Adopt target strategy smoothing regularization, add disturbance to the action of the next state when calculating the target value;
[0026] Use delayed update to update the Actor network after the Critic network has been updated n times.
[0027] Optionally, the collected real-time inspection images are input into an adjusted underground mine inspection model to perform real-time path correction, including: after the visual system transmits the environmental information as a data packet to the neural network of the TD3 algorithm, the trained neural network selects an action from the action list set by the wheeled robot after receiving the environmental information, and after continuous selection of actions, the actions are connected to obtain a safe and efficient path.
[0028] Optionally, an underground mine inspection system based on reinforcement learning and machine vision includes:
[0029] Acquisition module: used to collect underground inspection images through the visual system and perform in-depth processing on the images;
[0030] Model building module: used to build an underground mine inspection model based on neural network;
[0031] Model training module: used to iteratively train the underground inspection model based on the images after depth processing;
[0032] Model optimization module: used to perform delayed update target strategy optimization and hyperparameter adjustment on the trained underground inspection model;
[0033] Inspection module: used to collect real-time inspection images and input them into the adjusted underground mine inspection model, perform real-time path correction, and complete underground mine inspection.
[0034] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a method and system for underground mine inspection based on reinforcement learning and machine vision, which has the following beneficial effects:
[0035] The present invention provides an underground mine inspection method based on reinforcement learning and machine vision, including: collecting underground mine inspection images through a visual system and performing depth processing on the images; constructing an underground mine inspection model based on a neural network; iteratively training the underground mine inspection model according to the images after depth processing; performing delayed update target strategy optimization and hyperparameter adjustment on the trained underground mine inspection model; collecting real-time inspection images and inputting them into the adjusted underground mine inspection model, performing real-time path correction, and completing the underground mine inspection. The present invention provides real, three-dimensional, and clear image information through a binocular camera, obtains the three-dimensional structure and shape of the target object through binocular imaging, maintains the accuracy of depth perception, and realizes free underground mine inspection through a wheeled robot. A neural network model based on the TD3 reinforcement learning algorithm is built, and the over-estimation of the Q function is reduced through two Q networks and a delayed update target strategy, thereby improving the stability and convergence of the model, preventing the over-estimation of the value function during the training process, and improving the efficiency and stability of learning. The use of dual-objective strategy networks and noise smoothing technology can better balance exploration and utilization, so that the environment can be better explored and better strategies can be learned during the learning process, and path planning can be better performed. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0037] Figure 1 A schematic flow chart of an underground mine inspection method based on reinforcement learning and machine vision provided by the present invention.
[0038] Figure 2 A structural framework diagram of an underground mine inspection system based on reinforcement learning and machine vision provided by the present invention.
[0039] Figure 3 A schematic diagram of a binocular stereo vision system is provided for the present invention.
[0040] Figure 4 This is the imaging diagram of the three-dimensional space point P on the camera provided by the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] The embodiment of the present invention discloses a mine inspection method based on reinforcement learning and machine vision, such as Figure 1 As shown, the method includes: collecting underground inspection images through a visual system and performing in-depth processing on the images; constructing an underground inspection model based on a neural network; iteratively training the underground inspection model according to the in-depth processed images; performing delayed update target strategy optimization and hyperparameter adjustment on the trained underground inspection model; collecting real-time inspection images and inputting them into the adjusted underground inspection model to perform real-time path correction to complete the underground inspection.
[0043] In a specific implementation, a method for underground mine inspection based on reinforcement learning and machine vision is provided. A visual algorithm based on the fusion of laser radar and binocular camera is added to the robot, and a wheel set is added to the robot to complete underground mine inspection. The underground mine inspection image is collected through the visual system, and the image is deeply processed, including:
[0044] Step 1.1: The binocular camera can simultaneously obtain images of the target object at two different positions. By calculating the disparity between the two images, the distance and depth information of the object can be accurately obtained. That is, the two cameras of the binocular camera take two images respectively, and the relative position of the same feature point to the camera is calculated through the conversion matrix generated after the camera is calibrated, so as to realize the depth perception of the three-dimensional space.
[0045] Step 1.2: Figure 3 As shown in the schematic diagram of the binocular stereo vision system, the distance between the projection centers of the two cameras is b, also called the baseline. The imaging point of any point P in the three-dimensional space on the left camera is P L , the imaging point of the right camera is P R According to the principle of rectilinear propagation of light, the three-dimensional space point P is the intersection of the line connecting the projection center point and the imaging point of the two cameras. L and X R are the distances from the imaging points of the left and right cameras to the left imaging plane, respectively. The parallax of point P in the left and right cameras can be defined as follows:
[0046] d=|x L -x R |;
[0047] The distance between the two imaging points PL and PR is:
[0048]
[0049] According to the theory of similar triangles, we can conclude that:
[0050] Where f is the focal length of the camera.
[0051] Then we can get the distance Z from point P to the projection center plane
[0052]
[0053] The image of the three-dimensional space point P on the camera is as follows Figure 4 As shown in the figure, it can be seen that according to the principle of similar triangles, there is the following relationship:
[0054]
[0055] Therefore, when the disparity of any point in three-dimensional space in different images is known, the three-dimensional coordinates of the point can be known based on the camera parameters.
[0056]
[0057] The upper left corner of the image is the coordinate origin, the horizontal direction to the right is the x-axis (u-axis), and the vertical direction downward is the y-axis (v-axis), expressed as (u, v). u0 and v0 are the vertical and horizontal offsets of the image origin relative to the optical center imaging point (in pixels), d x and d y is the physical size of a pixel, f is the focal length of the camera, R and T are the rotation matrix and translation matrix between the world coordinate system and the camera coordinate system, respectively, and the two constitute the external parameter matrix of the camera. w , Y w , Z w The XYZ coordinates captured by the camera.
[0058] By converting the world coordinate system to the camera coordinate system, the camera coordinate system to the image physical coordinate system, and the image physical coordinate system to the image pixel coordinate system, the three-dimensional coordinates of the point are finally obtained.
[0059] Binocular cameras can simulate the stereoscopic vision of human eyes, capture images in real time at a high frame rate, and provide more realistic and three-dimensional image information. Through binocular imaging, the three-dimensional structure and shape of the target object can be obtained, and the image can be processed through algorithms to achieve rapid calculation and extraction of depth information. Binocular cameras capture images from two different angles at the same time, so they are robust to changes in lighting conditions. Even in the case of uneven lighting or strong light, binocular cameras can obtain clear images and maintain the accuracy of depth perception.
[0060] Step 1.3: Free inspection of mines by wheeled robots is not limited to two-wheeled robots, but also has good adaptability to the control scheme of quadruped robots or wheeled robots. The visual system provides the robot with the perception of the surrounding environment, and transmits the surrounding environmental data as data packets into the neural network in the algorithm, so that the robot can select the correct action to execute.
[0061] In a specific implementation, a mine inspection model based on a neural network is constructed, specifically including:
[0062] Initialize the neural network: Initialize an actor neural network and two critic neural networks. The actor neural network is used to learn the action strategy, while each critic neural network is used to evaluate the Q value of the action. The role of these two critic networks is to reduce the error.
[0063] Set up target networks: For each critic network, create a corresponding target network. The parameters of these target networks are the same as the critic network at the beginning, but they will be slowly updated during training to improve stability.
[0064] Define an experience replay buffer: Create an experience replay buffer to store experience data obtained by the agent data interacting with the environment, including state, action, reward and other information.
[0065] Define loss function: Define the loss function for the actor and critic networks. The loss function of the actor network is achieved by maximizing the Q value of the critic network for the action generated by the actor network. The loss function of the critic network is the square of the TD error.
[0066] The training process is as follows:
[0067] 1) Randomly sample a batch of data from the experience replay buffer.
[0068] 2) Use this batch of data to calculate the gradient of the actor network and update the parameters of the actor network to maximize the Q value of the critic network's generated actions for the actor.
[0069] 3) Use this batch of data to calculate the gradient of the critic network and update the parameters of the critic network to minimize the TD error.
[0070] 4) Regularly update the parameters of the target network and slowly adjust the parameters of the target network to be close to the corresponding critic network through soft updating.
[0071] 5) Repeat the above steps until the preset number of training times is reached or the stopping condition is met.
[0072] 6) Action selection: When interacting with the environment, the final action is selected based on the actions generated by the actor network and certain exploration strategies (such as adding Gaussian noise).
[0073] 7) Perform actions and interact with the environment: Use the selected actions to interact with the environment and observe the rewards and next states returned by the environment.
[0074] 8) Storing experience: Store the observed state, action, reward and other information in the experience replay buffer for subsequent training.
[0075] 9) Update network parameters: Based on the data stored in the experience replay buffer, the back-propagation algorithm is used to update the parameters of the actor and critic networks.
[0076] Repeat steps 6) to 9) until the training is completed.
[0077] Through the above steps, the TD3 algorithm can learn a strategy that performs well in the continuous action space. After the visual system transmits the environmental information as a data packet to the TD3 algorithm's neural network, the trained neural network selects the safest and most efficient action from the action list set by the robot after receiving the environmental information. After a series of continuous selection actions, the actions are connected to form a safe and efficient path. The algorithm continuously outputs the corrected route and updates the initial route, so that the robot can patrol along a safe route.
[0078] In a specific implementation, the delayed update target strategy optimization and hyperparameter adjustment are performed on the trained underground mine inspection model, specifically including:
[0079] (1) The TD3 (Twin Delayed Deep Deterministic Policy Gradient) reinforcement learning algorithm uses a double network: two sets of Critic networks are used, and the smaller value of the two is taken when calculating the target value, thereby suppressing the network over-estimation problem. The Q network and the Critic network are neural network models used to estimate the Q function, and their parameters are updated by optimizing the objective of the Q function. In the TD3 algorithm, the Q1 network and the Q2 network together constitute the Critic network, which are used to estimate the Q value respectively. Then the TD3 algorithm will select the smaller Q value of the two networks as the final Q value to improve the stability of the algorithm. The final Q value is used to guide the update of the policy and the selection of actions. Using two Q networks can reduce the variance of the Q value, thereby improving the convergence of the algorithm.
[0080] (2) Target policy smoothing regularization: When calculating the target value, perturbations are added to the action of the next state to make the value assessment more accurate.
[0081] (3) Delayed update: After the Critic network is updated multiple times, the Actor network is updated to ensure that the training of the Actor network is more stable.
[0082] TD3 improves the stability of the algorithm by using two Q networks (Twin Q-networks) and a delayed update target strategy to reduce the overestimation of the Q function. It prevents overestimation of the value function during training, thereby improving the efficiency and stability of learning. The TD3 algorithm has fewer hyperparameters that need to be adjusted, is easy to deploy and adjust in practical applications, and reduces the time cost of algorithm development and debugging.
[0083] In a specific embodiment, after the robot is deployed to the road section to be inspected, the initial map and the inspection start and end points are manually input, and the TD3 algorithm uses the trained network to plan a rough route, and the inspection begins. During the inspection along the route, the visual system continuously perceives the surrounding environment, updates the initial map in real time, and inputs the map data into the TD3 algorithm. The algorithm continuously outputs the corrected route and updates the initial route, so that the robot can inspect along a safe route.
[0084] In a specific implementation, a mine inspection system based on reinforcement learning and machine vision is provided. Figure 2 As shown, including:
[0085] Acquisition module: used to collect underground inspection images through the visual system and perform in-depth processing on the images;
[0086] Model building module: used to build an underground mine inspection model based on neural network;
[0087] Model training module: used to iteratively train the underground inspection model based on the images after depth processing;
[0088] Model optimization module: used to perform delayed update target strategy optimization and hyperparameter adjustment on the trained underground inspection model;
[0089] Inspection module: used to collect real-time inspection images and input them into the adjusted underground mine inspection model, perform real-time path correction, and complete underground mine inspection.
[0090] Through the reinforcement learning algorithm, the present invention can achieve a higher degree of autonomous decision-making adaptability, perceive and analyze the environment in real time, better cope with the complex and changeable underground mine environment, reduce the risk of operators, and improve the safety of inspection work.
[0091] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0092] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A mine inspection method based on reinforcement learning and machine vision. It is characterized in that include: Collect underground inspection images through the visual system and perform in-depth processing on the images; Construct an underground mine inspection model based on neural network; Iteratively train the underground mine inspection model based on the deeply processed images; Perform delayed update target strategy optimization and hyperparameter adjustment on the trained underground mine inspection model; The real-time inspection images are collected and input into the adjusted underground mine inspection model, and the real-time path correction is performed to complete the underground mine inspection.
2. According to claim 1, a mine inspection method based on reinforcement learning and machine vision, It is characterized in that The method of collecting underground inspection images through the visual system includes: collecting real-time images through a D455 binocular camera, receiving and processing images through a wheeled robot, and conducting underground inspections.
3. According to the method for underground mine inspection based on reinforcement learning and machine vision in claim 1, It is characterized in that The depth processing of the image includes: taking two images respectively through the two cameras of the binocular camera, calculating the relative position of the same feature point to the camera through the conversion matrix generated after camera calibration, obtaining images of the target object at two different positions, calculating the parallax between the two images, and obtaining the distance and depth information of the object.
4. According to the method for underground mine inspection based on reinforcement learning and machine vision in claim 1, It is characterized in that The construction of the underground mine inspection model based on neural network includes: constructing a neural network model based on the TD3 reinforcement learning algorithm, initializing the neural network: initializing an actor neural network and two critic neural networks; setting the target network: for each critic network, creating a corresponding target network; defining an experience replay buffer: creating an experience replay buffer for storing experience data obtained by the interaction between the agent and the environment; defining a loss function: defining the loss function of the actor and critic networks, and obtaining the underground mine inspection model.
5. According to claim 1, a mine inspection method based on reinforcement learning and machine vision, It is characterized in that The iterative training of the underground mine inspection model based on the deeply processed images includes: dividing the deeply processed images into a training set and a test set, training the underground mine inspection model through the training set, and testing the model performance of the trained underground mine inspection model through the test set.
6. According to claim 5, a method for underground mine inspection based on reinforcement learning and machine vision, It is characterized in that The iterative training process is: S1: Randomly sample a batch of data from the experience replay buffer; S2: Use this batch of data to calculate the gradient of the actor network and update the parameters of the actor network to maximize the Q value of the critic network for the actor-generated action; S3: Use this batch of data to calculate the gradient of the critic network and update the parameters of the critic network to minimize the TD error; S4: Regularly update the parameters of the target network and adjust the parameters of the target network to be close to the corresponding critic network through soft update; S5: Repeat S1-S5 until the preset number of training times is reached or the stopping condition is met.
7. According to claim 1, a mine inspection method based on reinforcement learning and machine vision, It is characterized in that The delayed update target strategy optimization and hyperparameter adjustment of the trained underground mine inspection model include: The underground inspection model reduces overestimation by using two Q networks and a delayed update target strategy; Q 1 Network and Q 2 The two networks together form a Critic network, which is used to estimate the Q value. The smaller Q value of the two networks is selected as the final Q value. Two sets of Critic networks are used, and the smaller value of the two is taken when calculating the target value. Adopt target strategy smoothing regularization, add disturbance to the action of the next state when calculating the target value; Use delayed update to update the Actor network after the Critic network has been updated n times.
8. According to claim 1, a mine inspection method based on reinforcement learning and machine vision, It is characterized in that The collected real-time inspection images are input into the adjusted underground mine inspection model, and the real-time path correction is performed, including: after the visual system transmits the environmental information as a data packet to the neural network of the TD3 algorithm, the trained neural network selects an action from the action list set by the wheeled robot after receiving the environmental information, and after continuous selection of actions, the actions are connected to obtain a safe and efficient path.
9. An underground mine inspection system based on reinforcement learning and machine vision. It is characterized in that include: Acquisition module: used to collect underground inspection images through the visual system and perform in-depth processing on the images; Model building module: used to build an underground mine inspection model based on neural network; Model training module: used to iteratively train the underground inspection model based on the images after depth processing; Model optimization module: used to perform delayed update target strategy optimization and hyperparameter adjustment on the trained underground inspection model; Inspection module: used to collect real-time inspection images and input them into the adjusted underground mine inspection model, perform real-time path correction, and complete underground mine inspection.
Citation Information
Patent Citations
Computing task unloading method based on deep reinforcement learning in electric power internet of things
CN114065963A
Marine work platform jacket autonomous inspection system based on deep reinforcement learning
CN116858843A
Deep neural network hyperparameter optimization method, electronic device and storage medium
WO2021007812A1
Cited By
Robot motion control method, device and equipment and storage medium
CN120869122A
Rail transit multi-scene intelligent inspection device, method and equipment based on reinforcement learning
CN121119553A
