Target detection method for tunneling working face based on multi-sensor data fusion

Through multi-sensor data fusion, combined with lidar, 4D millimeter-wave radar and thermal imaging cameras, the accuracy and stability of target detection on the excavation working face in harsh environments are solved, and detection under conditions of insufficient light, dust and water mist is achieved. Efficient target detection.

CN118425955BActive Publication Date: 2024-08-27TAIYUAN UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410882513.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-08-27
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

The existing excavation working face target detection technology is dangerous and error-prone, and is limited by the limitations of a single sensor. It is difficult to meet the accurate, stable and comprehensive requirements for excavation working face target detection, especially when there is insufficient light, dust and water mist. The target shape and material recognition is limited under certain conditions.

Method used

Using a method based on multi-sensor data fusion, combining lidar, 4D millimeter wave radar and thermal imaging cameras, through time and space alignment, 3D point clouds and thermal imaging images are collected, filtered, fused and detected to generate 3D target detection images and 2D target area of ​​interest to improve detection accuracy and robustness.

Benefits of technology

It improves the accuracy and robustness of target detection under conditions of insufficient light, dust and water mist, enhances the adaptability to complex scenes, and ensures the accuracy and stability of target detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118425955B
    Figure CN118425955B
Patent Text Reader

Abstract

The present invention relates to a method for detecting a target on an excavation working face based on multi-sensor data fusion, and belongs to the field of intelligent coal mine technology. The method comprises: a laser radar and a 4D millimeter wave radar respectively collect the first and second initial three-dimensional point clouds, and a thermal imaging camera collects the initial thermal imaging image; the first and second initial three-dimensional point clouds are filtered respectively to obtain the first and second target three-dimensional point clouds; the initial thermal imaging image is subjected to image enhancement processing to obtain the target thermal imaging image; the first and second target three-dimensional point clouds are fused; 3D target detection is performed on the fused three-dimensional point cloud to obtain a 3D target detection image; 2D target detection is performed on the target thermal imaging image to obtain a 2D target region of interest; the 3D target detection image is converted into a 2D target front view; the 2D target front view is fused with the 2D target region of interest to obtain a fused image. The present invention can improve the accuracy and robustness of target detection and increase adaptability to complex scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent coal mine technology, and in particular to a method for detecting targets on an excavation working face based on multi-sensor data fusion. Background Art

[0002] Coal mines are important resource mining sites, and the excavation face is one of the most important links in the production process. Target detection in the excavation face of coal mines is a crucial task in the intelligent production of coal mines. Therefore, accurate and real-time identification of target objects in the excavation face, such as the cutting situation of the excavator, the working status of personnel and the operation of equipment, is crucial to ensure the safety of coal mine production and improve production efficiency.

[0003] For tunneling working faces, existing target detection technologies are often implemented by workers based on their experience, which is dangerous and prone to errors, or are limited by the limitations of a single sensor. They are difficult to meet the requirements of accurate, stable and comprehensive target detection in tunneling working faces. For example, visible light cameras are affected by insufficient light, dust and smoke in coal mine tunnels, which can easily lead to a decrease in the accuracy of target detection. Although radar technology can achieve target detection in harsh environments, it is limited in identifying target shapes and materials when there is a lot of dust and fog. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a method for detecting targets on a tunneling working face based on multi-sensor data fusion. The technical solution of the present invention is as follows:

[0005] A method for detecting a target on a tunneling working face based on multi-sensor data fusion, comprising:

[0006] S1, after the TBM moves to the initial tunneling operation position, three sensors, namely, LiDAR, 4D millimeter-wave radar and thermal imaging camera, are installed on the top of the tunnel behind the TBM;

[0007] S2, controls the LiDAR, 4D millimeter-wave radar, and thermal imaging camera for temporal and spatial alignment;

[0008] S3, after the time and space are aligned, the three sensors are turned on. The laser radar and the 4D millimeter wave radar collect the first initial three-dimensional point cloud and the second initial three-dimensional point cloud respectively, and the thermal imaging camera collects the initial thermal imaging image;

[0009] S4, filtering the first initial three-dimensional point cloud and the second initial three-dimensional point cloud respectively to obtain a first target three-dimensional point cloud and a second target three-dimensional point cloud; performing image enhancement processing on the initial thermal imaging image to obtain a target thermal imaging image;

[0010] S5, fusing the first target three-dimensional point cloud and the second target three-dimensional point cloud to obtain a fused three-dimensional point cloud; performing 3D target detection on the fused three-dimensional point cloud to obtain a 3D target detection image;

[0011] S6, performing 2D target detection on the target thermal imaging image to obtain a 2D target region of interest;

[0012] S7, converting the 3D target detection image into a 2D target front view;

[0013] S8, fusing the 2D target front view and the 2D target region of interest to obtain a fused image and using the fused image as the target detection result.

[0014] Optionally, the S2 includes:

[0015] S21, time alignment: controlling the laser radar, 4D millimeter wave radar and thermal imaging camera to synchronize timestamps, so as to obtain a first initial three-dimensional point cloud, a second initial three-dimensional point cloud and an initial thermal imaging image collected at the same time;

[0016] S22, spatial alignment: Jointly calibrate the LiDAR, 4D millimeter-wave radar, and thermal imaging camera to establish the transformation relationship between the coordinate systems of the LiDAR, 4D millimeter-wave radar, and thermal imaging camera.

[0017] Optionally, the S21 includes:

[0018] S211, NTP server configuration: Install the NTP software Chrony on the onboard data processing terminal of the tunnel boring machine, configure the relevant files of Chrony and the upstream time source, and then start Chrony to form an NTP server;

[0019] S212, sensor device connection: find the NTP configuration option in the setting interface of the laser radar, 4D millimeter wave radar and thermal imaging camera, enter the IP address of the NTP server, and connect the laser radar, 4D millimeter wave radar and thermal imaging camera to the NTP server;

[0020] S213, synchronize and calibrate the clock: configure the synchronization period of the laser radar, 4D millimeter wave radar, and thermal imaging camera, so that they regularly request time updates from the NTP server, and calibrate their local clocks to keep them consistent with the time of the NTP server;

[0021] S214, data collection and recording: start the laser radar, 4D millimeter wave radar and thermal imaging camera to collect data, and record the data collected by each sensor and its attached timestamp information.

[0022] Optionally, the S4 includes:

[0023] S41, using Gaussian filtering to smooth the data of the first initial three-dimensional point cloud, and then applying statistical filtering to remove outliers to obtain a first target three-dimensional point cloud;

[0024] S42, clustering the second initial three-dimensional point cloud using the DBSCAN algorithm, marking points outside the clusters in the clustering result as noise points, and removing the noise points to obtain a second target three-dimensional point cloud;

[0025] S43, performing image enhancement processing on the initial thermal imaging image by using an adaptive histogram equalization method and a contrast enhancement method to obtain a target thermal imaging image.

[0026] Optionally, when fusing the first target three-dimensional point cloud and the second target three-dimensional point cloud to obtain a fused three-dimensional point cloud, S5 includes:

[0027] S51, rough registration of point cloud is performed through NDT algorithm, including:

[0028] S511, initialization definition: the first target three-dimensional point cloud is used as the target point cloud for registration and recorded as , the second target 3D point cloud is taken as the source point cloud and recorded as , the rotation matrix of the initial transformation Set to the identity matrix , the initial transformation translation vector Set to zero vector and preset the convergence condition threshold of the NDT algorithm ;

