A method for scene structure prediction, object detection and lane-level positioning

Combining lane maps and image information through multi-task neural networks solves the problems of low GPS positioning accuracy and high sensor costs, and achieves lane-level precise positioning and target detection, which is suitable for multi-task perception of autonomous driving.

CN114067142BActive Publication Date: 2024-09-24CHONGQING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111403259.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2024-09-24
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

Existing GPS positioning accuracy is not high and cannot be accurately positioned in tunnels or poor signal scenarios, and traditional environment sensing sensors are costly.

Method used

Construct a multi-task neural network, combine lane map and image information, correct GPS positioning offset through scene structure prediction and target detection, and achieve lane-level precise positioning, which is suitable for monocular visual environment perception.

Benefits of technology

It achieves lane-level precise positioning in various scenarios, reduces sensor costs, reduces the need for manual annotation of data sets, and improves the prospects for autonomous driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114067142B
    Figure CN114067142B
Patent Text Reader

Abstract

The present invention claims a method for realizing scene structure prediction, target detection and lane-level positioning, and relates to the fields of autonomous driving, deep learning, computer vision, etc. First, the present invention constructs a neural network for lane-level positioning, scene structure prediction and target detection, and constructs a loss function mathematical model through the loss between the scene structure prediction value and the target detection prediction value and its true value; creates a data set through images and maps and trains the network; deploys the network on the car to output the detection result; finally, retrieves and matches the output scene structure with the map through a matching method, corrects the positioning error of the car, and realizes lane-level positioning. The network can create a data set through images and maps and perform closed-loop training on the network, and only requires image information and map information to complete scene structure prediction, target detection function and lane-level positioning. The road structure contained in the scene structure prediction result can be used in autonomous driving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the fields of autonomous driving, deep learning, computer vision, etc., and is a neural network for lane-level positioning, scene structure prediction and target detection. Background Art

[0002] With the development of deep learning, autonomous driving technology is becoming more and more mature, and the ability of cars to perceive the environment has gradually improved. Today, most autonomous driving platforms still use some powerful sensors (such as lidar, precision GPS, etc.) for environmental perception solutions, but most of these sensors are expensive and bulky. If only visual sensors are used to complete environmental perception tasks, the cost will be greatly reduced. Most of the GPS currently used for positioning are prone to offset or inaccurate positioning due to their low accuracy, and GPS is still unable to achieve accurate positioning in tunnels or remote areas with poor or no signal scenes. The present invention proposes a multi-task neural network combined with a map and image method, which uses the layout prediction of targets and scenes in the image to cooperate with the map to correct the offset of GPS positioning and achieve the purpose of lane-level precise positioning. And it is not affected by tunnels or scenes with poor signals.

[0003] In summary, the existing technology has the following problems: most GPS positioning systems currently have low accuracy and cannot accurately locate vehicles in tunnels or in scenes with poor signals. Sensors such as laser radar and precision GPS are expensive for environmental perception.

[0004] After searching, the application publication number is CN111047630A, a neural network and a target detection and depth prediction method based on the neural network, the neural network includes: a depth prediction subnetwork, and a target detection subnetwork; the depth prediction subnetwork performs preprocessing according to the original image to extract the feature map, and splices the shallow feature map and the deep feature map, and then outputs multiple disparity maps of different scales through depth prediction to obtain a depth map; the target detection subnetwork performs target detection of multi-dimensional information through the receptive field module according to part of the feature map; the depth prediction subnetwork is combined with the target detection subnetwork to realize a single network to simultaneously output the depth map and the target detection result. This application provides an accurate and efficient FCW solution through monocular vision, which can be matched by most automobile manufacturers on the market, thereby promoting the autonomous driving industry, and has huge development prospects. From the perspective of network structure and function, the output results of the patent CN111047630A are depth maps and target detection results. It has fewer functions and does not process the distance to the target or the layout ahead. The present invention not only has target detection results, but also predicts the scene structure and target layout, and can also complete the lane-level positioning function. It can be said that the present invention extends the output results of CN111047630A and has more functions. From the perspective of network adaptability, the patent CN111047630A has poor ability to adapt to unfamiliar scenes, because if the environment changes slightly, the target detection network needs to label a large number of new data sets for training. The data set of the present invention uses the map of the current location to obtain the data set, which can complete closed-loop training and reduce a lot of manpower labeling time. Summary of the invention

