Introduction
Semantic segmentation—the task of assigning a specific class label to every pixel in an image—is a fundamental challenge in autonomous driving and urban scene understanding. While deep learning has significantly advanced image classification, pixel-wise labeling requires a more nuanced approach that balances local appearance with global context. This paper introduces Convolutional Patch Networks (CPN), which utilize a novel spatial prior to improve segmentation accuracy by teaching the model not just what an object looks like, but where it is typically located within a structured urban environment.
Methodology: Convolutional Patch Networks
The proposed architecture shifts the focus from whole-image processing to patch-based classification. The system processes $28 \times 28$ pixel patches centered on a target pixel to determine its label.
The core innovation of this architecture is the Spatial Prior Injection. While convolutional layers extract translation-invariant features (the "what"), the normalized $(x, y)$ coordinates of the patch are fed directly into the first fully connected layer. This allows the network to incorporate global position (the "where") into its final decision-making process without sacrificing the local feature extraction capabilities of the CNN.
Training and Optimization
To ensure robust performance, the authors implemented several critical training strategies:
- Normalized Initialization: Utilizing the Glorot/Bengio method was found to be essential for convergence, particularly when using Tanh activation functions.
- Activation Functions: Empirical testing showed that ReLU generally outperformed Tanh for road detection tasks.
- Class Weighting: To address the inherent class imbalance in urban datasets (e.g., the prevalence of building pixels over door pixels), the authors employed inverse class frequency weighting.
The Role of Spatial Priors
In structured environments like city streets, spatial context provides a powerful cue. A gray, textured region might be visually ambiguous, but its location—whether at the top of the frame (sky/building) or the bottom (road)—resolves the uncertainty.
The inclusion of the spatial prior resulted in a dramatic performance increase. In the KITTI Road Challenge, the MaxF score jumped from approximately 76% to 86.5% simply by adding coordinate information. This demonstrates that for urban scenes, location is often as informative as appearance.
Experimental Results
The model was rigorously evaluated on two benchmarks:
- KITTI Road Challenge: The CPN achieved a MaxF score of 86.50%, outperforming contemporary CNN-based methods by over 10% and ranking 4th on the leaderboard at the time of submission.
- LabelMeFacade: On this multi-class dataset, the spatial prior improved the Overall Recognition Rate (ORR) from 67.87% to 72.21%.
Qualitatively, the model demonstrates a strong ability to segment complex road geometries and handle occlusions. However, it occasionally struggles with "pavement" versus "road" distinctions when both appearance and typical spatial positions overlap significantly.
Conclusion and Future Work
The primary drawback of the current implementation is computational efficiency. Because the system processes individual patches for every pixel, inference takes approximately 30 seconds per image, which is insufficient for real-time autonomous applications. Future research will focus on transitioning to fully convolutional architectures to enable single-pass inference while maintaining the benefits of the spatial prior.
Summary updated