[0029] S512, Meshing: Divided into a series of three-dimensional voxel grids ;

[0030] S513 is calculated by formula (1) and formula (2) respectively. Contains the mean vector of the point cloud and the covariance matrix ;

[0031] (1);

[0032] (2);

[0033] In formula (1) and formula (2), yes The number of points in yes The point in is a small positive number. is the identity matrix, is a small diagonal matrix, express The transpose of

[0034] S514, initial transformation: Use formula (3) to application and Perform the initial transformation:

[0035] (3);

[0036] In formula (3), yes Point cloud after initial transformation;

[0037] S515, iterative optimization, including:

[0038] 1) Calculate the likelihood function: For Each point in , calculated by formula (4) The likelihood probability in the Gaussian distribution model is:

[0039] (4);

[0040] 2) Constructing the cost function , expressed as formula (5):

[0041] (5);

[0042] In formula (5), is the transformation matrix used in the point cloud coarse registration process, N 2 express The number of midpoints, N 1 express The number of voxel grids to be divided;

[0043] 3) Gradient descent optimization method: Use gradient descent method to minimize , and iteratively updated by formula (6) :

[0044] (6);

[0045] In formula (6), is the step length, is the gradient of the cost function, m Indicates m Iterations, For the m The transformation matrix of the iteration, For the m+ Transformation matrix for 1 iteration;

[0046] S516, Convergence judgment: When Stop the iteration when , and output the final transformation matrix and the source point cloud after rough registration , as input data for precise point cloud registration through the ICP algorithm;

[0047] S52, use ICP algorithm to perform point cloud precise registration, including:

[0048] S521, initial definition: preset maximum number of iterations is , the convergence condition threshold of the ICP algorithm is , Initialize the transformation rotation matrix is the identity matrix , initialize the transformation translation vector is the zero vector;

[0049] S522, find matching points: for each point , we can find The closest point in , and the paired point set is recorded as :

[0050] (7);

[0051] In formula (7), yes The point in yes The point in It means finding the index that makes the function reach the minimum value. Here it means finding the index that makes Smallest ;

[0052] S523, estimate transformation: Calculate by formula (8) to formula (11) and The centroid of the paired point set and the point set after removing the centroid:

[0053] (8);

[0054] (9);

[0055] (10);

[0056] (11);

[0057] In formula (8) to formula (11), yes The centroid of It is the point set after removing the centroid of the source point cloud; yes The centroid of the paired point set; It is the point set after removing the centroid of the point set paired with the target point cloud; N 2 is the number of paired points, i.e. the number of midpoints;

[0058] S524, calculate the covariance matrix using formula (12) :

[0059] (12);

[0060] In formula (12), express The transpose of

[0061] S525, through formula (13) Perform singular value decomposition:

[0062] (13);

[0063] In formula (13), , and is the matrix in the singular value decomposition process;

[0064] S526, calculate the rotation matrix using formula (14) and formula (15) respectively R and translation vector t :

[0065] (14);

[0066] (15);

[0067] S527, calculated by formula (16) R and t Updated source point cloud :

[0068] (16);

[0069] S528, calculate the error using formula (17) , and judge whether it converges based on the error:

[0070] (17);

[0071] If the error changes Or the number of iterations reaches the maximum number of iterations , then the ICP algorithm is determined to converge and the iteration is stopped, where,n Indicates n Iterations, and Respectively represent n The error of the iteration and the n+ The error of 1 iteration;

[0072] S529, output the rotation matrix and translation vector when the ICP algorithm converges as the final rotation matrix and the final translation vector, and determine the updated point cloud according to the final rotation matrix and the final translation vector After that, and Perform point cloud stitching to obtain a fused 3D point cloud .

[0073] Optionally, when performing 3D target detection on the fused 3D point cloud to obtain a 3D target detection image, S5 includes:

[0074] Inputting the fused three-dimensional point cloud into an improved PointNet++ target detection network, and outputting a 3D target detection image from the improved PointNet++ target detection network; the improved PointNet++ target detection network includes an input layer, a first SA module, a second SA module, PointNet, a fully connected layer, and an output layer connected in sequence;

[0075] The first SA module and the second SA module both include a sampling layer, a grouping layer, a multi-layer perceptron, an ECA module, a short link layer and a PointNet layer. The sampling layer, the grouping layer, the multi-layer perceptron, the ECA module and the PointNet layer are connected in sequence, and the short link layer is connected in parallel with the ECA module; the activation function of the multi-layer perceptron is Swish.

[0076] Optionally, the step of inputting the fused three-dimensional point cloud into an improved PointNet++ target detection network, and outputting a 3D target detection image by the improved PointNet++ target detection network, comprises:

[0077] S5.1, the fused 3D point cloud is converted into The feature matrix, N is the number of points in the fused 3D point cloud, d is the dimension of the point, C is the characteristic dimension;

[0078] S5.2, through the first SA module The feature matrix is ​​used for feature extraction to obtain Feature matrix;

[0079] S5.3, through the second SA module The feature matrix is ​​used for feature extraction to obtain Feature matrix;

[0080] S5.4, through PointNet The feature matrix is ​​processed as The feature vector of After integrating the feature vectors, the output layer outputs the 3D target detection image.

[0081] Optionally, the S5.2 includes:

[0082] S521, the sampling layer of the first SA module adopts the method of iterative farthest point sampling to The feature matrix is ​​sampled to obtain Feature matrix;

[0083] S522, the grouping layer uses the KNN sample generation method to select local areas near each sampling point k The nearest neighbor point is used as the representative pair The feature matrix is ​​aggregated to obtain Feature matrix;

[0084] S523, Multilayer Perceptron The feature matrix is ​​aggregated to obtain Feature matrix;

[0085] S524, ECA module assignment The channel weights of the feature matrix are obtained The weight matrix of The weight matrix and The feature matrix is ​​multiplied channel by channel to obtain a weighted feature map;

[0086] S525, short link layer pair After the feature matrix is ​​short-linked, the short-link result is added to the weighted feature map to form a new feature map;

[0087] S526, PointNet layer pair The new feature map is subjected to the maximum pooling operation, and we get Feature matrix.

[0088] Optionally, the S7 includes:

[0089] S71, project the 3D target detection image onto a 2D plane using formula (18) to obtain a two-dimensional plane set :

[0090] (18);

[0091] In formula (18), is the 3D point coordinate of any point in the fused 3D point cloud in the thermal imaging camera coordinate system, yes Two-dimensional pixel coordinates projected onto the image plane pixel coordinate system; and It's a thermal imaging camera Axis and The focal length along the axis, and are the principal point coordinates of the image center;

[0092] S72, according to the two-dimensional plane set Determine the minimum bounding rectangle that contains all vertices, specifically:

[0093] 1) From a two-dimensional plane set Search The maximum and minimum values ​​of the Maximum and minimum values;

[0094] 2) According to The maximum and minimum values ​​of the The maximum and minimum values ​​generate the bounding box of the minimum enclosing rectangle;

[0095] S73, the two-dimensional plane set The points in are displayed on the image plane, and the bounding box of the minimum circumscribed rectangle is displayed on the image plane to obtain the 2D target front view.

[0096] Optionally, the S8 includes:

[0097] S81, assigning different weights to the 2D target front view and the 2D target region of interest;

[0098] S82, calculate the pixel weighted average value of each pixel position in the fused image by formula (19) to obtain the fused pixel value of each pixel position:

[0099] (19);

