Abstract
This paper presents a robust system for detecting lane departures and partial "incursions" using low-resolution, noisy video from mobile cameras. Unlike traditional systems that rely on edge-based line detection, the proposed method utilizes Mask R-CNN to segment entire lane regions, followed by Kalman filtering for signal smoothing. Evaluated on a custom dataset of older drivers, the system achieved a mean Average Precision (mAP) of 0.82 for segmentation and an 81.8% sensitivity in identifying unsafe driving behaviors, including difficult-to-detect lane incursions.
Introduction
Standard Lane Departure Warning (LDW) systems often struggle in challenging environments such as heavy shadows, sharp curves, or low-visibility night driving. These systems typically rely on low-level image features like edges to identify lane markings, which are easily obscured or faded. Furthermore, there is a need for systems that can analyze long-term driver behavior, particularly for at-risk populations like elderly drivers with medical conditions. This research addresses these gaps by developing a deep learning-based approach to distinguish between full lane changes and "lane incursions"—events where a driver briefly drifts out of a lane before correcting.
Methodology
The core of the system is a transition from traditional line detection to deep learning-based region segmentation.
- Lane Segmentation: A Mask R-CNN model with a ResNet-50 backbone identifies the entire driving lane as a polygon mask. This approach is significantly more stable than line detection in noisy or low-resolution video, as the general "blob" of the lane region remains detectable even when lines disappear.
- Centroid Tracking and Smoothing: The system calculates the centroid of the lane mask's convex hull. To mitigate jitter from mobile-mounted cameras, a Fix-lag Kalman filter is applied to the centroid's horizontal and vertical offsets.
- Behavior Classification: By analyzing the temporal patterns of the smoothed centroid coordinates, the algorithm classifies events into three categories: Left/Right Lane Change, Lane Incursion (incomplete departure), and No Change (steady driving).
Datasets
The study utilized a unique custom dataset collected from a clinical study of 77 legally licensed older drivers (ages 65–90). The dataset comprises nearly 19.3 years of total driving time recorded at a resolution of 752x480 at 25 fps, mimicking the "noisy" reality of mobile-mounted cameras. For training, 4,162 images were manually annotated. Testing was conducted on 30 diverse video segments containing verified lane-crossing events.
Key Results
The Mask R-CNN model demonstrated high reliability, achieving a mean Average Precision (mAP) of 0.82 across various conditions, including nighttime and heavy shadows. The overall system sensitivity for detecting lane departure events was 81.81%. Notably, the algorithm successfully detected two out of three verified lane incursions, a task often missed by traditional LDW systems. Furthermore, by centering and normalizing the offset data, the model becomes "camera agnostic," allowing for varied mounting positions on the windshield without losing signal validity.
Conclusion and Future Work
The proposed region-based segmentation approach offers a robust alternative to traditional lane detection, particularly for analyzing driver behavior in real-world, messy data. While promising, the authors note that the model is still susceptible to "offset noise" during detection. Future work will focus on reducing these false positives and expanding the model's training to include a wider variety of vehicle classes and proximity sensing for holistic hazard analysis.
Summary updated