CAFE-DETR: A Sesame Plant and Weed Classification and Detection Algorithm Based on Context-Aware Feature Enhancement

Weed competition represents a primary constraint in sesame production, causing substantial yield losses typically ranging from 18 to 68% under inadequate control measures. Precise crop–weed discrimination remains challenging due to morphological similarities, complex field conditions, and vegetation overlapping. To address these issues, we developed Context-Aware Feature-Enhanced Detection Transformer (CAFE-DETR), an enhanced Real-Time Detection Transformer (RT-DETR) architecture optimized for sesame–weed identification. First, the C2f with a Unified Attention-Gating (C2f-UAG) module integrates unified head attention with convolutional gating mechanisms to enhance morphological discrimination capabilities. Second, the Hierarchical Context-Adaptive Fusion Network (HCAF-Net) incorporates hierarchical context extraction and spatial–channel enhancement to achieve multi-scale feature representation. Furthermore, the Polarized Linear Spatial Multi-scale Fusion Network (PLSM-Encoder) reduces computational complexity from O(N2) to O(N) through polarized linear attention while maintaining global semantic modeling. Additionally, the Focaler-MPDIoU loss function improves localization accuracy through point distance constraints and adaptive sample focusing. Experimental results on the sesame–weed dataset demonstrate that CAFE-DETR achieves 90.0% precision, 89.5% mAP50, and 59.5% mAP50–95, representing improvements of 13.07%, 4.92%, and 2.06% above the baseline RT-DETR, respectively, while reducing computational cost by 23.73% (43.4 GFLOPs) and parameter count by 10.55% (17.8 M). These results suggest that CAFE-DETR is a viable alternative for implementation in intelligent spraying systems and precision agriculture platforms. Notably, this study lacks external validation, cross-dataset testing, and field trials, which limits the generalizability of the model to diverse real-world agricultural scenarios.

Authors

Institutions

Publication Details

Journal
Agronomy
Published
2026-01-07
DOI
https://doi.org/10.3390/agronomy16020146
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

CAFE-DETR: A Sesame Plant and Weed Classification and Detection Algorithm Based on Context-Aware Feature Enhancement

Linjing Wei, Tianxiang Zhou, Haodong Liu, Pengyu Hou
Agronomy
Smart Agriculture and AI
article

CAFE-DETR: A Sesame Plant and Weed Classification and Detection Algorithm Based on Context-Aware Feature Enhancement

Linjing Wei, Tianxiang Zhou, Haodong Liu, Pengyu Hou
article en

Abstract

Weed competition represents a primary constraint in sesame production, causing substantial yield losses typically ranging from 18 to 68% under inadequate control measures. Precise crop–weed discrimination remains challenging due to morphological similarities, complex field conditions, and vegetation overlapping. To address these issues, we developed Context-Aware Feature-Enhanced Detection Transformer (CAFE-DETR), an enhanced Real-Time Detection Transformer (RT-DETR) architecture optimized for sesame–weed identification. First, the C2f with a Unified Attention-Gating (C2f-UAG) module integrates unified head attention with convolutional gating mechanisms to enhance morphological discrimination capabilities. Second, the Hierarchical Context-Adaptive Fusion Network (HCAF-Net) incorporates hierarchical context extraction and spatial–channel enhancement to achieve multi-scale feature representation. Furthermore, the Polarized Linear Spatial Multi-scale Fusion Network (PLSM-Encoder) reduces computational complexity from O(N2) to O(N) through polarized linear attention while maintaining global semantic modeling. Additionally, the Focaler-MPDIoU loss function improves localization accuracy through point distance constraints and adaptive sample focusing. Experimental results on the sesame–weed dataset demonstrate that CAFE-DETR achieves 90.0% precision, 89.5% mAP50, and 59.5% mAP50–95, representing improvements of 13.07%, 4.92%, and 2.06% above the baseline RT-DETR, respectively, while reducing computational cost by 23.73% (43.4 GFLOPs) and parameter count by 10.55% (17.8 M). These results suggest that CAFE-DETR is a viable alternative for implementation in intelligent spraying systems and precision agriculture platforms. Notably, this study lacks external validation, cross-dataset testing, and field trials, which limits the generalizability of the model to diverse real-world agricultural scenarios.

AgronomyVol. 16(2)
Gansu Agricultural University (CN)
Peace, Justice and strong institutions
Openalex Percentile: Top 94%
Smart Agriculture and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.