[0100] In formula (19), is the pixel position in the fused image The fused pixel value at is the pixel position in the front view of the 2D object The pixel value at is the pixel position in the 2D target region of interest The pixel value at ; is the weight of the front view of the 2D target, ranging from (0, 1);

[0101] S83, normalizing the fused pixel value at each pixel position, and constructing a fused image according to each normalized fused pixel value to obtain a target detection result.

[0102] All the above optional technical solutions can be combined arbitrarily, and the present invention does not provide detailed descriptions of the structures after the combinations.

[0103] By means of the above scheme, the beneficial effects of the present invention are as follows:

[0104] By fusing the data collected by LiDAR, 4D millimeter-wave radar and thermal imaging camera, and detecting the target based on the multi-source data fusion results, the accuracy and robustness of target detection can be improved, and it has good practicality under insufficient lighting, dust and water mist conditions. By adopting the method of time and space alignment, the data collected by the three sensors are ensured to be consistent in time and space, providing a reliable foundation for subsequent data fusion. By preprocessing a large number of three-dimensional point clouds collected by LiDAR and 4D millimeter-wave radar and removing irrelevant point cloud data, the amount of subsequent processing data can be reduced, and the processing efficiency and accuracy can be improved. By fusing the 2D target front view with the 2D target area of ​​interest to obtain a fused image, the accuracy and robustness of target detection can be improved, and the adaptability to complex scenes can be increased.

[0105] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0106] Figure 1 It is a flow chart of a method for detecting targets on an excavation working face based on multi-sensor data fusion provided in an embodiment of the present invention.

[0107] Figure 2 It is a schematic diagram of the implementation environment of the tunneling working face target detection method based on multi-sensor data fusion provided in an embodiment of the present invention.

[0108] Figure 3 yes Figure 2 Right view of .

[0109] Figure 4 It is a schematic diagram of the process of spatial alignment between sensors in the present invention.

[0110] Figure 5 It is a schematic diagram of the composition and data processing process of the improved PointNet++ target detection network in the present invention.

[0111] Figure 6 yes Figure 5Schematic diagram of the data processing process of SA1.

[0112] Figure 7 It is a schematic diagram of the process of ECA module processing data in the present invention.

[0113] Figure 8 Figures (a) and (b) are schematic diagrams of the unimproved MLP and subsequent feature extraction, and the improved MLP and subsequent feature extraction in the present invention, respectively.

[0114] Fig. 9 It is a process schematic diagram of S7 and S8 in the present invention. DETAILED DESCRIPTION

[0115] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0116] like Figure 1 As shown, the method for detecting a target on a tunneling working face based on multi-sensor data fusion provided by an embodiment of the present invention comprises the following steps S1 to S8:

[0117] S1, after the TBM moves to the initial tunneling operation position, three sensors, namely, lidar, 4D millimeter-wave radar and thermal imaging camera, are installed on the top of the tunnel behind the TBM.

[0118] like Figure 2 and Figure 3 As shown, it is a schematic diagram of the implementation environment of the tunneling working face target detection method based on multi-sensor data fusion provided by an embodiment of the present invention. The implementation environment is: the laser radar 1, 4D millimeter wave radar 2 and thermal imaging camera 3 are installed in sequence from top to bottom through brackets and bolts and other fixing elements 4, and the three sensors and the airborne data processing terminal are fixed on the tunnel roof at the rear part of the tunnel boring machine 5. When the tunnel boring machine 5 moves to the initial tunneling operation position, the staff arrives at the designated position, and the cutting process of the tunnel boring machine 5 is started, the three sensors fixed on the tunnel roof do not change according to the predetermined viewing angle and position, collect the data of each sensor, and transmit it to the airborne data processing terminal. The following steps are executed by the airborne data processing terminal.

[0119] S2 controls the LiDAR, 4D millimeter-wave radar, and thermal imaging camera for temporal and spatial alignment.

[0120] Specifically, in an embodiment of the present invention, it is necessary to ensure that the time and space positions of the laser radar, 4D millimeter wave radar and thermal imaging camera are aligned when collecting data, so as to achieve accurate fusion of feature extraction of three-dimensional point cloud and thermal imaging image.

[0121] In a specific embodiment, S2 includes time alignment and space alignment, that is, S2 includes:

[0122] S21, time alignment: control the laser radar, 4D millimeter wave radar and thermal imaging camera to synchronize timestamps to obtain a first initial three-dimensional point cloud, a second initial three-dimensional point cloud and an initial thermal imaging image collected at the same time.

[0123] In an exemplary embodiment, the S21 includes:

[0124] S211, NTP (Network Time Protocol) server configuration: Install the NTP software Chrony on the onboard data processing terminal of the tunnel boring machine, configure the relevant files and upstream time source of Chrony, and then start Chrony to form an NTP server.

[0125] S212, sensor device connection: Find the NTP configuration option in the setting interface of the laser radar, 4D millimeter wave radar and thermal imaging camera, enter the IP address of the NTP server, and connect the laser radar, 4D millimeter wave radar and thermal imaging camera to the NTP server.

[0126] S213, Synchronize and calibrate clocks: Configure the synchronization period of the LiDAR, 4D millimeter wave radar, and thermal imaging camera so that they regularly request time updates from the NTP server and calibrate their local clocks to keep them consistent with the time of the NTP server. After each calibration, the sensor uses the synchronized timestamp to record data, further ensuring the time consistency of the data.

[0127] S214, data collection and recording: Start the laser radar, 4D millimeter wave radar and thermal imaging camera for data collection, and record the data collected by each sensor and its attached timestamp information. Through this step, it is ensured that each data point correctly records the timestamp synchronized with the NTP server. Among them, when starting the laser radar, 4D millimeter wave radar and thermal imaging camera, it can be achieved by controlling the external trigger by the airborne data processing terminal.

[0128] S22, spatial alignment: Jointly calibrate the LiDAR, 4D millimeter-wave radar, and thermal imaging camera to establish the transformation relationship between the coordinate systems of the LiDAR, 4D millimeter-wave radar, and thermal imaging camera.

[0129] Considering the complexity of the coal mine on-site environment, it is difficult to perform joint calibration of sensors on site. Therefore, the method provided in the embodiment of the present invention can complete the calibration in a laboratory or test environment in advance, and perform necessary verification and fine-tuning during actual work to ensure the accuracy and efficiency of the calibration. The specific operation steps of the joint calibration of the three sensors are as follows:

[0130] The experimental site was arranged according to the installation positions and angles of the three sensors mentioned in S1, namely, the lidar, 4D millimeter-wave radar and thermal imaging camera, to ensure that the relative positions between the sensors remained fixed and kept consistent with the actual coal mine site as much as possible.

[0131] The joint calibration of the sensors adopts the calibration object-based method, that is, an 8×6 black and white checkerboard is selected as the calibration board, and the side length of each square is 10 cm. This checkerboard can be used for both the intrinsic calibration of the thermal imaging camera and the joint calibration of the extrinsic parameters of the three sensors.

[0132] After the preparations are complete, start the LiDAR, 4D millimeter-wave radar, and thermal imaging camera to ensure that they can work properly and start data collection. Manually move the calibration plate to collect data at different angles and distances to ensure that each sensor can clearly capture the 3D point cloud and image of the calibration plate within its field of view. Collect multiple sets of data to ensure that the entire field of view of the three sensors is covered.

