This report presents the performance comparison between traditional RANSAC-based ground detection and semantic segmentation models (MiDaS, SegFormer, Detectron2) for local mapper ground plane detection.
- Warm-up Runs: 2 iterations per model
- Benchmark Runs: 5 iterations per model
- Test Scenarios: 3 different complexity levels
- Platform: Windows
- Date: 2025-08-15
- Point Cloud Size: 5,000 points
- Ground Ratio: 90%
- Noise Level: Low (0.01)
| Model | Avg Time (ms) | Std Dev (ms) | Accuracy |
|---|---|---|---|
| RANSAC | 170.54 | 5.28 | 12.08% |
| MiDaS | 896.83 | 63.00 | 12.50% |
| SegFormer | 905.70 | 50.49 | 12.50% |
| Detectron2 | 939.21 | 91.77 | 12.50% |
- Point Cloud Size: 10,000 points
- Ground Ratio: 60%
- Noise Level: Medium (0.05)
| Model | Avg Time (ms) | Std Dev (ms) | Accuracy |
|---|---|---|---|
| RANSAC | 279.11 | 4.98 | 42.48% |
| MiDaS | 987.27 | 36.59 | 50.36% |
| SegFormer | 966.81 | 11.22 | 50.36% |
| Detectron2 | 1013.73 | 27.68 | 50.36% |
- Point Cloud Size: 20,000 points
- Ground Ratio: 70%
- Noise Level: Medium (0.03)
| Model | Avg Time (ms) | Std Dev (ms) | Accuracy |
|---|---|---|---|
| RANSAC | 501.78 | 19.03 | 32.19% |
| MiDaS | 1250.86 | 39.40 | 37.33% |
| SegFormer | 1225.19 | 16.26 | 37.33% |
| Detectron2 | 1253.40 | 69.09 | 37.33% |
The semantic segmentation models are currently slower than RANSAC:
- MiDaS: 5.26x slower
- SegFormer: 5.31x slower
- Detectron2: 5.51x slower
- MiDaS: 3.54x slower
- SegFormer: 3.46x slower
- Detectron2: 3.63x slower
- MiDaS: 2.49x slower
- SegFormer: 2.44x slower
- Detectron2: 2.50x slower
The semantic segmentation models show improved accuracy in complex scenarios:
- Complex scenes: +7.88% accuracy improvement
- Large clouds: +5.14% accuracy improvement
- Simple flat: +0.42% accuracy improvement
- Better accuracy in complex scenes with multiple objects
- More robust to varying ground conditions
- Potential for optimization with GPU acceleration and model quantization
- Slower inference time compared to RANSAC (2.4x - 5.5x slower)
- Higher computational requirements (GPU preferred)
- Model loading overhead on first run
To improve semantic segmentation performance:
-
Model Optimization
- Use quantized models (INT8) for faster inference
- Implement ONNX Runtime for optimized execution
- Use TensorRT for NVIDIA GPU acceleration
-
Batch Processing
- Process multiple frames in batches
- Implement temporal consistency for video streams
-
Hybrid Approach
- Use RANSAC for simple scenes
- Switch to semantic segmentation for complex environments
- Implement adaptive method selection based on scene complexity
-
Hardware Acceleration
- Deploy on GPU for real-time performance
- Use specialized AI accelerators (TPU, NPU)
- Implement model-specific optimizations
While semantic segmentation models currently show slower performance than RANSAC, they demonstrate improved accuracy, especially in complex scenarios. The performance gap can be significantly reduced through:
- Model optimization techniques
- Hardware acceleration
- Hybrid approaches that leverage both methods
For production deployment, consider:
- Using RANSAC as the default fast method
- Switching to semantic segmentation when higher accuracy is needed
- Implementing the optimizations listed above for better real-time performance