Puddle detection

2016-04

This is the course project for the graduate-level course 16-823 Physics-based methods in vision at Carnegie Mellon University.

1 Motivation

Pools of water are common hazards for terrestrial autonomous vehicles operating in a natural environment. Puddles can reduce traction and could end up being surprisingly deep, posing a great danger. We propose using a physics-based method to detect water hazards in cluttered environments using a stereo pair of cameras and LIDAR.

2 Related work

Machine learning is often used for scene classification. However, it is difficult for such systems to distinguish specular surfaces from reflected objects based on appearance alone. Zhao et al use segmentation combined with Adaboost for detecting water hazards, but their method fails to correctly identify reflections adaboost.

Methods using specialized hardware such as polarization filters polarization and short- and mid-wave infrared cameras infrared also exist. However, our robot only has regular cameras and LIDAR.

Hong et al mention a simple method to identify puddles using a LIDAR sensor by looking for holes in the data nist. However, this is sensitive to the angle of the puddle’s normal, does not take into account reflections of nearby objects, and may fail to distinguish dark-coloured ground such as asphalt from puddles. Although their method also uses vision to refine puddle detection, it uses relatively simple methods such as checking for reflections of the sky or distant entities in the image without using the geometry of objects in the scene.

Purely physics-based vision approaches to this topic include work by a team at the Jet Propulsion Laboratory jplajplbjplc, who combine several cues including sky reflection and texture.

So far, the approaches mentioned above all struggle when there are reflections of objects in the puddles. The main contribution of our method is that we use geometry information of the scene from the LIDAR sensor to deal with reflections of objects at near ranges.

3 Approach

Our source of data is an autonomous off-road vehicle equipped with a Multisense S21 stereo pair of cameras equipped with CMOSIS CMV2000 sensors producing image pairs at a rate of 30 Hz with a dynamic range of 60 dB and a Velodyne HDL-64E LIDAR sensor producing point clouds at a rate of 10 Hz. The robot pose is provided by an IMAR high precision GPS/INS system. The setting for data collection is the off-road trails in Gascola, PA.

frame
FIGURE 1 Example of a frame from our dataset.

As the vehicle approaches a surface patch on the ground, it is able to view the patch from many angles, allowing it to estimate the specularity of the patch. The LIDAR sensor provides accurate geometric information of the ground to identify planar regions likely to contain puddles as well as range data to the surrounding objects for computing their reflections.

In order to detect pools of water, we will be utilizing multiple cues. In the interests of making this a purely physics based project, we are not considering any deep learning approaches. Some of the cues we are considering are as follows:

Our code is available on GitHub:

GitHub

4 Results

4.1 Changes in pixel brightness as vehicle advances

With a good estimate of the ground plane and the robot’s pose, we can track the motion of each patch on the ground. A specular patch’s appearance will change as we drive towards it, whereas a matte patch will remain roughly the same. Using this, we can detect specular puddles when they are reflecting things.

Unfortunately, our pose data is not sufficiently accurate to track patches in complex parts of the image such as grass, so there are false positives in grass. Nonetheless, we note that most puddles seem to be detected correctly.

4.2 Reflection detection

To further detect puddles, especially when they are reflecting the smooth and featureless sky, we can estimate the reflection of the scene. Since we know the index of refraction of water, and we assume that the sky is overcast (not polarized), we can apply Fresnel’s law, which depends only on the angle to the patch. Combined with a depth map from the LIDAR, we can generate a simulated reflection.

reflection simulation
FIGURE 2 Simulated reflection on the ground plane for entities in the left image.

However, it seems our LIDAR depth map is not sufficiently accurate for a good result. In fact there are usually no points returned from the leafless trees. We may look into using stereo depth instead.

5 Discussion

Since our LIDAR and the cameras are not synced, we need accurate pose data for registering LIDAR points to the camera images. Unfortunately, our iMAR GPS/INS system has suffered a hardware issue which causes severe drift in pose.

severe drift in pose
FIGURE 3 Severe drift in pose. Unexpected discontinuities are circled in red and green. Axes are in meters.

After we fix the poor performance of reflection detection, we can detect reflections by comparing the observed pixels on the ground plane with the simulated reflection. This can either be a smoothed pixel values (which may not be robust against small misalignments), or histograms of gradients (which may not work as well for puddles that are not perfectly specular).