[0133] After collecting the data, the coordinate system of the thermal imaging camera is set as the reference coordinate system. For the points in the calibration plate, the coordinates in their respective sensor coordinate systems are: , the coordinates in the laser radar coordinate system are , the coordinates in the 4D millimeter wave radar coordinate system are .like Figure 4 As shown, the coordinates of the three-dimensional point cloud collected in the coordinate system of the laser radar and the 4D millimeter-wave radar are converted to the coordinate system of the thermal imaging camera, and the point cloud data are associated and registered to enable each sensor to detect the target in the same coordinate system.

[0134] The conversion of the laser radar coordinate system to the thermal imaging camera coordinate system is as follows:

[0135] After collecting the laser radar and thermal imaging camera calibration plate data, the PCL library is used to extract the checkerboard corner points in the 3D point cloud collected by the laser radar, the OpenCV library detects the checkerboard corner points collected by the thermal imaging camera, and the PnP algorithm of OpenCV is used to calculate the external parameter matrix of the laser radar and the thermal imaging camera, that is, the rotation matrix of the laser radar coordinate system relative to the thermal imaging camera coordinate system is , which is a 3×3 matrix; the translation vector is , is a 3×1 matrix. Then, the three-dimensional point cloud collected by the lidar is expressed in the thermal imaging camera coordinate system (standard coordinate system) as follows: :

[0136] .

[0137] Similarly, the transformation of the 4D millimeter wave radar coordinate system relative to the thermal imaging camera coordinate system is as follows:

[0138] After collecting the calibration plate data of the 4D millimeter-wave radar and thermal imaging camera, the PCL library is used to extract the checkerboard corner points in the three-dimensional point cloud collected by the 4D millimeter-wave radar, the OpenCV library detects the checkerboard corner points of the thermal imaging camera, and the PnP algorithm of OpenCV is used to calculate the external parameter matrix of the 4D millimeter-wave radar and the thermal imaging camera, that is, the rotation matrix of the 4D millimeter-wave radar coordinate system relative to the thermal imaging camera coordinate system is , which is a 3×3 matrix; the translation vector is , is a 3×1 matrix. Then, the three-dimensional point cloud collected by the 4D millimeter-wave radar is expressed in the thermal imaging camera coordinate system (standard coordinate system) as follows: :

[0139] .

[0140] Furthermore, the embodiment of the present invention does not explain in detail the internal calibration content of the thermal imaging camera. By performing internal calibration on the thermal imaging camera, internal parameters such as focal length, principal point coordinates and distortion parameters can be obtained.

[0141] S3, after alignment in time and space, three sensors are turned on. The laser radar and 4D millimeter wave radar collect the first initial three-dimensional point cloud and the second initial three-dimensional point cloud respectively, and the thermal imaging camera collects the initial thermal imaging image.

[0142] Specifically, the embodiment of the present invention defines the original point clouds collected by the laser radar and the 4D millimeter wave radar as the first initial three-dimensional point cloud and the second initial three-dimensional point cloud, respectively, and defines the original image collected by the thermal imaging camera as the initial thermal imaging image.

[0143] S4, filtering the first initial three-dimensional point cloud and the second initial three-dimensional point cloud respectively to obtain a first target three-dimensional point cloud and a second target three-dimensional point cloud; performing image enhancement processing on the initial thermal imaging image to obtain a target thermal imaging image.

[0144] Specifically, an embodiment of the present invention defines the first initial three-dimensional point cloud and the three-dimensional point clouds after filtering of the second initial three-dimensional point cloud as the first target three-dimensional point cloud and the second target three-dimensional point cloud, respectively, and defines the image after image enhancement processing of the initial thermal imaging image as the target thermal imaging image.

[0145] Since LiDAR and 4D millimeter-wave radar can obtain a large number of three-dimensional point clouds, including point clouds of target cutting heads, workers and other redundant targets that need to be detected, preprocessing is required, that is, using appropriate filtering methods to remove a large amount of irrelevant point cloud data to reduce the amount of data that needs to be processed.

[0146] Considering the high density of laser radar data, for the first initial three-dimensional point cloud, the embodiment of the present invention first uses Gaussian filtering to smooth the data, and then applies statistical filtering to remove outliers to obtain the first target three-dimensional point cloud. In addition, machine learning methods such as support vector machines can also be used to filter the first initial three-dimensional point cloud to improve the filtering effect and accuracy.

[0147] Considering that the data density of 4D millimeter wave radar is lower than that of laser radar, the embodiment of the present invention uses DBSCAN (Density-Based Spatial Clustering of Applications with Noise) algorithm to cluster the second initial three-dimensional point cloud to effectively identify clusters with sufficiently high density, mark the points outside the clusters in the clustering results as noise points, and remove the noise points to obtain the second target three-dimensional point cloud. In addition, the embodiment of the present invention can also use HDBSCAN algorithm to cluster the second initial three-dimensional point cloud to improve the accuracy and robustness of cluster analysis.

[0148] Considering that thermal imaging images mainly use the temperature difference between the target object and its surrounding environment to highlight the target, the embodiment of the present invention performs image enhancement processing on the initial thermal imaging image to make the target contour information more obvious. Specifically, the initial thermal imaging image is enhanced by using an adaptive histogram equalization method and a contrast enhancement method in turn to obtain a target thermal imaging image.

[0149] S5, fusing the first target three-dimensional point cloud and the second target three-dimensional point cloud to obtain a fused three-dimensional point cloud; performing 3D target detection on the fused three-dimensional point cloud to obtain a 3D target detection image.

[0150] In a specific embodiment, when S5 fuses the first target three-dimensional point cloud and the second target three-dimensional point cloud, it first performs a rough registration of the point clouds using an NDT algorithm, and then performs a fine registration of the point clouds using an ICP algorithm.

[0151] Exemplarily, S51, performing rough point cloud registration by using an NDT algorithm, specifically includes:

[0152] S511, initialization definition: the first target three-dimensional point cloud is used as the target point cloud for registration and recorded as , the second target 3D point cloud is taken as the source point cloud and recorded as , the rotation matrix of the initial transformation Set to the identity matrix , the initial transformation translation vector Set to zero vector and preset the convergence condition threshold of the NDT algorithm ;

[0153] S512, Meshing: Divided into a series of three-dimensional voxel grids ;

[0154] S513 is calculated by formula (1) and formula (2) respectively. Contains the mean vector of the point cloud and the covariance matrix ;

[0155] (1);

[0156] (2);

[0157] In formula (1) and formula (2), yes The number of points in yes The point in is a positive number, is the identity matrix, is a small diagonal matrix, express The transpose of Numerical instabilities can be avoided;

[0158] S514, initial transformation: Use formula (3) to application and Perform the initial transformation:

[0159] (3);

[0160] In formula (3), yes Point cloud after initial transformation;

[0161] S515, iterative optimization, including:

[0162] 1) Calculate the likelihood function: For Each point in , calculated by formula (4) The likelihood probability in the Gaussian distribution model is:

[0163] (4);

[0164] 2) Constructing the cost function , expressed as formula (5), the purpose of which is to minimize the negative log-likelihood probability of all points:

[0165] (5);

[0166] In formula (5), is the transformation matrix used in the point cloud coarse registration process, N 2 express The number of midpoints, N 1 express The number of voxel grids to be divided;

[0167] 3) Gradient descent optimization method: Use gradient descent method to minimize , and iteratively updated by formula (6) :

[0168] (6);

[0169] In formula (6), is the step length, is the gradient of the cost function, m Indicates m Iterations, For the m The transformation matrix of the iteration, For the m+ Transformation matrix for 1 iteration;

