Abstract
In autonomous driving, road and lane detection must be both highly accurate and computationally efficient. Traditional frame-by-frame deep learning approaches often suffer from temporal inconsistency and high latency. This paper introduces a memory-guided architecture that interleaves a high-capacity feature extractor (ResNet-101) with a lightweight counterpart (ResNet-18), linked via a Convolutional LSTM (ConvLSTM) memory module. This approach achieves a balance between speed and precision, reaching 146.02 FPS with an IoU of 0.88 on the CARLA simulator dataset, effectively bridging the gap between real-time performance and safety-critical accuracy.
Introduction
Road detection is a fundamental task for self-driving vehicles. However, treating video sequences as independent images leads to two primary issues: temporal inconsistency, where predictions "flicker" between frames, and the efficiency paradox, where high-accuracy models are too slow for mobile hardware. Humans do not re-analyze every scene detail from scratch; instead, we use previous representations to maintain a continuous understanding. Inspired by this, the proposed system utilizes a "memory" to propagate features across time, allowing for high-speed processing without sacrificing significant accuracy.
Methodology
The architecture is composed of three primary stages: feature extraction, shared memory, and decoding.
Feature Extraction and Interleaving
The system employs two "interpreters": a "Big" extractor (ResNet-101) for high-detail feature maps and a "Small" extractor (ResNet-18) for rapid processing. To optimize efficiency, the system uses an "interleaving" strategy where the Big extractor is used periodically (e.g., 1 in 10 frames) to "refresh" the memory, while the Small extractor maintains the representation for intermediate frames.
Shared Memory via ConvLSTM
The core innovation is the integration of a Convolutional LSTM (ConvLSTM) module. Unlike standard LSTMs, ConvLSTMs preserve spatial information, making them ideal for vision tasks. This module acts as a dynamic memory, taking features from the extractors and propagating them temporally. This ensures that the model "remembers" the road's location, reducing jitter and improving robustness against noise.
Decoder
The final stage consists of five transpose convolutional layers that up-sample the memory-refined features. This process transforms the low-resolution feature maps back into a high-resolution, pixel-wise road segmentation mask.
Experimental Setup
The model was primarily evaluated using a custom dataset from the CARLA simulator.
- Environment: The "Town01" map was used under challenging rainy weather conditions to test robustness.
- Data: Front-facing RGB images were paired with ground-truth segmentation maps.
- Augmentation: Horizontal flipping was applied to double the dataset size and improve generalization.
- Pre-training: The extractors were pre-trained on standard benchmarks like Cityscapes and ImageNet.
Results and Discussion
The interleaved approach demonstrates a significant improvement in the speed-accuracy trade-off.
| Model | IoU (Accuracy) | Speed (FPS) |
|---|---|---|
| Vanilla ResNet-101 | 0.915 | 46.18 |
| Vanilla ResNet-18 | 0.852 | 155.40 |
| Interleaved (1:10) | 0.880 | 146.02 |
Qualitatively, the memory-guided model exhibits superior temporal smoothing. While vanilla models often "hallucinate" road segments on sidewalks during difficult frames, the memory module keeps the prediction locked to the actual road path.
Conclusion and Future Work
By leveraging temporal redundancy through a ConvLSTM memory, this research provides a viable path for real-time, high-accuracy road detection. Future work includes implementing Reinforcement Learning to dynamically decide when to trigger the "Big" extractor based on scene complexity (e.g., during sharp turns) and increasing LSTM depth to capture longer-term dependencies.
Summary updated