[0005] The present invention aims to solve the above problems of the prior art. A method for realizing scene structure prediction, target detection and lane-level positioning is proposed. The technical solution of the present invention is as follows:

[0006] A method for realizing scene structure prediction, object detection and lane-level positioning comprises the following steps:

[0007] A multi-task neural network for lane-level positioning, scene structure prediction and target detection is constructed. The multi-task neural network consists of an encoder, a decoder, a global feature extraction module, a local feature extraction module, a matching module, a target detection prediction module and a scene structure prediction module.

[0008] The loss multi-task neural network function mathematical model network is constructed through the loss between the scene structure prediction value and the target detection prediction value and the true value respectively; the data set is prepared by the car shooting images and vehicle lane map, and the multi-task neural network function mathematical model network is trained using the data set;

[0009] The multi-task neural network is deployed on the car to output target detection results and scene structure prediction results; the output scene structure is retrieved and matched with the map through a matching method to correct the car's map positioning error and achieve lane-level positioning.

[0010] Furthermore, the multi-task neural network for lane-level positioning, scene structure prediction and target detection specifically includes the following steps:

[0011] Construct a multi-task neural network based on conditional variables sharing context parameters C. Multiple task branches in the network share an encoder encoding result. The variable C is derived only using image information I. Represents the characteristics of the network input image. The context parameter C is the feature layer after the encoder is encoded, which should include the spatial position information relationship between the vehicle and the road and the feature information.

[0012] Construct a decoder, which is divided into a scene decoder and a target decoder, to decode the shared context parameters to generate the layout of the scene; the decoder consists of a series of deconvolution and upsampling layers that map the shared context parameters to the scene generation scene structure and target layout;

[0013] Build a parameterized discriminator that regularizes the predicted scene structure and object layout by regularizing the predicted result data distribution to be similar to the true distribution of reasonable scene geometry;

[0014] Construct global feature extraction and local feature extraction decoding modules to perform local feature decoding on the last scene structure layer and global feature decoding on the map truth.

[0015] Furthermore, the construction of a parameterized discriminator to regularize the prediction result data distribution specifically includes: constructing a parameterized target detection network module and a scene structure prediction network module to regularize the prediction result data distribution so that the decoded image conforms to the current real distribution.

[0016] Furthermore, the construction of the global feature extraction and local feature extraction decoding modules specifically includes: global feature extraction is performed through the convolution layer and pooling layer of the full convolutional neural network to extract global features, and local feature extraction is performed through the convolution layer and attention mechanism of the full convolutional neural network to extract local features. The attention mechanism is a module that enhances attention to local features of the image. Its core idea is to introduce attention weights on the input sequence to give priority to the position set where relevant information exists, so as to more effectively extract local features in the image.

[0017] Furthermore, the loss multi-task neural network function mathematical model network is constructed by respectively using the loss between the scene structure prediction value and the target detection prediction value and the true value, specifically including the following steps:

[0018] Use the map to extract various scene images as preset data distribution maps for matching, and then extract the map of the location of the car shooting image based on longitude and latitude;

[0019] According to the structure of the multi-task neural network for scene structure prediction and target detection, the training set labels are divided into two categories: preset data distribution labels for matching and ground truth values ​​of the scene and target detection scene structure graph labels for training the multi-task neural network;

[0020] Determine the parameters φ, ν, ψ of the context encoder, scene decoder, and target scene decoder in the scene structure prediction and object detection tasks, and minimize the objective function by using the mini-batch stochastic gradient descent method;

[0021] Use the L2 error term to penalize the difference between the scene structure and the object layout and the true value parameters, so that they are close to the corresponding ground truth layout, and train the multi-task neural network;

[0022] The proposed loss function mathematical model is used to optimize the parameters so that the network parameters reach the optimal value;

[0023] The image size is enlarged or reduced to the network input size using the nearest neighbor interpolation method; the normalized video frame of the enlarged or reduced image is sent to the neural network, and the scene structure and target detection result output is obtained through forward reasoning of the network.