[0170] S516, Convergence judgment: When Stop the iteration when , and output the final transformation matrix and the source point cloud after rough registration , as the input data for precise point cloud registration through the ICP algorithm.

[0171] Further, S52, performing point cloud precise registration by using an ICP algorithm, specifically including:

[0172] S521, initial definition: preset maximum number of iterations is , the convergence condition threshold of the ICP algorithm is , Initialize the transformation rotation matrix is the identity matrix , initialize the transformation translation vector is the zero vector;

[0173] S522, find matching points: for each point , we can find The closest point in , and the paired point set is recorded as :

[0174] (7);

[0175] In formula (7), yes The point in yes The point in It means finding the index that makes the function reach the minimum value. Here it means finding the index that makes Smallest ;

[0176] S523, estimate transformation: Calculate by formula (8) to formula (11) and The centroid of the paired point set and the point set after removing the centroid:

[0177] (8);

[0178] (9);

[0179] (10);

[0180] (11);

[0181] In formula (8) to formula (11), yes The centroid of It is the point set after removing the centroid of the source point cloud; yes The centroid of the paired point set; It is the point set after removing the centroid of the point set paired with the target point cloud; N 2 is the number of paired points, i.e. The number of midpoints; de-centroiding eliminates the translation effect of the point cloud, so that only the rotation part is considered when calculating the covariance matrix;

[0182] S524, calculate the covariance matrix using formula (12) :

[0183] (12);

[0184] In formula (12), express The transpose of

[0185] S525, through formula (13) Perform singular value decomposition:

[0186] (13);

[0187] In formula (13), , and is the matrix in the singular value decomposition process;

[0188] S526, calculate the rotation matrix using formula (14) and formula (15) respectively R and translation vector t :

[0189] (14);

[0190] (15);

[0191] S527, calculated by formula (16) R and t Updated source point cloud :

[0192] (16);

[0193] This step is to prepare for the next update iteration and to gradually optimize the alignment of the source point cloud and the target point cloud;

[0194] S528, calculate the error using formula (17) , and judge whether it converges based on the error:

[0195] (17);

[0196] If the error changes Or the number of iterations reaches the maximum number of iterations , then the ICP algorithm is determined to converge and the iteration is stopped, where, n Indicates n Iterations, and Respectively represent n The error of the iteration and the n+ The error of 1 iteration;

[0197] S529, output the rotation matrix and translation vector when the ICP algorithm converges as the final rotation matrix and the final translation vector, and determine the updated point cloud according to the final rotation matrix and the final translation vector After that, and Perform point cloud stitching to obtain a fused 3D point cloud ; Specifically, NumPy can be used in Python to stitch point clouds.

[0198] In a specific embodiment, when S5 performs 3D target detection on the fused 3D point cloud to obtain a 3D target detection image, the fused 3D point cloud can be input into an improved PointNet++ target detection network, and the improved PointNet++ target detection network outputs the 3D target detection image.

[0199] It should be noted that before S5, the improved PointNet++ object detection network needs to be trained first. The specific training steps include the following:

[0200] (1) First, obtain the historical fused 3D point cloud (obtained by fusing historically collected data) used for training the model, and use the OPTICS clustering algorithm on the historical fused 3D point cloud to effectively identify and segment different targets (such as people, machines, and other targets, etc.), providing high-quality input data for subsequent annotation and training. The main operations are as follows: Set the parameters in the OPTICS clustering algorithm, that is, set appropriate values ​​for the minimum number of samples for each cluster, the cluster distance of the cluster, and the minimum cluster size to adapt to the characteristics of the 3D point cloud in the coal mine environment. Use the OPTICS clustering algorithm to cluster the historical fused 3D point cloud and obtain the cluster label of each point. Segment the historical fused 3D point cloud according to the clustering results, assign different colors to each cluster for visualization, and save the historical fused 3D point cloud with cluster labels. Generate a clustering sequence diagram based on the core distance and reachable distance to show the dense and sparse areas of data points.

[0201] (2) Use the annotation tool SemanticSegmentation Editor to annotate the point cloud data of the dataset processed by the OPTICS clustering algorithm, and annotate the target information such as personnel and equipment. Divide the annotated dataset into a training set in a ratio of 8:2 and test set , in order to train and evaluate the improved PointNet++ target detection network.

[0202] (3) Using the training set The point set data in is used as samples and input into the improved PointNet++ target detection network for training.

[0203] like Figure 5As shown in the figure, the improved PointNet++ target detection network includes an input layer, a first SA (Set Abstraction) module (SA1), a second SA module (SA2), PointNet, a fully connected layer (Fully Connected Layer, FCL) and an output layer connected in sequence. The improved PointNet++ target detection network extracts features by two SA modules, extracts features once with PointNet and then sends them to the fully connected layer, and finally outputs the classification result by the output layer. If the SA1 module input The feature matrix, where Represents the number of points, is the dimension (the embodiment of the present invention adopts xyz coordinates, then =3), Represents characteristic dimensions such as reflectivity, speed, angle, etc. Collectively referred to as point features, the corresponding output is The feature matrix, Represents the number of points after sampling, is the dimension, is the new feature dimension. Similarly, the corresponding output of SA2 is ,in Represents the number of points after resampling, is the dimension, is the new feature dimension. Output after PointNet The eigenvector of is the new feature dimension. After passing through the fully connected layer, the output layer outputs the classification score of the target.

[0204] That is to say, the core of the improved PointNet++ target detection network in the embodiment of the present invention is the first SA module and the second SA module. Figure 6 As shown, the first SA module and the second SA module both include a sampling layer, a grouping layer, a multi-layer perceptron, an ECA module, a short link layer and a PointNet layer. The sampling layer, the grouping layer, the multi-layer perceptron, the ECA module and the PointNet layer are connected in sequence, and the short link layer is connected in parallel with the ECA module; the activation function of the multi-layer perceptron is Swish. Specifically, the improved PointNet++ target detection network of the embodiment of the present invention has the following characteristics:

[0205] 1) For each point, extract its features through Multi-Layer Perceptrons (MLPs), and replace the activation function RELU with Swish to achieve better performance during training. Figure 8 As shown;

[0206] The formula for RELU is:

[0207] ;

[0208] The formula for Swish is as follows:

[0209] ;

[0210] in, is the standard Sigmoid function, that is .

[0211] Comparing the two activation functions, it is found that Swish is smoother than RELU. When is 0, It is linear when , which may lead to gradient discontinuity in some cases, while Swish is smooth in the entire definition domain, which helps to stabilize the propagation of gradient and reduce the probability of dead neurons.

[0212] Therefore, in the embodiment of the present invention, the RELU activation function is replaced with the Swish activation function based on the original use, and the MLPs are continued to extract point cloud features.

[0213] 2) Add the ECA module to assign channel weights, emphasizing important channels and suppressing unimportant channels. For details, see Figure 7 shown.

[0214] When GAP (global average pooling) is performed, the input feature map of the ECA module is For example, X Through the GAP operation, a global eigenvector is obtained, namely Feature map of channel dimension.

[0215] One-dimensional convolution (1D Conv): According to the number of channels C Calculate the convolution kernel size ,Right now , generally selected s =5, and then perform one-dimensional convolution on the feature map after GAP to learn the correlation between channels and obtain the convolution output.

[0216] Activation function (Sigmoid): Perform Sigmoid activation on the convolution output to obtain the weight coefficient of each channel, ranging from 0 to 1. The higher the weight, the more important the channel. Represents the activation function Sigmoid.

