This invention relates to the generation of a proposed path, and more particularly to a weakly-supervised approach to segmenting proposed drivable paths in images with the goal of autonomous driving in various environments, including urban environments.
The invention is described herein with reference to a data collection vehicle recording a route. However, the skilled person will appreciate that the invention is more widely applicable and may use route images collected in any way, including collating images from a variety of different sources.
Further, the invention is described herein in relation to autonomous or semi-autonomous vehicles driving through urban environments, but the skilled person will appreciate that the path proposals identified may be used for other purposes (for example, to identify a route for a person to walk), and that the techniques may be applied to non-urban environments. Nonetheless, the invention is currently expected to have particular utility in the field of autonomous vehicles driving in urban environments.
Road scene understanding is a critical component for decision making and safe operation of autonomous vehicles in urban environments. Given the structured nature of on-road driving, all autonomous vehicles must follow the “rules of the road”; crucially, driving within designated lanes in the correct direction and negotiating intersections.
Traditional methods of camera-based drivable path estimation for road vehicles involve pre-processing steps to remove shadow and exposure artefacts (see, for example, J. M. 'Alvarez, A. M. L'opez, and R. Baldrich, “Shadow resistant road segmentation from a mobile monocular system”, in Iberian Conference on Pattern Recognition and Image Analysis. Springer, 2007, pp. 9-16, and I. Katramados, S. Crumpler, and T. P. Breckon, “Real-time traversable surface detection by colour space fusion and temporal analysis”, in International Conference on Computer Vision Systems. Springer, 2009, pp. 265-274.), extraction of low-level road and lane features (see, for example J. C. McCall and M. M. Trivedi, “Video-based lane estimation and tracking for driver assistance: survey, system, and evaluation”, IEEE transactions on intelligent transportation systems, vol. 7, no. 1, pp. 20-37, 2006, and K. Yamaguchi, A. Watanabe, T. Naito, and Y. Ninomiya, “Road region estimation using a sequence of monocular images”, in Pattern Recognition, 2008. ICPR 2008. IEEE, 2008, pp. 1-4), fitting road and lane models to feature detections (see, for example, R. Labayrade, J. Douret, J. Laneurit, and R. Chapuis, “A reliable and robust lane detection system based on the parallel use of three algorithms for driving safety assistance”, IEICE transactions on information and systems, vol. 89, no. 7, pp. 2092-2100, 2006, and A. S. Huang and S. Teller, “Probabilistic lane estimation for autonomous driving using basis curves”, Autonomous Robots, vol. 31, no. 2-3, pp. 269-283, 2011), and temporal fusion of road and lane hypotheses between successive frames (see, for example, R. Jiang, R. Klette, T. Vaudrey, and S. Wang, “New lane model and distance transform for lane detection and tracking”, in International Conference on Computer Analysis of Images and Patterns. Springer, 2009, pp. 1044-1052, and H. Sawano and M. Okada, “A road extraction method by an active contour model with inertia and differential features”, IEICE transactions on information and systems, vol. 89, no. 7, pp. 2257-2267, 2006).
While effective in well-maintained road environments, these approaches suffer in the presence of occlusions, shadows and changing lighting conditions, unstructured roads and areas with few or no markings (see A. B. Hillel, R. Lerner, D. Levi, and G. Raz, “Recent progress in road and lane detection: a survey”, Machine vision and applications, vol. 25, no. 3, pp. 727-745, 2014). Robustness can be significantly increased by combining images with radar (see B. Ma, S. Lakshmanan, and A. O. Hero, “Simultaneous detection of lane and pavement boundaries using model-based multisensor fusion”, IEEE Transactions on Intelligent Transportation Systems, vol. 1, no. 3, pp. 135-147, 2000) or LIDAR (see A. S. Huang, D. Moore, M. Antone, E. Olson, and S. Teller, “Finding multiple lanes in urban road networks with vision and LIDAR”, Autonomous Robots, vol. 26, no. 2-3, pp. 103-122, 2009) but at an increased sensor cost.
More recently, advances in image processing using deep learning (see Y. LeCun, Y. Bengio, and G. Hinton, “Deep learning”, Nature, vol. 521, no. 7553, pp. 436-444, 2015) have led to impressive results on the related problem of semantic segmentation, which aims to provide per-pixel labels of semantically meaningful objects for input images (see, for example J. Long, E. Shelhamer, and T. Darrell, “Fully convolutional networks for semantic segmentation”, in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015, pp. 3431-3440, G. Papandreou, L.-C. Chen, K. Murphy, and A. L. Yuille, “Weakly-and semi-supervised learning of a DCNN for semantic image segmentation”, arXiv preprint arXiv:1502.02734, 2015 and the paper of V. Badrinarayanan et al cited above). Deep networks make use of the full image context to perform semantic labelling of road and lane markings, and hence are significantly more robust than previous feature-based methods. However, for automated driving these approaches depend on large-scale manually-annotated road scene datasets (notably CamVid (G. J. Brostow, J. Fauqueur, and R. Cipolla, “Semantic object classes in video: A high-definition ground truth database”, Pattern Recognition Letters, vol. 30, no. 2, pp. 88-97, 2009) and Cityscapes (M. Cordts, M. Omran, S. Ramos, T. Rehfeld, M. Enzweiler, R. Benenson, U. Franke, S. Roth, and B. Schiele, “The Cityscapes dataset for semantic urban scene understanding”, arXiv preprint arXiv:1604.01685, 2016), consisting of 700 and 5,000 labelled frames respectively), which are time-consuming and expensive to produce.
The challenges in building large-scale labelled datasets have led some researchers to consider virtual environments, for which ground truth semantic labels can be rendered in parallel with synthetic camera images. Methods using customised video game engines have been used to produce hundreds of thousands of synthetic images with corresponding ground truth labels (see G. Ros, L. Sellart, J. Materzynska, D. Vazquez, and A. M. Lopez, “The SYNTHIA Dataset: A large collection of synthetic images for semantic segmentation of urban scenes”, in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2016, pp. 3234-3243, and S. R. Richter, V. Vineet, S. Roth, and V. Koltun, “Playing for data: Ground truth from computer games”, arXiv preprint arXiv:1608.02192, 2016). While virtual environments allow large-scale generation of ground truth semantic labels, they present two problems: firstly, rendering pipelines are typically optimised for speed and may not accurately reflect real-world images (both above approaches suggest rendered images are used only for augmenting real-world datasets and hence manual labelling is still necessary for at least a sub-set of the datasets); secondly, the actions of the vehicle and all other agents in the virtual world must be pre-programmed and may not resemble real-world traffic scenarios.
A recent method uses sparse 3D prior information to transfer labels to real-world 2D images (see J. Xie, M. Kiefel, M. T. Sun, and A. Geiger, “Semantic instance annotation of street scenes by 3D to 2D label transfer”, in Conference on Computer Vision and Pattern Recognition (CVPR), 2016) but requires sophisticated 3D reconstructions and manual 3D annotations.
Some approaches have proposed bypassing segmentation entirely and learning a direct mapping from input images to vehicle behaviour (see D. A. Pomerleau, “ALVINN: An autonomous land vehicle in a neural network”, DTIC Document, Tech. Rep., 1989, and U. Muller, J. Ben, E. Cosatto, B. Flepp, and Y. L. Cun, “Off-road obstacle avoidance through end-to-end learning”, in Advances in neural information processing systems, 2005, pp. 739-746). These methods also use the driver of the data collection vehicle to generate a label for each image, so generating the supervised labels for the network (e.g. a single steering angle value per image) and have recently demonstrated impressive results in real-world driving tests (see M. Bojarski, D. Del Testa, D. Dworakowski, B. Firner, B. Flepp, P. Goyal, L. D. Jackel, M. Monfort, U. Muller, J. Zhang, et al., “End to end learning for self-driving cars”, arXiv preprint arXiv:1604.07316, 2016), but it is not clear how this approach generalises to scenarios where there are multiple possible drivable paths to consider (e.g. intersections). This approach uses a convolutional neural network to map raw pixels from a single front-facing camera directly to steering commands; there is no segmentation of a proposed path extending into the future/image.
Current commercial systems that perform driver assistance and on-road autonomy typically depend on visual recognition of lane markings and explicit definitions of lanes and traffic rules, and therefore rely on simple road layouts with clear markings (e.g. well-maintained highways). See, for example, S. Yenikaya, G. Yenikaya, and E. Düven, “Keeping the vehicle on the road: A survey on on-road lane detection systems”, ACM Computing Surveys (CSUR), vol. 46, no. 1, p. 2, 2013, and A. B. Hillel, R. Lerner, D. Levi, and G. Raz, “Recent progress in road and lane detection: a survey”, Machine vision and applications, vol. 25, no. 3, pp. 727-745, 2014.
To extend these systems beyond multi-lane highways to complex urban environments and rural or undeveloped locations without clear or consistent lane markings, an alternative approach is proposed.
According to a first aspect of the invention, there is provided a method of generating a training dataset for use in autonomous route determination. Use may include use in training or testing a segmentation unit suitable for use in autonomous route determination. The method may generate a set of segmented images.
The method may require little or no supervision, and/or may not require manual labelling of images.
The method may comprise obtaining data from a data collection vehicle driven through an environment, the data comprising:
The method may comprise using the obstacle sensing data to label one or more portions of at least some of the images as obstacles.
The method may comprise using the vehicle odometry data to label one or more portions of at least some of the images as the path taken by the vehicle through the environment.
Conveniently, the training dataset is created from the labelled images, and may or may not be constituted by the labelled images (i.e. the creation of the training dataset may simply comprise collating the labelled images, without the addition of any further data or image processing, or there may be additional data).
The method may further comprise a calibration process to allow the odometry data and the obstacle sensing data to be matched to the images.
According to a second aspect of the invention, there is provided a training dataset and/or test dataset for use in autonomous route determination. The dataset may include at least some images segmented and labelled by the method of the first aspect, and may additionally include images not segmented and labelled by the method of the first aspect.
The dataset may include images labelled without any human supervision of, or seeding of, the labelling process.
According to a third aspect of the invention, there is provided a segmentation unit trained for autonomous route determination, wherein the segmentation unit is taught to identify a path within an image that would be likely to be chosen by a driver.
The segmentation unit may be trained and/or tested using a training data set as described with respect to the second aspect of the invention.
According to a fourth aspect of the invention, there is provided an autonomous vehicle comprising, and/or arranged to use the output of, a segmentation unit according to the third aspect of the invention.
The vehicle may comprise a sensor arranged to capture images of an environment around the autonomous vehicle.
A route of the autonomous vehicle through the environment may be, at least in part, determined by the segmentation unit using images captured by the sensor. In some embodiments, additional systems may be used to make a decision based on the path proposals from the segmentation unit.
The autonomous vehicle may only comprise a monocular camera, as monocular camera data is sufficient for the trained segmentation unit.
The person skilled in the art will appreciate that, in some embodiments, the data collection vehicle may also be the autonomous vehicle of the fourth aspect of the invention. In such embodiments, obstacle sensing data and odometry data may or may not be recorded whilst driving autonomously. A different vehicle is therefore not required.
According to a fifth aspect of the invention, there is provided a machine readable medium containing instructions which, when read by a machine, cause that machine to perform segmentation and labelling of one or more images of an environment.
The instructions may include instructions to use vehicle odometry data detailing a path taken by a vehicle through the environment to identify and label one or more portions of at least some of the images as being the path taken by the vehicle through the environment.
The instructions may include instructions to use obstacle sensing data detailing obstacles detected in the environment to identify and label one or more portions of at least some of the images as obstacles.
The machine readable medium referred to may be any of the following: a CDROM; a DVD ROM/RAM (including −R/−RW or +R/+RW); a hard drive; a memory (including a USB drive; an SD card; a compact flash card or the like); a transmitted signal (including an Internet download, ftp file transfer of the like); a wire; etc.
Features described in relation to one of the above aspects of the invention may be applied, mutatis mutandis, to the other aspect of the invention. Further, the features described may be applied to the or each aspect in any combination.
There now follows by way of example only a detailed description of embodiments of the present invention with reference to the accompanying drawings in which:
In the figures, like reference numerals are used to reference like components.
Embodiments of the invention are described in relation to a sensor 12 mounted upon a vehicle 10, as is shown in
The embodiment being described utilises a weakly-supervised approach 100 to segmenting path proposals for a road vehicle 10 in urban environments given a single monocular input image 112. Weak supervision is used to avoid expensive manual labelling by using a more readily available source of labels instead. In the embodiment being described, weak supervision involves creating labels of the proposed path in images 112 by leveraging the route actually travelled by a road vehicle 10. In the embodiment being described, the labels are pixel-wise; i.e. pixels of an image 112 are individually labelled.
The approach 100 is capable of segmenting a proposed path 14 for a vehicle 10 in a diverse range of road scenes, without relying on explicit modelling of lanes or lane markings. The term “path proposal” is defined as a route a driver would be expected to take through a particular road and traffic configuration.
The approach 100 described herein uses the path taken 14a by the data collection vehicle 10 as it travels through an environment to implicitly label proposed paths 14 in the image 106 in the training phase, but may still allow a planning algorithm to choose the best path 14 for the a route in the deployment phase.
A method 100 of automatically generating labelled images 114 containing path proposals 14 by leveraging the behaviour of the data collection vehicle driver along with additional sensors 12a, 12b mounted to the vehicle 10, is described, as illustrated in
Embodiments of the invention as disclosed herein relate not only to the method of generating a training dataset 108 described, but also to the resultant training dataset itself, and to applications of that dataset. The method 100 described allows a training dataset to be generated without any manual labeling—either of each training image, or of one training image (or a subset of training images) which is then used as a seed which allows labels to be propagated to other images.
The skilled person will appreciate that a set of labeled images 108 generated by the method 100 disclosed herein may form part of a training dataset which also includes manually labeled images, images labeled by a different technique and/or unlabeled images.
The training dataset 108 produced is arranged to be used in autonomous route determination. In particular, the training dataset shows examples of paths 14a within images 106 which were chosen by a driver (or an autonomous vehicle 10). A segmentation unit 110 (such as SegNet—V. Badrinarayanan, A. Handa, and R. Cipolla, “SegNet: A deep convolutional encoder-decoder architecture for robust semantic pixelwise labelling,” arXiv preprint arXiv:1505.07293, 2015.) trained on the training dataset 108 is therefore taught to identify a path 14 within an image 112 that would be likely to be chosen by a driver.
In
The visual images 106 obtained by the data collection vehicle 10 are described as training images 106 as these are labelled as described below and then used to train one or more systems or devices to identify path proposals in other images (that is proposed paths for a vehicle to traverse the environment contained within the visual images 106).
In the embodiment being described the training images 106 are used to train a segmentation framework (in particular a deep semantic segmentation network 110), which may be a neural network such that the trained segmentation framework can predict routes likely to be driven by a driver who contributed to the training dataset in new/unknown scenes.
The segmentation framework, or the output therefrom, can then be used to inform a route planner. The skilled person will appreciate that route planners generally operate by minimising a cost function so as to provide a recommended route. In some embodiments, the segmentation framework is arranged to output a suitable cost function for a route planner, or suitable parameters for a cost function of a route planner.
The training data 106 can therefore be used to train a system able to predict routes likely to be driven by the original driver through a scene at hand. That system can then be used to inform a trajectory planner/route planner (e.g. via mapping the route proposal into a planner cost function). The planner may or may not be separate from the trained system.
In alternative embodiments, a single sensor 12 may provide both odometry 102 and obstacle 104 data. In yet further embodiments, more sensors may be provided.
The odometry 102 and obstacle data 104 is projected into the training images 106 to generate weakly-supervised labels 108 relevant for traversing through the environment, such as used in autonomous driving. The chosen labels are “Unknown”, “Obstacles” and “Path” in the embodiment being described. In alternative or additional embodiments, more, fewer or different labels may be used. For example, “Unknown” may not be used, and/or “Obstacles” may be subdivided by obstacle type. The labels are used to classify regions of the training images 106.
In the Figures, diagonal lines sloped at an acute angle to the horizontal, as measured from the right hand side (///), are used to mark regions identified as “Unknown” 16, diagonal lines sloped at an obtuse angle to the horizontal, as measured from the right hand side (\\\), are used to mark regions identified as “Obstacles” 15a, and broken diagonal lines are used to mark regions identified as “Path” 14a.
The labelled images 108 are, in the embodiment being described, used to train a deep semantic segmentation network 110. The skilled person will appreciate that, although a deep semantic network 110 was used in the embodiment being described, other machine learning systems may be used as a segmentation unit 110 instead of or as well as a deep semantic network 110 (any of these may be referred to as a segmentation network 110). The skilled person will appreciate that, in various embodiments, the segmentation unit 110 may be implemented in software and may not have unique hardware, or vice versa.
At run-time, a vehicle 10 equipped with only a monocular camera 12a can perform live segmentation of the drivable path eg 14a and obstacles 15a using the trained segmentation network 110 (second part of
In the embodiment being described, the data was used to train an off-the-shelf deep semantic segmentation network 110 (e.g. SegNet, see the paper of V. Badrinarayanan et al. cited above) to produce path proposal segmentations 114 using only a monocular input image 112 (e.g. a photograph). The deep semantic segmentation network 110 may then be used as part of, or to feed into, a route planner, which may be an in-car or portable device used to suggest routes to a driver/user.
The approach 100 was evaluated using two large-scale autonomous driving datasets: the KITTI dataset (see A. Geiger, P. Lenz, C. Stiller, and R. Urtasun, “Vision meets robotics: The KITTI dataset”, The International Journal of Robotics Research, p. 0278364913491297, 2013), collected in Karlsruhe, Germany, and the large-scale Oxford RobotCar Dataset (http://robotcar-dataset.robots.ox.ac.uk), consisting of over 1000 km of recorded driving in Oxford, UK, over the period of a year.
For each of these datasets, additional sensors 12a, 12b on the vehicle 10 and the trajectory taken by the driver were used as the weakly-supervised input to train a pixel-wise semantic classifier. Segmentation results are presented on the KITTI Road (J. Fritsch, T. Kuehnl, and A. Geiger, “A new performance measure and evaluation benchmark for road detection algorithms”, in 16th International IEEE Conference on Intelligent Transportation Systems (ITSC 2013) IEEE, 2013, pp. 1693-1700), and with Object and Tracking benchmarks, and the performance under different lighting and weather conditions is investigated using the Oxford dataset.
Weakly-Supervised Segmentation
In the following section, an embodiment of the invention for generating weakly-supervised training data 108 for proposed path segmentation using video and other sensor data recorded from a (in the embodiment being described) manually-driven vehicle 10 is outlined. In some embodiments, the vehicle 10 used to record video and other sensor data (the data collection vehicle 10) may be autonomously driven, but embodiments of the invention are described below in relation to a manually driven data collection vehicle 10 as this was the arrangement used for the test results described. The skilled person will appreciate that other factors specific to the test performed may be varied or eliminated in other embodiments of the invention.
As regions within an image 106 corresponding to the route taken 14a by the vehicle 10 and to obstacles 15a are identified and marked, the image 106 is described as being segmented, forming a segmented image 108. The segmented images 108 can be used as training data.
Once trained on the training data 108, a segmentation unit 110 can then segment new images 112 in the same way, so forming new segmented images 114.
The segmented images 114 formed at run-time may optionally be added to the training data 108 and used in the training phase thereafter, optionally subject to driver/user approval.
A. Sensor Configuration
In addition to a monocular camera 12a to collect input images 106, 112 (i.e. images of the environment around the data collection vehicle 10), the approach 100 of the embodiment being described uses the following two capabilities of the data collection vehicle 10:
A vehicle odometry system 12a and an obstacle sensing system 12b may be mounted on, or integral with, the data collection vehicle 10. In either case, the sensing systems 12a, 12b move with the vehicle 10 and may therefore be described as being onboard the vehicle 10.
Note that the vehicle odometry 102 and obstacle sensing 104 capabilities used for collecting training data 106, 108 are not required when using the training data, nor when operating an autonomous vehicle 10 using a segmentation unit 110 trained on the training data; the resulting network can operate with only a monocular input image 112, although the skilled person will appreciate that additional sensors and/or data inputs may also be used.
B. Weakly-Supervised Labelling
In the embodiment being described, pixels of images are assigned to, and labelled as being part of, one or more classes (ie they have class labels associated with them). To generate class labels for pixels in the input image(s) 112, recorded data from the data collection vehicle 10 driven by a human driver in a variety of traffic and weather conditions is used in the embodiment being described. The classes/labels described herein correspond to obstacles 15 in the environment which are in front of the data collection vehicle 10, path taken 14 by the data collection vehicle 10 through the environment, and “unknown” for the remainder 16, i.e. for any unlabeled area(s). In alternative embodiments, fewer classes may be used (e.g. not using “unknown”) and/or more classes may be used (e.g. separating dynamic and static obstacles, or obstacles in front of the vehicle from other obstacles).
In the embodiment being described, each pixel is assigned to a class 14, 15, 16. In alternative embodiments, some pixels may be unassigned, and/or averages may be taken across pixel groups. In this way, different portions of an image 106, 112 are labeled as belonging to different classes (or not labeled, in some embodiments).
There may be more than one portion of an image 106, 112 relating to the same class within a single image; for example, an obstacle on the road as well as obstacles on either side of the road. In some images 106, 112, there may be no portion(s) in a particular class; for example where the image represents a portion of the environment fully within the vehicle's path, with no obstacles 15 or unknown areas 16.
The general approach of methods that learn to drive by demonstration is used for the embodiment described herein (see, for example B. D. Argall, S. Chernova, M. Veloso, and B. Browning, “A survey of robot learning from demonstration”, Robotics and autonomous systems, vol. 57, no. 5, pp. 469-483, 2009, and D. Silver, J. A. Bagnell, and A. Stentz, “Learning autonomous driving styles and maneuvers from expert demonstration”, in Experimental Robotics. Springer, 2013, pp. 371-386), and it is assumed that the proposed path 14 corresponds to the one chosen by the driver of the data collection vehicle 10 in each scenario. Labels 14, 15, 16 are then generated by projecting the future path of the vehicle 10 into each image 112, over which object labels as detected by the LIDAR scanner are superimposed as follows. “Future” in this context means after the image in question 112 was taken—the “future” path is the path driven by the vehicle 10, as recorded by the odometry system 12b during the training phase (first part of
The segmentation unit 110 segments new images 112 (i.e. images not forming part of the training dataset) provided to it in accordance with its training, thereby marking proposed paths 14 within the new images 112.
The segmentation unit 110 may be onboard an autonomous (or semi-autonomous) vehicle 10 and arranged to receive images 112 taken by a camera 12a on the autonomous vehicle 10 and to process those images so as to propose a path 14 by segmentation 114 of the image. The route proposals 14 may be provided in real-time so as to enable the output of the segmentation unit 110 to be used in directing the vehicle 10.
The embodiments being described use real images 106 and vehicle path data 102 for the training dataset/to train the system. The supervisory signal as to a proposed path 14 is the path 14a actually driven by the data collection vehicle 10, projected into the image 106 as a label (shown in
The embodiments described allow for multiple proposed paths 14 (for example left and right at an intersection) and obstacle segmentations 15. In some embodiments, an additional system may be used after the segmentation to decide how to utilise the path proposals 14.
The skilled person will appreciate that the labeled images 108 produced may be used as a test dataset as well as, or instead of, as a training dataset. A trained segmentation unit 110 could be given the images 106 of the test dataset without segmentation information 108 and the output of the trained segmentation unit can then be compared to the segmented images 108 of the test dataset to assess the performance of the segmentation unit 110. Any features described with respect to the training data set may therefore be applied equally to a test data set.
Proposed Path Projection:
To project the future path 14a of the vehicle 10 into the current frame 106, the size of the vehicle 10 and the points of contact with the ground during the trajectory are used. The position of the contact points c{l,r} of the front left and right wheels on the ground relative to the camera C may be determined as part of a calibration procedure. The position of the contact point c{l,r} in the current camera frame Ct after k frames is then found as follows:
C
C
{l,r},k
=KG
C
C
c
{l,r} (1)
where K is the perspective projection matrix for the camera C and GC
G
C
C
=G
C
C
×G
C
C
× . . . ×G
C
C
(2)
Proposed path pixel labels 14 are then formed by filling quadrilaterals in image coordinates corresponding to sequential future frames. The vertices of the quadrilateral are formed by the following points in camera frame Ct:
{C
where the index variable j={1 . . . k}. An illustration of the proposed path projection and labelling process is shown in
The choice of frame count k depends on the look-ahead distance required for path labelling and the accuracy of the vehicle odometry system 12b used to provide relative frame transforms. In practice k is chosen such that the distance between first and last contact points ∥GC
Obstacle Projection:
For some applications it may be sufficient to use just the proposed path labels 14 to train a semantic segmentation network 110. However, for on-road applications in the presence of other vehicles 41 and dynamic objects, a naive projection of the path driven will intersect vehicles 41 in the same lane and label them as drivable paths 42 as illustrated in
Intersecting paths with vehicles in this manner may lead to catastrophic results when the labelled images 108 are used to plan paths for autonomous driving, since vehicles and traffic may be labelled as traversable by the network.
The obstacle sensor 12b mounted on the vehicle 10, in this case a LIDAR scanner, is used for obstacle detection. Each 3D obstacle point pti observed at time t is projected into the camera frame Ct as follows:
C
p
t
i
=KG
CLp
(4)
Where K is the camera projection matrix and GCL is the SE(3) extrinsic calibration between the camera and LIDAR sensor.
In the embodiment being described, for each camera-frame point C
Obstacle pixel labels 15 take precedence over proposed path labels 14 in the embodiment being described to facilitate correct labelling of safe drivable paths/the chosen path 14 as illustrated in
In most images 106, 112, there will be locations 116 labelled as neither proposed path nor obstacle. These correspond to locations 116 which the vehicle 10 has not traversed (and hence is not known to be traversable and is not part of the chosen path 14), but no positive identification of obstacles 15 have been made. Typically these areas correspond to the road area outside the current lane (including lanes for oncoming traffic), kerbs, empty pavements and ditches. These locations are referred to as “unknown area” 16, as it is not clear whether the vehicle 10 should enter these spaces during autonomous operation; this would be a decision for a higher-level planning framework as discussed below. Examples of unknown areas 16 can be seen in
C. Semantic Segmentation
Once proposed path 14, obstacle 15 and unknown area 16 labels are automatically generated for a large number of recorded images 106, these labelled images 108 can be used to train a semantic segmentation network 110 to classify new images 112 from a different vehicle 10 (or from the same vehicle, in some embodiments). In the example described, this different vehicle 10 was equipped with only a monocular camera 12a.
SegNet is used: a deep convolutional encoder-decoder architecture for pixel-wise semantic segmentation. Although higher-performing network architectures now exist (e.g. G. Papandreou, L. C. Chen, K. Murphy, and A. L. Yuille, “Weakly-and semi-supervised learning of a DCNN for semantic image segmentation”, arXiv preprint arXiv:1502.02734, 2015), and others could be used, Seg-Net provides real-time evaluation on consumer GPUs, making it suitable for deployment in an autonomous vehicle 10.
The weakly-supervised labelling approach 100 being described can generate vast quantities of training data 108, limited only by the length of time spent driving the data collection vehicle 10. However, the types of routes driven will also bias the input data 102, 104, 106. As most on-road driving is performed in a straight line; a random sample of the training data will consist mostly of straight-line driving. In practice the data were subsampled to 4 Hz, before further subsampling based on turning angle. For each frame, the average yaw rate
where φ(G) is a function that extracts the Euler yaw angle φ from the SE(3) transform matrix B. In the example described, a histogram of average yaw rates was then built and random samples taken from the histogram bins to ensure an unbiased selection of different turning angles.
In the tests of the embodiment of the invention being described, two different model segmentation networks were built for evaluation: one using the KITTI Raw dataset and one using the Oxford RobotCar dataset. These datasets were collected using different vehicles with different sensor setups, summarised in Table I:
A. Platform Specifications
Both vehicles 10 are equipped with stereo camera systems 12a and the stereo visual odometry approach described in the PhD thesis of W. Churchill cited above is used to compute the relative motion estimates required in Eq. 2.
The images 112 from the cameras 12a are cropped and downscaled to the resolutions listed in Table I before training.
The Oxford RobotCar is equipped with a SICK LD-MRS LIDAR scanner/sensor 12b, which performs obstacle merging and tracking across 4 scanning planes in hardware. Points identified as “object contours” are used to remove erroneous obstacles due to noise and ground-strike. The Velodyne HDL-64E mounted on the AnnieWAY vehicle does not perform any object filtering, and hence the following approach is used to detect obstacles: a ground plane is fitted to the 3D LIDAR scan using MLESAC (see P. H. Torr and A. Zisserman, “Mlesac: A new robust estimator with application to estimating image geometry”, Computer Vision and Image Understanding, vol. 78, no. 1, pp. 138-156, 2000), and treat all points more than roughly 0.25 m above this plane as obstacles 15, as illustrated in
A ground plane is fitted using MLESAC, and only points of the Velodyne scan data 0.25 m above the plane are maintained (middle image). This is represented in the figures by removal of the light-coloured lines in the regions below 0.25 m from the ground plane.
Pixels 54 which correspond to areas of the Velodyne scan data 0.25 m or more above the ground plane are then labelled as obstacles using the approach described above (bottom image) to ensure accurate labels on obstacles 15 while retaining potentially drivable surfaces 52 on the ground (shaded pixels with \\ in bottom image). One or more areas of the potentially drivable surfaces 52 may then be labelled as path 14 and/or as unknown 16 using the approach described herein.
The camera-LIDAR calibration GCL for the RobotCar vehicle 10 was determined using the method in G. Pascoe, W. Maddern, and P. Newman, “Direct visual localisation and calibration for road vehicles in changing city environments”, in Proceedings of the IEEE International Conference on Computer Vision Workshops, 2015, pp. 9-16; for the AnnieWAY vehicle the calibration provided with the KITTI Raw dataset was used.
B. Network Training
For the KITTI model, use was made of the available City, Residential and Road data from the KITTI Raw dataset. For the Oxford model, a diverse range of weather conditions for each traversal of the route were selected, including nine overcast, eight with direct sun, four with rain, two at night and one with snow; each traversal consisted of approximately 10 km of driving. The number of labelled images 108 used to train each model is shown in Table II and some examples are shown in
For both datasets, semantic classifier models were built using the standard SegNet convolutional encoder-decoder architecture. The same SegNet parameters were used for both datasets, with modifications only to account for the differences in input image resolution. The input data were randomly split into 75% training and 25% validation sets, training performed for 100 epochs then the best-performing model selected according to the results on the validation set. The training time totalled ten days for KITTI using a GTX Titan GPU and twenty days for Oxford using a GTX Titan X GPU; future training times can be reduced using a different architecture or making use of a GPU cluster.
For the comparison using the KITTI Road benchmark presented below (ego-lane segmentation), an additional SegNet model was trained on only the training images provided for the Ego-Lane Estimation Evaluation. Note that these ground truth images 108 were not provided to the model segmentation unit 110 trained using the weakly-supervised approach 100 described above. For the object detection evaluation using the KITTI Object and Tracking datasets, there was no overlap between images selected to train the weakly-supervised labels and the images with ground truth labels used in the evaluation.
Results
For reliable on-road driving, the semantic segmentation 100 preferably functions in multiple environments under the range of lighting, weather and traffic conditions encountered during normal operation. This Results section provides an evaluation of the performance of both the KITTI model and Oxford model under a range of different test conditions.
A. Oxford Dataset
The Oxford model was evaluated by generating ground truth labels for a further four datasets not used for training, consisting of 2,718 images in sunny conditions, 2,481 images in cloudy conditions, 2,340 images collected at night and 1,821 images collected in the rain, for a total of 9,360 test images. Table III presents the segmentation results for the three classes in each of the four different conditions in the test datasets listed above, with the “All” column showing the mean for each metric across all classes.
In Table III, the following metrics widely used in the field are used to quantify performance. Generated segmentations 114 are compared to ground truth segmentations 108 for the same image 106.
The intersection over union, IoU, values are a measure of the overlap between regions in a class in the generated segmentation and in the ground truth. A ground truth bounding box often will not exactly coincide with a bounding box determined by a labelling system. The question is, how much can they be offset against each other, and how much can they vary in size in order to still count as ‘matched’ to each other (as in pertaining to the same object)? IoU computes the ratio of the intersection of the areas covered by both boxes to the area of the union of both boxes, and can be applied to more general image segments (as in this case) instead of to bounding boxes per se.
Precision, PRE, is the fraction of class detections which truly are of that class. This may be pixel-based, for example, “9 out of 10 pixels labelled as being obstacles were actually obstacles”.
Recall, REC, is the fraction of the class instances present in the data that were successfully detected. For example, if the ground truth segmentation indicates that there are ten obstacles in an image, how many of these were found? Again, this metric may be pixel-based instead of based on a number of objects.
The model (ie segmentation unit) 110 provides good performance across the different conditions with mean intersection-over-union (IoU) scores exceeding 80% in all cases, with the highest performance in cloudy weather and lowest at night, due to the reduced image quality in low-light conditions.
Despite significant changes in appearance between sunny (
This result demonstrates that the weakly-supervised approach 100 can be used to train a single segmentation network 110 that segments proposed paths 14 and obstacles 15 across a wide range of conditions without explicitly modelling environmental changes due to lighting, weather and traffic.
B. KITTI Benchmarks
To demonstrate how the weakly-supervised labelling approach 100 disclosed herein can lead to useful performance for autonomous driving tasks, it was evaluated on two different benchmarks from the KITTI Vision Benchmark Suite (http://www.cvlibs.net/datasets/kitti/): ego-lane segmentation and object detection.
However, neither of these benchmarks are an exact match for the segmentation results provided by the segmentation network 110, as they were designed for different purposes; alternative metrics based on the provided ground truth are presented to quantitatively evaluate the approach 100.
1) Ego-Lane Segmentation:
The closest analogue to a proposed path in the KITTI benchmark suite is the ego-lane, consisting of the entire drivable surface within the lane the vehicle currently occupies (see the paper of J. Fritsch, T. Kuehnl, and A. Geiger cited above). The ego-lane dataset consists of 95 training and 96 test images, each with manually annotated ground truth labels.
An additional SegNet model was trained on the provided ground truth training images to compare to the segmentation unit 110 trained on weakly-supervised labelled images, as detailed above. The results of both the SegNet model and the segmentation unit 110 on the KITTI website benchmark are shown in Table IV. As is standard in the field, FPR means a false positive rate, FNR means a false negative rate. MaxF is Maximum F1 measure, F1 being a measure of a test's accuracy. Both the precision (PRE) and the recall (REC) of the test are considered to compute the F1 measure. Average precision (AP), as defined in ‘M. Everingham, L. Van Gool, C. K. I. Williams, J. Winn, and A. Zisserman, “The pascal visual object classes (VOC) challenge,” Int. J. of Computer Vision, vol. 88, no. 2, pp. 303-338, June 2010.’, is computed for different recall values to provide insights into the performance over the full recall range
Thus,
The differences in the number of training images used for each model is illustrative of the fact that making manually-annotated datasets is more be more time-consuming and expensive to produce than the weakly-supervised approach 100 disclosed herein.
Even if manually annotated data is also available, for many tasks the approach 100 could be used as pre-training to further improve results. Thus, the output from embodiments described herein may be used to seed further segmentation.
2) Object Detection:
While the KITTI benchmark suite does not contain a semantic segmentation benchmark, it does contain object instance bounding boxes in both the Object and Tracking datasets. The definition of an object in the KITTI benchmark (an individual instance of a vehicle or person, for example, within a bounding box) differs significantly from the definition of an obstacle as part of the weakly-supervised approach 100 (any part of the scene the vehicle might collide with). However, object detection performance can be evaluated by ensuring that object instances provided by the KITTI Object and Tracking benchmarks are also classified as obstacles by the segmentation approach 100 described herein; hence the highest pixel-wise recall score is sought. For each object instance, the number of pixels within the bounding box classified as an obstacle is evaluated using the weakly-supervised approach 100, as illustrated in
Three different recall metrics are presented:
Recall results on the data provided as part of the Object and Tracking datasets (consisting of 15,047 images with 87,343 total object instances) are presented in Table V, and an example detection is shown in
C. Limitations
Under some conditions the segmentation network 110 of some embodiments may fail to produce useful proposed path segmentations, as illustrated in
As shown by the lower pair of images in
D. Route Generalisation
As the weakly-supervised labels 14, 15, 16 are generated from the recording 102, 104, 106 of a data collection trajectory, it can only provide one proposed path 14 per image 106 at training time. However, at intersections and other locations with multiple possible routes, at test time the resulting network 110 frequently labels multiple possible proposed paths 14 in the image 112 as shown in
At intersections and roundabouts the network will often label different possible paths, 14, which can then be leveraged by a planning framework for decision making during autonomous navigation.
An approach 100 for weakly-supervised labelling of images 106, 112 for proposed path segmentation during on-road driving, optionally using only a monocular camera 12a, has been described above. The skilled person will appreciate that the specific example described is not intended to be limiting, and that many variations will fall within the scope of the claim.
It has been demonstrated that, by leveraging multiple sensors 12a, 12b and the behaviour of the data collection vehicle driver, it is possible to generate vast quantities of semantically-labelled training data 108 relevant for autonomous driving applications.
Advantageously, no manual labelling of images 106 is required in order to train the segmentation network 110.
Additionally, the approach does not depend on specific road markings or explicit modelling of lanes to propose drivable paths.
The approach 100 was evaluated in the context of ego-lane segmentation and obstacle detection using the KITTI dataset, outperforming networks trained on manually-annotated training data and providing reliable obstacle detections.
At step 1304, the obstacle sensing data obtained in step 1302 is used to label one or more portions of at least some of the images obtained in step 1302 as obstacles.
At step 1306, the vehicle odometry data obtained in step 1302 is used to label one or more portions of at least some of the images obtained in step 1302 as the path taken by the vehicle 10 through the environment.
The skilled person will appreciate that steps 1304 and 1306 may be performed in either order, or simultaneously. Further, step 1302 may be performed by a different entity from steps 1304 and/or 1306.
The robustness of the trained network 110 to changes in lighting, weather and traffic conditions was demonstrated using the large-scale Oxford RobotCar dataset, with successful proposed path segmentation in sunny, cloudy, rainy, snowy and night-time conditions.
Future work may integrate the network 110 with a planning framework that includes previous work on topometric localisation across experiences (C. Linegar, W.
Churchill, and P. Newman, “Made to measure: Bespoke landmarks for 24-hour, all-weather localisation with a camera”, in 2016 IEEE International Conference on Robotics and Automation (ICRA), IEEE, 2016, pp. 787-794) as well as a semantic map-guided approach for traffic light detection (D. Barnes, W. Maddern, and I. Posner, “Exploiting 3D semantic scene priors for online traffic light interpretation,” in 2015 IEEE Intelligent Vehicles Symposium (IV). IEEE, 2015, pp. 573-578) to enable fully autonomous driving in complex urban environments.
Number | Date | Country | Kind |
---|---|---|---|
1616097.0 | Sep 2016 | GB | national |
1703527.0 | Mar 2017 | GB | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/GB2017/052818 | 9/21/2017 | WO | 00 |