[0024] Furthermore, the L2 error term is used to penalize the difference parameters between the scene structure and the target layout and the true value, so that they are close to the corresponding ground truth layout, and the multi-task neural network is trained, specifically including: Formula 1:

[0025]

[0026] Where Φ is the weight parameter of the context encoder; ψ is the vehicle layout decoder parameter; is the scene structure decoder parameter; θ is the parameter in the shared context; where θ S represents the parameters of the scene in the shared context; where θ D represents the parameters of the vehicle in the shared context; in the feature extraction module, a target classifier will be trained, using the cross entropy loss as the loss function to represent the correlation coefficient of the local feature descriptors of each target; the expression of the target training function feature is represented by a weighted formula, as shown in (5), where y is the output feature vector of the network; W is the weighted weight in the attention mechanism; α(*) is a score function of the feature; θ is represented as the parameter of the function α(*); fn, n = 1, ..., N represents the n-dimensional features to be learned together with the attention model; where L supis an L2 supervised error term used to penalize the loss of the predicted scene and target layout with its corresponding ground truth value, L adv , L discr is the loss value of the decoder layer and the discriminator in the network; L sup , L adv , L discr , L spc The calculation formulas are shown in (2), (3), and (4):

[0027]

[0028]

[0029]

[0030] y=W(∑ n α(fn;θ)·fn) (5)

[0031]

[0032] Where N is the number of images during network training; φ,ν represents the scene structure predicted by the network; where Represents the information in the image; represents the true value of the scene layout, where i represents the number of samples; φ,ψ represents the vehicle layout predicted by the network; where represents the true value of the vehicle layout, where S represents the probability of scene structure prediction (0≤S≤1); where D represents the probability of vehicle prediction (0≤D≤1); (*) is the expected value of the distribution function; represents the distribution of samples generated by the network; Represents the distribution of real samples; adversarial loss L adv and L discr The layout estimate distribution P of the scene / target scene decoder is fake With the real scene decoder P true near.

[0033] Furthermore, the multi-task neural network is deployed on the car to output the target detection result and the scene structure prediction result, which specifically includes the following sub-steps:

[0034] In the post-processing program, the output results of the target prediction results and the scene structure prediction results are processed, and the output results of the target prediction results and the scene structure prediction results are drawn on the same picture using image processing software to output the predicted image of the scene structure (including the part blocked by the target) and the layout image of the target. The road structure output by the scene structure can be used for the autonomous driving function;

[0035] During deployment, deep learning framework and image processing software are used as the main framework for embedded development board deployment, and the camera input image is continuously predicted to obtain real-time results.

[0036] Furthermore, the feature extraction of the scene structure layer and the feature extraction of the global map specifically includes the following sub-steps:

[0037] Send the scene structure and map to the feature extraction network. Extract global features and descriptors from the map, and extract local features and descriptors from the scene structure feature layer in the network.

[0038] In continuous scenes, the global map can extract global features at larger time intervals, and local features are retrieved and matched for each frame.

[0039] Furthermore, the output scene structure is retrieved and matched with the map through a matching method to correct the map positioning error of the car and achieve lane-level positioning, including the following steps:

[0040] Retrieve and match local features with global features of the current location map.

[0041] The vehicle positioning offset is corrected by the retrieved map image and the output scene structure graph of the multi-task neural network, and a real-time scene reconstruction graph with precise lane-level positioning is obtained.

[0042] Furthermore, after obtaining the real-time scene reconstruction image with accurate lane-level positioning, the following steps are also included:

[0043] Upload the final output lane-level positioning scene structure diagram and the current vehicle image to create a data set and send it to the multi-task neural network;

[0044] Use the new data set to continue training the network, and continuously iterate and update the network model through closed-loop training of the network prediction part.

[0045] The advantages and beneficial effects of the present invention are as follows:

[0046] Effect 1: The method combines the local map and the image information obtained by the car to train the network, avoiding the use of high-precision radar or other high-precision sensors for map reconstruction and large-scale manual labeling. A multi-task neural network for scene structure prediction and target detection for lane-level positioning is constructed, which can accurately locate the current vehicle at the lane level and achieve lane-level positioning map output.

[0047] Effect 2: The present invention uses images combined with offline maps to perform retrieval, which can achieve accurate positioning in tunnels and scenes without signals. Specifically, the scene structure is predicted to match the map to replace GPS positioning.