[0217] Channel Scaling: The generated weight vector is combined with XMultiply channel by channel to get the weighted feature map .

[0218] 3) For the supplementary execution of short connection, the feature connection is performed. The specific feature connection is Figure 6 There are illustrations in the figure.

[0219] To avoid missing features when the weight value is close to 0, short links are used for feature connection. However, due to the difference between the feature sizes of the links, a convolution operation is performed first to match the size in the short link process. The specific short link process is: First, input data After a convolution layer (conv), the size and stride of the convolution kernel are set according to subsequent changes. After the convolution operation, the shape of the output data is ,in is the new feature dimension. The features after the convolution operation are retained for subsequent fusion operations. The role of short links is that it allows the features extracted from earlier layers to be used in subsequent layers, thereby retaining the feature information of earlier layers and avoiding the problem of information being gradually lost in deep networks.

[0220] In summary, the fused 3D point cloud is input into the improved PointNet++ target detection network, and the improved PointNet++ target detection network outputs a 3D target detection image, including:

[0221] S5.1, the fused 3D point cloud is converted into The feature matrix, N is the number of points in the fused 3D point cloud, d is the dimension of the point, C is the characteristic dimension;

[0222] S5.2, through the first SA module The feature matrix is ​​used for feature extraction to obtain Feature matrix;

[0223] S5.3, through the second SA module The feature matrix is ​​used for feature extraction to obtain Feature matrix;

[0224] S5.4, through PointNet The feature matrix is ​​processed as The feature vector of After integrating the feature vectors, the output layer outputs the 3D target detection image.

[0225] In a specific embodiment, the S5.2 includes:

[0226] S521, the sampling layer of the first SA module adopts the iterative farthest point sampling (FPS) method to The feature matrix is ​​sampled to obtain Feature matrix;

[0227] S522, the grouping layer uses the KNN sample generation method to select local areas near each sampling point k The nearest neighbor point is used as the representative pair The feature matrix is ​​aggregated to obtain Feature matrix;

[0228] S523, Multilayer Perceptron The feature matrix is ​​aggregated to obtain Feature matrix;

[0229] S524, ECA module assignment The channel weights of the feature matrix are obtained The weight matrix of The weight matrix and The feature matrix is ​​multiplied channel by channel to obtain a weighted feature map;

[0230] S525, short link layer pair After the feature matrix is ​​short-linked, the short-link result is added to the weighted feature map to form New feature map of

[0231] S526, PointNet layer pair The new feature map is subjected to the maximum pooling operation, and we get The feature matrix serves as the input data of the second SA module.

[0232] In another embodiment, S5 may also use the VoxelNet algorithm to implement 3D target detection on the fused 3D point cloud, which is not elaborated in detail in this embodiment of the present invention.

[0233] The 3D target detection image obtained by the above method includes the center position of each target, the position of each point, the size , classification confidence (or classification score), and classification label.

[0234] S6, performing 2D target detection on the target thermal imaging image to obtain a 2D target region of interest.

[0235] In a specific embodiment, S6 includes: performing 2D target detection on the target thermal imaging image based on a pre-trained YOLOv7 network to obtain the position and category of the 2D target region of interest.

[0236] It should be noted that the YOLOv7 network needs to be trained before S6. The training process includes:

[0237] (1) Collect thermal images of relevant work scenes and divide the collected videos into frames based on time intervals or specific events. Use labelimg software to annotate the thermal images after frame division, including marking the location and category information of targets such as personnel and cutting heads in the image, and save the annotated data in YOLO format, that is, a text file containing the category and bounding box coordinates, for subsequent model training.

[0238] (2) The labeled data set was divided into a training set (80%) and a test set (20%) by random assignment. The YOLOv7 network was selected for training. During the training process, the recognition accuracy of the model on thermal imaging data was improved by continuously adjusting parameters and using optimization algorithms such as gradient descent. Finally, the parameters with the best performance during the training process were selected as the parameters in the trained YOLOv7 network.

[0239] S7, converting the 3D target detection image into a 2D target front view.

[0240] In a specific embodiment, the S7 includes:

[0241] S71, project the 3D target detection image onto a 2D plane using formula (18) to obtain a two-dimensional plane set :

[0242] (18);

[0243] In formula (18), is the 3D point coordinate of any point in the fused 3D point cloud in the thermal imaging camera coordinate system, yes Two-dimensional pixel coordinates projected onto the image plane pixel coordinate system; and It's a thermal imaging camera Axis and The focal length along the axis, and are the principal point coordinates of the image center;

[0244] S72, according to the two-dimensional plane set Determine the minimum bounding rectangle that contains all vertices, specifically:

[0245] 1) From a two-dimensional plane set Search The maximum and minimum values ​​of the The maximum and minimum values ​​of the value; specifically,

[0246] , ;

[0247] , ;

[0248] 2) According to The maximum and minimum values ​​of the The maximum and minimum values ​​generate the bounding box of the minimum enclosing rectangle;

[0249] Specifically, the four vertices of the bounding box of the minimum enclosing rectangle are:

[0250] , ;

[0251] , ;

[0252] S73, the two-dimensional plane set The points in are displayed on the image plane, and the bounding box of the minimum circumscribed rectangle is displayed on the image plane to obtain the 2D target front view.

[0253] Specifically, The points in are displayed as scattered points on the image plane. In addition, the bounding boxes and scattered points of different categories can be distinguished by different colors and labeled with category information.

[0254] S8, fusing the 2D target front view and the 2D target region of interest to obtain a fused image and using the fused image as the target detection result.

[0255] The 2D target front view and the 2D target region of interest are both target detection results obtained after processing the original data, and both have information such as the confidence and label of the detected target. Therefore, the embodiment of the present invention adopts a decision-level fusion strategy to further fuse the two types of data. In a specific embodiment, S8 includes:

[0256] S81, assigning different weights to the 2D target front view and the 2D target region of interest.

[0257] Specifically, for the 2D target front view, since its raw data comes from two sensors, LiDAR and 4D millimeter-wave radar, it can provide more accurate spatial information and geometric shapes. Therefore, the embodiment of the present invention gives a higher weight to the 2D target front view to highlight its contribution to the target shape and position, and the weight is set to 0.7. For the 2D target region of interest, it comes from the thermal imaging image, which can provide the temperature information of the target, and then output information such as the shape and outline of the target, but compared with the point cloud data, its spatial resolution and geometric information may be lower. Therefore, the embodiment of the present invention gives the 2D target region of interest a lower weight, that is, the weight is set to 0.3.

[0258] S82, calculate the pixel weighted average value of each pixel position in the fused image by formula (19) to obtain the fused pixel value of each pixel position:

[0259] (19);

[0260] In formula (19), is the pixel position in the fused image The fused pixel value at is the pixel position in the front view of the 2D object The pixel value at is the pixel position in the 2D target region of interest The pixel value at ; is the weight of the front view of the 2D target, ranging from (0, 1);

[0261] S83, normalizing the fused pixel value at each pixel position, and constructing a fused image according to each normalized fused pixel value to obtain a target detection result.

[0262] By normalizing, it is possible to ensure that the fused pixel value is within a suitable range. Specifically, the fused pixel value can be scaled to a range of [0, 255] for visualization or subsequent processing. By constructing a fused image based on each normalized fused pixel value, the fused image combines the 2D target front view and the 2D target region of interest. The embodiment of the present invention improves the accuracy and reliability of the detection result through decision-level fusion.

