Road detection method and device in non-standard road scenes
Through multi-stage sub-model concatenation and voxel labeling technology, combined with point cloud and image data, it solves the problem of road detection in non-standard road scenes, achieves accurate identification of uneven ground and road areas, and improves detection accuracy and Robustness improves driving safety.
Patent Information
- Application Number
- CN202210270841.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-18
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-03-18
AI Technical Summary
It is difficult to perform effective 3D road modeling and 3D sensor information projection in non-standard road scenes with existing technology, especially on uneven ground and difficulty in distinguishing between road areas and non-road areas.
It adopts an end-to-end structure of multi-stage sub-models in series, combines point cloud data and image data, uses voxel markers to describe the ground structure, builds feedforward neural networks and convolutional neural networks, learns the three-dimensional structure of the ground and road areas, and realizes road detection.
It improves the accuracy and robustness of road detection in non-standard road scenarios, can effectively distinguish between road areas and non-road areas, and improves driving safety.
Smart Images

Figure CN114612895B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving, and in particular to a model training and road detection method and device for autonomous driving. Background Art
[0002] Autonomous driving technology is a technology that uses computers to achieve assisted driving or unmanned driving. It relies on sensor systems such as visible light cameras, millimeter wave radars, lidars, inertial navigation systems, global positioning systems, etc., so that computers can partially or completely replace human drivers to automatically and safely operate vehicles.
[0003] In the prior art, autonomous driving technology is mainly applied to standard road scenarios. Standard roads are roads with specific markings, signs and other information as stipulated by laws and regulations related to road traffic. In standard road scenarios, autonomous driving technology can obtain standardized road markings and other environmental perception information, use ordinary maps and high-precision maps provided by standardized map surveying and mapping, and exchange standardized information with traffic infrastructure in intelligent transportation systems.
[0004] However, autonomous driving technology can be applied not only in standard road scenarios, but also in non-standard road scenarios. Non-standard road scenarios include natural scenarios such as outdoor environments, agricultural environments such as rural roads, internal roads in industrial parks, and specific operation scenarios such as mines.
[0005] Therefore, the existing technology uses two-dimensional structure modeling for the ground where the road is located. The three-dimensional information obtained by the sensor can be easily mapped to the two-dimensional plane of the ground through projection, which can save the calculation amount of road detection in the ground area. However, the existing technology based on the two-dimensional structure ground model cannot adapt to non-standard road scenes. At the same time, the road markings, signs, maps and other information based on standard road scenes in the existing technology cannot adapt to non-standard road scenes.
[0006] In summary, it is necessary to solve the technical problem of how to perform three-dimensional modeling of uneven terrain and effectively project the sensor's three-dimensional information onto the ground in non-standard road scenarios, as well as how to solve the technical problem of how to solve the difficulty in distinguishing between road areas and non-road areas. Summary of the invention
[0007] The present invention provides a model training and road detection method and device for non-standard road scenes to solve the problems existing in the above-mentioned prior art.
[0008] According to a first aspect of the present invention, a model training method is provided, comprising:
[0009] Build and train the sensor data acquisition sub-model;
[0010] Construct and train the road surface acquisition sub-model;
[0011] Build and train the road detection sub-model;
[0012] The sensor data acquisition sub-model includes a point cloud data input branch and an image data input branch; the point cloud data input branch includes an input layer for inputting point cloud data; the image data input branch includes an input layer for inputting image data;
[0013] The training process of the sensor data acquisition sub-model includes: directly inputting an input layer of input point cloud data and an input layer of input image data;
[0014] The road surface acquisition submodel includes a feedforward neural network; the feedforward neural network includes a main input branch and a slave input branch; the main input branch includes a point cloud layer and one or more voxel layers; the point cloud layer receives point cloud data input, and the one or more voxel layers convert the point cloud data into voxel data; the slave input branch includes an image layer and one or more mapping layers; the image layer receives image data input, and the one or more mapping layers convert the image data into a bird's-eye view image; the feedforward neural network also includes one or more fusion layers and one or more ground layers; the one or more fusion layers receive the bird's-eye view image and the voxel data, and fuse the bird's-eye view image and the voxel data according to their spatial positions; the one or more ground layers receive the voxel data output by the fusion layer, extract the voxel set belonging to the ground area, and obtain the three-dimensional structure of the ground;
[0015] The training process of the feedforward neural network includes: preprocessing; converting point cloud data into voxel data; converting image data into bird's-eye view images; data fusion and positive and negative sample generation; training the feedforward neural network using positive and negative samples;
[0016] The road detection includes a convolutional neural network; the convolutional neural network includes multiple neural network layers; the multiple neural network layers include at least an input layer, a convolutional layer, a pooling layer, and a fully connected layer; the input layer receives the point cloud data contained in the ground three-dimensional structure; the convolutional neural network extracts a road area point set from the point cloud data; the road detection sub-model obtains the location information of the road area according to the three-dimensional coordinates of the road area point set;
[0017] The training process of the convolutional neural network includes: converting image data into a bird's-eye view image; acquiring point cloud data of the three-dimensional structure of the ground; and training the convolutional neural network using positive and negative samples.
[0018] According to a second aspect of the present invention, there is provided a road detection method, comprising:
[0019] Sensor data acquisition steps;
[0020] Steps to obtain the road surface;
[0021] Steps to obtain the road surface;
[0022] The sensor data acquisition step includes a point cloud data input step and an image data input step; the point cloud data input step receives raw point cloud data input and pre-processes the raw point cloud data to obtain point cloud data; the image data input step receives raw image data input and pre-processes the raw image data to obtain image data;
[0023] The road surface acquisition step includes a main input step and a ground detection step; the main input step receives input of point cloud data, divides the space based on voxels, and classifies the point cloud data into corresponding voxels according to the spatial coordinates to obtain voxel data; the ground detection step detects the ground three-dimensional structure from the voxel data based on a feedforward neural network trained by converting the labeled image data into a bird's-eye view image and fusing it with the voxel data to generate positive and negative samples of voxel data based on the image data annotation; the ground three-dimensional structure is a subset of the voxel data that represents the ground;
[0024] The road detection step includes: receiving point cloud data contained in the three-dimensional structure of the ground; learning a road area point set from the point cloud data based on a convolutional neural network; the convolutional neural network includes multiple neural network layers; the multiple neural network layers include at least an input layer, a convolutional layer, a pooling layer, and a fully connected layer; based on the labeled training image data converted into a bird's-eye view image and then fused with the point cloud data to generate positive and negative samples of the point cloud data according to the image data annotation to train the convolutional neural network.
[0025] According to a third aspect of the present invention, there is provided a model training device, comprising:
[0026] Sensor data acquisition sub-model construction and training module: the sensor data acquisition sub-model includes a point cloud data input branch and an image data input branch; the point cloud data input branch includes an input layer for inputting point cloud data; the image data input branch includes an input layer for inputting image data; the training process of the sensor data acquisition sub-model includes: directly inputting the input layer for inputting point cloud data and the input layer for inputting image data;
[0027] Road surface acquisition submodel construction and training module: The road surface acquisition submodel includes a feedforward neural network; the feedforward neural network includes a main input branch and a slave input branch; the main input branch includes a point cloud layer and one or more voxel layers; the point cloud layer receives point cloud data input, and the one or more voxel layers convert the point cloud data into voxel data; the slave input branch includes an image layer and one or more mapping layers; the image layer receives image data input, and the one or more mapping layers convert the image data into a bird's-eye view image; the feedforward neural network also includes one or more fusion layers and one or more ground layers; the one or more fusion layers receive the bird's-eye view image and the voxel data, and fuse the bird's-eye view image and the voxel data according to their spatial positions; the one or more ground layers receive the voxel data output by the fusion layer, extract the voxel set belonging to the ground area, and obtain the ground three-dimensional structure; the training process of the feedforward neural network includes: preprocessing; conversion of point cloud data into voxel data; conversion of image data into bird's-eye view images; data fusion and generation of positive and negative samples; training the feedforward neural network using positive and negative samples;
[0028] Road detection sub-model construction and training module: the road detection sub-model includes a convolutional neural network; the convolutional neural network includes multiple neural network layers; the multiple neural network layers include at least an input layer, a convolutional layer, a pooling layer, and a fully connected layer; the input layer receives the point cloud data contained in the ground three-dimensional structure; the convolutional neural network extracts the road area point set from the point cloud data; the road detection sub-model obtains the location information of the road area according to the three-dimensional coordinates of the road area point set; the training process of the convolutional neural network includes: converting image data into a bird's-eye view image; obtaining point cloud data of the ground three-dimensional structure; and training the convolutional neural network using positive and negative samples.
[0029] According to a fourth aspect of the present invention, there is provided a road detection device, comprising:
[0030] The sensor data acquisition module includes a point cloud data input submodule and an image data input submodule; the point cloud data input submodule receives raw point cloud data input, and pre-processes the raw point cloud data to obtain point cloud data; the image data input submodule receives raw image data input, and pre-processes the raw image data to obtain image data;
[0031] The road surface acquisition module includes a main input submodule and a ground detection submodule; the main input submodule receives input of point cloud data, divides the space based on voxels, and classifies the point cloud data into corresponding voxels according to the spatial coordinates to obtain voxel data; the ground detection submodule detects the ground three-dimensional structure from the voxel data based on a feedforward neural network trained by converting the labeled image data into a bird's-eye view image and fusing it with the voxel data to generate positive and negative samples of voxel data according to the image data annotation; the ground three-dimensional structure is a subset of the voxel data representing the ground;
[0032] Road surface acquisition module: receiving point cloud data contained in the three-dimensional structure of the ground; learning the road area point set from the point cloud data based on a convolutional neural network; the convolutional neural network includes multiple neural network layers; the multiple neural network layers include at least an input layer, a convolutional layer, a pooling layer, and a fully connected layer; based on the labeled training image data converted into a bird's-eye view image and then fused with the point cloud data, the convolutional neural network is trained to generate positive and negative samples of point cloud data according to the image data annotation.
[0033] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description.
[0034] Compared with the prior art, the present invention has the following beneficial effects:
[0035] An end-to-end model structure is adopted in which multiple stage sub-models are connected in series. Voxel markers are used to describe the structure of the ground, and the space containing the ground is divided by voxels, and uneven ground is identified by voxel markers. Point cloud data is mainly used for road detection, and the three-dimensional structure information of the road provided by the point cloud data can be used to effectively distinguish between road areas and non-road areas based on the three-dimensional structure of the road, thereby improving the accuracy of road detection in non-standard road scenarios. At the same time, the road detection model also uses image information to improve the robustness of road detection. The actual situation of uneven roads is detected, rather than based on the assumption that the roads are flat, which improves driving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings are used to better understand the present invention and do not constitute a limitation of the present invention.
[0037] Figure 1 A schematic diagram of a standard road scene is shown;
[0038] Figure 2 A schematic diagram of a non-standard road scene provided according to an embodiment of the present invention is shown;
[0039] Figure 3A bird's-eye projection of a standard road scene is shown;
[0040] Figure 4 A schematic diagram of a road detection model provided according to an embodiment of the present invention is shown;
[0041] Figure 5 A schematic diagram of camera imaging of a non-standard road scene provided according to an embodiment of the present invention is shown;
[0042] Figure 6 A schematic diagram of radar imaging of a non-standard road scene provided according to an embodiment of the present invention is shown;
[0043] Figure 7 A schematic diagram of a point cloud provided according to an embodiment of the present invention is shown;
[0044] Figure 8 A voxel schematic diagram provided according to an embodiment of the present invention is shown;
[0045] Fig. 9 The figure shows a comparison between a two-dimensional structured ground and a three-dimensional structured ground in a non-standard road scene provided according to an embodiment of the present invention;
[0046] Fig.10 A schematic diagram of the structure of a road surface determination submodule provided according to an embodiment of the present invention is shown;
[0047] Fig.11 A schematic diagram of training a road surface determination submodule according to an embodiment of the present invention is shown;
[0048] Fig.12 A schematic diagram of a model training method provided according to an embodiment of the present invention is shown;
[0049] Fig.13 A schematic diagram of a road detection method provided according to an embodiment of the present invention is shown;
[0050] Fig.14 A schematic diagram of a model training device provided according to an embodiment of the present invention is shown;
[0051] Fig.15 A schematic diagram of a road detection device provided according to an embodiment of the present invention is shown;
[0052] Fig.16 A schematic diagram of an electronic device provided according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0053] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0054] The technical terms involved include:
[0055] Model: A model is a formal expression method that abstracts a practical problem or objective thing or law. In the field of autonomous driving, the model deals with practical problems related to autonomous driving, such as models for road detection. In order to solve practical problems in the field of autonomous driving, the model referred to here can be not only a neural network model, but also an artificial intelligence model, and also a model in computer and other related fields such as pattern recognition and machine learning.
[0056] Point cloud: Point cloud refers to a collection of point data. Point cloud can be obtained by photogrammetry or laser measurement. Point cloud obtained by laser measurement includes three-dimensional coordinates (XYZ) and laser echo intensity (intensity), while point cloud obtained by photogrammetry includes three-dimensional coordinates (XYZ) and color information (RGB).
[0057] Depth map: A depth map is an image containing depth information. A depth map can also contain visible light image information. For example, an RGB-D depth map contains both visible light information RGB and depth information D. A depth map can be obtained by a depth camera or binocular or multi-eye vision.
[0058] Sensor data: Sensor data refers to data acquired by sensors. In the embodiments of the present invention, data acquired by sensors related to autonomous driving may also be specifically referred to as appropriate. Common sensors include visible light cameras, infrared cameras, depth cameras, millimeter wave radars, lidars, etc. Sensor data can be either raw sensor data directly generated from the sensor or sensor data that has been processed by preprocessing, registration, conversion, fusion, feature extraction, etc.
[0059] Standard road scenario: A standard road refers to a legal road that complies with the relevant laws and regulations on road traffic and has specific road markings and other information. In a standard road scenario, autonomous driving technology can obtain accurate road information through standardized road markings, signs and other information, and can also exchange standardized information with traffic infrastructure to obtain the necessary environmental information for autonomous driving.
[0060] Non-standard road scenes: Non-standard road scenes refer to roads that do not have road markings and other information required by road traffic laws and regulations. Non-standard road scenes include natural scenes such as outdoor environments, agricultural environment scenes such as rural dirt roads, internal scenes such as internal roads in industrial parks, and specific operation scenes such as mines.
[0061] Road surface: Road surface refers to the ground where the road is located, including the ground in the road area and the ground in the non-road area. In standard road scenes, the road surface is generally flat. Based on the prior knowledge of the flat road surface, the flat ground can be regarded as a two-dimensional structure, and road detection based on the flat ground assumption is relatively simple. In non-standard road scenes, the road surface is generally uneven. The road surface needs to be described by a three-dimensional structure. The uneven ground generated in nature cannot generally be described using simple mathematical functions.
[0062] Ground 3D structure: Ground 3D structure refers to data describing the 3D structure of the ground. The space containing the ground is divided by voxels, and the voxels containing the ground are identified by voxel marking, so that the 3D structure of the ground can be described.
[0063] Road area: The road area on the road surface where the road is located. Through sensor data, point cloud data containing accurate three-dimensional coordinates can be obtained. By learning the points belonging to the road area in the point cloud data, the location information of the road area can be obtained.
[0064] Non-road area: The area on the road surface excluding the road area. Through the sensor data, point cloud data containing accurate three-dimensional coordinates can be obtained, and the points belonging to the road surface in the point cloud data are learned, and then the points belonging to the road area in the point cloud data are learned. A set difference operation is performed on the point set belonging to the road surface and the point set belonging to the road area to obtain the location information of the non-road area.
[0065] Voxel: A voxel is the smallest unit in the segmentation of a three-dimensional space, similar to how an image pixel is the smallest unit in the segmentation of a two-dimensional space. In order to improve efficiency, voxels are often generated based on a three-dimensional point cloud, that is, point cloud data is organized in the form of voxels. Each voxel corresponds to a certain range in the three-dimensional space, and all three-dimensional points within the range fall into the same voxel. A voxel has a voxel label, which refers to the label corresponding to the voxel, such as which region the voxel belongs to; similar to how each pixel in an image is assigned a pixel label, it can be determined which region each pixel belongs to. A voxel label can not only indicate which region the voxel belongs to, but can also include other properties of the voxel, such as the density of points within the voxel.
[0066] Bird's eye view: Bird's eye view (BEV) refers to the perspective from the sky to the ground. Although autonomous driving sensors can obtain information covering the entire three-dimensional space of the sky, surroundings and ground, the scope of information can be limited to a certain extent for specific tasks. For example, for road detection, it mainly relies on information on the ground and near the ground.
[0067] Forward: Forward refers to a perspective different from a bird's eye view. Generally, the direction of the front camera of an autonomous vehicle is forward. It is usually represented by camera view.
[0068] End-to-end model: An end-to-end model is one that directly receives raw data input and outputs the final desired result. For a neural network model, it means that all submodules in the network can be connected into a neural network, directly receiving the input of the first submodule and finally outputting the output of the last submodule.
[0069] Embodiment 1
[0070] With the continuous advancement of information technology, the automotive industry is also undergoing technological updates. Autonomous driving technology is one of the goals that automotive and technology companies are focusing on developing.
[0071] Early autonomous driving technology mainly emphasized assisted driving, such as the advanced driving assistant system (ADAS). ADAS uses a variety of sensors installed on the car (millimeter wave radar, lidar, visible light camera, global positioning system, etc.) to perceive the surrounding environment during the driving process of the car, identify and track targets, and perform calculations based on navigation map data, so that the autonomous driving vehicle or driver can be aware of possible dangers in advance, effectively increasing the comfort and safety of car driving. Typical tasks of ADAS include lane keeping, automatic following, automatic parking, etc.
[0072] The Society of Automotive Engineers (SAE International) divides autonomous driving technology into five levels: Level 0-Level 5. L0 refers to manual driving, L1 refers to assisted driving, L2 is semi-automated driving, L3 is highly automated, L4 is ultra-high automated driving, and L5 is fully automated driving (reaching human driving level).
[0073] There are two interrelated technical routes for autonomous driving technology: intelligence and networking. Intelligence is achieved by equipping vehicles with advanced on-board sensors, controllers, actuators and other devices, with complex environmental perception, intelligent decision-making and execution functions, which can achieve safe, comfortable, energy-saving and efficient driving, and eventually replace human operation. Networking is based on vehicles as the main body and main node, and integrates modern communication and network technologies to achieve V2X (vehicle to everything, that is, vehicle-to-external information exchange) intelligent information exchange and sharing, so that vehicles and external nodes can achieve information sharing and collaborative control, so as to achieve safe, orderly, efficient and energy-saving driving of vehicles. The networking of vehicles is also closely related to the intelligent transportation system. In the intelligent transportation system, information sharing and collaboration between vehicles and transportation infrastructure are also required.
[0074] Figure 1 It is a schematic diagram of a standard road scene.
[0075] In the current existing technologies, autonomous driving technology is mainly applied to standard road scenarios. Road detection is an important task of autonomous driving technology. Road detection is to distinguish the road from other environments; further, road detection also requires different parts of the road to be distinguished, such as shoulder detection, lane detection, and intersection detection. In standard road scenarios, accurate road information can be obtained through standardized road markings, signs and other information.
[0076] Figure 2 is a schematic diagram of a non-standard road scene provided according to an embodiment of the present invention.
[0077] There is also a strong demand for autonomous driving in non-standard road scenarios, such as natural scenarios such as outdoor environments, agricultural environment scenarios such as rural dirt roads, internal scenarios such as internal roads in industrial parks, and specific operation scenarios such as mines.
[0078] like Figure 2 As shown, the road surface in the non-standard road scene is uneven. The road surface in the non-standard road scene is likely to have not been leveled. For example, in an agricultural environment scene, the road surface may fluctuate with the original topography; for example, in a mining scene, the road surface may change with the accumulation of minerals.
[0079] In general, road detection in non-standard road scenarios has the following difficulties:
[0080] (1) In non-standard road scenarios, it is impossible to use the road markings, signs, maps and other information of standard road scenarios, making it difficult to use these rules to build a simple road classifier or road segmentation algorithm.
[0081] In non-standard road scenarios, there are few standard maps and high-precision maps provided by standardized mapping agencies. At the same time, there is also little standardized traffic infrastructure information exchange in non-standard road scenarios for autonomous driving vehicles to use. The roads in non-standard road scenarios may have irregular directions, uneven road surfaces, and unclear distinctions between road and non-road environments.
[0082] (II) In non-standard road scenarios, the road surface is uneven and irregular, and it is impossible to use flat ground as a preset condition for calculation.
[0083] In a standard road scenario, when the preset condition of flat ground is met, the three-dimensional information obtained by the autonomous driving sensor can be easily projected onto the plane where the ground is located. The information projected on this plane belongs to a two-dimensional structure.
[0084] Figure 3 A bird's-eye projection of a standard road scene is shown.
[0085] On a flat surface in a standard road scene, there is no problem in projecting the three-dimensional information obtained by the autonomous driving sensor onto a two-dimensional plane. Even if the ground is slightly tilted, or has slight ridges or depressions, these are acceptable errors.
[0086] In non-standard road scenes, if the ridges or depressions on the road surface are obvious, ignoring these terrain features or simply fitting them with a plane will affect driving safety.
[0087] In non-standard road scenarios, naturally occurring uneven ground (such as formed by mineral accumulation) cannot generally be described using simple mathematical functions. In non-standard road scenarios, the unevenness of the road increases the difficulty of describing it using prior knowledge. Since the road surface is uneven, the ground on which the road is located needs to be described using a three-dimensional structure.
[0088] (III) In non-standard road scenarios, it is difficult to distinguish between road areas and non-road areas.
[0089] In non-standard road scenes, the composition, material and other properties of the road area and the non-road area may be the same. For example, in natural scenes such as the wild environment and specific operation scenes such as mines, the road is likely to be formed spontaneously by people and vehicles; in agricultural environment scenes such as rural dirt roads, the road area and the non-road area both contain soil and rocks, and the difference may be that there are fewer weeds in the road area; in internal scenes such as internal roads in parks, the road area and the non-road area may be unmarked, and only roadblocks are used to regulate and guide vehicles.
[0090] In order to solve the above technical problems, an embodiment of the present invention provides a road detection model 100.
[0091] The above road detection model has the following characteristics to solve the above technical problems:
[0092] 1. End-to-end model structure using multi-stage sub-models in series
[0093] Road detection in non-standard road scenarios requires us to use artificial intelligence methods or neural network methods that are more adaptable to this situation.
[0094] Figure 4 A schematic diagram of a road detection model provided according to an embodiment of the present invention is shown.
[0095] The road detection model 100 provided in the embodiment of the present invention includes sub-models in three stages, namely, a sensor data acquisition sub-model 110 , a road surface acquisition sub-model 120 , and a road detection sub-model 130 .
[0096] The three sub-models can be in the form of artificial intelligence models or neural networks. There is a causal relationship between the three sub-models, in which the sensor data acquisition sub-model 110 acquires data from the outside world, the processed sensor data 210 is input into the road surface acquisition sub-model 120, and finally the road detection sub-model 130 outputs the final road detection result to the outside world.
[0097] The three sub-models together constitute an end-to-end road detection model; the three sub-models can be trained separately or together to form an end-to-end road detection model.
[0098] Since the existing road detection models are based on the assumption that the road is flat in standard road scenes (such as Figure 3 As shown in FIG. 1 , the prior art can use a two-dimensional structure model for the road surface. However, the embodiment of the present invention is based on the assumption that the road in the non-standard road scene is uneven and irregular, so a separate road surface acquisition sub-model 120 is required to learn the ground three-dimensional structure 220.
[0099] The ground three-dimensional structure learned by the ground acquisition sub-model 120 is input to the road detection sub-model 130, and the detected road area is output, thereby realizing road detection of multiple-stage sub-models in series.
[0100] (II) Learning the three-dimensional structure of roads using the road location face model 120
[0101] The ground three-dimensional structure learned by the ground acquisition sub-model 120 uses voxel labels to describe the ground structure. The space containing the ground is divided by voxels, and the voxels containing the ground are identified by voxel labels, so that the ground three-dimensional structure can be described.
[0102] (III) Using the road detection sub-model 130 to learn road areas and non-road areas
[0103] The road detection sub-model 130 receives the output of the road surface sub-model 120 and outputs the detected road area. Point cloud data containing accurate three-dimensional coordinates can be obtained through sensor data. The points belonging to the road area in the point cloud data can be learned to obtain the location information of the road area.
[0104] The three sub-models are introduced below.
[0105] 1.1 Sensor Data Acquisition Sub-Model 110
[0106] The sensor data acquisition sub-model 110 mainly acquires two types of data: point cloud data and image data. Point cloud data is the main information source for road detection. In some cases, only point cloud data can be used for road detection.
[0107] After the image data is transformed and fused with the point cloud data, the accuracy of road detection can be improved. In addition, the image data is used to annotate the training data set during the model training phase.
[0108] Common autonomous driving sensors such as visible light cameras, infrared cameras, depth cameras, millimeter wave radars, lidars, etc. can acquire information.
[0109] Figure 5 A schematic diagram of camera imaging of a non-standard road scene provided according to an embodiment of the present invention is shown.
[0110] like Figure 5 As shown, the camera can be a visible light camera, an infrared camera, a depth camera, etc. Two or more cameras can form a binocular or multi-eye vision system, which can obtain three-dimensional information of non-standard road scenes. One camera constitutes a monocular vision system, which can obtain three-dimensional information of non-standard road scenes by continuously acquiring multiple images.
[0111] Figure 6 A schematic diagram of radar imaging of a non-standard road scene provided according to an embodiment of the present invention is shown.
[0112] like Figure 6 As shown, the radar may be a millimeter wave radar, a laser radar, etc. The radar may obtain point clouds of non-standard road scenes and may obtain three-dimensional information of non-standard road scenes.
[0113] When the sensor data acquisition sub-model 110 is implemented in the form of an artificial intelligence model, traditional data preprocessing, coordinate system conversion and other algorithms can be used; when it is implemented in the form of a neural network, the above steps can be implemented in the form of a trained feedforward network.
[0114] The sensor data acquisition sub-model 110 performs corresponding processing according to different sensor types:
[0115] (1) Sensor data type: radar point cloud
[0116] Figure 7 A schematic diagram of a point cloud provided according to an embodiment of the present invention is shown.
[0117] For ease of understanding, the dashed skeleton of the vehicle appears in the diagram. In fact, the dashed skeleton of the vehicle is not point cloud data. Figure 7 In the image, the laser radar beam shines on the vehicle from left to right, so point cloud data will only be obtained where the rear of the vehicle can be directly scanned by the laser radar beam.
[0118] For ease of understanding, the schematic diagram shows four laser radar beams scanning the ground near the rear of the vehicle. These four beams are not standard arc curves, but reflect the unevenness of the ground where non-standard roads are located.
[0119] Radar point cloud data will be standardized into a form including point three-dimensional coordinates and point attributes. The point cloud obtained according to the laser measurement principle includes three-dimensional coordinates (XYZ) and laser echo intensity (intensity), and the point cloud obtained according to the photogrammetry principle includes three-dimensional coordinates (XYZ) and color information (RGB). The embodiment of the present invention can adopt corresponding data formats according to different sensor types.
[0120] (2) The sensor data type is depth map
[0121] The depth map can be obtained using a depth camera or a binocular or multi-camera. For example, an RGB-D depth map. The depth map can be used to obtain point cloud data through a completion algorithm. After the depth map is converted into point cloud data, it can be processed according to the method in the previous section.
[0122] (3) Sensor data type is image
[0123] When the sensor data type is image, such as Figure 5 As shown, the sensor is generally installed in the driving direction of the autonomous vehicle, that is, the forward (camera view) sensor.
[0124] By calibrating the sensor, the image acquired by the sensor can be converted from a forward perspective to a bird's-eye view.
[0125] (II) Obtaining the sub-model of the road surface 120
[0126] Since the existing road detection models are based on the assumption that the road is flat in standard road scenes (such as Figure 3As shown in the figure), the existing technology can use two-dimensional structure modeling for the ground where the road is located.
[0127] However, the embodiment of the present invention is based on the assumption that the road in the non-standard road scene is uneven and irregular, and the ground where the road is located is essentially a three-dimensional structure.
[0128] Fig. 9 The figure shows a comparison between a two-dimensional structured ground and a three-dimensional structured ground in a non-standard road scene provided according to an embodiment of the present invention.
[0129] For ease of understanding, Fig. 9 The two-dimensional structural ground in the prior art is the ground model, which can be a plane fitted by the current ground. Fig. 9 In the figure, the depth of the actual three-dimensional structure of the ground is uneven (that is, the lengths of the arrows pointing from the two-dimensional structure to the ground are uneven).
[0130] Therefore, a road surface acquisition submodel 120 that can represent the three-dimensional structure is required (see Fig.11 ).
[0131] The data input into the road surface acquisition sub-model 120 is sensor data 210 ; the sensor data 210 includes point cloud data 210A and image data 210B.
[0132] After the point cloud data 210A is input, it is converted into voxel data; the three-dimensional structure 220 of the ground can be learned from the voxel data.
[0133] The image data 210B is converted into a bird's-eye view image after being input from another input branch. In the network training stage, the bird's-eye view image is fused with the voxel data; the image data 210B has a ground area annotation, and the annotation will be passed to the voxel data through the bird's-eye view image; at this time, the voxel data and its annotation are used as training data to train the ground acquisition submodel 120. In the network use stage, it can be selected whether the bird's-eye view image is fused with the voxel data to improve the accuracy of the voxel data; when the input branch is not connected to the feedforward neural network, the feedforward neural network learns the ground three-dimensional structure 220 from the voxel data.
[0134] The output of the road ground acquisition submodel 120 is a ground three-dimensional structure 220 ; the ground three-dimensional structure 220 is a subset of voxel data, and voxel labels are used to describe voxels belonging to the ground in the voxel data.
[0135] Figure 8 A voxel schematic diagram provided according to an embodiment of the present invention is shown.
[0136] For ease of understanding, only 3*4*5 voxels are shown in this diagram. In fact, the three-dimensional space involved in the autonomous driving sensor is very vast, and a considerable number of voxels in the three-dimensional space are empty, that is, the voxel labeling has a certain sparsity.
[0137] For ease of understanding, the schematic diagram only illustrates the voxel distribution in the form of a Cartesian coordinate system. The voxel labeling in the embodiment of the present invention is not limited to this form, and other coordinate systems may also be used.
[0138] For ease of understanding, the schematic diagram only illustrates that the voxel sizes on each coordinate axis are the same. The voxel data in the embodiment of the present invention is not limited to this form, and other forms may also be used.
[0139] (III) Road Detection Sub-Model 130
[0140] Since the existing road detection models are based on the assumption that the road is flat in standard road scenes (such as Figure 3 As shown in the figure), the existing technology can use two-dimensional structure modeling for the ground where the road is located.
[0141] However, the embodiment of the present invention is based on the assumption that the road in the non-standard road scene is uneven and irregular, and represents the road as a ground three-dimensional structure 220, so a road detection sub-model 130 capable of processing three-dimensional structures is required.
[0142] The road detection sub-model 130 learns the point set of the road area from the point cloud data related to the ground three-dimensional structure 220 by training the three-dimensional convolutional neural network according to the ground three-dimensional structure 220 input to the sub-model. Then, the location information of the road area is obtained according to the three-dimensional coordinates of the point set of the road area.
[0143] The three sub-models together constitute an end-to-end road detection model; the three sub-models can be trained separately, or they can be trained together to form an end-to-end road detection model. When training together, the model training method will include five steps (not shown in the figure): constructing a sensor data acquisition sub-model; constructing a road surface acquisition sub-model; constructing a road detection sub-model; combining the above three sub-models into a road detection model; and training the road detection model.
[0144] The trained model can be stored in the autonomous vehicle or in a server outside the vehicle. When the autonomous vehicle performs actual road detection, the trained neural network is applied to perform road detection based on the image information and point cloud information actually obtained by the vehicle. In addition, the trained neural network model can also be stored in the electronic device 600, as shown in the attached Fig.16 shown.
[0145] The embodiments of the present invention do not limit the specific implementation of the application scenarios of the model training and road detection methods, which can be determined according to actual conditions and will not be described in detail here.
[0146] like Fig.12 As shown, in this embodiment, the road detection model training method includes the following steps:
[0147] Step S110, constructing and training a sensor data acquisition sub-model;
[0148] Step S120: constructing and training a road surface acquisition sub-model;
[0149] Step S130: constructing and training a road detection sub-model 130;
[0150] The following embodiments will respectively illustrate the construction and training of the three sub-modules.
[0151] Embodiment 2
[0152] The road ground acquisition submodule 120 of the road detection model 100 is described in detail, and the rest of the road detection model 100 is the same as that of the first embodiment.
[0153] The sensor data acquisition submodel includes a point cloud data input branch and an image data input branch; the point cloud data input branch includes an input layer for inputting point cloud data and one or more neural network layers for performing point cloud data preprocessing; the image data input branch includes an input layer for inputting image data and one or more neural network layers for performing image data preprocessing;
[0154] The training process of the sensor data acquisition sub-model includes: directly inputting the input layer of the point cloud data and the input layer of the image data; converting the preprocessing process into a matrix operation, and setting the connection mode and parameters of each layer of one or more neural network layers that perform point cloud data preprocessing and one or more neural network layers that perform image data preprocessing according to the matrix operation;
[0155] Specifically, the sensor data acquisition sub-model also includes a depth map data input branch; the depth map data input branch includes an input layer for inputting depth map data and one or more neural network layers for performing preprocessing of the depth map data, and one or more neural network layers for converting the depth map into point cloud data;
[0156] The training process of one or more neural network layers for converting the depth map into point cloud data includes: given depth map training data using a depth map coordinate system and corresponding point cloud training data using a point cloud coordinate system, performing coordinate system transformation using the intrinsic parameters of the depth camera as constraints;
[0157] Based on the above features, this embodiment has the following beneficial effects: the road detection model uses point cloud data for road detection, and can utilize the three-dimensional structure information of the road provided by the point cloud data, which can improve the accuracy of road detection under uneven and irregular road conditions; at the same time, the road detection model also integrates and uses image information, which facilitates the training process and improves the robustness of road detection.
[0158] Embodiment 3
[0159] In this embodiment, the road ground acquisition submodule 120 of the road detection model 100 is described in detail, and the rest of the road detection model 100 is the same as that of the first embodiment.
[0160] Fig.10 A schematic diagram of the structure of a road terrain acquisition sub-model 120 provided according to an embodiment of the present invention is shown.
[0161] like Fig.10 As shown, the road surface acquisition submodel 120 includes a feedforward neural network 121.
[0162] The feedforward neural network 121 includes one or more feedforward neural network layers; the feedforward neural network 121 includes a main input branch and a slave input branch; the main input branch includes a point cloud layer 122 and one or more voxel layers 123; the point cloud layer 122 receives point cloud data 210A input, and the one or more voxel layers 123 convert the point cloud data into voxel data; the slave input branch includes an image layer 124 and one or more mapping layers 125; the image layer 124 receives image data 210B input, and the one or more mapping layers 125 convert the image data into a bird's-eye view image;
[0163] The feedforward neural network 121 also includes one or more fusion layers 126 and one or more ground layers 127; the one or more fusion layers 126 receive the bird's-eye view image output by the mapping layer 125 and the voxel data output by the voxel layer 123, and fuse them according to the spatial range of the voxels; the one or more ground layers 127 receive the output of the fusion layer 126, and finally output a set of voxels belonging to the ground area.
[0164] The training process of the feedforward neural network 121 includes: preprocessing; converting point cloud data into voxel data; converting image data into a bird's-eye view image; data fusion and positive and negative sample generation; and training the feedforward neural network using positive and negative samples.
[0165] Fig.11 A schematic diagram of training the road surface acquisition sub-model 120 provided according to an embodiment of the present invention is shown.
[0166] like Fig.11 As shown in Figure 2, the training process specifically includes:
[0167] S121, feedforward neural network construction;
[0168] S122, preprocessing;
[0169] Calibrate camera sensors, calibrate radar sensors;
[0170] S123, converting point cloud data into voxel data;
[0171] Acquire training point cloud data; divide the space into voxels; the space at least covers a part of the ground road area; convert the training point cloud data into voxel data;
[0172] S124, converting the image data into a bird's-eye view image;
[0173] Obtain training image data of labeled ground areas;
[0174] The training image is transformed into a bird's-eye view through inverse perspective mapping and registration mapping to obtain a bird's-eye view image; wherein the inverse perspective mapping transforms the image of the forward perspective into the image of the bird's-eye view; wherein the registration mapping performs registration correction of the camera image and the radar point cloud according to the calibration of the camera sensor and the radar sensor; the bird's-eye view image still has the corresponding ground area annotation;
[0175] S125, data fusion and positive and negative sample generation;
[0176] The bird's-eye view image and the voxel data are fused according to the spatial position; each voxel corresponds to one or more pixels of the bird's-eye view image; the annotation corresponding to each voxel can be generated according to the annotation of the pixel; the pixel annotation of the bird's-eye view image is mapped according to the annotation of the training image.
[0177] The above voxel data with ground area annotations are used as positive samples; other voxel data without ground area annotations are used as negative samples;
[0178] S126, using positive and negative samples to train a feedforward neural network;
[0179] The feedforward neural network is trained using the positive samples and negative samples.
[0180] Based on the above features, this embodiment has the following beneficial effects: by learning the three-dimensional structure of the ground, the accuracy of road detection under the condition of uneven and irregular roads is improved; compared with the prior art that uses two-dimensional structure modeling for the ground where the road is located, the embodiment of the present invention learns the unevenness of the road, thereby improving driving safety. Traditional road detection technology often relies on prior knowledge of the flatness of the road; however, for non-standard road environments such as mines and villages, it is impossible to obtain prior knowledge in advance, and the step of detecting the three-dimensional structure of the ground is very necessary.
[0181] Embodiment 4
[0182] In this embodiment, the road detection submodule 130 of the road detection model 100 is described in detail, and the rest of the road detection model 100 is the same as that of the first embodiment.
[0183] The road detection sub-model 130 includes a convolutional neural network;
[0184] The convolutional neural network includes a plurality of neural network layers; the plurality of neural network layers at least include an input layer, a convolutional layer, a pooling layer, and a fully connected layer; the input layer receives point cloud data contained in the ground three-dimensional structure 220 output by the road ground acquisition submodule 120; the convolutional neural network learns a road area point set from the point cloud data;
[0185] The road detection sub-model 130 obtains the position information of the road area according to the three-dimensional coordinates of the road area point set.
[0186] Specifically, the convolutional neural network is a three-dimensional convolutional neural network.
[0187] The training process of the convolutional neural network includes: converting image data into a bird's-eye view image; acquiring point cloud data of the three-dimensional structure of the ground; and training the convolutional neural network using positive and negative samples.
[0188] Specifically, the training process of the convolutional neural network includes:
[0189] S131, converting image data into a bird's-eye view image;
[0190] Obtain labeled training image data;
[0191] The training image is transformed into a bird's-eye view through inverse perspective mapping and registration mapping to obtain a bird's-eye view image; wherein the inverse perspective mapping transforms the image from the forward perspective into the image from the bird's-eye view; wherein the registration mapping performs registration correction of the camera image and the radar point cloud according to the calibration of the camera sensor and the radar sensor; the bird's-eye view image still has the corresponding road area annotation;
[0192] S132, data fusion and positive and negative sample generation;
[0193] The pixels of the bird's-eye view image are merged with the ground three-dimensional structure 220 according to the spatial position; wherein each voxel corresponds to one or more pixels of the bird's-eye view image; the annotation corresponding to each voxel can be generated according to the annotation of the pixel; the pixel annotation of the bird's-eye view image is mapped according to the annotation of the training image;
[0194] Obtain the point cloud data contained in each voxel; the annotation corresponding to the point cloud data is the same as the annotation of the voxel in which it is located;
[0195] The point cloud data with road area annotations are used as positive samples; other point cloud data without road area annotations are used as negative samples;
[0196] S133, using positive and negative samples to train convolutional neural networks;
[0197] The convolutional neural network is trained using the positive samples and negative samples.
[0198] Based on the characteristics, this embodiment has the following beneficial effects: by learning the three-dimensional structure of the ground, the accuracy of road detection under uneven and irregular road conditions is improved; compared with the prior art that uses two-dimensional structure modeling for the ground where the road is located, the embodiment of the present invention learns the unevenness of the road, thereby improving driving safety.
[0199] Embodiment 5
[0200] like Fig.13 As shown, in this embodiment, the method for performing road detection using the trained road detection model includes the following steps:
[0201] Step S210: sensor data acquisition.
[0202] The step S210 specifically includes: a point cloud data input step and an image data input step; the point cloud data input step receives the original point cloud data input, and pre-processes the original point cloud data to obtain point cloud data 210A; the image data input step receives the original image data input, and pre-processes the original image data to obtain image data 210B;
[0203] The step S210 further includes: a depth map data input step; the depth map data input step receives the depth map data input and pre-processes the depth map data, and a depth map conversion point cloud step; the depth map conversion point cloud step converts the depth map into point cloud data 210A;
[0204] Specifically, the step of converting the depth map to the point cloud performs a coordinate system transformation using the intrinsic parameters of the depth camera as constraints;
[0205] Based on step S210, this embodiment has the following beneficial effects: the road detection model uses point cloud data mainly for road detection, and can utilize the three-dimensional structure information of the road provided by the point cloud data, thereby improving the accuracy of road detection under uneven and irregular road conditions in non-standard road scenes; at the same time, the road detection model also uses image information, thereby improving the robustness of road detection.
[0206] Step S220: Acquire the terrain where the road is located.
[0207] The step S120 specifically includes: a main input step and a ground detection step;
[0208] The main input step receives the input of point cloud data 210A, divides the space based on voxels, and classifies the point cloud data into corresponding voxels according to the spatial coordinates to obtain voxel data; the ground detection step detects the ground three-dimensional structure 220 from the voxel data based on a feedforward neural network trained by converting the labeled training image data into a bird's-eye view image and fusing it with the voxel data to generate positive and negative samples of voxel data according to the image data annotation; the ground three-dimensional structure 220 is a subset of the voxel data representing the ground;
[0209] The step S220 further includes: an input step and a fusion step;
[0210] The input step receives the input of the image data 210B and converts it into a bird's-eye view image; the fusion step fuses the bird's-eye view image with the voxel data;
[0211] Specifically, the training process of the feedforward neural network 121 refers to the aforementioned embodiment.
[0212] Based on step S220, this embodiment has the following beneficial effects: the three-dimensional ground structure learned by the road detection model uses voxel labeling to describe the structure of the ground. The space containing the ground is divided by voxels, and the voxels containing the ground are identified by voxel labeling, so that the three-dimensional structure of the ground can be described, thereby improving the robustness of road detection under the conditions of uneven and irregular roads in non-standard road scenes. Compared with the prior art that uses two-dimensional structure modeling for the ground where the road is located, the embodiment of the present invention learns the unevenness of the road, thereby improving driving safety. Traditional road detection technology often relies on prior knowledge of the flatness of the road; for non-standard road environments such as mines and villages, the step of detecting the three-dimensional structure of the ground is very necessary.
[0213] Step S330: road detection.
[0214] The step S330 specifically includes:
[0215] Receiving point cloud data included in the ground three-dimensional structure 220;
[0216] Based on a convolutional neural network, a road area point set is learned from the point cloud data; the convolutional neural network includes multiple neural network layers; the multiple neural network layers include at least an input layer, a convolutional layer, a pooling layer, and a fully connected layer; based on the labeled training image data converted into a bird's-eye view image and then fused with the point cloud data, the convolutional neural network is trained to generate positive and negative samples of the point cloud data according to the image data annotation.
[0217] The road detection sub-model 130 obtains the position information of the road area according to the three-dimensional coordinates of the road area point set.
[0218] Specifically, the construction and training process of the convolutional neural network of the road detection sub-model 130 refers to the aforementioned embodiment.
[0219] Based on step S330, this embodiment has the following beneficial effects: the road detection model fully utilizes the detected three-dimensional ground structure to improve the accuracy of road detection.
[0220] The above-mentioned road detection process can be based on the road detection model stored in the autonomous driving vehicle or on a server outside the vehicle. When the autonomous driving vehicle performs actual road detection, the trained model is applied to perform road detection based on the image information and point cloud information actually obtained by the vehicle. In addition, the trained neural network model can also be stored in the electronic device 600, as shown in the attached Fig.16 shown.
[0221] The embodiment of the present invention does not limit the specific implementation of the application scenario of the road detection method, which can be determined according to actual conditions and will not be described in detail here.
[0222] Embodiment 6
[0223] In view of the above-mentioned problem of non-standard road scenes, an embodiment of the present invention provides a model training device. The model training device is shown in the attached Fig.14 shown.
[0224] like Fig.14 As shown, the model training device 1100 includes:
[0225] Sensor data acquisition sub-model building and training module 1110:
[0226] The sensor data acquisition submodel includes a point cloud data input branch and an image data input branch; the point cloud data input branch includes an input layer for inputting point cloud data and one or more neural network layers for performing point cloud data preprocessing; the image data input branch includes an input layer for inputting image data and one or more neural network layers for performing image data preprocessing;
[0227] The training process of the sensor data acquisition sub-model includes: directly inputting the input layer of the point cloud data and the input layer of the image data; converting the preprocessing process into a matrix operation, and setting the connection mode and parameters of each layer of one or more neural network layers that perform point cloud data preprocessing and one or more neural network layers that perform image data preprocessing according to the matrix operation;
[0228] Road surface acquisition sub-model construction and training module 1120:
[0229] The road surface acquisition submodule includes a feed-forward neural network 121;
[0230] The feedforward neural network 121 includes a main input branch and a slave input branch; the main input branch includes a point cloud layer 122 and one or more voxel layers 123; the point cloud layer 122 receives point cloud data 210A input, and the one or more voxel layers 123 convert the point cloud data into voxel data; the slave input branch includes an image layer 124 and one or more mapping layers 125; the image layer 124 receives image data 210B input, and the one or more mapping layers 125 convert the image data into a bird's-eye view image;
[0231] The feedforward neural network 121 further includes one or more fusion layers 126 and one or more ground layers 127; the one or more fusion layers 126 receive the bird's-eye view image output by the mapping layer 125 and the voxel data output by the voxel layer 123, and fuse the bird's-eye view image and the voxel data according to the spatial position relationship between them; in response to the input image data 210B having annotation information, the mapped bird's-eye view image and the fused voxel data will have the same annotation information; the one or more ground layers 127 receive the output of the fusion layer 126, extract the voxel set belonging to the ground area therefrom, and obtain the ground three-dimensional structure 220;
[0232] The training process of the feedforward neural network includes: preprocessing; converting point cloud data into voxel data; converting image data into bird's-eye view images; data fusion and positive and negative sample generation; training the feedforward neural network using positive and negative samples;
[0233] Road detection sub-model construction and training module 1130:
[0234] The road detection sub-model 130 includes a convolutional neural network;
[0235] The convolutional neural network includes a plurality of neural network layers; the plurality of neural network layers at least include an input layer, a convolutional layer, a pooling layer, and a fully connected layer; the input layer receives point cloud data contained in the ground three-dimensional structure 220 output by the road ground acquisition submodule 120; the convolutional neural network learns a road area point set from the point cloud data;
[0236] The road detection sub-model 130 obtains the position information of the road area according to the three-dimensional coordinates of the road area point set;
[0237] The training process of the convolutional neural network includes: converting image data into a bird's-eye view image; acquiring point cloud data of the three-dimensional structure of the ground; training the convolutional neural network using positive and negative samples;
[0238] Specifically, the convolutional neural network is a three-dimensional convolutional neural network.
[0239] Embodiment 7
[0240] In view of the above-mentioned problem of non-standard road scenes, an embodiment of the present invention provides a road detection device. Fig.15 shown.
[0241] like Fig.15 As shown, the road detection device 1200 has the following modules:
[0242] The sensor data acquisition module 1210 includes a point cloud data input submodule and an image data input submodule; the point cloud data input submodule receives raw point cloud data input, and preprocesses the raw point cloud data to obtain point cloud data 210A; the image data input submodule receives raw image data input, and preprocesses the raw image data to obtain point cloud data 210B;.
[0243] The road surface acquisition module 1220 includes a main input submodule and a ground detection submodule;
[0244] The main input submodule receives the input of point cloud data 210A, divides the space based on voxels, and classifies the point cloud data into corresponding voxels according to the spatial coordinates to obtain voxel data; the ground detection submodule converts the labeled training image data into a bird's-eye view image and then fuses it with the point cloud data to generate positive and negative samples of voxel data based on the image data annotation to train the generated feedforward neural network, and detects the ground three-dimensional structure 220 from the voxel data; the ground three-dimensional structure 220 is a subset of the voxel data that represents the ground.
[0245] Road detection module 1230: obtain image information containing roads, and input the image information into the input layer of the first neural network pathway; obtain point cloud information containing roads, and input the point cloud information into the input layer of the second neural network pathway; the output layer of the third neural network pathway outputs road coordinate information.
[0246] The beneficial effects of each module of the above-mentioned model training device and road detection device can be found in the above-mentioned embodiments and will not be described in detail here.
[0247] It is worth noting that the embodiments of the present invention do not limit the specific implementation of the application scenarios of the model training device and the road detection device, which can be determined according to actual conditions and will not be elaborated here.
[0248] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the processing module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0249] Embodiment 8
[0250] like Fig.16 As shown, in this embodiment, a model training electronic device 600 includes:
[0251] At least one processor 601, a memory 608, and an interface 609 for communicating with other electronic devices; the memory 608 stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the electronic device to perform the above-mentioned model training method.
[0252] In this embodiment, the road detection electronic device 700 (not shown in the figure) also has similar Fig.16 The structure shown is capable of executing the above-mentioned road detection method.
[0253] The model training electronic device 600 and the road detection electronic device 700 can be the same device or two independent devices; any of the electronic devices can be installed on the vehicle or on a server to interact with the vehicle-mounted device through a communication network. This embodiment does not limit the specific implementation of the application scenario of the model training or road detection electronic device, which can be determined according to actual conditions and will not be repeated here.
[0254] The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described and / or required herein. The electronic device can be the first device mentioned above, or it can be a vehicle control device, or a control center on a vehicle, which is not limited by this solution.
[0255] like Fig.16 As shown, the electronic device also includes: one or more ROM602, RAM603, bus, I / O interface, input unit 606, output unit 607, etc., and interfaces for connecting various components, including high-speed interface and low-speed interface, and interfaces for communicating with other electronic devices. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.16 A processor 601 is taken as an example.
[0256] The memory 608 is the non-transient computer-readable storage medium provided by the present invention. The memory stores instructions executable by at least one processor so that the at least one processor executes the method provided by the present invention. The non-transient computer-readable storage medium of the present invention stores computer instructions, which are used to enable a computer to execute the method provided by the present invention. The memory 608, as a non-transient computer-readable storage medium, can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. The processor 601 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 608, that is, implements the method in the above method embodiment.
[0257] The memory 608 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of electronic devices controlled by the autonomous driving vehicle, etc. In addition, the memory 608 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 608 may optionally include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the electronic device for data processing via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0258] The various components of the electronic device can be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0259] The input unit 606 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device for data processing, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick and other input devices. The output unit 607 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0260] Embodiment 9
[0261] According to this embodiment, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the model training method or road detection method according to the above-mentioned embodiment.
[0262] Embodiment 10
[0263] According to this embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the computer program implements the model training method or the road detection method according to the above embodiment.
[0264] The computer-readable storage medium and computer program product storing a computer program described in the above-mentioned embodiments, these computing programs (also referred to as programs, software, software applications, or codes) include machine instructions for programmable processors, and these computing programs can be implemented using high-level procedures and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives a machine instruction as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor. This embodiment does not specifically limit it.
[0265] Embodiment 11
[0266] According to this embodiment, an autonomous driving vehicle is provided, comprising the model training device according to the above embodiment or the road detection device according to the above embodiment.
[0267] It is understandable that this embodiment is also applicable to manned vehicles, which can provide driver prompts or automatic control based on the acquired road information. Some vehicles are equipped with a driving computer or an on-board unit (OBU), and some vehicles are equipped with user terminals such as mobile phones, as well as users holding user terminals. The mobile phone, driving computer or OBU in the vehicle can be used as an electronic device for implementing model training or road detection.
[0268] It can be understood that this embodiment is also applicable to an intelligent transportation network, which may include multiple vehicles that can communicate wirelessly, traffic control equipment that communicate wirelessly with each vehicle, a remote server, roadside equipment, and a base station, wherein the remote server or traffic control equipment can also control traffic facilities, etc.
[0269] The embodiments of the present invention do not limit the type, quantity, or application scenario of vehicles.
[0270] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0271] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0272] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0273] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and the present invention is not limited here.
[0274] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A model training method, comprising: Building and training a sensor data acquisition sub-model (110); Constructing and training a road surface acquisition sub-model (120); Building and training a road detection sub-model (130); The sensor data acquisition sub-model (110) comprises a point cloud data input branch and an image data input branch; the point cloud data input branch comprises an input layer for inputting point cloud data; The image data input branch includes an input layer for inputting image data; The training process of the sensor data acquisition sub-model includes: directly inputting an input layer of input point cloud data and an input layer of input image data; The road surface acquisition submodel (120) includes a feedforward neural network; the feedforward neural network includes a main input branch and a slave input branch; the main input branch includes a point cloud layer and one or more voxel layers; the point cloud layer receives point cloud data input, and the one or more voxel layers convert the point cloud data into voxel data; the slave input branch includes an image layer and one or more mapping layers; the image layer receives image data input, and the one or more mapping layers convert the image data into a bird's-eye view image; the feedforward neural network also includes one or more fusion layers and one or more ground layers; the one or more fusion layers receive the bird's-eye view image and the voxel data, and fuse the bird's-eye view image and the voxel data according to their spatial positions; the one or more ground layers receive the voxel data output by the fusion layer, extract the voxel set belonging to the ground area, and obtain the ground three-dimensional structure (220); The training process of the feedforward neural network includes: preprocessing; converting point cloud data into voxel data; converting image data into bird's-eye view images; data fusion and positive and negative sample generation; training the feedforward neural network using positive and negative samples; The road detection sub-model (130) includes a convolutional neural network; the convolutional neural network includes a plurality of neural network layers; the plurality of neural network layers include at least an input layer, a convolutional layer, a pooling layer, and a fully connected layer; the input layer receives point cloud data contained in the ground three-dimensional structure (220); the convolutional neural network extracts a road area point set (230) from the point cloud data; the road detection sub-model (130) obtains location information of the road area according to the three-dimensional coordinates of the road area point set (230); The training process of the convolutional neural network includes: converting image data into a bird's-eye view image; acquiring point cloud data of the three-dimensional structure of the ground; and training the convolutional neural network using positive and negative samples.
2. The method according to claim 1, comprising: The sensor data acquisition sub-model also includes a depth map data input branch; The depth map data input branch includes an input layer for inputting depth map data, and one or more neural network layers for converting the depth map into point cloud data; The training process of one or more neural network layers for converting a depth map into point cloud data includes: given depth map training data using a depth map coordinate system and corresponding point cloud training data using a point cloud coordinate system, performing a coordinate system transformation with the intrinsic parameters of the depth camera as constraints.
3. The method according to claim 1, comprising: The training process of the road surface acquisition sub-model (120) specifically includes: Feedforward neural network construction; Preprocessing: calibrate camera sensor, calibrate radar sensor; Convert point cloud data into voxel data: obtain training point cloud data; divide the space into voxels; convert training point cloud data into voxel data; Convert image data into bird's-eye view image: obtain training image data of the marked ground area; map the training image to the bird's-eye view through inverse perspective to obtain the bird's-eye view image; Data fusion and positive and negative sample generation: The bird's-eye view image and voxel data are fused according to the spatial position; the annotations of the training image are mapped to the bird's-eye view image and then mapped to the voxel data; the voxel data with ground area annotations are used as positive samples; other voxel data without ground area annotations are used as negative samples; The feedforward neural network is trained using the positive and negative samples.
4. The method according to claim 1, comprising: Convert image data into bird's-eye view images: Obtain labeled training image data; The training image is transformed into a bird's-eye view through inverse perspective mapping and registration mapping to obtain a bird's-eye view image; Data fusion and positive and negative sample generation: the pixels of the bird's-eye view image are fused with the ground three-dimensional structure (220) according to the spatial position; the training image is mapped to the bird's-eye view image and then mapped to the voxel data according to the annotation; the point cloud data contained in each voxel is obtained; the annotation corresponding to the point cloud data is the same as the annotation of the voxel in which it is located; the point cloud data with the road area annotation is used as the positive sample; other point cloud data without the road area annotation is used as the negative sample; Training the convolutional neural network using the positive and negative samples; The convolutional neural network is a three-dimensional convolutional neural network.
5. A road detection method, comprising: Sensor data acquisition steps; Steps to obtain the road surface; Road detection steps: The sensor data acquisition step includes a point cloud data input step and an image data input step; the point cloud data input step receives raw point cloud data input and pre-processes the raw point cloud data to obtain point cloud data; the image data input step receives raw image data input and pre-processes the raw image data to obtain image data; The road surface acquisition step includes a main input step and a ground detection step; the main input step receives input of point cloud data, divides the space based on voxels, and classifies the point cloud data into corresponding voxels according to the spatial coordinates to obtain voxel data; the ground detection step detects the ground three-dimensional structure (220) from the voxel data based on a feedforward neural network trained by converting the labeled image data into a bird's-eye view image and fusing it with the voxel data to generate positive and negative samples of voxel data based on the image data annotation; the ground three-dimensional structure (220) is a subset of the voxel data representing the ground; The road detection step comprises: receiving point cloud data included in the ground three-dimensional structure (220); learning a road area point set from the point cloud data based on a convolutional neural network; the convolutional neural network comprises a plurality of neural network layers; the plurality of neural network layers at least comprises an input layer, a convolutional layer, a pooling layer, and a fully connected layer; and training the convolutional neural network by converting the labeled training image data into a bird's-eye view image and fusing it with the point cloud data to generate positive and negative samples of the point cloud data according to the image data annotation.
6. The method according to claim 5, wherein the sensor data acquisition step further comprises a depth map data input step; The depth map data input step receives depth map data input, and the depth map conversion point cloud step; the depth map conversion point cloud step converts the depth map into point cloud data.
7. The method according to claim 6, comprising: The step of converting the depth map to the point cloud performs coordinate system transformation using the intrinsic parameters of the depth camera as constraints.
8. The method according to claim 5, wherein the step of acquiring the road surface further comprises an input step and a fusion step; The input step receives the input of image data and converts it into a bird's-eye view image; and the fusion step fuses the bird's-eye view image with the voxel data.
9. A model training device, comprising: A sensor data acquisition sub-model (110) construction and training module: the sensor data acquisition sub-model (110) comprises a point cloud data input branch and an image data input branch; The point cloud data input branch includes an input layer for inputting point cloud data; The image data input branch includes an input layer for inputting image data; The training process of the sensor data acquisition sub-model includes: directly inputting an input layer of input point cloud data and an input layer of input image data; The road surface acquisition submodel (120) construction and training module: The road surface acquisition submodel (120) includes a feedforward neural network; the feedforward neural network includes a main input branch and a secondary input branch; the main input branch includes a point cloud layer and one or more voxel layers; the point cloud layer receives point cloud data input, and the one or more voxel layers convert the point cloud data into voxel data; the secondary input branch includes an image layer and one or more mapping layers; the image layer receives image data input, and the one or more mapping layers convert the image data into a bird's-eye view image; the feedforward neural network also includes one or more fusion layers and one or more ground layers; the one or more fusion layers receive the bird's-eye view image and the voxel data, and fuse the bird's-eye view image and the voxel data according to their spatial positions; the one or more ground layers receive the voxel data output by the fusion layer, extract the voxel set belonging to the ground area, and obtain the ground three-dimensional structure (220); the training process of the feedforward neural network includes: preprocessing; conversion of point cloud data into voxel data; conversion of image data into bird's-eye view images; data fusion and generation of positive and negative samples; training the feedforward neural network using positive and negative samples; A road detection sub-model (130) construction and training module: the road detection sub-model (130) includes a convolutional neural network; the convolutional neural network includes multiple neural network layers; the multiple neural network layers include at least an input layer, a convolutional layer, a pooling layer, and a fully connected layer; the input layer receives point cloud data contained in the ground three-dimensional structure (220); the convolutional neural network extracts a road area point set (230) from the point cloud data; the road detection sub-model (130) obtains the location information of the road area according to the three-dimensional coordinates of the road area point set (230); the training process of the convolutional neural network includes: converting image data into a bird's-eye view image; obtaining point cloud data of the ground three-dimensional structure; and training the convolutional neural network using positive and negative samples.
10. A road detection device, comprising: A sensor data acquisition module, including a point cloud data input submodule and an image data input submodule; The point cloud data input submodule receives the original point cloud data input, and preprocesses the original point cloud data to obtain point cloud data; the image data input submodule receives the original image data input, and preprocesses the original image data to obtain image data; The road surface acquisition module includes a main input submodule and a ground detection submodule; The main input submodule receives the input of point cloud data, divides the space based on voxels, and classifies the point cloud data into corresponding voxels according to the spatial coordinates of the point cloud data to obtain voxel data; The ground detection submodule detects the ground three-dimensional structure (220) from the voxel data based on a feedforward neural network trained by converting the labeled image data into a bird's-eye view image and fusing it with the voxel data to generate positive and negative samples of the voxel data according to the image data annotation; the ground three-dimensional structure (220) is a subset of the voxel data representing the ground; The road detection module receives point cloud data included in the ground three-dimensional structure (220); learns a road area point set from the point cloud data based on a convolutional neural network; the convolutional neural network includes multiple neural network layers; the multiple neural network layers include at least an input layer, a convolutional layer, a pooling layer, and a fully connected layer; based on the labeled training image data converted into a bird's-eye view image and then fused with the point cloud data, the convolutional neural network is trained to generate positive and negative samples of the point cloud data according to the image data annotation.