[0048] Effect 3: Compared with other scene structure prediction or target detection neural networks, the scene structure prediction and target detection multi-task neural network in the method of the present invention can perform both scene structure prediction and target detection tasks simultaneously, greatly reducing the image prediction time, and can also perform lane-level positioning output for the current vehicle position.

[0049] Effect 4: The method of the present invention uses car-photographed images and local maps to build a multi-task neural network platform for closed-loop training, which can continuously perform closed-loop training during use to iteratively update model weights.

[0050] Effect 5: The target layout and scene structure prediction results in the prediction results of the present invention can be integrated to construct a real-time visual layout image and achieve lane-level precise positioning. It can not only give the driver a layout reminder of the scene ahead, which plays an important role in planning the car's driving route, but also detect the target in front of the vehicle (the targets in the method of the present invention include pedestrians, vehicles, buildings, road signs, traffic lights and other targets), prevent collisions, and increase the safety of car driving. The precise lane-level positioning of the vehicle is achieved, which allows the car to be accurately positioned in tunnels and signal-free scenes, solving the current problem of large GPS offsets.

[0051] The points in the patent of this invention that are not easy to think of are: 1. Use the output scene layout map to extract local features and retrieve and match with the global features of the map to correct the positioning error and achieve lane-level positioning. At present, it is still a major problem to accurately locate cars in tunnels or in situations with poor signals. The patent of this invention uses the layout prediction of the network to retrieve and match with the map and correct the positioning error, which can solve the problem of lane-level positioning. As far as I know, there is still no neural network that does this. 2. Use the output lane-level positioning scene map to upload it back to the network, and reconstruct the data set to perform closed-loop training on the network. Currently, there are few neural networks that can achieve closed-loop training. This is mainly because automatic labeling is difficult to achieve, so it is difficult to think of this closed-loop training method. Here, through the combination with the map, closed-loop learning of the network can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a neural network flow chart of lane-level positioning, scene structure prediction and target detection provided by a preferred embodiment of the present invention;

[0053] Figure 2 It is a schematic diagram of a neural network structure for lane-level positioning, scene structure prediction and target detection provided by an embodiment of the present invention;

[0054] Figure 3 It is a schematic diagram of a map scene display function obtained through longitude and latitude provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following will describe the technical solutions in the embodiments of the present invention in detail in conjunction with the accompanying drawings in the embodiments of the present invention. The described embodiments are only part of the embodiments of the present invention.

[0056] The technical solution of the present invention to solve the above technical problems is:

[0057] like Figure 1 As shown, a neural network for lane-level positioning, scene structure prediction, and target detection provided by an embodiment of the present invention includes the following steps:

[0058] 1. Build a multi-task neural network with lane-level positioning, scene structure prediction and target detection. The scene structure prediction and target detection multi-task neural network structure is as follows Figure 2 As shown, the scene structure prediction and target detection multi-task neural network in the method of the present invention adopts a context parameter sharing mode, that is, a variable C is introduced, which can be derived only using image information I. Therefore, the target layout parameters and scene structure parameters are conditionally independent given C. We call this conditional variable "shared context" because it must contain the information required to estimate the scene structure and the edge of the target layout. Different decoders share a task sharing layer. The decoder is composed of a series of sampling and deconvolution structures. The target decoder has the same structure as the scene decoder, but it is difficult to converge using the same decoder network, so two decoders for different tasks are used here. A parameterized discriminator is introduced to identify the authenticity of the pictures generated by the network. This is done by regularizing the distribution of the generated pictures to make them similar to the real distribution of the preset layout of reasonable scene geometry, which is achieved by matching. The preset scene structure distribution is adjusted to regularize the predicted scene structure or target layout. The predicted scene structure is feature extracted, and the extracted features are retrieved and matched with the global features of the map. After matching, the position of the current vehicle is corrected for lane-level positioning. The specific structure of the network is as follows Figure 2 shown.

[0059] The multi-task neural network in the present invention has three tasks, namely target layout task, scene structure and lane-level positioning task.