[0263] It should be noted that the above content introduces the conversion of 3D target detection images into 2D target front views for fusion. However, in specific implementation, the 3D target detection images can also be converted into 2D target bird's-eye views, or a method combining the front view and the bird's-eye view can be used to enhance the detection and analysis capabilities of the target.

[0264] Furthermore, when converting the 3D target detection image into a 2D target front view for fusion, a deep neural network can also be used, that is, the 2D target front view and the 2D target region of interest are input into a deep neural network structure for fusion, etc., which is not elaborated in detail in the embodiments of the present invention.

[0265] In summary, the present invention provides a method for detecting targets on an excavation working face based on multi-sensor data fusion, which utilizes the high adaptability of laser radar, 4D millimeter-wave radar and thermal imaging camera to dark conditions and dusty and foggy environments, and respectively installs the three sensors on the top of the tunnel of the mining working face. The three-dimensional point clouds of a large number of detection targets obtained by laser radar and 4D millimeter-wave radar are used to fuse the three-dimensional point clouds to obtain the shape and motion information of the target; combined with thermal imaging technology, the thermal characteristic profile of the target can be obtained, further enhancing the discrimination and stability of target detection. Different sensors may have different responses to different types of targets, and the fusion of data can help improve the discrimination of different targets, making the characteristics of the target more obvious. The present invention still has good practicality under conditions of insufficient lighting, dust and water mist.

[0266] Furthermore, the embodiment of the present invention fuses the 2D target front view and the 2D target region of interest at the decision level, which not only provides a more comprehensive and rich target description, but also makes up for the deficiencies of various sensors by fusing multi-source data, thereby improving the accuracy and robustness of target detection and increasing adaptability to complex scenes. In particular, in the presence of occlusion, lighting changes, etc., the fusion of point cloud and thermal imaging can better capture the complete information of the target. In addition, different sensors may have different responses to different types of targets, and the fusion of data can help improve the distinction between different targets and make the characteristics of the target more obvious.

[0267] In summary, the method provided by the embodiment of the present invention has the following characteristics:

[0268] 1. Multi-source data fusion is performed using data collected by lidar, 4D millimeter-wave radar and thermal imaging cameras to obtain the shape, motion information and thermal characteristic profile of the target, which can make up for their respective shortcomings, thereby improving the accuracy and robustness of target detection, and has good practicality under conditions of insufficient lighting, dust and water mist.

[0269] 2. Use time and space alignment to ensure that the data collected by the three sensors are consistent in time and space, providing a reliable basis for subsequent data fusion.

[0270] 3. Pre-process a large number of three-dimensional point clouds collected by lidar and 4D millimeter-wave radar, remove irrelevant point cloud data through filtering methods, reduce the amount of subsequent processing data, and improve processing efficiency and accuracy.

[0271] 4. The NDT algorithm is used for coarse registration and the ICP algorithm is used for fine registration to fuse the three-dimensional point clouds collected by the lidar and 4D millimeter-wave radar, which can achieve high-precision point cloud data fusion; the improved PointNet++ target detection network is used for 3D target detection to improve the accuracy and stability of target detection.

[0272] 5. A decision-level fusion strategy is adopted to perform weighted average fusion of the 2D target front view and the 2D target region of interest, which improves the accuracy and robustness of target detection and increases adaptability to complex scenes.

[0273] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the technical principles of the present invention, and these improvements and modifications should also be regarded as within the scope of protection of the present invention.

Claims

1. A method for detecting targets on a tunneling working face based on multi-sensor data fusion, characterized in that: include: S1, after the TBM moves to the initial tunneling operation position, three sensors, namely, LiDAR, 4D millimeter-wave radar and thermal imaging camera, are installed on the top of the tunnel behind the TBM; S2, controls the LiDAR, 4D millimeter-wave radar, and thermal imaging camera for temporal and spatial alignment; S3, after the time and space are aligned, the three sensors are turned on. The laser radar and the 4D millimeter wave radar collect the first initial three-dimensional point cloud and the second initial three-dimensional point cloud respectively, and the thermal imaging camera collects the initial thermal imaging image; S4, filtering the first initial three-dimensional point cloud and the second initial three-dimensional point cloud respectively to obtain a first target three-dimensional point cloud and a second target three-dimensional point cloud; Performing image enhancement processing on the initial thermal imaging image to obtain a target thermal imaging image; S5, fusing the first target 3D point cloud and the second target 3D point cloud to obtain a fused 3D point cloud; Perform 3D target detection on the fused 3D point cloud to obtain a 3D target detection image; S6, performing 2D target detection on the target thermal imaging image to obtain a 2D target region of interest; S7, converting the 3D target detection image into a 2D target front view; S8, fusing the 2D target front view and the 2D target region of interest to obtain a fused image and using the fused image as the target detection result.

2. The method for detecting targets on a tunneling working face based on multi-sensor data fusion according to claim 1, characterized in that: The S2 includes: S21, time alignment: controlling the laser radar, 4D millimeter wave radar and thermal imaging camera to synchronize timestamps, so as to obtain a first initial three-dimensional point cloud, a second initial three-dimensional point cloud and an initial thermal imaging image collected at the same time; S22, spatial alignment: Jointly calibrate the LiDAR, 4D millimeter-wave radar, and thermal imaging camera to establish the transformation relationship between the coordinate systems of the LiDAR, 4D millimeter-wave radar, and thermal imaging camera.

3. The method for detecting targets on a tunneling working face based on multi-sensor data fusion according to claim 2, characterized in that: The S21 includes: S211, NTP server configuration: Install the NTP software Chrony on the onboard data processing terminal of the tunnel boring machine, configure the relevant files of Chrony and the upstream time source, and then start Chrony to form an NTP server; S212, sensor device connection: find the NTP configuration option in the setting interface of the laser radar, 4D millimeter wave radar and thermal imaging camera, enter the IP address of the NTP server, and connect the laser radar, 4D millimeter wave radar and thermal imaging camera to the NTP server; S213, synchronize and calibrate the clock: configure the synchronization period of the laser radar, 4D millimeter wave radar, and thermal imaging camera so that they regularly request time updates from the NTP server and calibrate their local clocks to keep them consistent with the time of the NTP server; S214, data collection and recording: start the laser radar, 4D millimeter wave radar and thermal imaging camera to collect data, and record the data collected by each sensor and its attached timestamp information.

4. The method for detecting targets on a tunneling working face based on multi-sensor data fusion according to claim 1, characterized in that: The S4 includes: S41, using Gaussian filtering to smooth the data of the first initial three-dimensional point cloud, and then applying statistical filtering to remove outliers to obtain a first target three-dimensional point cloud; S42, clustering the second initial three-dimensional point cloud using the DBSCAN algorithm, marking points outside the clusters in the clustering result as noise points, and removing the noise points to obtain a second target three-dimensional point cloud; S43, performing image enhancement processing on the initial thermal imaging image by using an adaptive histogram equalization method and a contrast enhancement method to obtain a target thermal imaging image.

