BFMambaNet: Boundary-Frequency-Guided Global Semantic Mamba Network for Fine-Grained Camellia oleifera Leaf Disease Segmentation
Xuanhao Li, Fulin Su, Yongming Yan, Shaofeng Peng, Lin Li, Fangying Wan, Ruifeng LiuCamellia oleifera leaf disease segmentation under natural field conditions is important for precision plant protection but remains challenging because lesions often show small target areas, blurred boundaries, uneven illumination, complex backgrounds, and coexisting symptoms. To address these problems, this paper proposes BFMambaNet, a Boundary-Frequency-guided Global Semantic Mamba Network for fine-grained disease segmentation. The model adopts an encoder-decoder framework and introduces a Global Semantic Mamba-based spatial selective feature modeling block to capture long-range lesion context and reduce semantic confusion. A gated wavelet spatial enhancement block is further designed to strengthen high-frequency boundary details while suppressing noisy responses. During training, boundary-frequency auxiliary supervision guides contour localization and pathological texture recovery without additional manual boundary labels. A reinforcement-learning-guided adaptive loss controller adjusts class-wise reweighting factors and loss-component weights according to the training state, improving optimization stability. A pixel-level dataset containing 1400 images and seven disease categories was constructed for evaluation. Experimental results show that BFMambaNet achieves 92.39% Precision, 91.43% Recall, 91.26% Dice, and 85.46% mIoU, outperforming representative CNN-based, Transformer-based, and Mamba-based models. Evaluations on environmental subsets confirm superior robustness, outperforming VMamba by 3.70% mIoU under uneven illumination, 3.55% mIoU under complex backgrounds, and 5.10% mIoU under coexisting symptoms. Cross-dataset validation on Apple leaf diseases further proves its generalization with 3.39% mIoU and 3.84% Dice improvements over U-Mamba, while maintaining a competitive inference speed of 30 FPS. Qualitative results also show clearer boundaries, fewer missed small lesions, and more stable predictions in complex field scenarios.