[0060] The scene structure task is used to predict the static scene structure, which can be used to plan the driving route of the car. The target detection predicts the target layout of the target in front, which can be used for anti-collision warning. First, an image is encoded using an encoder, with the image as input and a feature map as output. This extracted feature map is the shared context variable required in the network. After the feature map is shared with context parameters, two parallel decoders with the same architecture are used to estimate the scene and target layout. The decoder consists of a convolution block, which takes the feature map of shared context parameters as input. The convolution block maps this shared parameter to the feature map. After that, a deconvolution module is used to reduce the dimension of the feature map and increase the resolution. In the deconvolution process here, the number of channels at the end of the image is different, which is 2 in the scene structure decoder and 1 in the target layout decoder. Finally, we get an output feature map. During this period, dropout is applied to the second to last layer to implement random regularization. The output feature map corresponds to a rectangular area on the ground. The output scene structure is put into the feature extraction module to extract local features, and then the local features are matched and retrieved with the global features.

[0061] At this point, a ground scene structure map has been generated, and the generated image is put into the discriminator. The feature map will be used by the discriminator to distinguish the authenticity with the real label as the sample. The discriminator contains a nonlinear activation function. The loss function proposed in the present invention is used to train the network, and the layout is adjusted by matching the preset data distribution of various scenes prepared previously. The specific structure of the network is as follows Figure 2 shown.

[0062] 2. Prepare the data set by taking car images and vehicle lane maps, and build a multi-task neural network loss function mathematical model to train the network.

[0063] The L2 error term is used to penalize the difference parameters between the scene structure and the target layout and the true value, so that it is close to the corresponding ground truth layout and trains the multi-task neural network. The formula is shown in 1:

[0064]

[0065] Where Φ is the weight parameter of the context encoder; where ψ is the vehicle layout decoder parameter; where is the scene structure decoder parameter; where θ is the parameter in the shared context; where θ S represents the parameters of the scene in the shared context; where θ DRepresents the parameters of the vehicle in the shared context. In the feature extraction module, a target classifier will be trained, using the cross entropy loss as the loss function to represent the correlation coefficients of the local feature descriptors of each target. The expression of the target training function feature is represented by a weighted formula, as shown in Formula 5, where y is the output feature vector of the network; W is the weighted weight in the attention mechanism; α(*) is a score function of the feature; θ is represented as the parameter of the function α(*); fn, n=1,...,N represents the n-dimensional features to be learned together with the attention model. Where L sup is an L2 supervised error term used to penalize the loss of the predicted scene and target layout with its corresponding ground truth value, L adv , L discr is the loss value of the decoder layer and the discriminator in the network. L sup , l adv , L discr , L spc The calculation formulas are shown in 2, 3, and 4:

[0066]

[0067]

[0068]

[0069] y=W(∑ n α(fn;θ)·fn) (5)

[0070]

[0071] Where N is the number of images during network training; φ,ν represents the scene structure predicted by the network; where Represents the information in the image; represents the true value of the scene layout, where i represents the number of samples; φ,ψ represents the vehicle layout predicted by the network; where represents the true value of the vehicle layout, where i represents the number of samples; where S represents the probability of scene structure prediction (0≤S≤1); where D represents the probability of vehicle prediction (0≤D≤1); where E(*) is the expected value of the distribution function; where represents the distribution of samples generated by the network; Represents the distribution of real samples. Adversarial loss L adv and L discr The layout estimate distribution P of the scene / target scene decoder is fake With the real scene decoder P true near.

[0072] The network is trained, and the loss function mathematical model proposed in the present invention is used to optimize the parameters, so that the network parameters are optimal. The image size is enlarged or reduced to the network input size using the nearest neighbor interpolation method; the enlarged or reduced image is normalized (that is, the image pixel value is uniformly divided by 255, so that the image pixel value changes from 0-255 to 0-1) and the video frame is sent to the neural network, and the scene structure diagram output of the scene structure and target layout is obtained through the network's forward reasoning.

[0073] 3. Deploy multi-task neural networks for scene structure prediction and object detection on cars

[0074] The network is deployed on the development board using a deep learning framework, the target prediction results and scene structure prediction results of the video frame are merged and processed, and the output results of the target prediction results and scene structure prediction results are plotted on the same picture using image processing software. The acquired map and image information can be used as a data set to retrain and update weights, achieve a closed-loop training mode, and continuously update and iterate the model.