5. The method for detecting targets on a tunneling working face based on multi-sensor data fusion according to claim 1, characterized in that: When S5 fuses the first target three-dimensional point cloud and the second target three-dimensional point cloud to obtain a fused three-dimensional point cloud, it includes: S51, rough registration of point cloud is performed through NDT algorithm, including: S511, initialization definition: the first target three-dimensional point cloud is used as the target point cloud for registration and recorded as , the second target 3D point cloud is taken as the source point cloud and recorded as , the rotation matrix of the initial transformation Set to the identity matrix , the initial transformation translation vector Set to zero vector and preset the convergence condition threshold of the NDT algorithm ; S512, Meshing: Divided into a series of three-dimensional voxel grids ; S513 is calculated by formula (1) and formula (2) respectively. Contains the mean vector of the point cloud and the covariance matrix ; (1); (2); In formula (1) and formula (2), yes The number of points in yes The point in is a positive number, is the identity matrix, is a small diagonal matrix, express The transpose of S514, initial transformation: Use formula (3) to application and Perform the initial transformation: (3); In formula (3), yes Point cloud after initial transformation; S515, iterative optimization, including: 1) Calculate the likelihood function: For Each point in , calculated by formula (4) The likelihood probability in the Gaussian distribution model is: (4); 2) Constructing the cost function , expressed as formula (5): (5); In formula (5), is the transformation matrix used in the point cloud coarse registration process, N 2 means The number of midpoints, N 1 means The number of voxel grids to be divided; 3) Gradient descent optimization method: Use gradient descent method to minimize , and iteratively updated by formula (6) : (6); In formula (6), is the step length, is the gradient of the cost function, m Indicates m Iterations, For the m The transformation matrix of the iteration, For the m+ Transformation matrix for 1 iteration; S516, Convergence judgment: When Stop the iteration when , and output the final transformation matrix and the source point cloud after rough registration , as input data for precise point cloud registration through the ICP algorithm; S52, precise point cloud registration is performed using the ICP algorithm, specifically including: S521, initial definition: the preset maximum number of iterations is , the convergence condition threshold of the ICP algorithm is , Initialize the transformation rotation matrix is the identity matrix , initialize the transformation translation vector is the zero vector; S522, find matching points: for each point , we can find The closest point in , and the paired point set is recorded as : (7); In formula (7), yes The point in yes The point in It means finding the index that makes the function reach the minimum value. Here it means finding the index that makes Smallest ; S523, estimate transformation: Calculate by formula (8) to formula (11) and The centroid of the paired point set and the point set after removing the centroid: (8); (9); (10); (11); In formula (8) to formula (11), yes The centroid of It is the point set after removing the centroid of the source point cloud; yes The centroid of the paired point set; It is the point set after removing the centroid of the point set paired with the target point cloud; N 2 is the number of paired points, i.e. the number of midpoints; S524, calculate the covariance matrix using formula (12) : (12); In formula (12), express The transpose of S525, through formula (13) Perform singular value decomposition: (13); In formula (13), , and is the matrix in the singular value decomposition process; S526, calculate the rotation matrix using formula (14) and formula (15) respectively R and translation vectors t : (14); (15); S527, calculated by formula (16) R and t Updated source point cloud : (16); S528, calculate the error using formula (17) , and judge whether it converges based on the error: (17); If the error changes Or the number of iterations reaches the maximum number of iterations , then the ICP algorithm is determined to converge and the iteration is stopped, where, n Indicates n Iterations, and Respectively represent n The error of the iteration and the n+ The error of 1 iteration; S529, output the rotation matrix and translation vector when the ICP algorithm converges as the final rotation matrix and the final translation vector, and determine the updated point cloud according to the final rotation matrix and the final translation vector After that, and Perform point cloud stitching to obtain a fused 3D point cloud .

6. The method for detecting targets on a tunneling working face based on multi-sensor data fusion according to claim 1 or 5, characterized in that: When performing 3D target detection on the fused 3D point cloud to obtain a 3D target detection image, S5 includes: Inputting the fused three-dimensional point cloud into an improved PointNet++ target detection network, and outputting a 3D target detection image from the improved PointNet++ target detection network; the improved PointNet++ target detection network includes an input layer, a first SA module, a second SA module, PointNet, a fully connected layer, and an output layer connected in sequence; The first SA module and the second SA module both include a sampling layer, a grouping layer, a multi-layer perceptron, an ECA module, a short link layer and a PointNet layer. The sampling layer, the grouping layer, the multi-layer perceptron, the ECA module and the PointNet layer are connected in sequence, and the short link layer is connected in parallel with the ECA module; the activation function of the multi-layer perceptron is Swish.

7. The method for detecting targets on a tunneling working face based on multi-sensor data fusion according to claim 6, characterized in that: The step of inputting the fused 3D point cloud into the improved PointNet++ target detection network, and outputting the 3D target detection image by the improved PointNet++ target detection network, includes: S5.1, the fused 3D point cloud is converted into The feature matrix, N is the number of points in the fused 3D point cloud, d is the dimension of the point, C is the characteristic dimension; S5.2, through the first SA module The feature matrix is ​​used for feature extraction to obtain Feature matrix; S5.3, through the second SA module The feature matrix is ​​used for feature extraction to obtain Feature matrix; S5.4, through PointNet The feature matrix is ​​processed as The feature vector of After integrating the feature vectors, the output layer outputs the 3D target detection image.

8. The method for detecting targets on a tunneling working face based on multi-sensor data fusion according to claim 7, characterized in that: The S5.2 includes: S521, the sampling layer of the first SA module adopts the method of iterative farthest point sampling to The feature matrix is ​​sampled to obtain Feature matrix; S522, the grouping layer uses the KNN sample generation method to select local areas near each sampling point k The nearest neighbor point is used as the representative pair The feature matrix is ​​aggregated to obtain Feature matrix; S523, Multilayer Perceptron The feature matrix is ​​aggregated to obtain Feature matrix; S524, ECA module assignment The channel weights of the feature matrix are obtained The weight matrix of The weight matrix and The feature matrix is ​​multiplied channel by channel to obtain a weighted feature map; S525, short link layer pair After the feature matrix is ​​short-linked, the short-link result is added to the weighted feature map to form New feature map of S526, PointNet layer pair The new feature map is subjected to the maximum pooling operation, and we get Feature matrix.

9. The method for detecting targets on a tunneling working face based on multi-sensor data fusion according to claim 1, characterized in that: The S7 includes: S71, project the 3D target detection image onto a 2D plane using formula (18) to obtain a two-dimensional plane set : (18); In formula (18), is the 3D point coordinate of any point in the fused 3D point cloud in the thermal imaging camera coordinate system, yes Two-dimensional pixel coordinates projected onto the image plane pixel coordinate system; and It's a thermal imaging camera Axis and The focal length in the axial direction, and are the principal point coordinates of the image center; S72, according to the two-dimensional plane set Determine the minimum bounding rectangle that contains all vertices, specifically: 1) From a two-dimensional plane set Search The maximum and minimum values ​​of the Maximum and minimum values; 2) According to The maximum and minimum values ​​of the The maximum and minimum values ​​generate the bounding box of the minimum enclosing rectangle; S73, the two-dimensional plane set The points in are displayed on the image plane, and the bounding box of the minimum circumscribed rectangle is displayed on the image plane to obtain the 2D target front view.

10. The method for detecting targets on a tunneling working face based on multi-sensor data fusion according to claim 1, characterized in that: The S8 includes: S81, assigning different weights to the 2D target front view and the 2D target region of interest; S82, calculate the pixel weighted average value of each pixel position in the fused image by formula (19) to obtain the fused pixel value of each pixel position: (19); In formula (19), is the pixel position in the fused image The fused pixel value at is the pixel position in the front view of the 2D object The pixel value at is the pixel position in the 2D target region of interest The pixel value at ; is the weight of the front view of the 2D target, ranging from (0, 1); S83, normalizing the fused pixel value at each pixel position, and constructing a fused image according to each normalized fused pixel value to obtain a target detection result.