DesertFormer: Transformer-Based Semantic Segmentation for Off-Road Desert Terrain Classification in Autonomous Navigation Systems
Organizations: Department of Computer Science & Engineering (AI & ML), Gayatri Vidya Parishad College of Engineering for Women, Visakhapatnam, India
Abstract
Reliable terrain perception is a fundamental requirement for autonomous navigation in unstructured, off-road environments. Desert landscapes present unique challenges due to low chromatic contrast between terrain categories, extreme lighting variability, and sparse vegetation that defy the assumptions of standard road-scene segmentation models. We present DesertFormer, a semantic segmentation pipeline for off-road desert terrain analysis based on SegFormer B2 with a hierarchical Mix Transformer (MiT-B2) backbone. The system classifies terrain into ten ecologically meaningful categories -- Trees, Lush Bushes, Dry Grass, Dry Bushes, Ground Clutter, Flowers, Logs, Rocks, Landscape, and Sky -- enabling safety-aware path planning for ground robots and autonomous vehicles. Trained on a purpose-built dataset of 4,176 annotated off-road images at 512x512 resolution, DesertFormer achieves a mean Intersection-over-Union (mIoU) of 64.4% and pixel accuracy of 86.1%, representing a +24.2% absolute improvement over a DeepLabV3 MobileNetV2 baseline (41.0% mIoU). We further contribute a systematic failure analysis identifying the primary confusion patterns -- Ground Clutter to Landscape and Dry Grass to Landscape -- and propose class-weighted training and copy-paste augmentation for rare terrain categories. Code, checkpoints, and an interactive inference dashboard are released at https://github.com/Yasaswini-ch/Vision-based-Desert-Terrain-Segmentation-using-SegFormer.
Figures & tables
| Model | Backbone | mIoU | PA | mIoU |
|---|---|---|---|---|
| DeepLabV3 | MobileNetV2 | 41.0% | 76.5% | — |
| DesertFormer | MiT-B2 | 64.4% | 86.1% | +24.2% |
| Class | IoU | Pixel % |
|---|---|---|
| Sky | 98.2% | 37.84% |
| Trees | 85.7% | 4.07% |
| Dry Grass | 70.2% | 19.31% |
| Lush Bushes | 68.4% | 6.01% |
| Landscape | 63.1% | 23.72% |
| Flowers | 62.1% | 2.44% |
| Hardware | Precision | FPS | Latency (ms) |
|---|---|---|---|
| GPU (RTX 3060) | FP32 | 22 | 45 |
| GPU (RTX 3060) | FP16 | 38 | 26 |
| CPU (Intel Core i7) | FP32 | 1.3 | 769 |
| Edge (Jetson Nano) | INT8 | 4 | 250 |
Semantic Segmentation
Semantic segmentation assigns a class label to every image pixel, enabling detailed scene understanding across domains and sensors.
See all 414 papers