[0075] 4. Feature extraction of scene structure layer and feature extraction of global map

[0076] The scene structure and map are sent to the feature extraction network. The map is used to extract global features and descriptors, and the scene structure feature layer in the network is used to extract local features and descriptors. In continuous scenes, the map can extract global features once at a larger time interval, and local features are retrieved and matched for each frame.

[0077] 5. Perform image matching on the predicted results to correct the positioning error

[0078] The predicted scene structure graph is matched and retrieved with the current location map. The vehicle positioning offset is corrected by the retrieved map image and the output scene structure graph of the multi-task neural network to obtain a real-time scene reconstruction graph with accurate lane-level positioning.

[0079] 6. Upload real-time results to achieve closed-loop training effect

[0080] Upload the last output scene structure diagram and the current vehicle image, recreate the data set, and upload it to the multi-task neural network to replace the original data set. Use the new data set to continue network training, and continuously iterate and update the network model through closed-loop training of the network prediction part.

[0081] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0082] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0083] The above embodiments should be understood to be only used to illustrate the present invention and not to limit the protection scope of the present invention. After reading the contents of the present invention, technicians can make various changes or modifications to the present invention, and these equivalent changes and modifications also fall within the scope defined by the claims of the present invention.

Claims

1. A method for scene structure prediction, object detection and lane-level positioning, characterized in that: The following steps are involved: Construct a multi-task neural network for lane-level positioning, scene structure prediction, and target detection. The multi-task neural network consists of an encoder, a decoder, a global feature extraction module, a local feature extraction module, a matching module, a target detection prediction module, and a scene structure prediction module. The loss multi-task neural network function mathematical model is constructed through the loss between the scene structure prediction value and the target detection prediction value and the true value respectively; the data set is prepared by the car shooting images and vehicle lane map, and the multi-task neural network function mathematical model is trained using the data set; Deploy the multi-task neural network on the car to output target detection results and scene structure prediction results; retrieve and match the output scene structure with the map through a matching method, correct the car's map positioning error, and achieve lane-level positioning; The multi-task neural network for lane-level positioning, scene structure prediction and target detection specifically includes the following steps: Construct a multi-task neural network based on conditional variables sharing context parameters C. Multiple task branches in the network share an encoder encoding result. The variable C is derived only using image information I. Represents the characteristics of the network input image; the context parameter C is the feature layer after the encoder is encoded, which should include the spatial position information relationship between the vehicle and the road and the feature information; Construct a decoder, which is divided into a scene decoder and a target decoder, to decode the shared context parameters to generate the layout of the scene; the decoder consists of a series of deconvolution and upsampling layers that map the shared context parameters to the scene generation scene structure and target layout; Build a parameterized discriminator that regularizes the predicted scene structure and object layout by regularizing the predicted result data distribution to be similar to the true distribution of reasonable scene geometry; Construct global feature extraction and local feature extraction decoding modules to perform local feature decoding on the last scene structure layer and global feature decoding on the map truth value; The constructing of a parameterized discriminator to regularize the distribution of the prediction result data specifically includes: constructing a parameterized target detection network module and a scene structure prediction network module to regularize the distribution of the prediction result data so that the decoded image conforms to the current real distribution; The construction of the global feature extraction and local feature extraction decoding modules specifically includes: global feature extraction is performed through the convolution layer and pooling layer of the full convolutional neural network to extract global features, and local feature extraction is performed through the convolution layer and attention mechanism of the full convolutional neural network to extract local features; the attention mechanism is a module for enhancing attention to local features of the image, and its core idea is to introduce attention weights on the input sequence to give priority to the position set where relevant information exists, so as to more effectively extract local features in the image; The loss multi-task neural network function mathematical model is constructed by respectively using the loss between the scene structure prediction value and the target detection prediction value and the true value, specifically including the following steps: Use the map to extract various scene images as preset data distribution maps for matching, and then extract the map of the location of the car shooting image based on longitude and latitude; According to the structure of the multi-task neural network for scene structure prediction and target detection, the training set labels are divided into two categories: preset data distribution labels for matching and ground truth values ​​of the scene and target detection scene structure graph labels for training the multi-task neural network; Determine the parameters φ, ν, ψ of the context encoder, scene decoder, and target scene decoder in the scene structure prediction and object detection tasks, and minimize the objective function by using the mini-batch stochastic gradient descent method; Use the L2 error term to penalize the difference between the scene structure and the object layout and the true value parameters, so that they are close to the corresponding ground truth layout, and train the multi-task neural network; The proposed loss function mathematical model is used to optimize the parameters so that the network parameters reach the optimal value; The image size is enlarged or reduced to the network input size using the nearest neighbor interpolation method; the normalized video frame of the enlarged or reduced image is sent to the neural network, and the scene structure and target detection result output is obtained through the network's forward reasoning; The L2 error term is used to penalize the difference parameters between the scene structure and the target layout and the true value, so that they are close to the corresponding ground truth layout, and the multi-task neural network is trained, specifically including: Formula 1: Where Φ is the weight parameter of the context encoder; ψ is the vehicle layout decoder parameter; is the scene structure decoder parameter; θ is the parameter in the shared context; where θ S represents the parameters of the scene in the shared context; where θ D represents the parameters of the vehicle in the shared context; in the feature extraction module, a target classifier will be trained, using the cross entropy loss as the loss function to represent the correlation coefficient of the local feature descriptors of each target; the expression of the target training function feature is represented by a weighted formula, as shown in (5), where y is the output feature vector of the network; W is the weighted weight in the attention mechanism; α(*) is a score function of the feature; θ is represented as the parameter of the function α(*); fn, n = 1, ..., N represents the n-dimensional features to be learned together with the attention model; where L sup is an L2 supervised error term used to penalize the loss of the predicted scene and target layout with its corresponding ground truth value, L adv , L discr is the loss value of the decoder layer and the discriminator in the network; L sup , L adv , L discr , L spc The calculation formulas are shown in (2), (3), and (4): <h2 style=";text-align:left;direction:ltr">y = W(∑<h2 style=";text-align:left;direction:ltr"> n <h2 style=";text-align:left;direction:ltr"> α(fn;θ)·fn) (5) Where N is the number of images during network training; φ,ν represents the scene structure predicted by the network; where Represents the information in the image; represents the true value of the scene layout, where i represents the number of samples; φ,ψ represents the vehicle layout predicted by the network; where represents the true value of the vehicle layout, where S represents the probability of scene structure prediction (0≤S≤1); where D represents the probability of vehicle prediction (0≤D≤1); is the expected value of the distribution function; represents the distribution of samples generated by the network; Represents the distribution of real samples; adversarial loss L adv and L discr The layout estimate distribution P of the scene / target scene decoder is fake With the real scene decoder P true near; The multi-task neural network is deployed on the car to output the target detection result and the scene structure prediction result, which specifically includes the following sub-steps: In the post-processing program, the output results of the target prediction results and the scene structure prediction results are processed, and the output results of the target prediction results and the scene structure prediction results are drawn on the same picture using image processing software to output the predicted image of the scene structure of the part blocked by the target and the layout image of the target. The road structure output by the scene structure can be used for the autonomous driving function; During deployment, deep learning framework and image processing software are used as the main framework for embedded development board deployment, and the camera input image is continuously predicted to obtain real-time results; The feature extraction of the scene structure layer and the feature extraction of the global map specifically includes the following sub-steps: Send the scene structure and map to the feature extraction network part; extract global features and descriptors from the map, and extract local features and descriptors from the scene structure feature layer in the network; In continuous scenes, the global map can extract global features at larger time intervals, and local features are retrieved and matched for each frame; The output scene structure is retrieved and matched with the map through a matching method, the map positioning error of the car is corrected, and the lane-level positioning is achieved, including the following steps: Retrieve and match local features with global features of the current location map; The vehicle positioning offset is corrected by the retrieved map image and the output scene structure graph of the multi-task neural network, and a real-time scene reconstruction graph with precise lane-level positioning is obtained.

2. A method for realizing scene structure prediction, target detection and lane-level positioning according to claim 1, characterized in that: After obtaining the real-time scene reconstruction map with accurate lane-level positioning, the following steps are also included: Upload the final output lane-level positioning scene structure diagram and the current vehicle image to create a data set and send it to the multi-task neural network; Use the new data set to continue training the network, and continuously iterate and update the network model through closed-loop training of the network prediction part.