Lightweight Machine Learning-Driven Monocular Sidewalk Path Extraction for Embedded Micromobility Navigation
Organizations: School of Electrical and Computer Engineering, University of Oklahoma, Norman, OK 73019, USA · School of Aerospace and Mechanical Engineering, University of Oklahoma, Norman, OK 73019, USA
Abstract
Sidewalk-scale path extraction demands perception and planning that run reliably on compact, low-power hardware in cluttered, map-sparse environments. We present a monocular vision pipeline for sidewalk path extraction in micromobility systems that progresses through three design iterations, from a skeleton-graph baseline through distance-transform corridor planning to a lightweight image-space architecture, and provides a systematic comparison of five path-planning methods across both bird's-eye-view (BEV) and image-space domains. A compact SegFormer-B0 student model, trained with a semi-supervised teacher-student framework using OneFormer Swin-L pseudo-labels, achieves a hand-annotated IoU of 0.946 at 11.7 ms per frame, improving over the baseline checkpoint (IoU 0.758, 18.9 ms). In a controlled planner comparison on 32 hand-labeled frames, image-space midpoint planning achieves the lowest lateral center error (14.3 px) at 2.2 ms, a 421x speedup over BEV distance-transform planning (926.8 ms, 65.0 px center error), while maintaining comparable mask-path alignment (98.5% versus 98.6%). A full-video replay across six campus sequences (22,679 frames) confirms that the improved segmentation reduces temporal instability from 1.46% to 0.33% and increases template-path availability from 73.7% to 79.3%. We further show that BEV-only path extraction is fragile in monocular settings: in one profiled run, 99.3% of frames produced no valid BEV path. The final recommended architecture, image-space midpoint primary, image-space distance-transform fallback, and BEV reserved for visualization, runs the full perception-to-path stack in under 50 ms per frame on CPU, making it suitable for embedded pedestrian-speed micromobility systems.
Figures & tables
| Setting | Value |
|---|---|
| Student model | SegFormer-B0 |
| Teacher model | OneFormer Swin-L pretrained on ADE20K |
| Input resolution | |
| Pseudo-label confidence threshold | 0.60 |
| Optimizer | AdamW |
| Initial learning rate |
| Iteration | Teacher | Train Pairs | Val IoU |
|---|---|---|---|
| Baseline | SegFormer-B2 | 300 + 2,300 | 0.758 |
| OneFormer (4 vid) | OneFormer Swin-L | 400 | 0.944 |
| OneFormer (mixed) | OneFormer Swin-L | 1,419 | 0.960 |
| Resolution | Latency (ms) | FPS |
|---|---|---|
| 19.84 | 50.40 | |
| 25.35 | 39.45 | |
| 42.05 | 23.78 | |
| 46.00 | 21.74 | |
| 93.55 | 10.69 | |
| native | 72.80 | 13.74 |
| Model | IoU | Prec. | Recall | F1 | ms |
|---|---|---|---|---|---|
| Baseline | 0.758 | 0.910 | 0.835 | 0.851 | 18.9 |
| Candidate | 0.946 | 0.983 | 0.962 | 0.972 | 11.7 |
| Cand.+confhold | 0.903 | 0.987 | 0.914 | 0.947 | 13.1 |
| Metric | Baseline | Candidate | |
|---|---|---|---|
| Mean Seg IoU | 0.909 | 0.925 | +0.016 |
| Unstable Rate [%] | 1.46 | 0.33 | 1.12 pp |
| Has-Path Rate [%] | 100.0 | 100.0 | — |
| Template Success [%] | 73.7 | 79.3 | +5.6 pp |
| Fallback Rate [%] | 19.0 | 14.3 | 4.7 pp |
| Mean Heading [deg] | 0.209 | 0.201 | 0.008 |
| Planner | Path [%] | Inside-GT | Center Err. [px] | ms |
|---|---|---|---|---|
| BEV-domain methods | ||||
| Skeleton-Graph | 100 | 0.971 | 76.6 | 380.3 |
| DT Ridge (full) | 100 | 0.986 | 65.0 | 926.8 |
| DT Ridge (near) | 100 | 0.986 | 79.0 | 1603.0 |
| Image-space methods | ||||
| Midpoint | 100 | 0.985 | 14.3 | 2.2 |
| Metric | Value |
|---|---|
| Frames with valid path ( dt_ridge ) | 10 (0.2%) |
| Frames with held path ( dt_ridge_hold ) | 20 (0.5%) |
| Frames with no path ( none ) | 4,377 (99.3%) |
| Mean BEV mask occupancy ratio | 0.0002 |
| Module | BEV Skeleton | Image-Space |
|---|---|---|
| SegFormer Inference | 11.7 ms | 11.7 ms |
| Mask Refinement | 8.5 ms | 3.0 ms |
| BEV Projection | 0.9 ms | — |
| BEV Cleanup | 14.6 ms | — |
| Planner | 380.3 ms | 2.2 ms |
| Total | 416.0 ms | 16.9 ms |
| Component | Cost (ms) | Recommendation |
|---|---|---|
| BEV DT Planner | 926.8 | Replace |
| BEV Graph Planner | 380.3 | Replace |
| YOLO Detection (CPU) | 39.0 | Gate or GPU |
| BEV Warp + Cleanup | 15.5 | Skip in img mode |
| Seg ( ) | 75.3 | Use |
| Predictor disabled | +73.0 | Always enable |
| Configuration | FPS | Seg (ms) | Det (ms) | BEV (ms) |
|---|---|---|---|---|
| No detection, predictor on | 25.3 | 20.3 | — | 11.0 |
| GPU detection, predictor on | 20.1 | 17.0 | 12.2 | 13.4 |
| CPU detection, predictor on | 12.2 | 18.8 | 39.0 | 14.6 |
| No detection, predictor off | 8.9 | 75.3 | — | 29.5 |
Robot Navigation
Robot navigation studies how robots perceive, localize, plan, and move safely toward goals in static or changing environments.
See all 557 papers