A self-supervised learning mileage measurement method, device, system and storage medium
Through the self-supervised learning method and improved convolutional neural network, combined with the L2 regularization term, the high cost and low energy efficiency problems of mileage measurement solutions in the existing technology are solved, and efficient mileage measurement under low power consumption conditions is achieved. , suitable for scenarios where it is difficult to obtain accurate true values.
Patent Information
- Application Number
- CN202311625177.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-11-30
AI Technical Summary
The existing mileage measurement solution based on neural networks requires a large amount of labeled data, which increases the implementation cost, and lags behind biological neural networks in terms of energy efficiency and online learning capabilities. Especially under low-power consumption trends, it is difficult to reduce the calculation and performance of neural networks. cost.
Using a self-supervised learning method, through an improved convolutional neural network and a multi-layer perceptron network, 3D point cloud data is used for self-supervised learning to obtain translation increments and rotation changes, combined with dilated convolution and L2 regularization terms, Build data sets that don’t require manual annotation, reduce energy consumption and improve robustness.
It can reduce energy consumption and improve the robustness and fault tolerance of mileage measurement without the need for expensive professional systems to collect data and manual annotation. It is suitable for application scenarios where it is difficult to obtain a large number of accurate true values, and reduces network calculation and Communication load.
Smart Images

Figure CN117635967B
Abstract
Description
Technical Field
[0001] The present invention relates to a self-supervised learning mileage measurement method, device, system and storage medium, belonging to the technical field of mileage measurement. Background Art
[0002] Simultaneous Localization and Mapping (SLAM) is one of the key core technologies of mobile autonomous systems, especially the odometer is indispensable.
[0003] In recent years, artificial neural networks (ANN) and deep neural networks (ANN) have played an increasingly important role in the fields of mobile autonomous systems, such as self-driving cars, drones, collaborative robots, etc., among which SLAM solutions based on neural networks are also increasing.
[0004] Existing mileage measurement solutions based on neural networks require a large amount of data to be labeled, which increases the implementation cost of the solution. In particular, it is difficult to obtain the high-precision posture of the robot in space. If an expensive professional mapping system is built, the implementation cost of the solution will increase. In addition, although ANN and DNN are inspired by the brain, they still lag behind biological neural networks in energy efficiency and online learning capabilities. Driven by the trend of low power consumption, it is particularly important to reduce the computing cost and energy consumption cost of neural networks.
[0005] Existing solutions to reduce the power consumption of neural networks can be divided into two categories: (1) solutions based on ANN and DNN, such as quantization, pruning, and knowledge distillation; (2) neuromorphic computing solutions based on neuromorphic hardware design. Compared with the first category of solutions, neuromorphic computing solutions have demonstrated unprecedented energy efficiency. Currently, there is no mileage measurement method based on neuromorphic computing solutions. Summary of the invention
[0006] The purpose of the present invention is to provide a self-supervised learning odometer method, device, system and storage medium, which do not require manual labeling of data sets, are suitable for application scenarios where it is difficult to obtain a large number of accurate true values, and can reduce energy consumption.
[0007] In order to achieve the above object, the present invention provides the following technical solutions:
[0008] In a first aspect, the present invention provides a self-supervised learning mileage measurement method, comprising:
[0009] Inputting the pre-acquired 2D image data of the metrology target into the trained self-supervised learning network to obtain the translation increment and rotation change of the metrology target;
[0010] Integrate the translation increment and rotation change of the measurement target to obtain the mileage of the measurement target;
[0011] The 2D image data of the metrology target is obtained by preprocessing the pre-acquired 3D point cloud data of the metrology target;
[0012] The self-supervised learning network includes:
[0013] Improved convolutional neural network: used to extract features from 2D image data of the measurement target and obtain feature vectors;
[0014] MLP network: used to obtain the translation increment and rotation change of the measurement target according to the feature vector;
[0015] The self-supervised learning network constructs different data sets for training according to the training stage it is in.
[0016] In combination with the first aspect, further, preprocessing the pre-acquired 3D point cloud data of the metrology target includes:
[0017] Remove outliers from the 3D point cloud data to obtain the 3D point cloud data without outliers;
[0018] Normalizing the 3D point cloud data with outliers removed to obtain normalized 3D point cloud data;
[0019] Map the normalized 3D point cloud data into a 4-channel 2D image;
[0020] Integrate two consecutive frames of four-channel 2D images into an eight-channel 2D image in a time sequence to obtain 2D image data of the measurement target;
[0021] Among them, the 3D point cloud data of the measurement target is acquired through 3D laser radar.
[0022] In combination with the first aspect, further, the pre-acquired convolutional neural network is improved, and the improved convolutional neural network is obtained, including:
[0023] Using dilated convolution to replace downsampling in the convolutional neural network to obtain an improved convolutional neural network;
[0024] Among them, the improved convolutional neural network uses a cyclic filling method to fill the 2D image data with a field of view angle of 2π in the width direction.
[0025] In combination with the first aspect, further, the MLP network includes a subnetwork for regressing translation increments and a subnetwork for regressing rotation changes;
[0026] The regressed translation increment is represented by a three-dimensional vector satisfying the right-hand rule, and the translation increment is obtained;
[0027] The regressed rotational variation is represented by a quaternion and normalized to obtain the rotational variation.
[0028] In combination with the first aspect, further, the last layer of the improved convolutional neural network is connected to the first layer of the MLP network in a fully connected manner.
[0029] In combination with the first aspect, further, training the self-supervised learning network includes:
[0030] Determining the training stage of the self-supervised learning network;
[0031] constructing different data sets using a pre-acquired data set construction method according to the training stage of the self-supervised learning network;
[0032] In each training stage of the self-supervised learning network, the self-supervised learning network is trained using a data set corresponding to each training stage until the loss function converges, thereby obtaining a trained self-supervised learning network;
[0033] Among them, the pre-acquired dataset construction methods include the LOAM method, the LIO-SAM method and the FAST-LIO method.
[0034] In combination with the first aspect, further, determining the training stage of the self-supervised learning network includes:
[0035] like
[0036]
[0037] or
[0038] It is determined that the self-supervised learning network is in the initial stage;
[0039] like
[0040]
[0041] and
[0042] It is determined that the self-supervised learning network is in the accuracy optimization stage;
[0043] like
[0044] and It is determined that the self-supervised learning network enters the next accuracy optimization stage;
[0045] Where (i, j) is a pair of subscripts of two frames separated by a fixed distance, F is a set of subscripts of two frames separated by a fixed distance, length(i, j) is the distance between (i, j), Rot(·) and Trans(·) are functions for calculating the rotation change and translation increment, is an operator for computing the relative pose transformation between two frames, is the point cloud pose of the jth and ith frames output by the self-supervised learning network, The jth and ith frame point cloud poses output by the backend optimization module of the dataset construction method, The jth and ith frame point cloud poses output by the front-end optimization module of the dataset construction method, In the accuracy optimization stage, the self-supervised learning network uses the preset weight w0 to output the point cloud pose of the jth and ith frames.
[0046] In combination with the first aspect, further, according to the training stage of the self-supervised learning network, constructing different data sets using the pre-acquired data set construction method includes:
[0047] In the initial stage of the self-supervised learning network, the point cloud feature extraction module, the front-end optimization module and the back-end optimization module of the pre-acquired data set construction method are used to obtain the translation increment and rotation change of the current frame 3D point cloud data output by the front-end optimization module and the back-end optimization module relative to the previous frame 3D point cloud data, and construct the data set corresponding to the initial stage as follows:
[0048]
[0049] Among them, P k is the k-th frame 3D point cloud data, The kth frame 3D point cloud data P output by the front-end optimization module of the dataset construction method k Relative to the k-1th frame 3D point cloud data P k-1 The translation increment and rotation change of The k-th frame 3D point cloud data P output by the back-end optimization module of the dataset construction method k Relative to the k-1th frame 3D point cloud data P k-1 The translation increment and rotation change of
[0050] In each precision optimization stage of the self-supervised learning network, the point cloud feature extraction module and the backend optimization module of the pre-acquired dataset construction method are used, and the output of the self-supervised learning network in the previous training stage is used as the input of the backend optimization module in this training stage, and the dataset corresponding to this precision optimization stage is constructed as follows:
[0051]
[0052] in, is the kth frame 3D point cloud data P output by the self-supervised learning network in the previous training stage k Relative to the k-1th frame 3D point cloud data P k-1 The translation increment and rotation change.
[0053] In combination with the first aspect, further, the loss function is:
[0054]
[0055] Among them, l is the loss value of the self-supervised learning network, The k-th frame 3D point cloud data P output by the self-supervised learning network k Relative to the k-1th frame 3D point cloud data P k-1 The translation increment and rotation change of The k-th frame 3D point cloud data P output by the back-end optimization module of the dataset construction method k Relative to the k-1th frame 3D point cloud data P k-1 The translation increment and rotation change, w τ is the τth weight of the self-supervised learning network, N bs is the batch size of the self-supervised learning network, N p is the total number of weights of the self-supervised learning network, λ1 is the first loss coefficient, and λ2 is the second loss coefficient.
[0056] In combination with the first aspect, further, it also includes: converting the trained self-supervised learning network into a spiking neural network and deploying it to a neuromorphic hardware device, wherein the neuromorphic hardware device is a chip architecture based on spiking neurons, low-precision synapses and a scalable communication network.
[0057] In a second aspect, the present invention provides a self-supervised learning odometer device, comprising:
[0058] Translation increment and rotation change acquisition module: used to input the pre-acquired 2D image data of the measurement target into the trained self-supervised learning network to obtain the translation increment and rotation change of the measurement target;
[0059] Integration module: used to integrate the translation increment and rotation change of the measurement target to obtain the mileage of the measurement target;
[0060] The 2D image data of the metrology target is obtained by preprocessing the pre-acquired 3D point cloud data of the metrology target;
[0061] The self-supervised learning network includes:
[0062] Improved convolutional neural network: used to extract features from 2D image data of the measurement target and obtain feature vectors;
[0063] MLP network: used to obtain the translation increment and rotation change of the measurement target according to the feature vector;
[0064] The self-supervised learning network constructs different data sets for training according to the training stage it is in.
[0065] In a third aspect, the present invention provides a self-supervised learning odometer system, including a processor and a storage medium;
[0066] The storage medium is used to store instructions;
[0067] The processor is used to operate according to the instructions to execute the steps of the method according to any one of the first aspects.
[0068] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0069] Compared with the prior art, the present invention has the following beneficial effects:
[0070] The self-supervised learning odometer measurement method provided by the present invention does not require the use of expensive professional systems to collect data, nor does it require manual labeling of data sets, and is suitable for application scenarios where it is difficult to obtain a large number of accurate true values.
[0071] The self-supervised learning mileage measurement method provided by the present invention utilizes an improved convolutional neural network to extract complex features from point clouds, and the information storage is distributed on the connection weights of the entire network. If a few neurons are damaged or disconnected, the system performance will only be slightly reduced, so it has strong robustness and fault tolerance. The improved convolutional neural network uses dilated convolution instead of downsampling, because laser radar imaging is sparse compared to cameras, and the downsampling operation will lose detail information. If the downsampling operation is not used, the receptive field of the original image corresponding to the obtained feature map will become smaller. Dilated convolution can increase the receptive field of the feature map corresponding to the original image without losing detail information. The larger the receptive field of the original image corresponding to the feature map, the more complex the description of the local features.
[0072] The self-supervised learning odometer measurement method provided by the present invention introduces an L2 regularization term in the loss calculation, which can suppress the complexity of the network and make the network pay more attention to the main features of the data rather than noise or unimportant details during the training process. It can effectively prevent the network from overfitting and has higher robustness to abnormal points or outliers.
[0073] The self-supervised learning mileage measurement method provided by the present invention introduces an L2 regularization term in the loss calculation, so all elements of the weight vector in the self-supervised learning network tend to be close to zero, which will reduce the number of pulses in the pulse neural network. The fewer the number of pulses, the lower the communication load and the less the calculation amount, thereby reducing energy consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 is a flow chart of a self-supervised learning mileage measurement method provided by an embodiment of the present invention;
[0075] Figure 2 is a schematic diagram of the self-supervised learning network structure provided by an embodiment of the present invention;
[0076] Figure 3 It is a flow chart of a method for constructing a data set provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0077] The technical solution of the present application is further described in detail below in conjunction with specific implementation methods.
[0078] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and should not be construed as limitations on the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments may be combined with each other.
[0079] Embodiment 1:
[0080] Figure 1 is a flow chart of a self-supervised learning mileage measurement method provided in this embodiment. This flow chart only shows the logical sequence of the method in this embodiment. Different methods can be used without conflict. Figure 1 The steps shown or described are accomplished in the order shown.
[0081] The self-supervised learning mileage measurement method provided in this embodiment can be applied to a terminal and can be executed by a self-supervised learning mileage measurement device. The device can be implemented by software and / or hardware. The device can be integrated in a terminal, for example: any tablet computer or computer device with communication function.
[0082] See also Figure 1 The self-supervised learning mileage measurement method of this embodiment specifically includes the following steps:
[0083] Step 1: Input the pre-acquired 2D image data of the measurement target into the trained self-supervised learning network to obtain the translation increment and rotation change of the measurement target;
[0084] In this embodiment, the 2D image data of the measurement target is obtained by pre-processing the pre-acquired 3D point cloud data of the measurement target, and the 3D point cloud data of the measurement target is acquired by 3D laser radar collection.
[0085] like Figure 2 As shown, preprocessing the pre-acquired 3D point cloud data of the measurement target specifically includes the following steps:
[0086] Step ①: Remove outliers from the 3D point cloud data to obtain the 3D point cloud data after removing outliers;
[0087] In this embodiment, outliers with smaller distance values in the 3D point cloud data are removed to avoid the influence of the measurement target body on the data. The threshold of the distance value is set to 0.3m, and data with a distance value less than 0.3m is regarded as outliers and removed to obtain 3D point cloud data without outliers.
[0088] Figure 2 In, P k-1 , P k is the k-1th and kth consecutive frames of 3D point cloud data, P′ k-1 , P′ k Remove outliers from the 3D point cloud data of consecutive k-1 and k frames.
[0089] Step ②: normalize the 3D point cloud data after removing outliers to obtain normalized 3D point cloud data;
[0090] In this embodiment, two consecutive frames of 3D point cloud data are needed. In order to make the two consecutive frames of 3D point cloud data have a uniform numerical scale and avoid instability of the neural network caused by excessive numerical differences between different features, the two consecutive frames of 3D point cloud data with outliers removed are normalized to obtain normalized 3D point cloud data.
[0091] The normalization process is:
[0092]
[0093] Among them, Np′ k,i Normalize the 3D point cloud data NP′ for the kth frame kThe i-th point cloud in Np′ k-1,j Normalize the 3D point cloud data NP′ for the k-1th frame k-1 The jth point cloud, p′ k,i Remove outliers from the 3D point cloud data P′ for the kth frame k The i-th point cloud, p′ k-1,j Remove outliers from the 3D point cloud data P′ for the k-1th frame k-1 The jth point cloud in the kth frame, N is the 3D point cloud data P′ without outliers in the kth frame k The number of point clouds, M is the 3D point cloud data P′ of the k-1th frame without outliers k-1 The number of point clouds.
[0094] Figure 2 In NP′ k-1 NP′ k Normalize 3D point cloud data for consecutive k-1, k frames.
[0095] Step ③: Map the normalized 3D point cloud data into a 4-channel 2D image;
[0096] In this embodiment, mature image processing technology is used to reduce the amount of calculation and memory consumption, and the normalized 3D point cloud data is mapped into a 4-channel 2D image.
[0097] The mapping formula is:
[0098]
[0099] Among them, u and v are the horizontal and vertical coordinates of the pixel point in the 4-channel 2D image. The 4 channels of each pixel point are the coordinates of the point cloud corresponding to the pixel point and the reflection intensity of the pixel point. The upper left corner of the 4-channel 2D image is the origin of the coordinates, and p x 、p y 、p z are the x-axis, y-axis, and z-axis coordinates of the point cloud in the normalized 3D point cloud data, d is the modulus of the projection of the space vector corresponding to the point cloud in the normalized 3D point cloud data on the xoy plane, f h 、f v is the horizontal field of view and vertical field of view of the 4-channel 2D image, f v =f vu +f vl , f vu f v The part above the horizontal plane, f vl f v The part below the horizontal plane, δ h ,δ v The horizontal and vertical resolution of a 4-channel 2D image.
[0100] Figure 2 In, Img k-1 , Img k It is a 2D image of 4 channels of the consecutive k-1 and k-th frames.
[0101] In this embodiment, the 3D laser radar adopts a 16-line mechanical laser radar with a horizontal angular resolution of 0.2°, collects 3D point cloud data for a week, and obtains a 1800×16 2D image through mapping.
[0102] Step ④: Integrate the continuous 2-frame 4-channel 2D images into an 8-channel 2D image in time sequence to obtain the 2D image data of the measurement target.
[0103] In this embodiment, two consecutive frames of four-channel 2D images are integrated into an eight-channel 2D image in time sequence and input into the improved convolutional neural network to obtain a vector RN with a dimension of 1×1000. out .
[0104] In this embodiment, Figure 2 As shown, the self-supervised learning network includes:
[0105] Improved convolutional neural network: used to extract features from 2D image data of the measurement target and obtain feature vectors;
[0106] MLP network: used to obtain the translation increment and rotation change of the measurement target according to the feature vector;
[0107] Among them, the last layer of the improved convolutional neural network is connected to the first layer of the MLP network in a fully connected manner.
[0108] In this embodiment, the pre-acquired convolutional neural network is improved, and obtaining the improved convolutional neural network includes: replacing the downsampling in the convolutional neural network with dilated convolution to obtain the improved convolutional neural network. Because lidar imaging is sparse compared to cameras, the downsampling operation will lose detail information. If the downsampling operation is not used, the receptive field of the original image corresponding to the obtained feature map will become smaller, affecting the expression of local features by the neural network. Therefore, dilated convolution is used to replace part of the downsampling operation in the original convolutional neural network. The improved convolutional neural network uses a cyclic filling method to fill the 2D image data with a field of view angle of 2π in the width direction. Because in the width direction of the image, the data corresponding to the left and right boundaries are continuous in space, so the corresponding neurons should also have spatial continuity. The structure and parameters of the improved convolutional neural network are shown in Table 1.
[0109] Table 1 Structure and parameters of the improved convolutional neural network
[0110]
[0111]
[0112] In Table 1, H and W represent the height and width of the output image, s represents the convolution step, for example, s(1,2) represents the convolution step of 1 in the image height direction and 2 in the image width direction, p represents the image padding size, for example, p(2,2) represents the padding size of 2 in the image height direction and 2 in the image width direction, d represents the expansion convolution coefficient, for example, d(4,4) represents the expansion convolution coefficient of 4 in the image height direction and 4 in the image width direction, maxpool represents maximum pooling, average pool represents average pooling, and 1000-d represents the dimension of the network layer is 1×1000.
[0113] In this embodiment, Figure 2 As shown, the MLP network includes a subnetwork 256-256-256-3 for regressing translation increments and a subnetwork 256-256-256-4 for regressing rotation changes. The regressed translation increments are represented by three-dimensional vectors that satisfy the right-hand rule to obtain the translation increments; the regressed rotation changes are represented by quaternions and normalized to obtain the rotation changes.
[0114] In this embodiment, the self-supervised learning network constructs different data sets for training according to the training stage it is in.
[0115] Training a self-supervised learning network specifically includes the following steps:
[0116] Step 1: Determine the training stage of the self-supervised learning network;
[0117] In this embodiment, determining the training stage of the self-supervised learning network specifically includes the following steps:
[0118] R1: If or It is determined that the self-supervised learning network is in the initial stage;
[0119] R2: If and It is determined that the self-supervised learning network is in the stage of precision optimization;
[0120] R3: If and It is determined that the self-supervised learning network enters the next accuracy optimization stage;
[0121] Where (i, j) is a pair of subscripts of two frames separated by a fixed distance, F is a set of subscripts of two frames separated by a fixed distance, length(i, j) is the distance between (i, j), Rot(·) and Trans(·) are functions for calculating the rotation change and translation increment, is an operator for computing the relative pose transformation between two frames, is the point cloud pose of the jth and ith frames output by the self-supervised learning network, The jth and ith frame point cloud poses output by the backend optimization module of the dataset construction method, The jth and ith frame point cloud poses output by the front-end optimization module of the dataset construction method, In the accuracy optimization stage, the self-supervised learning network uses the preset weight w0 to output the point cloud pose of the jth and ith frames.
[0122] Step 2: construct different datasets using the pre-acquired dataset construction method according to the training stage of the self-supervised learning network;
[0123] In this embodiment, the pre-acquired data set construction method includes classic 3D laser radar odometer methods such as LOAM method, LIO-SAM method, FAST-LIO method and their variants and combinations. Such methods have the advantages of robustness and high precision, and also have a significant feature, that is, the accuracy of the output odometer depends on the accuracy of the initial odometer, which is an important prerequisite for the self-supervised learning odometer measurement method provided in this embodiment to continuously optimize the training accuracy. Therefore, any odometer method that meets such characteristics and has ideal positioning accuracy can be used to produce the data set required by this embodiment.
[0124] In this embodiment, Figure 3 As shown, according to the training stage of the self-supervised learning network, constructing different data sets using the pre-acquired data set construction method specifically includes the following steps:
[0125] Step (1): In the initial stage of the self-supervised learning network, the point cloud feature extraction module, the front-end optimization module and the back-end optimization module of the pre-acquired data set construction method are used to obtain the translation increment and rotation change of the current frame 3D point cloud data output by the front-end optimization module and the back-end optimization module relative to the previous frame 3D point cloud data, and construct the data set corresponding to the initial stage as follows:
[0126]
[0127] Among them, P k is the k-th frame 3D point cloud data, The kth frame 3D point cloud data P output by the front-end optimization module of the dataset construction method k Relative to the k-1th frame 3D point cloud data P k-1 The translation increment and rotation change of The k-th frame 3D point cloud data P output by the back-end optimization module of the dataset construction method k Relative to the k-1th frame 3D point cloud data P k-1 When k=1, for the first frame of 3D point cloud data P1, the translation increments output by the front-end optimization module and the back-end optimization module are both zero vectors, and the imaginary parts of the rotation changes output are both zero;
[0128] Step (2): In each precision optimization stage of the self-supervised learning network, the point cloud feature extraction module and the backend optimization module of the pre-acquired dataset construction method are used to take the output of the self-supervised learning network in the previous training stage as the input of the backend optimization module in this training stage, and the dataset corresponding to this precision optimization stage is constructed as follows:
[0129]
[0130] in, is the kth frame 3D point cloud data P output by the self-supervised learning network in the previous training stage k Relative to the k-1th frame 3D point cloud data P k-1 The translation increment and rotation change.
[0131] Step 3: In each training stage of the self-supervised learning network, the self-supervised learning network is trained using the data set corresponding to each training stage until the loss function converges, thereby obtaining a trained self-supervised learning network.
[0132] In this embodiment, the loss function is:
[0133]
[0134] Among them, l is the loss value of the self-supervised learning network, The k-th frame 3D point cloud data P output by the self-supervised learning network k Relative to the k-1th frame 3D point cloud data P k-1 The translation increment and rotation change of The k-th frame 3D point cloud data P output by the back-end optimization module of the dataset construction method k Relative to the k-1th frame 3D point cloud data P k-1The translation increment and rotation change, w τ is the τth weight of the self-supervised learning network, N bs is the batch size of the self-supervised learning network, N p is the total weight of the self-supervised learning network, λ1 is the first loss coefficient, λ1=100.0, λ2 is the second loss coefficient, λ2=10 -7 .
[0135] It can prevent overfitting. By adding the L2 regularization term, the network complexity can be suppressed, so that the network can pay more attention to the main features of the data during training, rather than noise or unimportant details, effectively preventing the network from overfitting. It can also reduce the communication load of hardware devices, reduce the amount of calculation, and reduce energy consumption.
[0136] Step 2: Integrate the translation increment and rotation change of the measurement target to obtain the mileage of the measurement target.
[0137] In this embodiment, the translation increment and rotation change of the current frame of the measurement target relative to the previous frame are integrated respectively to obtain the mileage of the current frame of the measurement target relative to the previous frame.
[0138] In this embodiment, the trained self-supervised learning network is converted into a spiking neural network and deployed to a neuromorphic hardware device, which is a chip architecture based on spiking neurons, low-precision synapses, and scalable communication networks. In a spiking neural network, data is encoded as a pulse sequence, in which an action potential is 1, otherwise it is 0, which also gives the calculation in the spiking neural network an event-driven characteristic. Because pulse coding is sparse, spiking neural networks have the characteristics of low energy consumption compared to other neural networks. The L2 regularization term tends to make all elements in the weight vector close to zero, which will reduce the number of pulses in the spiking neural network. Because the communication data in neuromorphic hardware is a pulse sequence, the fewer the number of pulses, the lower the communication load.
[0139] The self-supervised learning odometer method provided in this embodiment is used for the robot to estimate its own six degrees of freedom (6-DoF) posture using airborne 3D lidar data in the absence of an external posture estimation system, such as a global positioning system (GPS) or a motion capture system. It does not require the use of expensive professional systems to collect data, nor does it require manual annotation of data sets, and is suitable for application scenarios where it is difficult to obtain a large number of accurate true values. In addition, the self-supervised learning odometer method provided in this embodiment is applicable to a wide range of environments and does not require adjustment of network models or loss functions. Compared with some existing odometer solutions based on neural networks, it has the advantages of higher robustness to abnormal points / outliers, better odometer accuracy, and lower energy consumption.
[0140] Embodiment 2:
[0141] This embodiment provides a self-supervised learning mileage measurement device, including:
[0142] Translation increment and rotation change acquisition module: used to input the pre-acquired 2D image data of the measurement target into the trained self-supervised learning network to obtain the translation increment and rotation change of the measurement target;
[0143] Integration module: used to integrate the translation increment and rotation change of the measurement target to obtain the mileage of the measurement target;
[0144] The 2D image data of the metrology target is obtained by preprocessing the pre-acquired 3D point cloud data of the metrology target;
[0145] Self-supervised learning networks include:
[0146] Improved convolutional neural network: used to extract features from 2D image data of the measurement target and obtain feature vectors;
[0147] MLP network: used to obtain the translation increment and rotation change of the measurement target according to the feature vector;
[0148] The self-supervised learning network is trained by constructing different data sets according to the training stage it is in.
[0149] The self-supervised learning mileage measurement device provided in this embodiment can execute the self-supervised learning mileage measurement method provided in Example 1, and has the corresponding functional modules and beneficial effects of the execution method.
[0150] Embodiment 3:
[0151] This embodiment provides a self-supervised learning mileage measurement system, including a processor and a storage medium;
[0152] The storage medium is used to store instructions;
[0153] The processor is used to operate according to the instructions to execute the steps of the method in Example 1.
[0154] Embodiment 4:
[0155] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the method in Embodiment 1 are implemented.
[0156] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0157] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0158] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0159] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0160] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A self-supervised learning mileage measurement method, characterized in that: include: Inputting the pre-acquired 2D image data of the metrology target into the trained self-supervised learning network to obtain the translation increment and rotation change of the metrology target; Integrate the translation increment and rotation change of the measurement target to obtain the mileage of the measurement target; The 2D image data of the metrology target is obtained by preprocessing the pre-acquired 3D point cloud data of the metrology target; The self-supervised learning network includes: Improved convolutional neural network: used to extract features from 2D image data of the measurement target and obtain feature vectors; MLP network: used to obtain the translation increment and rotation change of the measurement target according to the feature vector; The self-supervised learning network constructs different data sets for training according to the training stage it is in; Preprocessing the pre-acquired 3D point cloud data of the metrology target includes: Remove outliers from the 3D point cloud data to obtain the 3D point cloud data without outliers; Normalizing the 3D point cloud data with outliers removed to obtain normalized 3D point cloud data; Map the normalized 3D point cloud data into a 4-channel 2D image; Integrate two consecutive frames of four-channel 2D images into an eight-channel 2D image in a time sequence to obtain 2D image data of the measurement target; Training the self-supervised learning network includes: Determining the training stage of the self-supervised learning network; constructing different data sets using a pre-acquired data set construction method according to the training stage of the self-supervised learning network; In each training stage of the self-supervised learning network, the self-supervised learning network is trained using a data set corresponding to each training stage until the loss function converges, thereby obtaining a trained self-supervised learning network; Among them, the pre-acquired dataset construction methods include the LOAM method, the LIO-SAM method, and the FAST-LIO method; Determining the training stage of the self-supervised learning network includes: like or , it is determined that the self-supervised learning network is in the initial stage; like and , it is determined that the self-supervised learning network is in the accuracy optimization stage; like and , it is determined that the self-supervised learning network enters the next accuracy optimization stage; in, is a pair of indexes of two frames separated by a fixed distance, is the set of two frame index pairs separated by a fixed distance, for The distance between , is a function for calculating the rotation change and translation increment. is an operator for computing the relative pose transformation between two frames, , is the output of the self-supervised learning network. , Frame point cloud pose, , The output of the backend optimization module of the dataset construction method , Frame point cloud pose, , The output of the front-end optimization module of the dataset construction method , Frame point cloud pose, , Use preset weights for the self-supervised learning network in the accuracy optimization phase Output , Frame point cloud pose; According to the training stage of the self-supervised learning network, different data sets are constructed using the pre-acquired data set construction method, including: In the initial stage of the self-supervised learning network, the point cloud feature extraction module, the front-end optimization module and the back-end optimization module of the pre-acquired data set construction method are used to obtain the translation increment and rotation change of the current frame 3D point cloud data output by the front-end optimization module and the back-end optimization module relative to the previous frame 3D point cloud data, and construct the data set corresponding to the initial stage as follows: ; in, For the Frame 3D point cloud data, , The output of the front-end optimization module of the dataset construction method Frame 3D point cloud data Relative to the Frame 3D point cloud data The translation increment and rotation change of , The output of the backend optimization module of the dataset construction method Frame 3D point cloud data Relative to the Frame 3D point cloud data The translation increment and rotation change of In each precision optimization stage of the self-supervised learning network, the point cloud feature extraction module and the backend optimization module of the pre-acquired dataset construction method are used, and the output of the self-supervised learning network in the previous training stage is used as the input of the backend optimization module in this training stage, and the dataset corresponding to this precision optimization stage is constructed as follows: ; in, , is the output of the self-supervised learning network in the previous training phase. Frame 3D point cloud data Relative to the Frame 3D point cloud data The translation increment and rotation change.
2. The self-supervised learning mileage measurement method according to claim 1, characterized in that: The 3D point cloud data of the measurement target is acquired through 3D laser radar.
3. The self-supervised learning mileage measurement method according to claim 1, characterized in that: The pre-acquired convolutional neural network is improved, and the improved convolutional neural network includes: Using dilated convolution to replace downsampling in the convolutional neural network to obtain an improved convolutional neural network; Among them, the improved convolutional neural network uses a cyclic filling method to fill the 2D image data with a field of view angle of 2π in the width direction.
4. The self-supervised learning mileage measurement method according to claim 1, characterized in that: The MLP network includes a subnetwork for regressing translation increments and a subnetwork for regressing rotation changes; The regressed translation increment is represented by a three-dimensional vector satisfying the right-hand rule, and the translation increment is obtained; The regressed rotational variation is represented by a quaternion and normalized to obtain the rotational variation.
5. The self-supervised learning mileage measurement method according to claim 1, characterized in that: The last layer of the improved convolutional neural network is connected to the first layer of the MLP network in a fully connected manner.
6. The self-supervised learning mileage measurement method according to claim 1, characterized in that: The loss function is: ; in, is the loss value of the self-supervised learning network, , is the output of the self-supervised learning network. Frame 3D point cloud data Relative to the Frame 3D point cloud data The translation increment and rotation change of , The output of the backend optimization module of the dataset construction method Frame 3D point cloud data Relative to the Frame 3D point cloud data The translation increment and rotation change of For the self-supervised learning network weights, is the batch size of the self-supervised learning network, is the total number of weights of the self-supervised learning network, is the first loss coefficient, is the second loss coefficient.
7. The self-supervised learning mileage measurement method according to claim 1, characterized in that: Also includes: The trained self-supervised learning network is converted into a spiking neural network and deployed to a neuromorphic hardware device, which is a chip architecture based on spiking neurons, low-precision synapses, and a scalable communication network.
Citation Information
Patent Citations
Feature matching method based on attention map neural network
CN112861988A
Deep privileged visual odometer method based on cross-modal knowledge distillation
CN114743105A
SAR (Synthetic Aperture Radar) image urban road extraction method and system and storage medium
CN114792397A
Road maintenance decision-making method and system, storage medium and electronic equipment
CN114912635A
A laser SLAM system and method for use in dynamic environments
CN114937083A
