Abstract
This thesis describes the SANE (Segmentation According to Natural Examples) algorithm for learning to segment objects in static images from video data. SANE uses background subtraction to find the segmentation of moving objects in videos, providing object segmentation information for each video frame. This collection of frames and segmentations forms a training set that SANE uses to learn the image and shape properties that correspond to the observed motion boundaries. When presented with new static images, the model infers segmentations similar to the observed motion segmentations. SANE is a general method for learning environment-specific segmentation models. Because it is self-supervised, it can adapt to a new environment and new objects with relative ease. Comparisons of its output to a leading image segmentation algorithm demonstrate that motion-defined object segmentation is a distinct problem from traditional image segmentation. The model outperforms a trained local boundary detector because it leverages the shape information it learned from the training data.
Introduction
Image segmentation—the task of grouping pixels into meaningful regions—is a cornerstone of computer vision. However, it traditionally suffers from two major hurdles: subjectivity in defining salient regions and the scarcity of labeled data. Manually outlining objects in thousands of images is expensive and slow.
The SANE (Segmentation According to Natural Examples) framework proposes a shift in perspective. Instead of generic "image segmentation," it focuses on object segmentation, defining an object as a set of elements that move coherently in the world. By using motion as a natural teacher, SANE generates vast amounts of training data without human intervention. This self-supervised approach allows a system to learn about the static appearance of the world simply by observing things move.
The SANE Algorithm
The SANE algorithm operates in three primary phases:
- Automated Labeling: The system processes video data (e.g., traffic or pedestrians) and uses background subtraction to identify moving foreground objects. These motion masks serve as "ground truth" labels for training.
- Markov Random Field (MRF) Model: The image is divided into a grid of 5x5 pixel patches. SANE employs a Markov Random Field where each patch is a node. Each node contains hidden variables representing the boundary shape ($E_i$) and its "parity" ($P_i$), which indicates which side of the boundary is the object. Visible features include local image data like brightness, color, and gradients.
- Inference via Belief Propagation: To segment a new static image, the model uses Loopy Belief Propagation. This allows information to flow between patches; for instance, if one patch detects a horizontal edge, it encourages its neighbors to find a matching edge to maintain boundary continuity. A multiresolution approach captures both fine details and broader context.
Experimental Evaluation
The authors evaluated SANE on two primary video datasets:
- Traffic Data: Videos of cars on a highway. The model was trained on one highway and tested on a different one.
- Walking-Person Data: A video of a person walking in front of a whiteboard.
SANE was compared against Normalized Cuts (Ncuts), a standard general-purpose segmentation algorithm, and the Martin boundary detector, a state-of-the-art edge detector trained on human-labeled data.
Analysis and Results
SANE significantly outperformed general-purpose algorithms by leveraging learned shape statistics. Unlike generic algorithms that rely solely on color contrast, SANE learns the "grammar" of object shapes—specifically that boundaries tend to be continuous and closed. This helps it ignore distracting textures like shadows or lane lines.
Key performance metrics include:
- Traffic Data: SANE achieved an F-measure of 0.803, significantly higher than the best version of Normalized Cuts (0.677).
- Walker Data: SANE reached an F-measure of 0.742, compared to 0.529 for Normalized Cuts.
- Boundary Detection: Compared to the human-trained Martin detector, SANE performed better (0.642 vs 0.605) due to its ability to enforce closed boundaries.
Limitations and Future Work
While effective, SANE has limitations. The current model assumes only two regions (foreground and background) and cannot handle "T-junctions" where three regions meet. Additionally, if two objects move together or overlap, the motion segmentation treats them as a single blob. Finally, because the model learns from motion, it cannot segment objects that are never observed moving, such as stationary buildings. Future work could incorporate class-specific models to handle more complex environments.
Summary updated