DeMamba: Deformable Local Feature Learning with State Space Semantic Reasoning for Precision Agriculture
Semantic segmentation in agricultural scenes requires simultaneously modeling fine-grained local structures and long-range semantic context under severe scale variation, occlusions, foreground–background ambiguity, and phenological changes. Despite CNN-, Transformer-, and Mamba-based architectures have advanced dense prediction, each paradigm still exhibits inherent limitations in balancing fine-grained local details with global semantic reasoning. We propose DeMamba, a novel architecture that integrates deformable convolution for adaptive local feature modeling with Mamba-based state-space reasoning for efficient global context modeling. Specifically, we introduce a Global Semantic State Validation (GSSV) module to strengthen long-range dependencies and an Adaptive Local–Global Fusion (ALGF) gated mechanism to effectively combine local and global representations. Furthermore, a two-stage training strategy with gate supervision and structure-aware stage loss is employed to improve segmentation consistency. Extensive experiments on a challenging UAV-based rice panicle benchmark show that DeMamba consistently outperforms existing SOTA methods across multiple metrics (including +1.00% IoU, +2.13% Acc), while also delivering significant gains across panicle sizes, ranging from +5.04% IoU on tiny to +3.36% IoU on large panicle. Additionally, consistent performance gain on the Northern Leaf Blight (NLB) disease (+0.42% IoU, +2.45% Acc) and WGISD fruit (+0.40% IoU, +0.46% Acc) segmentation datasets further demonstrate the robustness and generalization capability of the proposed approach. Code will be released upon acceptance.
Authors
- Udaybhan Rathore
- Amit Shakya
- Lalit Sharma
- Raveerat Jatrurapitpornchai
- Rupesh Kumar (ORCID: https://orcid.org/0009-0005-6623-9246)
Institutions
- Yamaha Motor Co., Ltd. (Japan) (JP)
Publication Details
- Journal
- Research Square
- Published
- 2026-12-03
- DOI
- https://doi.org/10.21203/rs.3.rs-10828671/v1
- Primary Topic
- Smart Agriculture and AI
- Type
- preprint