Accurate identification of predator–pest relationships is essential for implementing effective and sustainable biological control in agriculture. However, existing image-based methods struggle to recognize insect co-occurrence under complex field conditions, limiting their ecological applicability. To address this challenge, we propose a hybrid deep learning framework that integrates convolutional neural networks (CNNs) and Transformer architectures for multi-label recognition of predator–pest combinations. The model leverages a novel co-occurrence attention mechanism to capture semantic relationships between insect categories and employs a pairwise label matching loss to enhance ecological pairing accuracy. Evaluated on a field-constructed dataset of 5,037 images across eight categories, the model achieved an F1-score of 86.5%, mAP50 of 85.1%, and demonstrated strong generalization to unseen predator–pest pairs with an average F1-score of 79.6%. These results outperform several strong baselines, including ResNet-50, YOLOv8, and Vision Transformer. This work contributes a robust, interpretable approach for multi-object ecological detection and offers practical potential for deployment in smart farming systems, UAV-based monitoring, and precision pest management.
Farmland ecosystems present complex pest–predator co-occurrence patterns, posing significant challenges for image-based multitarget recognition and ecological modeling in sensor-driven computer vision tasks. To address these issues, this study introduces a tree-guided Transformer framework enhanced with a knowledge-augmented co-attention mechanism, enabling effective feature extraction from sensor-acquired images. A hierarchical ecological taxonomy (Phylum–Family Species) guides prompt-driven semantic reasoning, while an ecological knowledge graph enriches visual representations by embedding co-occurrence priors. A multimodal dataset containing 60 pest and predator categories with annotated images and semantic descriptions was constructed for evaluation. Experimental results demonstrate that the proposed method achieves 90.4% precision, 86.7% recall, and 88.5% F1-score in image classification, along with 82.3% hierarchical accuracy. In detection tasks, it attains 91.6% precision and 86.3% mAP@50, with 80.5% co-occurrence accuracy. For hierarchical reasoning and knowledge-enhanced tasks, F1-scores reach 88.5% and 89.7%, respectively. These results highlight the framework’s strong capability in extracting structured, semantically aligned image features under real-world sensor conditions, offering an interpretable and generalizable approach for intelligent agricultural monitoring.
In UAV (unmanned aerial vehicle)-enabled precision agriculture, achieving high-accuracy disease diagnosis and yield estimation simultaneously on resource-constrained edge devices remains a significant challenge. Existing solutions are commonly hindered by conflicts in visual feature scales, the absence of explicit agronomic causal logic, and the trade-off between lightweight design and global modeling capability. To address these challenges, a heterogeneous dual-stream state-space framework termed SymbioMamba is proposed. The proposed framework incorporates three key innovations: first, a heterogeneous dual-stream encoder is constructed, in which a micro-texture stream captures high-frequency disease details while a macro-context-scan stream models field-scale biomass continuity; second, a pathology–biomass collaborative interaction (PBCI) module is designed to explicitly inject the biological prior—disease stress leading to yield reduction—into the feature space. Third, a topology-aligning cross-architecture distillation (TACAD) paradigm is introduced to transfer global knowledge from a heavyweight teacher to a lightweight student. Experimental results from a maize UAV dataset comprising 12,074 annotated image patches demonstrate that SymbioMamba achieves 89.4% mAP@0.5 and an of 0.915. Compared to the industry-standard YOLOv11, the framework improves mAP@0.5:0.95 by 2.4% while reducing the parameter count to 6.2 M—a 50% decrease relative to monolithic state-space baselines. Furthermore, yield prediction error is significantly reduced to an RMSE of 485.6 kg/ha. With a compact model size of 6.2 M parameters and 2.4 G FLOPs, SymbioMamba attains an inference speed of 38.2 FPS on the NVIDIA Jetson AGX Orin platform, providing a high-performance, real-time solution for intelligent agricultural phenotypic analysis.