Abstract:Based on the challenges of significant intra-class variability and inter-class similarity among weed species, as well as the interference from complex field environments that limited weed classification accuracy, a multi-scale efficient weed classification network named WeedMamba was proposed, which was based on the Mamba architecture. To enhance the feature extraction capability, a dual-branch extraction module was designed, integrating the local feature extraction advantages of convolutional operations with the global dependency modeling ability of state space models. To improve the multi-scale feature representation, a multi-scale filtering and fusion pyramid network was constructed, which employed a channel attention mechanism to achieve dynamic weighted fusion of high-level semantic features and low-level spatial features. Finally, an adaptive multi-kernel classifier was introduced to effectively suppress background interference through an adaptive weight adjustment mechanism. The proposed method was evaluated on two public datasets, CottonWeedID15 (15 classes) and DeepWeeds (9 classes), with images captured under diverse lighting, growth stages, and occlusion conditions. Training was conducted on an NVIDIA RTX 4060Ti GPU with a batch size of 64 and an initial learning rate of 0.000 3, using a cosine decay schedule and early stopping. On these datasets, the method achieved Top 1 accuracies of 96.4% and 89.9% , respectively, along with F1 scores of 96.3% and 89.2% . Ablation studies further verified the individual contributions of each core component. Experimental results demonstrated that the proposed method achieved an excellent balance between classification performance and model complexity.